@charset "UTF-8";
/***** TLT Second Chance Housing Solutions *****/
/* Author: 9o9Designs
/* Version: 1.0
/* Release Date: November 26, 2026
/**********************************************/

:root {
    --red: #d42027;
    --green: #2d6941; /* matches the logo green (updated 2026-11-30) */
    --green-dark: #1f4a2d; /* hover */
    --yellow: #f6c90e;
    --ink: #1d1d1b;
    --text: #333;
    --cream: #f8f9f1;
    --mint: #e9f0e3; /* soft green used where the Get In Touch section fades into the footer */
    --field: #f1f1f1;
    --radius-lg: 48px;
    --container: 1240px;
    --font-head: "Raleway", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --text-size: 1.15rem; /* paragraph size for the whole page (matches the How It Works steps) */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font: 400 1rem/1.6 var(--font-body);
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
body { overflow-x: hidden; } /* keeps the slide-in reveal animations from causing a sideways scroll */
a { color: inherit; }
a:hover { color: var(--green-dark); }

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

/* ---------- Shared ---------- */
.heading {
    position: relative;
    margin: 0 0 18px;
    padding-left: 22px;
    font: 300 clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem)/1.15 var(--font-head);
    text-transform: uppercase;
    color: var(--ink);
    letter-spacing: .01em;
}
.heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: -.12em;
    bottom: -.12em;
    width: 9px;
    background: var(--red);
}

.section-head { text-align: center; margin-bottom: 36px; }
.section-head .heading { display: inline-block; }
.section-head p { margin: 0 auto; max-width: 640px; font-size: var(--text-size); }

.btn {
    display: inline-block;
    padding: 15px 38px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font: 500 .9rem/1.2 var(--font-body);
    cursor: pointer;
    transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--green-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: clamp(560px, 52vw, 920px);
    background:
        linear-gradient(160deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.55) 32%, rgba(255,255,255,0) 58%),
        #9da8ac url("../images/hero-bedroom.webp") no-repeat center bottom / cover;
    display: flex;
}
.hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 0 40px;
}
.hero__logo img { width: clamp(135px, 12.6vw, 216px); }
.hero__intro {
    max-width: 640px;
    margin-top: 24px;
    padding: 4px 0 4px 18px;
    border-left: 10px solid var(--red);
}
.hero__intro .heading { font-size: clamp(1.55rem, 1.1rem + 1.47vw, 2.4rem); padding-left: 0; margin-bottom: 10px; } /* about 8% smaller */
@media (min-width: 480px) { .hero__intro .heading { white-space: nowrap; } } /* one line; small phones may still wrap */
.hero__intro .heading::before { display: none; }
.hero__intro p { margin: 0; max-width: 540px; font-size: var(--text-size); line-height: 1.5; color: var(--ink); }

.contact-card {
    margin-top: auto;
    align-self: flex-end;
    width: min(100%, 560px);
    padding: 12px;
    background: rgba(255, 255, 255, .94);
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
.contact-card__heading { margin: 0; }
.contact-card__title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 0;
    background: var(--green);
    border-radius: 4px;
    color: #fff;
    font: 500 1rem/1.3 var(--font-body);
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}
.contact-card__title:hover { background: var(--green-dark); }
.contact-card__chevron { width: 20px; height: 20px; transition: transform .3s ease; }
.contact-card__title[aria-expanded="false"] .contact-card__chevron { transform: rotate(-90deg); }
/* expands/collapses smoothly: the grid row animates between 1fr and 0fr */
.contact-card__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.contact-card__body.is-collapsed { grid-template-rows: 0fr; }
.contact-card__inner { overflow: hidden; }
.contact-card__inner .contact-list { padding-top: 16px; padding-bottom: 6px; }
.contact-list { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 12px; font-size: 1rem; color: var(--ink); }
.contact-list strong { font-weight: 600; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Who We Serve + How It Works ---------- */
.serve {
    padding: 70px 0 60px;
    background: linear-gradient(#fff 0, #fff 35%, var(--cream) 70%);
}
.serve__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    align-items: start;
}
.serve__photo {
    grid-column: 1 / 8;
    grid-row: 1;
    position: relative;
    z-index: 1;
}
.serve__photo img {
    width: 90%; /* about 10% smaller than the original full-width photo */
    aspect-ratio: 1400 / 1080;
    object-fit: cover;
    border-radius: 70px;
}
.serve__content {
    grid-column: 8 / 13;
    grid-row: 1;
    padding-top: 0;
    margin-left: -10%; /* uses the space freed up by the smaller photo */
}
.serve__content p { font-size: var(--text-size); margin: 0 0 26px; }

.checklist {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    font-size: var(--text-size);
    line-height: 1.4;
}
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--ink); width: 22px; height: 22px; margin-top: 1px; }

