/* TailsTap warm design system.
   Extracted from the homepage so other public pages can reuse it.
   Everything is scoped under `.tt-warm` so the vendor (green) and admin
   (dark) portals, which also extend base.html, are never affected.
   Font URLs are relative on purpose: ManifestStaticFilesStorage rewrites
   them to hashed paths during collectstatic. */
/* ===================================================================
       Homepage redesign — warm cream / coral theme.
       Everything is scoped under `.tt-warm` so the shared navbar, footer and
       the rest of the (sage-green) site are untouched.
       =================================================================== */
    /* Both brand faces — Fraunces and Plus Jakarta Sans — are declared in
       tailstap.css, which every page loads. */
    .tt-warm {
        /* TT-197 — the green + coral brand. Token NAMES keep their "orange"
           spelling deliberately: they are used in ~70 files and renaming them
           in the same change that alters their values would make every diff
           unreviewable. The names describe a ROLE (accent, text, button), and
           the role is unchanged. Rename separately, or not at all. */
        --h-cream:       #F8F6F1;   /* page background            */
        --h-cream-2:     #F1EEE7;   /* alt section background     */
        --h-card:        #ffffff;
        --h-orange:      #EF735F;   /* primary accent / borders   */
        --h-orange-dark: #CD6352;   /* hover                      */
        --h-orange-tint: #FDEDEB;   /* icon backgrounds           */
        /* TT-113 — the accessible coral, for TEXT and glyphs only.
           The brand coral #EF735F is 2.88:1 on white and the hover #CD6352 is
           3.82:1; WCAG AA wants 4.5:1 for normal-size text, so neither can
           carry text. This is the same family darkened until it clears 4.5:1
           on every surface we put text on. Measured, not assumed:
           white 5.67, cream #F8F6F1 5.25, tint #FDEDEB 4.99,
           green-tint #E6EAE7 4.67, sage-tint #dbe9e7 4.54 (the lowest). TT-211
           re-derived the family from the vector coral #EF735F and re-measured.
           The binding case is the smallest one -- a 13.6px semibold pill on a
           tint, not white -- so darkening only to "passes on white" would have
           left that failing. That was true of the orange palette and is true
           of this one.
           Buttons keep --h-orange as their BACKGROUND; do not use this token
           for backgrounds, and do not use --h-orange or --h-orange-dark for
           text. */
        --h-orange-text: #A24E41;
        /* TT-123 — the accessible coral for FILLED BUTTON BACKGROUNDS.
           White on the brand coral #EF735F is 2.88:1, far below the 4.5:1 AA
           threshold and below even the 3:1 large-text one, so a bigger label
           could not rescue it. White on #B85949 is 4.60:1 and on #9C4C3E is
           5.97:1 — both measured, both derived from the logo coral by
           darkening along its own hue, so a filled button still reads as the
           brand rather than as some other colour.
           Use where a background carries white text. NOT for borders, focus
           rings or accents — those keep --h-orange. */
        --h-orange-btn:      #B85949;
        --h-orange-btn-dark: #9C4C3E;

        /* The logo green, sampled from the artwork itself (TT-202). TT-197
           shipped #344D37, read off a brand-preview page rather than the logo
           file — close, but not the mark. TT-198 settled separately that the
           sage #5C8D89 stays a surface colour rather than folding into this. */
        --h-green:       #2C4E36;
        --h-green-dark:  #213A28;
        --h-green-tint:  #E6EAE7;

        --h-ink:         #000000;   /* headings (black — designer) */
        /* Body copy, cooled to sit with the green. NOT the #6b6f68 the brand
           preview used: that measures 4.36:1 on --h-orange-tint and 4.31:1 on
           --h-green-tint, so it failed AA on the two tint surfaces the preview
           never rendered.
           Darkened again for TT-198: with the sage tints retained as surfaces,
           #676b64 measures 4.35:1 on --brand-tint #dbe9e7 and fails AA there.
           #646861 is the nearest passing value and clears every surface it
           lands on — sage tint 4.55, sage tint-light 5.11, white 5.68,
           cream 5.11, orange-tint 4.71, green-tint 4.66. */
        --h-body:        #646861;
        --h-dark:        #1B3021;   /* dark "professionals" band  */
        --h-border:      #DEE5E0;

        --h-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
        --h-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

        /* Body copy is Plus Jakarta Sans, the design-system face. Without this
           the wrapper inherits base.html's legacy `body { font-family: Inter }`,
           so anything that doesn't set its own face (list labels, paragraphs)
           silently rendered in Inter. Headings set --h-serif (Fraunces)
           explicitly and are unaffected. */
        font-family: var(--h-sans);
        background: var(--h-cream);
        color: var(--h-body);
        overflow-x: hidden;
    }

    /* TT-337 — the wrapper is only as tall as its content, and the vendor
       portal has no footer, so a short page (an empty Waitlist) stopped being
       cream halfway down and showed base.html's grey #f8f9fa below. Paint the
       page itself cream whenever it uses the warm theme. The colour is
       literal because the tokens above live on .tt-warm, not on body.
       Browsers without :has() keep the old look. */
    body:has(.tt-warm) { background-color: #F8F6F1; }

    .tt-warm .h2-section { padding: 4.5rem 0; }

    /* --- Typography --------------------------------------------------- */
    .tt-warm .h2-eyebrow {
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: 1rem;
        line-height: 1;
        font-weight: 700;
        color: var(--h-orange-text);
        margin-bottom: 0.75rem;
    }
    .tt-warm .h2-display {
        font-family: var(--h-serif);
        color: var(--h-ink);
        /* Design spec (Figma): Fraunces SemiBold 600, 50px, line-height 100%,
           letter-spacing 0. Explicit size avoids Bootstrap .display-5 RFS. */
        font-weight: 600;
        font-size: clamp(2.4rem, 4.2vw, 3.125rem);
        line-height: 1.0;
        letter-spacing: 0;
    }
    .tt-warm .em {
        font-style: italic;
        color: var(--h-orange-text);
        font-weight: 600;
    }
    /* Ink-coloured italic accent (e.g. "Popular Services" heading). */
    .tt-warm .em-ink { color: var(--h-ink); }
    .tt-warm .h2-lead {
        color: var(--h-body);
        font-size: 1.05rem;
        max-width: 34rem;
    }
    /* Body copy under the three "Our Promise" cards. */
    .tt-warm .h2-promise {
        font-size: 1rem;
        font-weight: 500;
        line-height: 28px;
        letter-spacing: 0;
        max-width: 357px;
        color: #5c5c5c; /* comp specs opacity 0.7; a flat grey reads darker, and matches .h2-feat p */
    }

    /* --- Buttons ------------------------------------------------------ */
    .tt-warm .h2-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        border-radius: 999px;
        padding: 0.7rem 1.6rem;
        font-weight: 600;
        border: 1.5px solid transparent;
        transition: all 0.2s ease;
        text-decoration: none;
        cursor: pointer;
    }
    .tt-warm .h2-btn-primary {
        background: linear-gradient(135deg, var(--h-orange-btn) 0%, var(--h-orange-btn-dark) 100%);
        color: #fff;
        box-shadow: 0 6px 16px rgba(205, 99, 82, 0.22);
    }
    .tt-warm .h2-btn-primary:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(205, 99, 82, 0.18), 0 12px 26px rgba(205, 99, 82, 0.32);
        filter: saturate(1.05);
    }
    .tt-warm .h2-btn-outline {
        background: transparent;
        color: var(--h-ink);
        border-color: var(--h-border);
    }
    .tt-warm .h2-btn-outline:hover {
        border-color: var(--h-orange);
        color: var(--h-orange-text);
    }
    .tt-warm .h2-btn-light {
        background: #fff;
        color: var(--h-ink);
    }
    .tt-warm .h2-btn-light:hover { color: var(--h-orange-text); transform: translateY(-2px); }

    /* --- Photo panels (gradient placeholders) ------------------------- */
    .tt-warm .h2-photo {
        position: relative;
        border-radius: 1.75rem;
        min-height: 340px;
        overflow: hidden;
        background: linear-gradient(150deg, #f6c89a 0%, #ec9a63 55%, #e07f45 100%);
        box-shadow: 0 4px 12px rgba(176, 106, 54, 0.12), 0 24px 50px rgba(176, 106, 54, 0.24);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tt-warm .h2-photo::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 45%);
    }
    .tt-warm .h2-photo i {
        font-size: 6rem;
        color: rgba(255, 255, 255, 0.85);
        position: relative;
        z-index: 1;
    }
    /* Real photo fills the panel (over the gradient fallback + sheen). */
    .tt-warm .h2-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 2;
    }
    /* "Two Worlds" photo: proper aspect-ratio card when stacked (mobile),
       and fills the column height to match the copy on desktop. */
    .tt-warm .h2-photo-fill {
        max-width: 501px;
        min-height: 0;
        border-radius: 20px;
        aspect-ratio: 4 / 3;
        margin: 0 auto;
    }
    @media (min-width: 992px) {
        .tt-warm .h2-photo-fill {
            height: 100%;
            aspect-ratio: auto;
            margin: 0 0 0 auto;
        }
    }

    /* --- Hero --------------------------------------------------------- */
    .tt-warm .h2-hero { padding: 3.5rem 0 4rem; background: #FFFBF5; }
    .tt-warm .h2-badge-pill {
        display: inline-flex;
        align-self: flex-start;
        align-items: center;
        gap: 0.5rem;
        background: var(--h-orange-tint);
        color: var(--h-orange-text);
        border-radius: 999px;
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 1.25rem;
    }
    .tt-warm .h2-hero h1 {
        font-family: var(--h-serif);
        color: var(--h-ink);
        /* Figma spec: Fraunces Bold 700, 70px, line-height 100%, spacing 0. */
        font-weight: 700;
        font-size: clamp(2.6rem, 5.5vw, 4.375rem);
        line-height: 1.0;
        letter-spacing: 0;
        margin-bottom: 1.5rem;
    }
    /* Hero "Services" accent matches the 700 heading weight (sections use 600). */
    .tt-warm .h2-hero h1 .em { font-weight: 700; }
    .tt-warm .h2-search {
        background: #fff;
        border-radius: 1rem;
        padding: 0.5rem 0.5rem 0.5rem 0.4rem;
        box-shadow: 0 2px 8px rgba(120, 90, 50, 0.06), 0 16px 40px rgba(120, 90, 50, 0.14);
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
        max-width: 667px;
        min-height: 77px;
        box-sizing: border-box;
    }
    .tt-warm .h2-search .h2-field {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 0.85rem;
        min-width: 0;
    }
    .tt-warm .h2-search .h2-field-loc { flex: 1 1 auto; min-width: 10.5rem; }
    .tt-warm .h2-search .h2-field-svc { flex: 0 0 auto; }
    .tt-warm .h2-search .h2-field i { color: #9a9186; font-size: 0.9rem; }
    .tt-warm .h2-search .h2-field-svc i { color: var(--h-ink); }
    .tt-warm .h2-search input,
    .tt-warm .h2-search select {
        border: none;
        outline: none;
        width: 100%;
        font-size: 0.95rem;
        color: var(--h-ink);
        background: transparent;
    }
    .tt-warm .h2-search select { cursor: pointer; padding-right: 0.5rem; width: auto; min-width: 6.75rem; }
    .tt-warm .h2-search-div {
        width: 1px;
        height: 1.6rem;
        background: var(--h-border);
        flex: 0 0 auto;
    }
    .tt-warm .h2-search-btn {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, var(--h-orange-btn) 0%, var(--h-orange-btn-dark) 100%);
        color: #fff;
        border: none;
        border-radius: 999px;
        padding: 0.7rem 1.25rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(205, 99, 82, 0.25);
        transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }
    .tt-warm .h2-search-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(205, 99, 82, 0.34); filter: saturate(1.05); }
    .tt-warm .h2-owner-note {
        margin-top: 1.5rem;
        background: #f3ebdd;
        border-radius: 0.6rem;
        padding: 0.85rem 1.1rem;
        font-size: 0.9rem;
        color: var(--h-body);
        max-width: 517px;
        min-height: 73px;
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .tt-warm .h2-owner-note i { color: var(--h-orange-text); margin-top: 0.15rem; }
    .tt-warm .h2-owner-note strong { color: var(--h-ink); }
    .tt-warm .h2-owner-note a { color: var(--h-orange-text); font-weight: 600; white-space: nowrap; text-decoration: none; }

    /* --- Cards -------------------------------------------------------- */
    .tt-warm .h2-card {
        background: var(--h-card);
        border: 1px solid var(--h-border);
        border-radius: 20px;
        padding: 27px 18px 24px;
        height: 100%;
        min-height: 285px;
        display: flex;
        flex-direction: column;
        transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.35s ease;
    }
    .tt-warm .h2-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 2px 6px rgba(150, 110, 60, 0.06), 0 20px 44px rgba(150, 110, 60, 0.16);
        border-color: var(--h-orange-tint);
    }
    .tt-warm .h2-ico {
        width: 3rem;
        height: 3rem;
        border-radius: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--h-orange-tint);
        color: var(--h-orange-text);
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    /* Illustrated service-card icon (no tinted box — sits directly on the card). */
    /* Uniform service-card icon: brand-tinted tile with a Font Awesome glyph,
       so every card shares one consistent icon style. */
    .tt-warm .h2-card-ico {
        width: 54px;
        height: 54px;
        align-self: flex-start;
        margin-bottom: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--h-orange-tint);
        color: var(--h-orange-text);
        border-radius: 14px;
        font-size: 1.4rem;
    }
    .tt-warm .h2-card h5 {
        font-family: var(--h-serif);
        color: var(--h-ink);
        font-weight: 600;
        font-size: 24px;
        line-height: 1.1;
        margin-bottom: 22px;
    }
    .tt-warm .h2-card p { font-size: 17px; line-height: 26px; color: var(--h-body); margin-bottom: 24px; }
    .tt-warm .h2-card-count {
        display: inline-block;
        align-self: flex-start;
        background: var(--h-orange-tint);
        color: var(--h-orange-text);
        font-size: 0.8rem;
        font-weight: 600;
        padding: 0.25rem 0.7rem;
        border-radius: 999px;
        margin: -8px 0 20px;
    }
    .tt-warm .h2-card-link {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        margin-top: auto;
        gap: 0.45rem;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--h-orange-text);
        text-decoration: none;
        border: 1px solid var(--h-orange);
        border-radius: 999px;
        padding: 9px 22px;
    }
    .tt-warm .h2-card-link:hover { background: var(--h-orange-btn); color: #fff; border-color: var(--h-orange); }

    /* --- Why-choose round icons -------------------------------------- */
    .tt-warm .h2-round-ico {
        width: 4rem;
        height: 4rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--h-orange-tint);
        color: var(--h-orange-text);
        font-size: 1.5rem;
        margin: 0 auto 1.25rem;
    }

    /* --- Dark "professionals" band ------------------------------------ */
    /* Full-bleed dark band — the section itself carries the dark background,
       so this wrapper just sets the light-on-dark text context. */
    .tt-warm .h2-dark {
        color: #fff;
        padding: 1rem 0;
    }
    .tt-warm .h2-dark .h2-display { color: #fff; }
    .tt-warm .h2-dark .h2-lead { color: rgba(255,255,255,0.65); margin-left: auto; margin-right: auto; }
    .tt-warm .h2-step {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
        padding: 26px 25px 29px;
        height: 100%;
        min-height: 286px;
        transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.35s ease, border-color 0.35s ease;
    }
    .tt-warm .h2-step:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(224, 122, 102, 0.4);
    }
    .tt-warm .h2-step .h2-ico {
        background: rgba(224, 122, 102, 0.18);
        color: var(--h-orange-text);
        border-radius: 50%;
        margin-bottom: 17px;
    }
    .tt-warm .h2-step .h2-step-num {
        display: block;
        color: var(--h-orange-text);
        font-weight: 700;
        font-size: 15px;
        letter-spacing: 0.08em;
        margin-bottom: 27px;
    }
    .tt-warm .h2-step h5 {
        font-family: var(--h-serif);
        color: #fff;
        font-weight: 700;
        font-size: 25px;
        line-height: 1.1;
        margin: 0 0 21px;
    }
    .tt-warm .h2-step p {
        color: rgba(255,255,255,0.65);
        font-size: 15px;
        line-height: 25px;
        margin: 0;
    }

    /* --- Pills (tabs + areas) ---------------------------------------- */
    .tt-warm .h2-tabs {
        display: inline-flex;
        align-self: flex-start;
        background: var(--h-cream-2);
        border-radius: 999px;
        padding: 0.3rem;
        gap: 0.25rem;
    }
    .tt-warm .h2-tabs .nav-link {
        border-radius: 999px;
        padding: 0.45rem 1.4rem;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--h-body);
        border: none;
    }
    .tt-warm .h2-tabs .nav-link.active {
        background: #fff;
        color: var(--h-orange-text);
        box-shadow: 0 0.25rem 0.6rem rgba(150, 110, 60, 0.12);
    }
    .tt-warm .h2-area {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: #fff;
        border: 1px solid var(--h-border);
        border-radius: 999px;
        padding: 0.75rem 1.5rem; /* comp: 12px/24px — its 17.86/35.71 are scaled 1.488x */
        font-weight: 600;
        font-size: 0.84rem; /* comp: 13.44px (its 20px is the same 1.488x scale) */
        /* Comp says line-height 100%, but that yields a 37px pill, not the 46px
           it also specifies — the icon sets the height there. 22px keeps 46. */
        line-height: 22px;
        letter-spacing: 0;
        color: var(--h-ink);
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .tt-warm .h2-area i { color: var(--h-body); }
    .tt-warm .h2-area:hover { border-color: var(--h-orange); color: var(--h-orange-text); transform: translateY(-2px); }

    /* --- Two-sided feature list -------------------------------------- */
    .tt-warm .h2-feat {
        display: flex;
        gap: 0.85rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    .tt-warm .h2-feat .h2-ico { flex: 0 0 auto; margin-bottom: 0; width: 2.6rem; height: 2.6rem; font-size: 1.05rem; border-radius: 50%; }
    .tt-warm .h2-feat h6 {
        font-family: var(--h-serif);
        color: var(--h-ink);
        font-weight: 700;
        font-size: 1.25rem;
        line-height: 1.5;
        letter-spacing: 0;
        margin-bottom: 0.2rem;
    }
    .tt-warm .h2-feat p {
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 24px;
        letter-spacing: 0;
        max-width: 318px;
        color: #5c5c5c; /* comp specs opacity 0.7 on --h-body; a flat grey reads darker and matches the footer */
        margin: 0;
    }

    /* --- Testimonials ------------------------------------------------- */
    .tt-warm .h2-quote-stars { color: var(--h-orange-text); font-size: 1.05rem; letter-spacing: 0.35rem; }
    .tt-warm .h2-quote-mark {
        /* Asset is 99px wide; fa-quote-left's ink is 0.875em (448/512 viewBox). */
        font-size: 7rem;
        line-height: 1;
        color: #fdd9bd; /* = the asset's #F77414 at 25% alpha over #FFFBF5 */
        margin-bottom: 24px;
    }
    .tt-warm .h2-quote-body { max-width: 400px; margin-left: 140px; }
    .tt-warm .h2-quote-text {
        font-size: 1.3rem;
        line-height: 1.45;
        color: #2d3032;
    }
    .tt-warm .h2-quote-name {
        font-family: var(--h-serif);
        color: var(--h-orange-text);
        font-weight: 700;
        font-size: 1.25rem;
    }
    .tt-warm .h2-quote-role { color: #40566c; font-size: 0.95rem; }
    .tt-warm .h2-quote-body .h2-quote-stars { margin-bottom: 30px !important; }
    .tt-warm .h2-quote-body .h2-quote-text { margin-bottom: 33px !important; }
    .tt-warm .h2-quote-body .h2-quote-name { margin-bottom: 10px !important; }
    .tt-warm .h2-quote-body .h2-carousel-row { margin-top: 8px !important; }
    .tt-warm .h2-carousel-btn {
        width: 44px;
        height: 36px;
        border-radius: 10px;
        border: none;
        /* Tokenised (TT-197): was the old body colour hardcoded. White on
           --h-body #646861 is 5.68:1, so this carries white text safely. */
        background: var(--h-body);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    .tt-warm .h2-carousel-btn.is-active,
    .tt-warm .h2-carousel-btn:hover { background: var(--h-orange-btn); color: #fff; }

    /* Stacked testimonial photos — front image slightly tilted, two cards
       fanned out behind it to the left. */
    /* Exact Figma alignment: front 0°, back cards 17.64°/36.02° (CCW),
       50% opacity, white border. Percentages are of the stack bounding box. */
    /* The deck is a real stack of cards — one per review — that the prev/next
       controls page through. Every card shares the front slot's geometry; each
       depth is reached with transform ONLY (GPU-smooth), so promoting a card
       forward or receding it animates cleanly. The container hints that it's
       interactive and lets vertical gestures scroll (JS owns the horizontal). */
    .tt-warm .h2-testimonial-stack { position: relative; width: 100%; max-width: 480px; margin-left: 110px; aspect-ratio: 643 / 635; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
    .tt-warm .h2-review-card {
        position: absolute;
        /* Shared front-slot box; depth is transform-only from here. */
        left: 27.66%; top: 0; width: 72.35%;
        aspect-ratio: 465.22 / 584.29;
        transform-origin: center center;
        transition: transform 0.56s cubic-bezier(0.55, 0, 0.1, 1),
                    opacity 0.56s cubic-bezier(0.55, 0, 0.1, 1);
        will-change: transform, opacity;
    }
    .tt-warm .h2-review-card img {
        display: block;
        width: 100%; height: 100%;
        box-sizing: border-box;
        border: 5px solid #FFFBF5;
        border-radius: 2rem;
        object-fit: cover;
        box-shadow: 0 0.8rem 2rem rgba(80, 50, 20, 0.2);
        transform-origin: center center;
        will-change: transform, opacity;
        transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    }
    /* Depth slots — front, then two cards fanned up-left behind it (Figma
       angles 17.64°/36.02°, 50% opacity), reached by transform from the
       shared front geometry. */
    .tt-warm .h2-review-card[data-depth="0"] { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; z-index: 3; }
    .tt-warm .h2-review-card[data-depth="1"] { transform: translate3d(-31%, 2%, 0) rotate(-17.64deg) scale(0.83); opacity: 0.5; z-index: 2; }
    .tt-warm .h2-review-card[data-depth="2"] { transform: translate3d(-55%, 8%, 0) rotate(-36.02deg) scale(0.66); opacity: 0.5; z-index: 1; }
    /* Cards past the third park behind the third, invisible. */
    .tt-warm .h2-review-card[data-depth="hidden"] { transform: translate3d(-55%, 8%, 0) rotate(-36.02deg) scale(0.66); opacity: 0; z-index: 0; }
    /* A card being paged forward flies off to the left, over the stack. */
    .tt-warm .h2-review-card[data-depth="out"] { transform: translate3d(-135%, -2%, 0) rotate(-24deg) scale(0.82); opacity: 0; z-index: 4; }
    /* One-frame transition kill for the instant re-seat (recycle to the back /
       enter from off-stage), so a card doesn't streak across the visible deck. */
    .tt-warm .h2-review-card.snap { transition: none; }
    /* Hold a just-recycled card invisible so it fades up at the back rather
       than popping in at full opacity. */
    .tt-warm .h2-review-card.is-recycling { opacity: 0 !important; }
    @media (prefers-reduced-motion: reduce) {
        .tt-warm .h2-review-card { transition: none; }
    }
    @media (max-width: 991px) {
        /* Columns stack below lg — drop the desktop-only right-shift offsets
           so the review and image don't overflow / clip on phones & tablets. */
        .tt-warm .h2-testimonial-stack { margin-bottom: 2rem; margin-left: 0; }
        .tt-warm .h2-quote-body { margin-left: 0; }
    }

    /* --- Stats band --------------------------------------------------- */
    .tt-warm .h2-stats {
        background: linear-gradient(120deg, var(--h-orange-btn) 0%, var(--h-orange-btn-dark) 100%);
        color: #fff;
        padding: 2.75rem 0;
    }
    .tt-warm .h2-stats .h2-stat-num {
        font-family: var(--h-serif);
        font-size: 2.625rem;   /* 42px */
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;
    }
    .tt-warm .h2-stats .h2-stat-num i { font-size: 1.7rem; vertical-align: baseline; }
    .tt-warm .h2-stats .h2-stat-label { font-size: 0.85rem; opacity: 0.95; margin-top: 0.5rem; }

    /* --- Final CTA ---------------------------------------------------- */
    .tt-warm .h2-cta {
        border-radius: 1.25rem;
        padding: 2rem;
        height: 100%;
        border: 1px solid var(--h-border);
        background: #f9f2e8;
        transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
    }
    .tt-warm .h2-cta:hover {
        transform: translateY(-5px);
        box-shadow: 0 2px 6px rgba(150, 110, 60, 0.06), 0 18px 40px rgba(150, 110, 60, 0.15);
    }
    .tt-warm .h2-cta .h2-ico { border-radius: 50%; }
    .tt-warm .h2-cta.h2-cta-dark {
        background: var(--h-dark);
        border-color: var(--h-dark);
        color: #fff;
        position: relative;
        overflow: hidden;
    }
    .tt-warm .h2-cta.h2-cta-dark::before {
        content: '';
        position: absolute;
        top: -35px; right: -25px;
        width: 140px; height: 140px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        z-index: 0;
    }
    .tt-warm .h2-cta.h2-cta-dark > * { position: relative; z-index: 1; }
    .tt-warm .h2-cta.h2-cta-dark h5 { color: #fff; }
    .tt-warm .h2-cta.h2-cta-dark p { color: rgba(255,255,255,0.6); }
    .tt-warm .h2-cta h5 {
        font-family: var(--h-serif);
        color: var(--h-ink);
        font-weight: 700;
        font-size: 1.25rem;
        margin-bottom: 0.6rem;
    }
    .tt-warm .h2-cta p { font-size: 0.9rem; margin-bottom: 1.25rem; }

    @media (max-width: 767px) {
        .tt-warm .h2-section { padding: 3rem 0; }
        .tt-warm .h2-search {
            max-width: 100%;
            flex-wrap: wrap;
        }
        .tt-warm .h2-search .h2-field-loc,
        .tt-warm .h2-search .h2-field-svc { flex: 1 1 100%; }
        .tt-warm .h2-search-div { display: none; }
        .tt-warm .h2-search-btn { flex: 1 1 100%; justify-content: center; }
        .tt-warm .h2-owner-note { max-width: 100%; }
        .tt-warm .h2-quote-text { font-size: 1.2rem; }
    }

    /* --- Scroll-in reveal (progressive enhancement) ------------------- */
    /* Only active once JS adds `.reveal-on`; without JS everything shows
       normally. Fully disabled for users who prefer reduced motion. */
    .tt-warm.reveal-on .h2-reveal {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
        will-change: opacity, transform;
    }
    .tt-warm.reveal-on .h2-reveal.is-visible {
        opacity: 1;
        transform: none;
    }
    @media (prefers-reduced-motion: reduce) {
        .tt-warm.reveal-on .h2-reveal {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
    }

    /* --- Scoped Bootstrap overrides -------------------------------------
       Public pages reuse Bootstrap components (buttons, cards, form
       controls) rather than the bespoke .h2-* ones. Warm them up inside
       `.tt-warm` only, so the vendor (green) and admin (dark) portals --
       which also extend base.html -- keep their own themes.
       Note: the homepage uses .h2-btn-primary (a different class), so these
       rules never touch it. */
    .tt-warm .btn-primary {
        background: linear-gradient(135deg, var(--h-orange-btn) 0%, var(--h-orange-btn-dark) 100%);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 4px 12px rgba(205, 99, 82, 0.22);
    }
    .tt-warm .btn-primary:hover,
    .tt-warm .btn-primary:focus,
    .tt-warm .btn-primary:active {
        /* Tokenised (TT-197): the stops were hardcoded copies of the button
           tokens, so a palette change silently left the hover state behind. */
        background: linear-gradient(
            135deg,
            var(--h-orange-btn) 0%,
            var(--h-orange-btn-dark) 60%,
            var(--h-orange-btn) 100%
        );
        border-color: transparent;
        color: #fff;
        /* --h-orange-dark #CD6352 as rgb; a shadow cannot take a hex token
           and an alpha together without a colour-mix, which we do not need. */
        box-shadow: 0 8px 20px rgba(205, 99, 82, 0.30);
    }
    .tt-warm .btn-primary:focus-visible {
        outline: 2px solid var(--h-orange-dark);
        outline-offset: 2px;
    }

    .tt-warm .btn-outline-primary {
        color: var(--h-orange-text);
        border-color: var(--h-orange);
        background: transparent;
    }
    .tt-warm .btn-outline-primary:hover,
    .tt-warm .btn-outline-primary:focus,
    .tt-warm .btn-outline-primary:active {
        background: var(--h-orange-btn);
        border-color: var(--h-orange);
        color: #fff;
    }

    .tt-warm .form-control:focus,
    .tt-warm .form-select:focus {
        border-color: var(--h-orange);
        box-shadow: 0 0 0 0.2rem rgba(224, 122, 102, 0.15);
    }

    .tt-warm .card {
        border: 1px solid var(--h-border);
        border-radius: 1rem;
        box-shadow: 0 2px 8px rgba(120, 90, 50, 0.05), 0 12px 30px rgba(120, 90, 50, 0.07);
    }

    /* TT-350 — this used to turn every green badge orange, for a "distance"
       chip that no longer uses it. Green carries meaning ("Valid", "Paid",
       "Signed"), and in orange those read like warnings. They take the
       brand green tint instead, which still sits in the warm palette. */
    .tt-warm .badge.bg-success {
        background: var(--h-green-tint) !important;
        color: var(--h-green) !important;
    }
