/* ============================================================================
   Five Detailing Co. — main stylesheet
   ----------------------------------------------------------------------------
   Sections:
     1. Custom properties (brand tokens)
     2. Reset / base
     3. Typography
     4. Layout helpers (container, sections, eyebrow)
     5. Buttons
     6. Site header (utility bar + sticky main nav + mobile menu)
     7. Hero
     8. Intro
     9. Reviews (marquee)
    10. Services grid
    11. Before/after slider
    12. Site footer
    13. Motion reveal base states
    14. Responsive breakpoints (small additions; the file is mobile-first)
============================================================================ */

/* ── 1. Custom properties ────────────────────────────────────────────────── */
:root {
    --navy: #182242;
    --navy-90: rgba(24, 34, 66, 0.92);
    --navy-70: rgba(24, 34, 66, 0.70);
    --navy-40: rgba(24, 34, 66, 0.40);

    --burgundy: #a23040;
    --burgundy-dark: #851f2e;
    --burgundy-light: #c44a5b;

    --white: #ffffff;
    --cream: #dadace;
    --cream-light: #ebebe2;

    --ink: #0f1530;            /* near-black text on light bg */
    --muted: #5b6173;          /* secondary text */

    --font-display: 'Inter Tight', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --shadow-sm: 0 2px 8px rgba(15, 21, 48, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 21, 48, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 21, 48, 0.18);

    --container-w: 1240px;
    --container-pad: clamp(1.25rem, 4vw, 2.5rem);

    --section-py: clamp(4rem, 9vw, 7rem);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── 2. Reset / base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* No overflow-x:hidden — it breaks position:sticky on descendants.
       Sections that need to clip overflow (hero, services, reviews) handle it locally. */
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 100;
}
.skip-link:focus { top: 0; }

/* Lenis smooth-scroll setup */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ── 3. Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
    color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
p  { margin: 0 0 1em; }

.eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--burgundy);
    margin: 0 0 0.85rem;
}

/* ── 4. Layout helpers ──────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding-inline: var(--container-pad);
}
.section { padding-block: var(--section-py); position: relative; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--burgundy-light); }

/* ── 5. Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.02em;
    border-radius: 999px;
    transition: transform 0.35s var(--ease-out-quart), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--burgundy {
    background: var(--burgundy);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(162, 48, 64, 0.32);
}
.btn--burgundy:hover {
    background: var(--burgundy-dark);
    box-shadow: 0 12px 32px rgba(162, 48, 64, 0.42);
}
.btn--ghost-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--white);
}
.btn--navy {
    background: var(--navy);
    color: var(--white);
}
.btn--navy:hover { background: #0c1331; }

/* ── 6. Site header ─────────────────────────────────────────────────────── */
.site-header { position: relative; z-index: 50; }

.utility-bar {
    background: var(--burgundy);
    color: var(--white);
    font-size: 0.85rem;
}
.utility-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 38px;
    padding-block: 0.4rem;
}
.utility-bar__location,
.utility-bar__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.utility-bar__phone {
    color: var(--white);
    font-weight: 600;
    transition: opacity 0.2s ease;
}
.utility-bar__phone:hover { opacity: 0.82; }
.utility-bar__icon { flex-shrink: 0; }

.main-nav {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 49;
    transition: box-shadow 0.3s ease;
}
.main-nav.is-stuck {
    box-shadow: 0 4px 24px rgba(15, 21, 48, 0.08);
}
/* When the WP admin bar is showing, push the sticky nav down below it
   so it isn't half-hidden behind the admin bar. Without this, the top
   32px of the bar gets covered, making content appear top-aligned. */
.admin-bar .main-nav { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .main-nav { top: 46px; }
}
.main-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 170px;
    padding-block: 0;
}

.main-nav__logo {
    display: flex;
    align-items: center;
    line-height: 0;
    position: relative;
    z-index: 2;
    transition: transform 0.3s var(--ease-out-quart);
}
.main-nav__logo:hover { transform: scale(1.03); }
.main-nav__logo img {
  width: auto;
  height: 140px;          /* fits inside 170px bar with 15px above + 15px below */
}

@media (max-width: 960px) {
    .main-nav__inner { height: 160px; }
    .main-nav__logo img { height: 130px; }
}

@media (max-width: 600px) {
    .main-nav__inner { height: 110px; }
    .main-nav__logo img { height: 84px; }
}

.main-nav__menu {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.main-nav__menu > li > a,
.main-nav__menu .fd-menu__item > a {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}
.main-nav__menu > li > a::after,
.main-nav__menu .fd-menu__item > a::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out-quart);
}
.main-nav__menu > li > a:hover::after,
.main-nav__menu .fd-menu__item > a:hover::after { transform: scaleX(1); }