.how {
    grid-column: 4 / 12;
    grid-row: 2;
    position: relative;
    z-index: 2;
    margin-top: -48px;
    padding: clamp(40px, 6vw, 90px) clamp(24px, 7vw, 110px);
    border: 14px solid var(--green);
}
.how p { font-size: var(--text-size); margin: 0 0 30px; }
.steps {
    list-style: none;
    counter-reset: step;
    margin: 0 0 34px;
    padding: 0;
    display: grid;
    gap: 22px;
    font-size: var(--text-size);
    color: var(--ink);
}
.steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; }
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: var(--yellow);
    font-size: .95rem;
    font-weight: 600;
}

/* ---------- About ---------- */
.about {
    padding: clamp(60px, 8vw, 120px) 0;
    background: #ecebe8 url("../images/about-bg.webp") no-repeat right center / cover;
}
.about__content { max-width: 680px; }
.about__content p { color: var(--ink); font-size: var(--text-size); line-height: 1.55; margin: 0 0 1.4em; }
.about__content .btn { margin-top: 6px; }

/* ---------- Gallery slideshow ---------- */
.gallery { padding: 80px 0; }
.slideshow {
    position: relative;
    max-width: 990px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    column-gap: 24px;
}
.slideshow__stage {
    position: relative;
    aspect-ratio: 16 / 9.6;
    border-radius: 40px;
    overflow: hidden;
    background: #e9e9e6;
}
.slideshow__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity .7s ease;
}
.slideshow__slide.is-active { opacity: 1; }
.slideshow__slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* whole photo shown (portrait or landscape), with a blurred copy of itself filling the space behind it */
.slideshow__bg { object-fit: cover; filter: blur(24px) brightness(.85); transform: scale(1.15); }
.slideshow__img { object-fit: contain; }
.slideshow__arrow {
    justify-self: center;
    width: 64px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}
.slideshow__arrow .icon { width: 56px; height: 40px; stroke-width: 1.6; }
.slideshow__arrow:hover { color: var(--green); }
.slideshow__thumbs {
    grid-column: 2;
    display: flex;
    gap: 14px;
    margin-top: 28px;
    padding: 2px 2px 8px;
    overflow-x: auto; /* thumbnails scroll sideways when they don't all fit */
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.slideshow__thumb {
    flex: 0 0 150px;
    scroll-snap-align: center;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 18px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s, border-color .2s;
}
.slideshow__thumb img { aspect-ratio: 4 / 3; object-fit: cover; }
.slideshow__thumb:hover, .slideshow__thumb.is-active { opacity: 1; }
.slideshow__thumb.is-active { border-color: var(--green); }

/* ---------- Forms ---------- */
.touch {
    padding: 40px 0 150px;
    /* white section that fades into the footer's soft green, so there's no hard line between them */
    background: linear-gradient(to bottom, #fff 0, #fff calc(100% - 220px), var(--mint) 100%);
}
.touch .section-head { margin-bottom: 30px; }
.touch .section-head p { margin-top: 2px; }
.form--contact { max-width: 580px; margin: 0 auto; }
.form fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.form legend {
    margin-bottom: 10px;
    padding: 0;
    font: 500 .8rem/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--green-dark);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: grid; gap: 6px; font-size: .82rem; color: var(--ink); }
.field--full { grid-column: 1 / -1; }
.field em { color: var(--red); font-style: normal; }
.field input, .field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--field);
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field .is-invalid, .field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }

.terms { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; font-size: var(--text-size); line-height: 1.4; }
.terms input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }

.form__status { min-height: 1.4em; margin: 14px 0 0; font-size: .85rem; text-align: center; }
.form__status.is-error { color: var(--red); }
.form__status.is-success { color: var(--green-dark); font-weight: 500; }
.form__actions { text-align: center; margin-top: 10px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Wait list modal ---------- */
.modal {
    width: min(100% - 24px, 860px);
    max-height: calc(100dvh - 24px);
    padding: clamp(24px, 5vw, 48px);
    border: 10px solid var(--green);
    background: var(--cream);
    color: var(--text);
    overflow-y: auto;
}
.modal::backdrop { background: rgba(20, 24, 18, .6); }
.modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}
.modal__close:hover { color: var(--red); }
.modal__intro { font-size: var(--text-size); line-height: 1.45; margin: 0 0 24px; }
body.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--mint); padding-top: 10px; text-align: center; color: var(--ink); font-size: .85rem; }
.footer__logo { width: 180px; margin: 0 auto 24px; }
.footer__line, .footer__contacts li { display: inline-flex; align-items: center; gap: 8px; }
.footer__line { margin: 0 0 14px; }
.footer__contacts { list-style: none; margin: 0; padding: 0 0 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.footer__contacts a { color: var(--ink); }
.footer strong { font-weight: 600; }
.footer__bar { background: var(--green); color: #fff; padding: 12px 20px; font-size: .78rem; }
.footer__bar p { margin: 0; }
.footer__bar a { color: #fff; text-decoration: none; }
.footer__bar a:hover { text-decoration: underline; color: #fff; }

/* ---------- Legal pages ---------- */
.legal { padding: 60px 0 80px; background: var(--cream); }
.legal .container { max-width: 860px; }
.legal__logo img { width: 180px; margin-bottom: 36px; }
.legal h2 { font: 500 1.1rem/1.3 var(--font-body); margin: 2em 0 .6em; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .serve__photo { grid-column: 1 / 13; }
    .serve__content { grid-column: 1 / 13; grid-row: 2; padding-top: 36px; margin-left: 0; }
    .serve__photo img { width: 100%; }
    .how { grid-column: 1 / 13; grid-row: 3; margin-top: 40px; }
    .about { background-position: 75% center; }
    .about__content { max-width: 62%; }
}

@media (max-width: 720px) {
    :root { --text-size: 1.05rem; }
    .serve__photo img { width: 100%; }
    .hero { min-height: auto; background-position: 30% bottom; }
    .hero__inner { padding-bottom: 24px; }
    .hero__intro { margin-bottom: 220px; }
    .contact-card { align-self: stretch; }
    .serve { padding-top: 40px; }
    .serve__photo img { border-radius: 36px; }
    .checklist { grid-template-columns: 1fr; }
    .how { border-width: 10px; }
    .steps { font-size: 1rem; }
    .about { background-position: 85% center; }
    .about__content {
        max-width: none;
        padding: 26px 22px;
        background: rgba(255, 255, 255, .86);
    }
    .about__content p { font-size: .95rem; }
    .gallery { padding: 56px 0; }
    .slideshow { grid-template-columns: 1fr 1fr; row-gap: 14px; }
    .slideshow__stage { grid-column: 1 / -1; grid-row: 1; border-radius: 24px; }
    .slideshow__arrow--prev { grid-row: 2; grid-column: 1; justify-self: end; margin-right: 12px; }
    .slideshow__arrow--next { grid-row: 2; grid-column: 2; justify-self: start; margin-left: 12px; }
    .slideshow__thumbs { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
    .slideshow__thumb { border-radius: 10px; flex-basis: 96px; }
    .form__grid { grid-template-columns: 1fr; }
    .footer__contacts { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slideshow__slide { transition: none; }
}

/* Legal pages (added) */
.legal p, .legal li { font-size: var(--text-size); color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal__updated { margin-top: -6px; color: #666; font-size: .85rem !important; }
.legal .btn { margin-top: 20px; text-decoration: none; }

/* ---------- Scroll reveal (same effect as 9o9designs.com) ---------- */
/* Only hidden when JavaScript is running (html.js), so content always shows without it */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.js .reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity .7s, transform .7s; }
.js .reveal-right { opacity: 0; transform: translateX(50px); transition: opacity .7s, transform .7s; }
.js .reveal-scale { opacity: 0; transform: scale(.8); transition: opacity .7s, transform .7s; }
.js .reveal.in-view, .js .reveal-left.in-view, .js .reveal-right.in-view, .js .reveal-scale.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-scale { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sitemap page ---------- */
.sitemap-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.sitemap-list a { font-size: var(--text-size); color: var(--ink); }
.sitemap-list a:hover { color: var(--green-dark); }

/* ---------- Wait list pop-up: compact so it fits without a scrollbar on laptop screens ---------- */
.modal { padding: 28px clamp(20px, 4vw, 40px) 24px; }
.modal .heading { margin-bottom: 6px; }
.modal__intro { margin-bottom: 14px; }
.modal fieldset { margin-bottom: 10px; }
.modal legend { margin-bottom: 6px; }
.modal .form__grid { gap: 9px 18px; }
.modal .field { gap: 3px; }
.modal .field input { padding: 6px 10px; }
.modal .terms { margin-top: 12px; }
.modal .form__status { min-height: 0; margin-top: 8px; }
.modal .form__status:empty { margin: 0; }
.modal .form__actions { margin-top: 12px; }

.form__hint { margin: -2px 0 0; font-size: .8rem; color: var(--text); }
.form__hint em { color: var(--red); font-style: normal; }