.main-nav__menu .fd-menu__item--cta > a,
.main-nav__menu > li:last-child > a {
    background: var(--burgundy);
    color: var(--white);
    margin-left: 0.4rem;
}
.main-nav__menu .fd-menu__item--cta > a::after,
.main-nav__menu > li:last-child > a::after { display: none; }
.main-nav__menu .fd-menu__item--cta > a:hover,
.main-nav__menu > li:last-child > a:hover {
    background: var(--burgundy-dark);
    color: var(--white);
}

/* Secondary pill (second-to-last item) — outlined navy. */
.main-nav__menu > li:nth-last-child(2) > a {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    margin-left: 0.2rem;
}
.main-nav__menu > li:nth-last-child(2) > a::after { display: none; }
.main-nav__menu > li:nth-last-child(2) > a:hover {
    background: var(--navy);
    color: var(--white);
}

.main-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
}
.main-nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.3s var(--ease-out-quart), opacity 0.3s ease;
}
.main-nav__toggle[aria-expanded="true"] .main-nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.main-nav__toggle[aria-expanded="true"] .main-nav__toggle-bar:nth-child(2) {
    opacity: 0;
}
.main-nav__toggle[aria-expanded="true"] .main-nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── 7. Hero ────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: clamp(560px, 80vh, 820px);
    display: flex;
    align-items: center;
    color: var(--white);
    padding-block: 0;
    overflow: hidden;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 1.6s var(--ease-out-quart);
}
.hero.is-revealed .hero__image { transform: scale(1); }
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(24, 34, 66, 0.30) 0%, rgba(24, 34, 66, 0.55) 60%, rgba(24, 34, 66, 0.75) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.25) 100%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    /* Stack sits in the upper-middle of the hero, ~100px higher than centered.
       Padding-bottom carries the offset so total hero height stays the same. */
    padding-top: clamp(2rem, 8vh, 5rem);
    padding-bottom: clamp(8rem, 20vh, 12rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}
.hero__wordmark {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 0.25rem;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.45));
}
.hero__tagline {
    color: var(--white);
    /* Reduced from clamp(2.5rem, 6.5vw, 5.2rem) so the wordmark reads as the lead */
    font-size: clamp(1.7rem, 3.6vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    max-width: 22ch;
    margin: 0 auto;
    text-wrap: balance;
    font-weight: 600;
    opacity: 0.96;
}
.hero__cta-row {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}
/* Hero scroll cue removed — read as a blinking cursor rather than a scroll indicator. */

/* ── 8. Intro ───────────────────────────────────────────────────────────── */
.intro {
    background: var(--white);
    padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}
.intro__inner { max-width: 960px; text-align: center; }
.intro__copy {
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.55;
    color: var(--ink);
}
.intro__copy p { margin-bottom: 1em; }
.intro__copy p:last-child { margin-bottom: 0; }

/* ── 9. Reviews marquee ─────────────────────────────────────────────────── */
.reviews { background: var(--cream); overflow: hidden; }
.reviews__header { text-align: center; margin-bottom: 3rem; }
.reviews__heading { max-width: 22ch; margin-inline: auto; }
.reviews__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.reviews__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
}
.review-card {
    width: 360px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.review-card__stars {
    color: var(--burgundy);
    display: inline-flex;
    gap: 1px;
}
.review-card__quote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
}
.review-card__attribution {
    margin: 0;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
}
.review-card__loc {
    color: var(--muted);
    font-weight: 400;
}

/* ── 10. Services grid ──────────────────────────────────────────────────── */
.services {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.services::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(162, 48, 64, 0.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.services__header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}
.services__heading { color: var(--white); }
.services__subheading {
    max-width: 52ch;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
}
.services__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}
.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    backdrop-filter: blur(8px);
    transition: transform 0.45s var(--ease-out-quart), border-color 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--burgundy-light);
    background: rgba(255, 255, 255, 0.06);
}
/* Linked cards: inherit text color, no underline, show affordance */
a.service-card { text-decoration: none; color: inherit; }
.service-card__more {
    margin-top: auto;
    padding-top: 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--burgundy-light);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.service-card__arrow {
    transition: transform 0.3s var(--ease-out-quart);
}
.service-card--link:hover .service-card__arrow {
    transform: translateX(4px);
}
.service-card__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--burgundy-light);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
.service-card__title {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.service-card__list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.service-card__list li {
    padding-left: 1.4rem;
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
}
.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 2px;
    background: var(--burgundy-light);
}
.services__cta-row {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ── 11. Before/After slider ────────────────────────────────────────────── */
.before-after { background: var(--white); }
.before-after__header { text-align: center; margin-bottom: 3rem; }
.before-after__heading { max-width: 22ch; margin-inline: auto; }
.before-after__subheading {
    max-width: 52ch;
    margin-inline: auto;
    color: var(--muted);
    font-size: 1.05rem;
}
.before-after__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}
.ba-slider { user-select: none; }
.ba-slider__frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink);
    box-shadow: var(--shadow-md);
    touch-action: none;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}
.ba-slider.is-dragging .ba-slider__frame { cursor: grabbing; }
.ba-slider__after,
.ba-slider__before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba-slider__before-wrap {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos, 50) * 1%) 0 0);
    -webkit-clip-path: inset(0 calc(100% - var(--pos, 50) * 1%) 0 0);
    will-change: clip-path;
}
.ba-slider__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--pos, 50) * 1%);
    width: 3px;
    background: var(--burgundy);
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 18px rgba(162, 48, 64, 0.4);
}
.ba-slider__handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--burgundy);
    color: var(--white);
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(162, 48, 64, 0.5), inset 0 0 0 2px rgba(255,255,255,0.18);
    pointer-events: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-slider__frame:hover .ba-slider__handle {
    transform: translate(-50%, -50%) scale(1.06);
}
.ba-slider.is-dragging .ba-slider__handle {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 14px 36px rgba(162, 48, 64, 0.6), inset 0 0 0 2px rgba(255,255,255,0.3);
}
.ba-slider__handle-icon {
    width: auto;
    height: 28px;
    pointer-events: none;
    user-select: none;
}

.ba-slider__input {
    /* Visually hidden but still focusable for keyboard accessibility.
       pointer-events: none so the input does NOT swallow drag gestures
       — drag is handled by the frame's pointer events in main.js. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.ba-slider__input:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 4px;
    opacity: 0.001; /* nudge into the accessibility tree, still invisible */
}
.ba-slider__label {
    position: absolute;
    bottom: 1rem;
    background: rgba(24, 34, 66, 0.78);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.ba-slider__label--before { left: 1rem; }
.ba-slider__label--after  { right: 1rem; }
.ba-slider__caption {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
}

/* ── 11b. How It Works ──────────────────────────────────────────────────── */
.hiw {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(5rem, 11vw, 9rem);
    color: var(--white);
}
.hiw__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.hiw__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    filter: contrast(108%) saturate(110%) brightness(95%);
}
/* Duotone navy → burgundy treatment — lighter so the photo reads through */
.hiw__bg-duotone {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 22% 35%, rgba(162, 48, 64, 0.40) 0%, rgba(24, 34, 66, 0) 55%),
        radial-gradient(ellipse at 78% 75%, rgba(24, 34, 66, 0.55) 0%, rgba(24, 34, 66, 0.25) 55%, rgba(24, 34, 66, 0.70) 100%),
        linear-gradient(135deg, rgba(24, 34, 66, 0.55), rgba(24, 34, 66, 0.62));
    mix-blend-mode: normal;
}
/* film grain layer */
.hiw__bg-duotone::after {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.6;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hiw__inner { position: relative; z-index: 1; }

.hiw__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.hiw__eyebrow {
    font-family: 'Caveat', 'Pacifico', cursive;
    font-size: clamp(1.4rem, 2vw, 1.65rem);
    color: var(--burgundy-light);
    margin: 0 0 0.4rem;
    letter-spacing: 0.01em;
    font-weight: 500;
}
.hiw__heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
}
.hiw__heading-pre {
    color: var(--white);
    display: block;
}
.hiw__heading-accent {
    color: var(--burgundy-light);
    display: block;
}
.hiw__subhead {
    margin: 1.25rem auto 0;
    color: rgba(255,255,255,0.78);
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    max-width: 560px;
    line-height: 1.55;
}

/* Steps timeline */
.hiw__steps {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
}
.hiw__rail {
    position: absolute;
    top: 38px;            /* aligns with vertical center of the numbers */
    left: 6%;
    right: 6%;
    height: 1px;
    background: rgba(255,255,255,0.16);
    overflow: hidden;
}
.hiw__rail-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, var(--burgundy-light) 18%, var(--burgundy) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.8s var(--ease-out-quart);
}
.hiw.is-revealed .hiw__rail-fill {
    transform: scaleX(1);
}
/* When JS scrub takes over, let inline gsap transforms drive the fill */
.hiw--scrub .hiw__rail-fill {
    transition: none;
}
/* Active state passed by scrub */
.hiw__step.is-passed .hiw__step-num {
    border-color: var(--burgundy-light);
    box-shadow: 0 6px 26px rgba(162, 48, 64, 0.35), 0 0 0 4px rgba(162, 48, 64, 0.12);
}
.hiw__step.is-passed .hiw__step-num::after {
    opacity: 1;
    transform: scale(1);
}

.hiw__step {
    position: relative;
    padding-top: 0;
    text-align: left;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
    transition-delay: calc(0.25s + var(--delay, 0s));
}
.hiw.is-revealed .hiw__step {
    opacity: 1;
    transform: translateY(0);
}

.hiw__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.22);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.hiw__step-num::after {
    /* small accent dot at top-right when this step is active in the timeline */
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--burgundy);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.4s var(--ease-out-quart);
}
.hiw.is-revealed .hiw__step-num::after {
    opacity: 1;
    transform: scale(1);
    transition-delay: calc(1.2s + var(--delay, 0s));
}
.hiw__step-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1rem;
    margin: 0 0 0.6rem;
    color: var(--white);
}
.hiw__step-body {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 0.97rem;
    line-height: 1.55;
    text-wrap: pretty;
    text-wrap: balance;
    hyphens: none;
}
/* Soften the heading text-shadow to keep it readable over the lighter overlay */
.hiw__heading,
.hiw__step-title {
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

/* Location chips row */
.hiw__locations {
    margin: clamp(3rem, 6vw, 4.5rem) auto 0;
    text-align: center;
    color: rgba(255,255,255,0.92);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 1rem;
}
.hiw__locations-chip {
    display: inline-block;
}
.hiw__locations-sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--burgundy-light);
    flex: 0 0 auto;
    font-size: 0;
    color: transparent;
    line-height: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .hiw__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }
    .hiw__rail { display: none; }
}
@media (max-width: 520px) {
    .hiw__steps { grid-template-columns: 1fr; gap: 2rem; }
    .hiw__step-num { width: 64px; height: 64px; font-size: 1.15rem; margin-bottom: 1.1rem; }
    .hiw__locations-sep { display: none; }
}

/* ── 12. Site footer ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-block: clamp(3.5rem, 7vw, 5rem);
    align-items: flex-start;
}
.site-footer__brand { text-align: center; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img {
    width: auto;
    height: 110px;
    margin-bottom: 1rem;
}
.site-footer__tag {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}
.site-footer__heading {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.2rem;
}
.site-footer__phone {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    transition: color 0.2s ease;
}
.site-footer__phone:hover { color: var(--burgundy-light); }
.site-footer__social { display: flex; gap: 0.5rem; }
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: background-color 0.25s ease, transform 0.3s var(--ease-out-quart);
}
.site-footer__social a:hover {
    background: var(--burgundy);
    transform: translateY(-2px);
}
.site-footer__menu, .site-footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.site-footer__menu li > a, .site-footer__nav ul li > a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease;
}
.site-footer__menu li > a:hover, .site-footer__nav ul li > a:hover {
    color: var(--white);
}
.site-footer__cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}
.site-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
.site-footer__legal-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 1.5rem;
}
.site-footer__legal a { color: rgba(255, 255, 255, 0.7); border-bottom: 1px dotted rgba(255,255,255,0.3); }
.site-footer__legal a:hover { color: var(--white); }

/* ── 13. Motion reveal base states ──────────────────────────────────────── */
[data-reveal-child] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
    transition-delay: var(--delay, 0s);
}
[data-reveal].is-revealed [data-reveal-child] {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero__image { transform: none; }
}

/* ── 14. Responsive breakpoints ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .main-nav__toggle { display: inline-flex; }
    .main-nav__menu-wrap {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--ease-out-quart), box-shadow 0.4s ease;
    }
    .main-nav__menu-wrap.is-open {
        max-height: 480px;
        box-shadow: var(--shadow-md);
    }
    .main-nav__menu {
        flex-direction: column;
        padding: 1rem var(--container-pad) 1.5rem;
        gap: 0.4rem;
        align-items: stretch;
    }
    .main-nav__menu > li > a,
    .main-nav__menu .fd-menu__item > a {
        text-align: center;
        padding: 0.9rem 1rem;
    }
    .main-nav__menu .fd-menu__item--cta > a,
    .main-nav__menu > li:nth-last-child(-n+2) > a {
        margin-left: 0;
    }

    .utility-bar__location { display: none; }
    .utility-bar__inner { justify-content: center; }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    .site-footer__legal-inner { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
    .review-card { width: 290px; padding: 1.5rem; }
    .hero__cta-row .btn { width: 100%; max-width: 320px; }
    .before-after__grid { grid-template-columns: 1fr; }
}
