/* ==========================================================================
   Coradi Contracting — brand system
   Tokens, surfaces, typography, buttons, layout helpers.
   Source of truth: CLAUDE.md + SURFACES.md (Figma "Style Guide" page for
   the primitives, breakpoints, spacing and type scale).

   Rules of the road
   - Nothing below the primitives block references a raw hex value.
   - A section chooses a surface class; every nested element inherits its
     colours through the semantic custom properties. No per-element colour
     overrides inside a section.
   - 1rem is NOT 16px. The root font size steps 15 / 18 / 18 / 20 / 23px.
   ========================================================================== */

/* Metric-matched fallbacks (size-adjust / ascent / descent from the fonts'
   own metrics) so text set in the fallback occupies the same lines as the
   web font. Removes the layout shift on font swap. */
@font-face {
    font-family: "Roboto Fallback";
    src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
    size-adjust: 100.11%;
    ascent-override: 92.77%;
    descent-override: 24.41%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Libre Baskerville Fallback";
    src: local("Georgia"), local("Times New Roman");
    size-adjust: 116.5%;
    ascent-override: 81.5%;
    descent-override: 23.5%;
    line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   1. Primitives
   -------------------------------------------------------------------------- */
:root {
    /* Astronaut Blue */
    --color-astronaut-blue-50: #EFF9FF;
    --color-astronaut-blue-100: #DDF2FF;
    --color-astronaut-blue-200: #B3E6FF;
    --color-astronaut-blue-300: #70D3FF;
    --color-astronaut-blue-400: #25BFFF;
    --color-astronaut-blue-500: #00B3FF;
    --color-astronaut-blue-600: #0093DA;
    --color-astronaut-blue-700: #0075B1;
    --color-astronaut-blue-800: #006091;
    --color-astronaut-blue-900: #024468;
    --color-astronaut-blue-950: #02314F;
    --color-astronaut-blue-1000: #012F48;
    --color-astronaut-blue-1050: #062637;

    /* Salomie */
    --color-salomie-50: #FDF9ED;
    --color-salomie-100: #F9EDCC;
    --color-salomie-200: #F1D37E;
    --color-salomie-300: #EDC25C;
    --color-salomie-400: #E9AC36;
    --color-salomie-500: #E18D1F;
    --color-salomie-600: #C76B18;
    --color-salomie-700: #A64C17;
    --color-salomie-800: #873C19;
    --color-salomie-900: #6F3218;
    --color-salomie-950: #3F1909;

    /* Limestone */
    --color-limestone-50: #FAF8F4;
    --color-limestone-100: #F5F1EA;
    --color-limestone-200: #EAE4D9;
    --color-limestone-300: #DCD3C4;
    --color-limestone-400: #BDB3A1;
    --color-limestone-500: #9A9081;
    --color-limestone-600: #7A7266;
    --color-limestone-700: #5E574E;
    --color-limestone-800: #423D37;
    --color-limestone-900: #2F2B27;
    --color-limestone-950: #1A1815;

    /* Neutral */
    --color-neutral-50: #FAFAFA;
    --color-neutral-100: #F5F5F5;
    --color-neutral-200: #E5E5E5;
    --color-neutral-300: #D4D4D4;
    --color-neutral-400: #A1A1A1;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
    --color-neutral-950: #0A0A0A;

    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-neutral-graphite: #606060;       /* Figma header strip, footer bar */
    --color-neutral-graphite-light: #6B6B6B; /* Figma mobile header bar */

    /* Hero scrim (Figma "Hero Section" gradient), as an rgb triplet */
    --scrim-rgb: 47, 47, 44;

    /* Google rating stars (third-party convention, Figma reviews lockup) */
    --color-rating-star: #FFC000;

    /* Third-party brand marks (social icons) */
    --color-brand-facebook: #0866FF;
    --color-brand-yelp: #FF1A1A;
    --gradient-brand-instagram: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);

    /* Translucent helpers for dark surfaces */
    --alpha-white-88: rgba(255, 255, 255, 0.88);
    --alpha-white-15: rgba(255, 255, 255, 0.15);
    --alpha-white-12: rgba(255, 255, 255, 0.12);
    --alpha-white-07: rgba(255, 255, 255, 0.07);
    --alpha-white-06: rgba(255, 255, 255, 0.06);

    /* Families. The "Fallback" faces are metric-matched local fonts so the
       swap to the web font does not move the layout (CLS). */
    --font-sans: "Roboto", "Roboto Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-serif: "Libre Baskerville", "Libre Baskerville Fallback", Georgia, "Times New Roman", serif;
    --font-kicker: "Science Gothic", "Roboto", "Roboto Fallback", Arial, sans-serif;

    /* Weights. Nothing on the site goes below 400. */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Leading and tracking */
    --leading-tight: 1.2;
    --leading-snug: 1.3;
    --leading-body: 1.6;
    /* Title leading by size: the larger the type, the tighter the lines, so
       a title that wraps to two lines still reads as one block. */
    --leading-display: 1.04;   /* hero lockup, 37-90px */
    --leading-title: 1.12;     /* section titles and subheadings, 24-50px */
    --leading-card-title: 1.18;/* card and step titles, 16-30px */
    --leading-deck: 1.25;      /* serif italic decks */
    --tracking-tight: -0.02em;
    --tracking-kicker: 0.15em;
    --tracking-button: 0.05em;

    /* Spacing scale (rem, so it follows the root size per breakpoint) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Radii. The brand is square. */
    --radius-control: 0;
    --radius-card: 0;
    --radius-media: 0;

    /* Motion */
    --duration-color: 250ms;
    --duration-fill: 0.5s;
    --ease-fill: ease-in-out;
    --ease-standard: ease;

    /* Elevation (used sparingly, cards on light only) */
    --shadow-card: 0 1px 2px rgba(6, 38, 55, 0.06), 0 8px 24px rgba(6, 38, 55, 0.06);

    /* Play button: one size for every video (follows the screen, not the frame) */
    --size-play: clamp(88px, calc(70px + 2.5vw), 120px);

    /* Space between buttons in a group (Jacob: pairs read too close) */
    --btn-gap-x: clamp(16px, calc(10px + 1vw), 24px);
    --btn-gap-y: 12px;

    /* Focus ring thickness */
    --focus-width: 3px;
    --focus-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Rem system and responsive scales
   sm <768 | md 768–1023 | lg 1024–1279 | xl 1280–1919 | 2xl ≥1920
   -------------------------------------------------------------------------- */
/* Spacing still steps with the root size per breakpoint. Type does not: every
   text token is a fluid clamp() that runs linearly from the Figma mobile frame
   (390px) to the Figma desktop frame (1728px), then keeps growing to 115% of
   the desktop size for 1920px+ screens (matching the 20px -> 23px root step).
   The bounds are px on purpose: a rem bound would jump each time the root
   steps (15/18/18/20/23), which is exactly the unevenness this removes. */
:root {
    font-size: 15px;

    --section-pad-x: 1rem;
    --section-pad-y: 3rem;
    --container-max: 100%;
    --card-pad: 1rem;
    --grid-gap: 1rem;

    --text-display: clamp(37.5px, calc(28.03px + 2.429vw), 80.5px);
    --text-display-xl: clamp(37.5px, calc(22.2px + 3.924vw), 103.5px);
    --text-hero-deck: clamp(22.5px, calc(17.4px + 1.308vw), 46px);
    --text-section-title: clamp(30px, calc(24.17px + 1.495vw), 57.5px);
    --text-section-subtitle: clamp(20px, calc(17.09px + 0.747vw), 34.5px);
    --text-section-subheading: clamp(24px, calc(19.34px + 1.196vw), 46px);
    --text-blurb: clamp(15px, calc(13.54px + 0.374vw), 23px);
    --text-cta: clamp(13.125px, calc(11.85px + 0.327vw), 20.1px);
    --text-kicker: clamp(13px, calc(11.69px + 0.336vw), 20.1px);
    --text-card-kicker: clamp(12px, calc(10.16px + 0.28vw), 17.2px);
    --text-card-title: clamp(18.75px, calc(15.47px + 0.841vw), 34.5px);
    --text-card-subtitle: clamp(16px, calc(13.38px + 0.673vw), 28.7px);
    --text-card-blurb: clamp(15px, calc(11.85px + 0.327vw), 20.1px); /* 15px floor: readable card copy on phones */
    --text-card-cta: clamp(13.125px, calc(11.85px + 0.327vw), 20.1px);
    --text-stat: clamp(30px, calc(27.09px + 0.747vw), 46px);
    --text-stat-label: clamp(12px, calc(10.16px + 0.28vw), 17.2px);
    --text-score: clamp(110px, calc(107.09px + 0.747vw), 138px);
    --text-body: clamp(15px, calc(13.54px + 0.374vw), 23px);
    --text-body-sm: clamp(14px, calc(11.85px + 0.327vw), 20.1px);
    --text-button: clamp(13.125px, calc(11.85px + 0.327vw), 20.1px);
    --text-nav: clamp(15px, calc(14.27px + 0.187vw), 20.1px);
    --text-h1: clamp(32px, calc(26.75px + 1.345vw), 57.5px);
    --text-h2: clamp(26px, calc(21.92px + 1.046vw), 46px);
    --text-h3: clamp(22px, calc(19.67px + 0.598vw), 34.5px);
    --text-h4: clamp(19px, calc(17.25px + 0.448vw), 28.7px);
    --text-h5: clamp(17px, calc(16.13px + 0.224vw), 23px);
    --text-h6: clamp(15px, calc(14.27px + 0.187vw), 20.1px);
}

@media (min-width: 768px) {
    :root {
        font-size: 18px;
        --section-pad-x: 3rem;
        --section-pad-y: 5rem;
        --card-pad: 1rem;
        --grid-gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        font-size: 18px;
        --section-pad-x: 4rem;
        --section-pad-y: 5rem;
    }
}

@media (min-width: 1280px) {
    :root {
        font-size: 20px;
        --section-pad-x: 6rem;
        --section-pad-y: 5rem;
        --container-max: 1500px;
        --card-pad: 1.5rem;
    }
}

@media (min-width: 1920px) {
    :root {
        font-size: 23px;
        --section-pad-x: 5rem;
        --section-pad-y: 4rem;
        --container-max: 1700px;
    }
}

@media (min-width: 2560px) {
    :root {
        --container-max: 1920px;
    }
}

/* --------------------------------------------------------------------------
   3. Semantic tokens: the surface bundles
   :root carries the surface-white bundle so anything outside an explicit
   surface still resolves. Each surface class redefines the whole bundle.
   -------------------------------------------------------------------------- */
:root,
.surface-white {
    --surface-kind: light;
    --color-surface: var(--color-white);
    --color-surface-card: var(--color-limestone-50);
    --color-surface-card-border: var(--color-limestone-200);
    --color-heading: var(--color-astronaut-blue-900);
    --color-body: var(--color-neutral-600);
    --color-body-strong: var(--color-neutral-900);
    --color-muted: var(--color-neutral-500);
    --color-eyebrow: var(--color-astronaut-blue-800);
    --color-deck: var(--color-astronaut-blue-900);
    --color-stat: var(--color-astronaut-blue-900);
    --color-stat-label: var(--color-neutral-600);
    --color-icon: var(--color-astronaut-blue-800);
    --color-link: var(--color-astronaut-blue-800);
    --color-link-hover: var(--color-astronaut-blue-900);
    --color-divider: var(--color-limestone-200);
    --color-border: var(--color-limestone-300);
    --color-focus: var(--color-astronaut-blue-800);
    --color-selection: var(--color-salomie-100);

    /* Buttons on a light surface */
    --btn-blue-bg: var(--color-astronaut-blue-900);
    --btn-blue-text: var(--color-astronaut-blue-50);
    --btn-blue-hover-bg: var(--color-salomie-300);
    --btn-blue-hover-text: var(--color-salomie-950);

    --btn-blue-outline-color: var(--color-astronaut-blue-900);
    --btn-blue-outline-hover-bg: var(--color-salomie-300);
    --btn-blue-outline-hover-text: var(--color-salomie-950);

    --btn-yellow-bg: var(--color-salomie-200);
    --btn-yellow-text: var(--color-astronaut-blue-900);
    --btn-yellow-hover-bg: var(--color-astronaut-blue-700);
    --btn-yellow-hover-text: var(--color-astronaut-blue-50);

    --btn-yellow-outline-color: var(--color-salomie-950);
    --btn-yellow-outline-hover-bg: var(--color-astronaut-blue-700);
    --btn-yellow-outline-hover-text: var(--color-astronaut-blue-50);

    /* Text links inside copy */
    --link-underline: transparent;
    --link-underline-hover: currentColor;
}

.surface-cream-subtle {
    --color-surface: var(--color-limestone-50);
    --color-surface-card: var(--color-white);
    --color-surface-card-border: var(--color-limestone-200);
    /* Neutral 500 misses AA on cream (4.47:1); muted text steps to 600. */
    --color-muted: var(--color-neutral-600);
}

.surface-cream {
    --color-surface: var(--color-limestone-100);
    --color-surface-card: var(--color-white);
    --color-surface-card-border: var(--color-limestone-200);
    --color-muted: var(--color-neutral-600);
    --color-divider: var(--color-limestone-300);
    --color-border: var(--color-limestone-400);
}

.surface-blue,
.surface-navy,
.surface-image {
    --surface-kind: dark;
    --color-heading: var(--color-white);
    --color-body: var(--alpha-white-88);
    --color-body-strong: var(--color-white);
    --color-muted: rgba(255, 255, 255, 0.7);
    --color-eyebrow: var(--color-salomie-200);
    --color-deck: var(--color-white);
    --color-stat: var(--color-salomie-200);
    --color-stat-label: var(--alpha-white-88);
    --color-icon: var(--color-salomie-200);
    --color-link: var(--color-white);
    --color-link-hover: var(--color-salomie-200);
    --color-focus: var(--color-salomie-200);
    --color-selection: var(--color-astronaut-blue-700);
    --link-underline: currentColor;
    --link-underline-hover: var(--color-salomie-200);

    /* Buttons on a dark surface. "White Outline" is the blue-outline variant
       resolved in a dark context (Astronaut Blue 50 reads as white). */
    --btn-blue-bg: var(--color-astronaut-blue-700);
    --btn-blue-text: var(--color-astronaut-blue-50);
    --btn-blue-hover-bg: var(--color-salomie-50);
    --btn-blue-hover-text: var(--color-salomie-950);

    --btn-blue-outline-color: var(--color-astronaut-blue-50);
    --btn-blue-outline-hover-bg: var(--color-salomie-50);
    --btn-blue-outline-hover-text: var(--color-salomie-950);

    --btn-yellow-bg: var(--color-salomie-200);
    --btn-yellow-text: var(--color-astronaut-blue-900);
    --btn-yellow-hover-bg: var(--color-salomie-50);
    --btn-yellow-hover-text: var(--color-astronaut-blue-950);

    --btn-yellow-outline-color: var(--color-salomie-50);
    --btn-yellow-outline-hover-bg: var(--color-salomie-50);
    --btn-yellow-outline-hover-text: var(--color-astronaut-blue-950);
}

.surface-blue {
    --color-surface: var(--color-astronaut-blue-900);
    --color-surface-card: var(--alpha-white-07);
    --color-surface-card-border: var(--alpha-white-15);
    --color-divider: var(--alpha-white-15);
    --color-border: var(--alpha-white-15);
}

.surface-navy {
    --color-surface: var(--color-astronaut-blue-1050);
    --color-surface-card: var(--alpha-white-06);
    --color-surface-card-border: var(--alpha-white-12);
    --color-divider: var(--alpha-white-12);
    --color-border: var(--alpha-white-12);
}

.surface-image {
    --color-surface: var(--color-astronaut-blue-1050);
    --color-surface-card: var(--alpha-white-07);
    --color-surface-card-border: var(--alpha-white-15);
    --color-divider: var(--alpha-white-15);
    --color-border: var(--alpha-white-15);
    /* Scrim: mobile is stronger because the crop differs. Overridden at md. */
    --scrim: linear-gradient(180deg, rgba(6, 38, 55, 0.72) 0%, rgba(6, 38, 55, 0.84) 55%, rgba(6, 38, 55, 0.94) 100%);
}

@media (min-width: 768px) {
    .surface-image {
        --scrim: linear-gradient(90deg, rgba(6, 38, 55, 0.86) 0%, rgba(6, 38, 55, 0.62) 45%, rgba(6, 38, 55, 0.25) 100%);
    }
}

/* Applying a surface */
[class*="surface-"] {
    background-color: var(--color-surface);
    color: var(--color-body);
}

.surface-image {
    position: relative;
    isolation: isolate;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.surface-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--scrim);
    z-index: -1;
    pointer-events: none;
}

/* Mobile-specific crop: set --surface-image-mobile on the element (inline),
   the desktop image via --surface-image. */
.surface-image {
    background-image: var(--surface-image-mobile, var(--surface-image));
}

@media (min-width: 768px) {
    .surface-image {
        background-image: var(--surface-image);
    }
}

[class*="surface-"] ::selection {
    background: var(--color-selection);
}

/* Everything inside a surface resolves from the bundle */
[class*="surface-"] h1,
[class*="surface-"] h2,
[class*="surface-"] h3,
[class*="surface-"] h4,
[class*="surface-"] h5,
[class*="surface-"] h6 {
    color: var(--color-heading);
}

/* Base text colour for copy inside a surface. :where() keeps this at
   element-level specificity (0,0,1) so any component class (kickers, stats,
   card text) sets its own colour without !important, while it still beats
   the legacy bare-element rules because brand.css loads after them. */
:where([class*="surface-"]) :is(p, li, td, th, label, figcaption) {
    color: var(--color-body);
}

[class*="surface-"] strong,
[class*="surface-"] b {
    color: var(--color-body-strong);
}

[class*="surface-"] a:not([class]) {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 0.15em;
    transition: color var(--duration-color) var(--ease-standard),
        text-decoration-color var(--duration-color) var(--ease-standard);
}

[class*="surface-"] a:not([class]):hover,
[class*="surface-"] a:not([class]):focus-visible {
    color: var(--color-link-hover);
    text-decoration-color: var(--link-underline-hover);
}

/* Inline links in running copy: brand blue (white on dark) over a yellow
   underline. The line is a background so it can move: on hover it sweeps
   out to the right and draws back in from the left while the text deepens.
   Menus, cards and buttons carry classes or sit outside copy, so they keep
   their own treatment. */
:root,
[class*="surface-"] {
    --link-line: var(--color-salomie-400);
    --link-line-w: 2px;
}

.surface-blue,
.surface-navy,
.surface-image {
    --link-line: var(--color-salomie-300);
}

[class*="surface-"] :is(p, dd, td, th, figcaption, blockquote, .prose li, .c-page-content li) a:not([class]),
.page-content :is(p, li) a:not([class]) {
    color: var(--color-link);
    text-decoration: none;
    background-image: linear-gradient(var(--link-line), var(--link-line));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% var(--link-line-w);
    padding-bottom: 0.1em;
    transition: color var(--duration-color) var(--ease-standard);
}

[class*="surface-"] :is(p, dd, td, th, figcaption, blockquote, .prose li, .c-page-content li) a:not([class]):is(:hover, :focus-visible),
.page-content :is(p, li) a:not([class]):is(:hover, :focus-visible) {
    color: var(--color-link-hover);
    animation: coradi-link-sweep 0.6s var(--ease-standard);
}

@keyframes coradi-link-sweep {
    0% { background-position: 100% 100%; background-size: 100% var(--link-line-w); }
    45% { background-position: 100% 100%; background-size: 0 var(--link-line-w); }
    55% { background-position: 0 100%; background-size: 0 var(--link-line-w); }
    100% { background-position: 0 100%; background-size: 100% var(--link-line-w); }
}

@media (prefers-reduced-motion: reduce) {
    [class*="surface-"] :is(p, dd, td, th, figcaption, blockquote, .prose li, .c-page-content li) a:not([class]):is(:hover, :focus-visible),
    .page-content :is(p, li) a:not([class]):is(:hover, :focus-visible) {
        animation: none;
        background-size: 100% 3px;
    }
}

[class*="surface-"] hr,
.divider {
    border: 0;
    border-top: 1px solid var(--color-divider);
    margin: var(--space-8) 0;
    opacity: 1;
}

[class*="surface-"] svg[fill="currentColor"],
.icon {
    color: var(--color-icon);
}

/* --------------------------------------------------------------------------
   4. Focus
   -------------------------------------------------------------------------- */
[class*="surface-"] :focus-visible,
.c-btn:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
.brand-type,
.brand-type body,
[class*="surface-"] {
    font-family: var(--font-sans);
    font-weight: var(--weight-regular);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section-level styles */
.section__kicker,
.card__kicker,
.trust-bar-stat__label,
.kicker {
    display: block;
    font-family: var(--font-kicker);
    font-weight: var(--weight-semibold);
    font-size: var(--text-kicker);
    line-height: 1.2;
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    color: var(--color-eyebrow);
    margin: 0 0 var(--space-3);
}

.card__kicker {
    font-size: var(--text-card-kicker);
    margin-bottom: var(--space-2);
}

.section__title {
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: var(--text-section-title);
    line-height: var(--leading-title);
    letter-spacing: var(--tracking-tight);
    color: var(--color-heading);
    margin: 0 0 var(--space-3);
}

.section__subtitle,
.card__subtitle,
.deck {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: var(--weight-regular);
    font-size: var(--text-section-subtitle);
    line-height: var(--leading-deck);
    letter-spacing: var(--tracking-tight);
    color: var(--color-deck);
    font-variant-numeric: lining-nums;
    margin: 0 0 var(--space-4);
}

.card__subtitle {
    font-size: var(--text-card-subtitle);
    margin-bottom: var(--space-2);
}

.section__subheading {
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: var(--text-section-subheading);
    line-height: var(--leading-title);
    letter-spacing: var(--tracking-tight);
    color: var(--color-heading);
    margin: 0 0 var(--space-3);
}

.section__blurb {
    font-size: var(--text-blurb);
    line-height: var(--leading-body);
    color: var(--color-body);
    margin: 0 0 var(--space-6);
    max-width: 65ch;
}

.section__cta,
.card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-family: var(--font-sans);
    font-weight: var(--weight-medium);
    font-size: var(--text-cta);
    line-height: var(--leading-tight);
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--duration-color) var(--ease-standard), gap var(--duration-color) var(--ease-standard);
}

.card__cta {
    font-size: var(--text-card-cta);
    /* Card links read in title case whatever the field holds ("Read article",
       "View Full Project", "Read full case study" side by side) */
    text-transform: capitalize;
}

/* Text CTAs keep a 24px minimum target (WCAG 2.5.8), 44px on touch
   screens (phones and tablets) */
a.section__cta,
a.card__cta {
    min-height: 24px;
}

@media (max-width: 1199.98px) {
    a.section__cta,
    a.card__cta,
    a.c-reviews__all {
        min-height: 44px;
    }

    a.c-reviews__all {
        display: inline-flex;
        align-items: center;
    }
}

.section__cta:hover,
.section__cta:focus-visible,
.card__cta:hover,
.card__cta:focus-visible {
    color: var(--color-link-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.section__cta::after,
.card__cta::after {
    content: "";
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--duration-color) var(--ease-standard);
}

.section__cta:hover::after,
.card__cta:hover::after {
    transform: translateX(0.2em);
}

/* Small list links (case study meta, archive sidebars): a 44px tap area
   on touch screens without moving anything (padding offset by margin) */
@media (max-width: 1199.98px) {
    .c-cs-meta a,
    :is(.widget_archive, .widget_categories, .widget_recent_entries, .widget_recent_comments, .widget_meta, .widget_nav_menu) li a {
        display: inline-block;
        padding-block: 12px;
        margin-block: -12px;
    }

    #footer .footer-menu li a,
    #footer .footer-contact a {
        display: inline-block;
        padding-block: 13px;
    }
}

/* Titles break into balanced lines; copy avoids single-word last lines */
.display,
.section__title,
.section__subheading,
.section__subtitle,
.card__title,
.card__subtitle,
.c-project__title,
.c-steps-row__title,
.c-feature__title {
    text-wrap: balance;
}

/* Copy: avoid one-word last lines (widows). Firefox lacks "pretty"; a
   fallback in js/brand.js keeps the last two words together there. */
:where([class*="surface-"]) :is(p, li, figcaption, blockquote, dd),
.page-content :is(p, li),
.section__blurb,
.card__blurb,
.prose p {
    text-wrap: pretty;
}

.section__kicker,
.card__kicker,
.trust-bar-stat__label {
    text-wrap: balance;
}

/* Card-level styles */
.card__title {
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: var(--text-card-title);
    line-height: var(--leading-card-title);
    letter-spacing: var(--tracking-tight);
    color: var(--color-heading);
    margin: 0 0 var(--space-2);
}

.card__blurb {
    font-size: var(--text-card-blurb);
    line-height: var(--leading-body);
    color: var(--color-body);
    margin: 0 0 var(--space-4);
}

/* Trust bar stats */
.trust-bar-stat__value {
    display: block;
    font-family: var(--font-serif);
    font-weight: var(--weight-regular);
    font-size: var(--text-stat);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-stat);
    font-variant-numeric: lining-nums;
    margin: 0 0 var(--space-2);
}

.trust-bar-stat__label {
    color: var(--color-stat-label);
    margin: 0;
}

/* Display (hero) heading */
.display {
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: var(--text-display);
    line-height: var(--leading-display);
    letter-spacing: var(--tracking-tight);
    color: var(--color-heading);
    margin: 0 0 var(--space-3);
}

/* The display's own lines only (child spans): the widow fix in js/brand.js
   wraps last word pairs in a span.u-nowrap that must stay inline. */
.display > span {
    display: block;
}

.display--xl {
    font-size: var(--text-display-xl);
}

/* Display with a serif deck line ("Bathroom & Kitchen / Remodeling in
   Virginia Beach"): the second span is the supporting serif. Still one h1. */
.display > span + span {
    margin-top: 0.2em;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: var(--weight-regular);
    /* "Remodeling in Virginia Beach" is about 14.4 ems wide: below ~360px the
       deck steps down so it still holds one line inside the 15px gutters */
    font-size: min(var(--text-hero-deck), calc((100vw - 32px) / 14.6));
    line-height: var(--leading-deck);
    font-variant-numeric: lining-nums;
}

/* Plain headings (no component class): fluid brand sizes. The legacy
   stylesheet sizes h1-h6 in rem for a 10px root (html { font-size: 62.5% }),
   which the brand system's 16-23px root doubles (a plain h2 rendered 68px,
   34px on the old site). Component classes still set their own sizes. */
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-h5); }
h6 { font-size: var(--text-h6); }

/* Prose: blogs and standard copy */
.prose {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-body);
}

.prose > * + * {
    margin-top: var(--space-4);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-heading);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.prose > :first-child {
    margin-top: 0;
}

.prose h1 { font-size: var(--text-h1); }
.prose h2 { font-size: var(--text-h2); }
.prose h3 { font-size: var(--text-h3); }
.prose h4 { font-size: var(--text-h4); }
.prose h5 { font-size: var(--text-h5); }
.prose h6 { font-size: var(--text-h6); }

/* Heading order (staging fix S7): a heading moved up a level to keep the
   outline in order (H2 > H3, not H2 > H4) keeps the size it had. In the
   editor, change the level and add the class "h3", "h4" or "h5". */
.prose :is(h2, h3, h4).h3 { font-size: var(--text-h3); }
.prose :is(h2, h3, h4).h4 { font-size: var(--text-h4); }
.prose :is(h2, h3, h4).h5 { font-size: var(--text-h5); }

/* An h6 straight before a heading in editor copy is a kicker (About:
   "Established 2009 in Virginia Beach"): kicker type, tight to its title. */
.prose h6:has(+ :is(h1, h2, h3, h4)) {
    font-family: var(--font-kicker);
    font-weight: var(--weight-semibold);
    font-size: var(--text-kicker);
    line-height: 1.2;
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase !important; /* legacy CSS forces none on all headings */
    color: var(--color-eyebrow);
    margin-bottom: var(--space-3);
}

.prose h6 + :is(h1, h2, h3, h4),
.prose .section__kicker + :is(h1, h2, h3, h4) {
    margin-top: 0;
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.prose li + li {
    margin-top: var(--space-2);
}

.prose blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--text-section-subtitle);
    line-height: var(--leading-snug);
    color: var(--color-deck);
    border-left: 3px solid var(--color-divider);
    padding-left: var(--space-6);
    margin-left: 0;
    font-variant-numeric: lining-nums;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-media);
}

/* Utilities */
.u-serif { font-family: var(--font-serif); font-variant-numeric: lining-nums; }
.u-lining { font-variant-numeric: lining-nums; }
.u-text-body { color: var(--color-body); }
.u-text-heading { color: var(--color-heading); }
.u-text-eyebrow { color: var(--color-eyebrow); }
.u-text-muted { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   6. Buttons: one component, four variants, context-aware through the
   surface tokens. The centre-fill hover animation from the legacy theme is
   reproduced exactly: a ::before pseudo-element grows from 0 to 200% x 550%
   with opacity 0 to 1 over 0.5s ease-in-out while colour transitions at 250ms.
   -------------------------------------------------------------------------- */
.c-btn {
    /* Per-instance slots, filled by the variant classes below */
    --_bg: var(--btn-blue-bg);
    --_text: var(--btn-blue-text);
    --_hover-bg: var(--btn-blue-hover-bg);
    --_hover-text: var(--btn-blue-hover-text);
    --_border: transparent;

    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: calc(0.857em + 2px) calc(1.143em + 2px);
    border: 0;
    border-radius: var(--radius-control);
    background-color: var(--_bg);
    color: var(--_text);
    font-family: var(--font-sans);
    font-size: var(--text-button);
    font-weight: var(--weight-semibold);
    line-height: 1;
    letter-spacing: var(--tracking-button);
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    transition: color var(--duration-color) var(--ease-fill),
        background-color var(--duration-color) var(--ease-fill),
        border-color var(--duration-color) var(--ease-fill),
        box-shadow var(--duration-color) var(--ease-fill);
}

.c-btn::before {
    content: "";
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    background: var(--_hover-bg);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: all var(--duration-fill) var(--ease-fill);
}

.c-btn:hover,
.c-btn:focus-visible {
    color: var(--_hover-text);
    text-decoration: none;
}

.c-btn:hover::before,
.c-btn:focus-visible::before {
    width: 200%;
    height: 550%;
    opacity: 1;
}

.c-btn:active {
    transform: translateY(1px);
}

.c-btn[disabled],
.c-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Variants */
.c-btn--blue {
    --_bg: var(--btn-blue-bg);
    --_text: var(--btn-blue-text);
    --_hover-bg: var(--btn-blue-hover-bg);
    --_hover-text: var(--btn-blue-hover-text);
}

.c-btn--yellow {
    --_bg: var(--btn-yellow-bg);
    --_text: var(--btn-yellow-text);
    --_hover-bg: var(--btn-yellow-hover-bg);
    --_hover-text: var(--btn-yellow-hover-text);
}

.c-btn--blue-outline,
.c-btn--yellow-outline {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var(--_border);
}

.c-btn--blue-outline {
    --_border: var(--btn-blue-outline-color);
    --_text: var(--btn-blue-outline-color);
    --_hover-bg: var(--btn-blue-outline-hover-bg);
    --_hover-text: var(--btn-blue-outline-hover-text);
}

.c-btn--yellow-outline {
    --_border: var(--btn-yellow-outline-color);
    --_text: var(--btn-yellow-outline-color);
    --_hover-bg: var(--btn-yellow-outline-hover-bg);
    --_hover-text: var(--btn-yellow-outline-hover-text);
}

.c-btn--blue-outline:hover,
.c-btn--blue-outline:focus-visible,
.c-btn--yellow-outline:hover,
.c-btn--yellow-outline:focus-visible {
    box-shadow: inset 0 0 0 2px var(--_hover-bg);
}

/* Opt-in arrow: only for CTAs that take the user deeper into the site */
.c-btn--arrow::after {
    content: "";
    flex: none;
    width: 1.05em;
    height: 1.05em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--duration-color) var(--ease-standard);
}

.c-btn--arrow:hover::after,
.c-btn--arrow:focus-visible::after {
    transform: translateX(0.2em);
}

/* Optional leading icon (phone etc.) */
.c-btn__icon {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}

/* Sizes */
.c-btn--sm {
    font-size: calc(var(--text-button) * 0.875);
    padding: 0.65em 1.2em;
    min-height: 2.4em;
}

.c-btn--lg {
    font-size: calc(var(--text-button) * 1.125);
    padding: 0.9em 2em;
}

.c-btn--block {
    display: flex;
    width: 100%;
}

/* Button groups: one primary per section, gap between */
.c-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--btn-gap-y) var(--btn-gap-x);
    align-items: center;
}

/* Phones and small tablets: a section's main actions (hero buttons, the
   section's button group, CTA bands) are full width and stack, primary
   first. So do "View All Projects" (the archive filter and the related
   stories header on a case study) and "Apply now" on Join Our Team. Card
   links and tiles keep their natural width. */
@media (max-width: 767.98px) {
    .c-btn-group--stack-sm,
    .section .c-btn-group.section__actions,
    .c-cta-band__actions,
    .c-process-steps__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .c-btn-group--stack-sm .c-btn,
    .section .c-btn-group.section__actions .c-btn,
    .c-cta-band__actions .c-btn,
    .c-process-steps__cta .c-btn,
    .c-archive__filter .c-btn,
    .c-cs-related .c-header-split > .c-btn,
    .c-job__action .c-btn {
        width: 100%;
        justify-content: center;
    }

    /* GenerateBlocks buttons in page content (thank-you "Return to Home") */
    .c-page-content a.gb-button {
        width: 100%;
        max-width: none;
    }

    /* Older templates' main buttons (galleries, Chesapeake bathroom page) */
    .cta-btn .btn,
    .btn-area .btn,
    .bathroom-our-work .btn,
    .default-content > .btn {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-btn,
    .c-btn::before,
    .c-btn--arrow::after,
    .section__cta::after,
    .card__cta::after {
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   7. Layout helpers: section, wrapper, card, grid
   -------------------------------------------------------------------------- */
.section {
    padding: var(--section-pad-y) var(--section-pad-x);
}

.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--tight { padding-top: calc(var(--section-pad-y) * 0.6); padding-bottom: calc(var(--section-pad-y) * 0.6); }

.section__wrapper {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
}

.section__header {
    max-width: 48rem;
    margin-bottom: var(--space-10);
}

.section__header--center {
    margin-inline: auto;
    text-align: center;
}

.section__header--center .section__blurb {
    margin-inline: auto;
}

/* Alignment control: content on the left or right of a split layout */
.section--align-left .section__split { flex-direction: row; }
.section--align-right .section__split { flex-direction: row-reverse; }

.section__split {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-10) var(--space-12);
    align-items: center;
}

.section__split > * {
    flex: 1 1 20rem;
    min-width: 0;
}

.card {
    background-color: var(--color-surface-card);
    border: 1px solid var(--color-surface-card-border);
    border-radius: var(--radius-card);
    padding: var(--card-pad);
    color: var(--color-body);
}

.card--flush {
    padding: 0;
}

.card--flush .card__body {
    padding: var(--card-pad);
}

.card__media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-media);
}

.grid {
    display: grid;
    gap: var(--grid-gap);
    grid-template-columns: repeat(var(--grid-cols-sm, 1), minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid { grid-template-columns: repeat(var(--grid-cols-md, 2), minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr)); }
}

.grid--2 { --grid-cols: 2; }
.grid--3 { --grid-cols: 3; }
.grid--4 { --grid-cols: 4; --grid-cols-md: 2; }

/* Kept-together words (js/brand.js widow fix) */
.u-nowrap {
    display: inline;
    white-space: nowrap;
}

/* Spacing helpers (rem-based, token-driven) */
.u-mt-0 { margin-top: 0 !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-mt-2 { margin-top: var(--space-2) !important; }
.u-mt-4 { margin-top: var(--space-4) !important; }
.u-mt-6 { margin-top: var(--space-6) !important; }
.u-mt-8 { margin-top: var(--space-8) !important; }
.u-mt-12 { margin-top: var(--space-12) !important; }
.u-mb-2 { margin-bottom: var(--space-2) !important; }
.u-mb-4 { margin-bottom: var(--space-4) !important; }
.u-mb-6 { margin-bottom: var(--space-6) !important; }
.u-mb-8 { margin-bottom: var(--space-8) !important; }
.u-mb-12 { margin-bottom: var(--space-12) !important; }
.u-stack > * + * { margin-top: var(--space-4); }
.u-stack-lg > * + * { margin-top: var(--space-8); }
.u-text-center { text-align: center; }
.u-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   8. Shared components used by the flexible layouts
   -------------------------------------------------------------------------- */

/* Split section: content beside media. Alignment classes mirror it. */
.c-split .section__split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10) var(--space-12);
    align-items: center;
}

.c-split .section__split--single {
    max-width: 48rem;
}

@media (min-width: 992px) {
    .c-split .section__split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .c-split .section__split--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .c-split.section--align-left .section__content { order: 1; }
    .c-split.section--align-left .section__media { order: 2; }
    .c-split.section--align-right .section__content { order: 2; }
    .c-split.section--align-right .section__media { order: 1; }
}

.section__content > :last-child {
    margin-bottom: 0;
}

.section__body {
    margin-bottom: var(--space-6);
}

.section__body > :last-child {
    margin-bottom: 0;
}

.section__actions {
    margin-top: var(--space-6);
}

/* Lists inside section copy render as a checklist */
.section__body ul {
    list-style: none;
    padding-left: 0;
    margin: var(--space-4) 0;
}

.section__body ul li {
    position: relative;
    padding-left: 1.75em;
}

.section__body ul li + li {
    margin-top: var(--space-2);
}

.section__body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.1em;
    height: 1.1em;
    background-color: var(--color-icon);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* A six-item checklist (About "Someday is Today") runs as two even
   columns of three, read down the left column first, wherever the copy
   column is wide enough for both without wrapping (a container query on
   that copy block only). Narrower, it stays one column. */
.section__body:has(> ul > li:nth-child(6):last-child) {
    container-type: inline-size;
}

@container (min-width: 540px) {
    .section__body ul:has(> li:nth-child(6):last-child) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
        gap: var(--space-3) var(--space-8);
        font-size: max(15px, var(--text-body-sm));
    }

    .section__body ul:has(> li:nth-child(6):last-child) > li + li {
        margin-top: 0;
    }
}

/* Text + image sections (about_section) on phones: the photo sits after the
   first paragraph instead of after the buttons. The copy column and the
   prose are unwrapped (display: contents) so their children can be ordered
   around the photo; the DOM order is unchanged. */
@media (max-width: 767.98px) {
    .layout-about-section .section__split:not(.section__split--single) {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .layout-about-section .section__split:not(.section__split--single) > .section__content,
    .layout-about-section .section__split:not(.section__split--single) .section__body {
        display: contents;
    }

    .layout-about-section .section__split:not(.section__split--single) > * {
        flex: none;
    }

    .layout-about-section .section__split:not(.section__split--single) > .section__media {
        order: 2;
        margin: var(--space-6) 0;
    }

    .layout-about-section .section__split:not(.section__split--single) .section__body > :nth-child(n+2) {
        order: 3;
    }

    .layout-about-section .section__split:not(.section__split--single) .section__actions {
        order: 4;
    }
}

/* Media block: image or video poster with a play control */
.c-media {
    position: relative;
    display: block;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-media);
    background-color: var(--color-surface-card);
}

.c-media__img,
.c-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.c-media--video {
    cursor: pointer;
    text-decoration: none;
}

.c-media--video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 38, 55, 0) 40%, rgba(6, 38, 55, 0.45) 100%);
    transition: opacity var(--duration-color) var(--ease-standard);
}

/* Play button (coradi_play_button()): frosted ring with "PLAY VIDEO" on a
   circular path, slowly rotating, around a disc with the play triangle.
   One size everywhere: it follows the screen width only (88px on phones,
   ~113px at 1728, 120px max), never the size of the video frame, so every
   play button on a page matches.
   Hover/focus: the disc fills white and the button grows slightly.
*/
.c-play {
    --play-size: var(--size-play);
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--play-size);
    height: var(--play-size);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background: rgba(6, 38, 55, 0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    color: var(--color-white);
    pointer-events: none;
    transition: transform var(--duration-fill) var(--ease-fill), background-color var(--duration-color) var(--ease-standard);
}

.c-play__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: c-play-spin 18s linear infinite;
}

.c-play__text {
    fill: currentColor;
    font-family: var(--font-kicker);
    font-weight: var(--weight-semibold);
    font-size: 10.5px; /* SVG user units: scales with the ring */
    letter-spacing: 0; /* spacing comes from textLength (see coradi_play_button) */
    text-transform: uppercase;
}

.c-play__disc {
    position: relative;
    display: grid;
    place-items: center;
    width: 58%;
    height: 58%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    transition: background-color var(--duration-color) var(--ease-standard), color var(--duration-color) var(--ease-standard), transform var(--duration-fill) var(--ease-fill);
}

.c-play__icon {
    display: block;
    width: 54%;
    height: 54%;
    fill: currentColor;
}

.c-media--video:hover .c-play,
.c-media--video:focus-visible .c-play,
.c-video-bleed__play:hover .c-play,
.c-video-bleed__play:focus-visible .c-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(6, 38, 55, 0.45);
}

.c-media--video:hover .c-play__disc,
.c-media--video:focus-visible .c-play__disc,
.c-video-bleed__play:hover .c-play__disc,
.c-video-bleed__play:focus-visible .c-play__disc {
    background: var(--color-white);
    color: var(--color-astronaut-blue-900);
}

@keyframes c-play-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .c-play__ring {
        animation: none !important;
    }

    .c-play,
    .c-play__disc {
        transition-duration: 0.01ms;
    }
}

/* Icon (coradi_icon()): never boxed. Single-colour line icons are drawn
   through a mask in the surface's icon colour; multi-colour icons render as
   supplied. Size per context through --icon-size. */
.c-icon {
    flex: none;
    display: block;
    width: var(--icon-size, 3rem);
    height: var(--icon-size, 3rem);
}

.c-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.c-icon--mask {
    background-color: var(--color-icon);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

/* Pillars: a short row of equal ideas (the 3 C's). Centred, open (no
   cards), separated by hairlines on wider screens. */
.c-pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
    text-align: center;
}

.c-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.c-pillar__icon {
    --icon-size: 3.75rem;
    margin-bottom: var(--space-5);
}

.c-pillar__title {
    margin-bottom: var(--space-3);
}

.c-pillar__text {
    max-width: 22rem;
    margin: 0;
}

.c-pillar__text > :last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .c-pillars {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        grid-auto-flow: column;
        gap: 0;
    }

    .c-pillar {
        padding: 0 var(--space-6);
    }

    .c-pillar + .c-pillar {
        border-left: 1px solid var(--color-divider);
    }
}

/* Icon list: small icon beside a label (service lists) */
.c-icon-list {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-6);
}

.c-icon-list__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-body-strong);
    font-weight: var(--weight-medium);
    font-size: var(--text-body-sm);
}

.c-icon-list__icon {
    --icon-size: 1.75rem;
}

/* Slider (Slick) inside a media column */
.c-slider .slick-dots {
    position: static;
    margin-top: var(--space-4);
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.c-slider .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.c-slider .slick-dots li button {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border-radius: 50%;
    background: var(--color-divider);
    border: 0;
}

.c-slider .slick-dots li button::before {
    display: none;
}

.c-slider .slick-dots li.slick-active button {
    background: var(--color-eyebrow);
}

.c-slider .slick-prev,
.c-slider .slick-next {
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-surface);
    border-radius: 50%;
}

.c-slider .slick-prev::before,
.c-slider .slick-next::before {
    /* One chevron icon (the legacy theme hides Slick's font glyph) */
    content: "";
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    margin: auto;
    opacity: 1;
    background-color: var(--color-heading);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.c-slider .slick-prev::before {
    transform: scaleX(-1);
}

.c-slider .slick-prev:focus-visible,
.c-slider .slick-next:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.c-slider .slick-prev { left: var(--space-2); }
.c-slider .slick-next { right: var(--space-2); }

/* Legacy custom slider arrows (custom.js: .slide-arrow with yellow PNGs,
   unreadable on light surfaces): a round button with a chevron in the
   heading colour, the same as every other slider. */
.slide-arrow.slick-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.slide-arrow.slick-arrow img {
    display: none;
}

.slide-arrow.slick-arrow::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    background-color: var(--color-astronaut-blue-900);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.slide-arrow.prev-arrow { left: var(--space-3); }
.slide-arrow.next-arrow { right: var(--space-3); }
.slide-arrow.prev-arrow::before { transform: scaleX(-1); }

.slide-arrow.slick-arrow:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

/* ==========================================================================
   Hero system. Every page hero is one component (Figma "Hero Section"):
   - left-aligned lockup anchored to the bottom of the photo: optional
     kicker, display h1 (optional serif deck line inside it), one sans lead
     paragraph, buttons;
   - three heights (tall, default, short; see below); heroes without a
     photo (posts, a contact page with no image) size to their content;
   - the same top/bottom padding, lockup gaps and column width at every
     breakpoint, so desktop, tablet and phone all read alike;
   - the same blue photo treatment on every hero, whether the photo is an
     <img> (hero banner) or a CSS background (hand-coded templates).
   Split heroes (photo beside the copy) share the lockup and padding.
   ========================================================================== */
:root {
    --hero-min-h: clamp(400px, calc(220px + 22vw), 600px);
    --hero-pad-top: clamp(48px, calc(32px + 4vw), 96px);
    --hero-pad-bottom: clamp(48px, calc(32px + 4vw), 96px);
    --hero-content-w: 33.4rem; /* Figma */
    --hero-gap: var(--space-6);
    --text-hero-lead: clamp(16px, calc(14.2px + 0.45vw), 24px);
}

.c-hero {
    display: flex;
    align-items: flex-end;
    min-height: var(--hero-min-h);
    padding-top: var(--hero-pad-top);
    padding-bottom: var(--hero-pad-bottom);
}

/* Three heights, as on the live site: tall heroes fill the first screen
   (front page and the service pages; fluid from Figma's 390px frame, 638px,
   to the 1728px frame, 927px), the default is a medium banner (About, Join
   Our Team), and short banners sit on index and utility pages (Blog,
   Contact, Areas We Serve, Remodeling Stories). */
.c-hero--tall {
    --hero-min-h: max(560px, min(calc(553.8px + 21.6vw), calc(100svh - var(--header-h))));
}

.c-hero--short {
    --hero-min-h: clamp(280px, calc(160px + 16vw), 420px);
}

.c-hero--compact {
    --hero-min-h: 0px;
}

/* Slim: utility pages where the content should start above the fold
   (Blog, Contact). Under the header: about 250px at 1280, 300px at most. */
.c-hero--slim {
    --hero-min-h: clamp(200px, calc(120px + 10vw), 300px);
    --hero-pad-top: clamp(32px, calc(24px + 2vw), 56px);
    --hero-pad-bottom: clamp(32px, calc(24px + 2vw), 56px);
}

/* Photo treatment over every hero photo (<img> or CSS background). Blue
   where the copy is, the photo's own colours everywhere else:
   1. a brand-blue tint blended into the photo (::before, soft-light),
      masked to the copy side so the rest of the room keeps its colour;
      swap the look with the --hero-tint tokens;
   2. a navy shade behind the copy (::after) for 4.5:1 text contrast.
   Phones: the copy can start anywhere in the hero (one-line or three-line
   titles, one or two buttons), so the shade is drawn by the copy block
   itself and fades in just above it; the photo above stays clear. */
.c-hero.surface-image {
    --hero-tint: var(--color-astronaut-blue-700);
    --hero-tint-blend: soft-light;
    --hero-tint-opacity: 1;
    --hero-tint-mask: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 40%, #000 75%);
    --hero-shade-rgb: 6, 38, 55; /* Astronaut Blue 1050 */
    --hero-shade-fade: 5rem;
    --scrim: linear-gradient(180deg, rgba(var(--hero-shade-rgb), 0.12) 0%, rgba(var(--hero-shade-rgb), 0.22) 100%);
    background-color: var(--color-astronaut-blue-1050);
}

.c-hero.surface-image:not(.c-hero--compact)::before {
    background: var(--hero-tint);
    mix-blend-mode: var(--hero-tint-blend);
    opacity: var(--hero-tint-opacity);
    -webkit-mask-image: var(--hero-tint-mask);
    mask-image: var(--hero-tint-mask);
}

.c-hero.surface-image:not(.c-hero--compact)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--scrim);
}

@media (max-width: 767.98px) {
    .c-hero.surface-image:not(.c-hero--compact) .c-hero__content {
        position: relative;
    }

    .c-hero.surface-image:not(.c-hero--compact) .c-hero__content::before {
        content: "";
        position: absolute;
        z-index: -1;
        pointer-events: none;
        top: calc(-1 * var(--hero-shade-fade));
        right: calc(-1 * var(--section-pad-x));
        bottom: calc(-1 * var(--hero-pad-bottom));
        left: calc(-1 * var(--section-pad-x));
        background: linear-gradient(180deg, rgba(var(--hero-shade-rgb), 0) 0, rgba(var(--hero-shade-rgb), 0.82) var(--hero-shade-fade), rgba(var(--hero-shade-rgb), 0.92) calc(var(--hero-shade-fade) + 6rem), rgba(var(--hero-shade-rgb), 0.95) 100%);
    }
}

/* Phones and portrait tablets: the photo is a band of its own under the header, in landscape
   proportions so the whole room reads (a full-height hero cropped a wide
   photo to a sliver of ceiling), fading into navy where the copy starts.
   The copy sits on solid navy below, so the copy shade and the blue tint
   are off. Works for all three photo sources: the <img> (hero banner),
   the CSS background (hand-coded templates, moved into ::after) and the
   background video. */
@media (max-width: 991.98px) {
    .c-hero.surface-image:not(.c-hero--compact) {
        --hero-photo-src: var(--surface-image, none);
        --hero-photo-top: 0px;
        --hero-photo-h: clamp(200px, 62vw, 360px);
        min-height: 0;
        padding-top: calc(var(--hero-photo-top) + var(--hero-photo-h) - 2.5rem);
        background-image: none;
    }

    /* Slim heroes: a shorter photo band on phones and tablets */
    .c-hero--slim.surface-image:not(.c-hero--compact) {
        --hero-photo-h: clamp(130px, 34vw, 220px);
    }

    /* The first hero runs under the fixed header: the photo starts below it */
    .main-content > .c-hero.surface-image:not(.c-hero--compact):first-child,
    .main-content > header.section.c-hero.surface-image:not(.c-hero--compact):first-child {
        --hero-photo-top: var(--header-h);
        min-height: 0;
        padding-top: calc(var(--hero-photo-top) + var(--hero-photo-h) - 2.5rem);
    }

    .c-hero.surface-image:not(.c-hero--compact)::before,
    .c-hero.surface-image:not(.c-hero--compact) .c-hero__content::before {
        display: none;
    }

    /* Fade from the bottom-left corner (solid, where the title starts)
       to the top-right (the photo's own colours), with a short blend along
       the bottom edge so the band meets the copy without a line. */
    .c-hero.surface-image:not(.c-hero--compact) {
        --hero-band-fade:
            linear-gradient(180deg, rgba(var(--hero-shade-rgb), 0) 72%, rgba(var(--hero-shade-rgb), 0.85) 92%, rgb(var(--hero-shade-rgb)) 100%),
            linear-gradient(to top right, rgba(var(--hero-shade-rgb), 0.95) 0%, rgba(var(--hero-shade-rgb), 0.7) 22%, rgba(var(--hero-shade-rgb), 0.3) 45%, rgba(var(--hero-shade-rgb), 0) 70%);
    }

    .c-hero.surface-image:not(.c-hero--compact)::after {
        inset: var(--hero-photo-top) 0 auto 0;
        height: var(--hero-photo-h);
        background:
            var(--hero-band-fade),
            var(--hero-photo-src) center / cover no-repeat;
    }

    .c-hero--video.surface-image:not(.c-hero--compact)::after {
        background: var(--hero-band-fade);
    }

    .c-hero.surface-image:not(.c-hero--compact) .c-hero__bg,
    .c-hero.surface-image:not(.c-hero--compact) .c-hero__video {
        inset: var(--hero-photo-top) 0 auto 0;
        height: var(--hero-photo-h);
    }
}

/* Phones use the smaller mobile crop of a CSS-background photo */
@media (max-width: 767.98px) {
    .c-hero.surface-image:not(.c-hero--compact) {
        --hero-photo-src: var(--surface-image-mobile, var(--surface-image, none));
    }
}

/* Landscape tablets (992-1199px; narrower screens use the photo band
   above): the copy takes about 60% of the width, so the shade covers it and
   fades out across the rest, letting the photo show on the right. */
@media (min-width: 768px) {
    .c-hero.surface-image {
        --hero-tint-mask: linear-gradient(90deg, #000 30%, transparent 75%);
        --scrim:
            linear-gradient(90deg, rgba(var(--hero-shade-rgb), 0.9) 0%, rgba(var(--hero-shade-rgb), 0.85) 50%, rgba(var(--hero-shade-rgb), 0.5) 70%, rgba(var(--hero-shade-rgb), 0.12) 100%),
            linear-gradient(0deg, rgba(var(--hero-shade-rgb), 0.5) 0%, rgba(var(--hero-shade-rgb), 0) 45%);
    }
}

/* Desktop: shade the copy column, fade out before the photo's subject */
@media (min-width: 1200px) {
    .c-hero.surface-image {
        --hero-tint-mask: linear-gradient(90deg, #000 25%, transparent 70%);
        --scrim:
            linear-gradient(90deg, rgba(var(--hero-shade-rgb), 0.9) 0%, rgba(var(--hero-shade-rgb), 0.84) 44%, rgba(var(--hero-shade-rgb), 0.3) 63%, rgba(var(--hero-shade-rgb), 0) 76%),
            linear-gradient(0deg, rgba(var(--hero-shade-rgb), 0.55) 0%, rgba(var(--hero-shade-rgb), 0) 45%);
    }
}

/* No photo: the brand navy with the tile texture */
.c-hero--compact.surface-image,
.c-hero.surface-navy {
    background-color: var(--color-astronaut-blue-1050);
}

.c-hero--compact.surface-image:not(.u-texture-tile)::before {
    display: none;
}

.c-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background-color: var(--color-black);
}

.c-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 50%;
    opacity: 1;
}

/* Mirroring flips the photo after object-position is applied, so 55%
   here frames the shower and vanity of the mirrored image (Figma mobile). */
.c-hero--mirror .c-hero__img {
    transform: scaleX(-1);
    object-position: 55% 50%;
}

@media (min-width: 768px) {
    .c-hero__img,
    .c-hero--mirror .c-hero__img {
        object-position: 50% 50%;
    }
}

/* The lockup: identical in every hero, split heroes included */
.c-hero__content {
    width: 100%;
    max-width: var(--hero-content-w);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--hero-gap);
    text-align: left;
}

.c-hero__content > * {
    margin: 0;
    max-width: 100%;
}

.surface-image .c-hero__content :is(.section__kicker, .display, .c-hero__lead) {
    text-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
}

.c-hero__content > .section__kicker {
    margin-bottom: calc(-1 * var(--hero-gap) + var(--space-3));
}

.c-hero__content .display {
    color: var(--color-heading);
}

/* Supporting copy under the h1: one sans lead everywhere (the serif italic
   stays as the deck line inside the h1, as in Figma). */
.c-hero__lead {
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: var(--weight-regular);
    font-size: var(--text-hero-lead);
    line-height: 1.6;
    letter-spacing: 0;
    color: var(--color-body);
    max-width: 34em;
}

.c-hero__content > .section__actions {
    margin-top: var(--space-2);
}

/* Touch screens: every button is at least 48px tall, legacy ones
   (archive "Read More", the search form) included */
@media (max-width: 1199.98px) {
    .c-btn {
        min-height: 48px;
    }

    a.btn,
    .search-form .form-control,
    .search-form .search-submit {
        min-height: 48px;
    }

    a.btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Phones and small tablets: hero buttons stack full width (same breakpoint
   as a section's main actions) */
@media (max-width: 767.98px) {
    .c-hero__content > .c-btn-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .c-hero__content > .c-btn-group .c-btn {
        width: 100%;
    }
}

/* Trust bar (star reviews). Every source is the same stack (score, logo,
   count) aligned from the top, so the scores share one line whatever the
   logo or count length. The heading sits on its own row until there is
   room for heading + three sources in one row (1024px+). */
.c-trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
    align-items: start;
}

.c-trust-bar__intro {
    grid-column: 1 / -1;
    align-self: center;
}

@media (min-width: 1024px) {
    .c-trust-bar__grid {
        grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
        gap: var(--space-8);
    }

    .c-trust-bar__intro {
        grid-column: auto;
    }
}

.c-trust-bar .trust-bar-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-left: var(--space-6);
    border-left: 1px solid var(--color-divider);
}

.c-trust-bar .trust-bar-stat__value {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    margin: 0;
}

.c-trust-bar .trust-bar-stat__star {
    width: 0.8em;
    height: 0.8em;
    color: var(--color-stat);
}

.c-trust-bar .trust-bar-stat__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    line-height: 1.3;
}

/* Review count under the logo: a small caption (Jacob: ~12px) */
.c-trust-bar .trust-bar-stat__label > span:last-child {
    font-size: 12px;
}

/* One logo height for every source (the SVGs have different artboards) */
.c-trust-bar .trust-bar-stat__logo {
    display: flex;
    align-items: center;
    height: 1.4rem;
}

.c-trust-bar .trust-bar-stat__logo img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.c-trust-bar .trust-bar-stat__label > span:last-child {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .c-trust-bar .trust-bar-stat {
        padding-left: var(--space-3);
    }

    .c-trust-bar .trust-bar-stat__logo {
        height: 1.1rem;
    }

    /* Phones: the count can't fit on one line beside its neighbours, so
       every count breaks the same way: number, then "REVIEWS" */
    .c-trust-bar .trust-bar-stat__label > span:last-child {
        white-space: normal;
        width: min-content;
    }
}

/* Accordion (steps and FAQ). Uses Bootstrap collapse for behaviour only. */
.c-accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    margin-top: 0; /* legacy .accordion adds 60px above */
    border-top: 1px solid var(--color-divider);
}

.c-accordion__item,
.c-accordion .accordion-item {
    margin: 0; /* legacy .accordion .accordion-item adds 30px under each row */
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0;
}

.c-accordion__heading {
    margin: 0;
    font-size: inherit;
}

.c-accordion .c-accordion__button.accordion-button,
.c-accordion .accordion-item .accordion-button {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-5) 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--color-heading);
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: var(--text-h4);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-align: left;
    cursor: pointer;
}

.c-accordion .c-accordion__button.accordion-button:not(.collapsed),
.c-accordion .accordion-item .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--color-heading);
    box-shadow: none;
}

.c-accordion .c-accordion__button.accordion-button::after,
.c-accordion .accordion-item .accordion-button::after {
    /* A 20-24px plus that becomes a minus when open (sized up for
       accessibility; the whole row is the click target). */
    content: "";
    display: block; /* legacy child-theme.min.css hides it */
    flex: none;
    margin-left: auto;
    width: clamp(20px, calc(18.5px + 0.375vw), 24px);
    height: clamp(20px, calc(18.5px + 0.375vw), 24px);
    background-image: none;
    background-color: var(--color-heading);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: none;
}

.c-accordion .c-accordion__button.accordion-button:not(.collapsed)::after,
.c-accordion .accordion-item .accordion-button:not(.collapsed)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M4 12h16'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M4 12h16'/%3E%3C/svg%3E");
}

.c-accordion__button:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: none;
}

.c-accordion__number {
    flex: none;
    font-family: var(--font-serif);
    font-weight: var(--weight-regular);
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-stat);
    font-variant-numeric: lining-nums;
    min-width: 1.2em;
}

.c-accordion .c-accordion__item .c-accordion__body,
.c-accordion .accordion-item .accordion-body {
    padding: 0 0 var(--space-6);
    margin: 0;
    background: transparent;
    border: 0;
    color: var(--color-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.c-accordion .accordion-item .accordion-body p {
    color: var(--color-body);
    font-size: var(--text-body);
}

/* Numbered steps as a timeline (from the live service pages): a dot per
   step joined by a line, large serif numerals in the stat colour. */
.c-accordion--numbered {
    border-top: 0;
}

.c-accordion--numbered .accordion-item {
    --step-dot: 0.75rem;
    --step-gutter: 2.25rem;
    position: relative;
    padding-left: var(--step-gutter);
    font-size: var(--text-h4);
}

.c-accordion--numbered .accordion-item .accordion-button {
    font-size: inherit;
    align-items: center;
}

.c-accordion--numbered .accordion-item::before,
.c-accordion--numbered .accordion-item::after {
    content: "";
    position: absolute;
    left: calc(var(--step-dot) / 2);
    background: var(--color-stat);
}

.c-accordion--numbered .accordion-item::before {
    top: calc(var(--space-5) + 0.75em - var(--step-dot) / 2);
    width: var(--step-dot);
    height: var(--step-dot);
    margin-left: calc(var(--step-dot) / -2);
    border-radius: 50%;
}

.c-accordion--numbered .accordion-item::after {
    top: calc(var(--space-5) + 0.75em);
    height: 100%;
    width: 2px;
    margin-left: -1px;
    opacity: 0.6;
}

.c-accordion--numbered .accordion-item:last-child::after {
    display: none;
}

.c-accordion--numbered .c-accordion__number {
    font-size: 1.6em;
    line-height: 1;
    min-width: 1.1em;
}

.c-accordion--numbered .c-accordion__item .c-accordion__body {
    padding-left: calc(1.76em + var(--space-4));
    font-size: var(--text-body);
}

.c-steps .section__split--start {
    align-items: start;
}

.c-faq__inner {
    max-width: 52rem;
    margin-inline: auto;
}

/* Full-bleed video with a scrim and a centred play control */
.c-video-bleed {
    position: relative;
    isolation: isolate;
    min-height: 60vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-color: var(--color-surface);
}

.c-video-bleed__media,
.c-video-bleed__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.c-video-bleed__media video,
.c-video-bleed__media iframe,
.c-video-bleed__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.c-video-bleed__media iframe {
    /* 16:9 frame scaled to cover the box */
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.c-video-bleed__scrim {
    background: linear-gradient(180deg, rgba(6, 38, 55, 0.35), rgba(6, 38, 55, 0.55));
}

.c-video-bleed__play {
    position: relative;
    display: block;
    width: var(--size-play);
    height: var(--size-play);
    text-decoration: none;
}

.c-video-bleed__play:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: 0.5rem;
    border-radius: 50%;
}

/* Before/after compare slider (js/brand.js) */
.c-compare {
    --pos: 50%;
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.c-compare__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--color-surface-card);
    touch-action: pan-y;
}

.c-compare__after,
.c-compare__before {
    position: absolute;
    inset: 0;
}

.c-compare__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.c-compare__before {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.c-compare__label {
    position: absolute;
    bottom: var(--space-3);
    font-family: var(--font-kicker);
    font-weight: var(--weight-semibold);
    font-size: var(--text-card-kicker);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    line-height: 1;
    padding: 0.5em 0.7em;
    background: rgba(0, 0, 0, 0.85);
    color: var(--color-white);
    pointer-events: none;
}

.c-compare__label--before { left: var(--space-3); }
.c-compare__label--after { right: var(--space-3); }

.c-compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: var(--color-white);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(6, 38, 55, 0.25);
}

.c-compare__grip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5rem;
    height: 2.5rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.c-compare__grip::before,
.c-compare__grip::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-left: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
}

.c-compare__grip::before { left: 30%; transform: translateY(-50%) rotate(45deg); }
.c-compare__grip::after { right: 30%; transform: translateY(-50%) rotate(-135deg); }

/* The range input is the accessible control. It covers the frame, is
   invisible, but keeps a visible focus ring on the handle. */
.c-compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.c-compare__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2.5rem;
    height: 100%;
}

.c-compare__range::-moz-range-thumb {
    width: 2.5rem;
    height: 100%;
    border: 0;
    background: transparent;
}

.c-compare:has(.c-compare__range:focus-visible) .c-compare__grip {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.c-compare:has(.c-compare__range:focus-visible) .c-compare__frame {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

/* Stamp badge floating over a media column */
.c-before-after__media {
    position: relative;
}

.c-stamp {
    position: absolute;
    z-index: 2;
    top: calc(-1 * var(--space-6));
    left: calc(-1 * var(--space-6));
    width: 7rem;
    height: 7rem;
    pointer-events: none;
}

.c-stamp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Feature row: icon + title (+ blurb) in a line of equal columns */
.c-feature-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-8);
}

/* Below 1024px: two columns, with an odd last feature centred under the
   others (as the card grids do) instead of hanging under the left column.
   A row of exactly three sits on one line from tablet up. */
@media (max-width: 1023.98px) {
    .c-feature-row > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - var(--space-8) / 2);
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .c-feature-row:has(> :nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .c-feature-row:has(> :nth-child(3):last-child) > :last-child {
        grid-column: auto;
        width: auto;
    }
}

/* Wide screens: every feature on one row, separated by hairlines (as on the
   live service pages), instead of wrapping one item onto a second row. */
@media (min-width: 1024px) {
    .c-feature-row {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 0;
    }

    .c-feature-row > .c-feature {
        flex-direction: column;
        padding: 0 var(--space-6);
    }

    .c-feature-row > .c-feature:first-child {
        padding-left: 0;
    }

    .c-feature-row > .c-feature + .c-feature {
        border-left: 1px solid var(--color-divider);
    }
}

.c-feature {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

.c-feature-row--compact .c-feature {
    align-items: center;
}

.c-feature__icon {
    --icon-size: 2.25rem;
}

.c-feature__body > :last-child {
    margin-bottom: 0;
}

/* Open card: image, title and text straight on the surface (no panel) */
.c-card-open .card__media {
    aspect-ratio: 1;
}

.c-card-open .card__body {
    padding: var(--space-5) 0 0;
}

.c-card-open .card__title {
    margin-bottom: var(--space-2);
}

/* Benefits slider (Join Our Team): 3 / 2 / 1 cards, gutters between */
.benefits-slider .slick-list {
    margin-inline: calc(var(--grid-gap) / -2);
}

.benefits-slider .c-slider__slide {
    padding-inline: calc(var(--grid-gap) / 2);
}

.benefits-slider .card {
    height: 100%;
}

.benefits-slider .card__media {
    aspect-ratio: 4 / 3;
}

/* Arrows sit outside the cards on wide screens, under them on narrow ones */
.benefits-slider .slick-prev,
.benefits-slider .slick-next {
    display: grid !important;
    place-items: center;
    top: 38%;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--color-surface-card);
    box-shadow: var(--shadow-card);
}

@media (min-width: 1200px) {
    .benefits-slider .slick-prev { left: -3.5rem; }
    .benefits-slider .slick-next { right: -3.5rem; }
}

@media (max-width: 1199.98px) {
    .benefits-slider .slick-prev,
    .benefits-slider .slick-next {
        display: none !important;
    }
}

/* Section header with the title on the left and its button on the right
   (stacks on narrow screens). Used by the blog loop. */
.c-header-split {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-6);
    max-width: none;
}

.c-header-split > div > :last-child {
    margin-bottom: 0;
}

/* Gallery wrapper: hosts a Modula/Gallery shortcode */
.c-gallery__grid {
    margin-bottom: var(--space-8);
}

.c-gallery__grid .modula,
.c-gallery__grid .modula-gallery {
    margin-inline: auto;
}

/* Form section: the embedded form sits on a card */
.c-form-section__inner {
    max-width: 52rem;
    margin-inline: auto;
}

.c-form-section__form {
    padding: var(--card-pad);
}

@media (min-width: 768px) {
    .c-form-section__form {
        padding: calc(var(--card-pad) * 1.5);
    }
}

/* Inside a card on a dark surface, form copy must read as light-on-light.
   Cards on dark are a translucent overlay, so the form card is forced white. */
.is-dark .c-form-section__form {
    --color-surface-card: var(--color-white);
    --color-heading: var(--color-astronaut-blue-900);
    --color-body: var(--color-neutral-600);
    --color-body-strong: var(--color-neutral-900);
    --color-link: var(--color-astronaut-blue-800);
    --color-link-hover: var(--color-astronaut-blue-900);
    --color-divider: var(--color-limestone-200);
    --color-border: var(--color-limestone-300);
    --color-focus: var(--color-astronaut-blue-800);
    --btn-blue-bg: var(--color-astronaut-blue-900);
    --btn-blue-text: var(--color-astronaut-blue-50);
    --btn-blue-hover-bg: var(--color-salomie-300);
    --btn-blue-hover-text: var(--color-salomie-950);
    background-color: var(--color-white);
    color: var(--color-body);
    border-color: transparent;
}

/* FAQ (Figma "Common Questions"): narrow centred list, compact rows */
.c-faq .section__header {
    margin-bottom: var(--space-12);
}

.c-faq__inner .c-accordion {
    max-width: 48rem;
    margin: 0 auto;
    border-top: 0;
}

/* Questions read a step above the answers on phones too */
.c-faq .c-accordion .accordion-item .accordion-button {
    font-size: max(16.5px, var(--text-body));
}

.c-faq .c-accordion .accordion-item .accordion-body > :last-child {
    margin-bottom: 0;
}

.c-faq .c-accordion .accordion-item {
    border-bottom-color: rgba(0, 0, 0, 0.15);
}

.c-faq .c-accordion .accordion-item .accordion-button {
    align-items: center;
    padding: var(--space-4) var(--space-3);
    font-weight: var(--weight-semibold);
    font-size: var(--text-body);
    line-height: 1.2;
    letter-spacing: 0;
}


.c-faq .c-accordion .accordion-item .accordion-body {
    padding: var(--space-2) var(--space-3) var(--space-6);
}

.c-faq .c-accordion .accordion-item .accordion-body,
.c-faq .c-accordion .accordion-item .accordion-body p {
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

/* Legacy theme paints collapsed accordion buttons blue; keep ours flat. */
.c-accordion .c-accordion__item .c-accordion__button.accordion-button.collapsed,
.c-accordion .accordion-item .accordion-button.collapsed {
    background: transparent;
    color: var(--color-heading);
    box-shadow: none;
}

/* Work cards (service cards, explore-more, city cards): the whole card is
   the link. Hover/focus: the title turns light blue (Blue 700, titles are
   large text so 3:1 applies; the small CTA keeps the AA link blue), the photo
   zooms slightly inside its frame, the arrow nudges right, and cards with a
   panel lift with a soft shadow. */
.c-work-card {
    --card-title-hover: var(--color-astronaut-blue-700);
    --card-lift: -4px;
    position: relative;
    transition: transform var(--duration-fill) var(--ease-fill), box-shadow var(--duration-fill) var(--ease-fill);
}

.is-dark .c-work-card {
    --card-title-hover: var(--color-astronaut-blue-200);
}

/* The legacy a:hover/a:focus rule paints links #fcd193; the title link keeps
   the card's own colours. */
.c-work-card .c-work-card__link,
.c-work-card .c-work-card__link:hover,
.c-work-card .c-work-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.c-work-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.c-work-card .card__title {
    transition: color var(--duration-color) var(--ease-standard);
}

/* Photo zoom stays inside its frame */
.c-work-card .c-service-card__media,
.c-work-card .c-work-card__media,
.c-work-card .c-media {
    overflow: hidden;
}

/* A bare photo at the top of a panel card zooms inside the card's frame */
.c-work-card.card {
    overflow: hidden;
}

.c-work-card .card__media,
.c-work-card .c-media__img {
    transition: transform 0.6s var(--ease-fill);
}

.c-work-card:hover .card__title,
.c-work-card:focus-within .card__title {
    color: var(--card-title-hover);
}

.c-work-card:hover .card__media,
.c-work-card:focus-within .card__media,
.c-work-card:hover .c-media__img,
.c-work-card:focus-within .c-media__img {
    transform: scale(1.04);
}

.c-work-card:hover .card__cta::after,
.c-work-card:focus-within .card__cta::after {
    transform: translateX(0.3em);
}

/* Cards with a panel lift; open cards (no panel) rely on the photo zoom */
.c-work-card.card:hover,
.c-work-card.card:focus-within {
    transform: translateY(var(--card-lift));
    box-shadow: 0 14px 32px rgba(6, 38, 55, 0.12);
}

.c-work-card:has(:focus-visible) {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.c-work-card .card__cta {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .c-work-card,
    .c-work-card .card__media,
    .c-work-card .c-media__img {
        transition: none;
    }

    .c-work-card:hover,
    .c-work-card:focus-within,
    .c-work-card:hover .card__media,
    .c-work-card:focus-within .card__media {
        transform: none;
    }
}

/* Media cards (image/video tiles that open in a lightbox) */
.c-media-cards .c-media {
    outline-offset: var(--focus-offset);
}

.c-media-cards .c-media:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
}

/* Reviews (Figma "testimonials"): rating lockup | divider | heading + marquee.
   The marquee runs past the right edge of the page; the section clips it. */
.c-reviews--split {
    --reviews-pad-y: calc(var(--section-pad-y) * 0.6);
    overflow: clip;
    padding-top: var(--reviews-pad-y);
    padding-bottom: var(--reviews-pad-y);
}

.c-reviews__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
}

.c-reviews__lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.c-reviews__lockup > * {
    margin-bottom: 0;
}

.c-reviews__score {
    margin-top: 0;
    font-family: var(--font-serif);
    font-weight: var(--weight-regular);
    font-size: var(--text-score);
    line-height: 0.85;
    letter-spacing: var(--tracking-tight);
    font-variant-numeric: lining-nums;
    color: var(--color-heading);
}

.c-reviews__stars {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-top: var(--space-2);
    color: var(--color-rating-star);
}

.c-reviews__stars svg {
    width: 1.4rem;
    height: 1.35rem;
}

.c-reviews__count {
    margin-top: var(--space-4);
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: var(--text-body);
    line-height: 1.3;
    color: var(--color-heading);
}

.c-reviews__source {
    margin-top: var(--space-3);
    color: var(--color-heading);
    line-height: 0;
}

.c-reviews__source svg {
    width: 7.6rem;
    height: auto;
}

.c-reviews__all {
    margin-top: var(--space-6);
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: var(--text-body);
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-heading);
    text-decoration: none;
}

.c-reviews__all:hover,
.c-reviews__all:focus-visible {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.c-reviews__title {
    margin-bottom: var(--space-8);
}

/* "View All Reviews" sits under the lockup on wide screens and under the
   review slider when the section stacks */
.c-reviews__all.c-reviews__all--below {
    display: none;
}

.c-reviews__all {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

.c-reviews__all::after {
    content: "";
    flex: none;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 991.98px) {
    .c-reviews--split {
        --reviews-pad-y: var(--section-pad-y);
    }

    /* Stacked: the heading and the link centre under the centred lockup
       (the reviews themselves keep their own alignment) */
    .c-reviews--split .c-reviews__title {
        text-align: center;
    }

    .c-reviews--split .c-reviews__all.c-reviews__all--below {
        display: flex;
        width: fit-content;
        margin-inline: auto;
    }

    .c-reviews__lockup .c-reviews__all {
        display: none;
    }

    .c-reviews__all.c-reviews__all--below {
        display: inline-flex;
    }

}

@media (min-width: 992px) {
    .c-reviews__layout {
        grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
        gap: 0;
    }

    /* The divider runs the full height of the section */
    .c-reviews__layout {
        align-items: center;
    }

    .c-reviews__lockup {
        align-self: stretch;
        margin-block: calc(-1 * var(--reviews-pad-y));
        padding-block: var(--reviews-pad-y);
        padding-right: var(--space-8);
        border-right: 1px solid var(--color-divider);
    }

    .c-reviews.section--align-right .c-reviews__lockup {
        order: 2;
        border-right: 0;
        border-left: 1px solid var(--color-divider);
        padding-right: 0;
        padding-left: var(--space-8);
    }

    .c-reviews__main {
        padding-left: clamp(2rem, 4.5vw, 4.5rem);
    }

    .c-reviews--split .c-reviews__list {
        margin-right: -50vw;
    }

    .c-reviews__title {
        margin-bottom: var(--space-10);
    }
}

/* Open review cards in the plugin slider: a hairline after each card and
   room on both sides of it, so one review's text never runs into the next
   review's quote mark. The slider sets the card widths and gaps itself. */
.c-reviews .grw-slider .rplgsw-slide {
    height: auto;
}

.c-reviews .grw-slider .grw-review {
    height: 100%;
    border-radius: 0;
    padding-right: var(--space-6);
    border-right: 1px solid var(--color-divider);
}

/* layout-reviews.css pins the Google mark to the card's right edge (with
   !important, against the plugin); line it up with the text edge instead so
   it keeps the same room from the divider. */
.c-reviews .grw-slider .grw-review .wp-google-content2 > svg {
    right: var(--space-6) !important;
}

/* Third-party review widgets on a dark surface get a card so they still read */
.is-dark .c-reviews__list {
    --color-heading: var(--color-astronaut-blue-900);
    --color-body: var(--color-neutral-600);
    --color-body-strong: var(--color-neutral-900);
    background: var(--color-white);
    padding: var(--card-pad);
    color: var(--color-body);
}

/* Contact + map */
.c-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10) var(--space-12);
    align-items: stretch;
}

@media (min-width: 992px) {
    .c-contact__grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }
}

.c-contact__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
    display: grid;
    gap: var(--space-6);
}

.c-contact__item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.c-contact__icon {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    background-color: var(--color-surface-card);
    border: 1px solid var(--color-surface-card-border);
}

.c-contact__icon img {
    width: 1.3rem;
    height: 1.3rem;
    object-fit: contain;
}

.is-dark .c-contact__icon img {
    filter: brightness(0) invert(1);
}

.c-contact__body .card__title {
    margin-bottom: var(--space-1);
}

.c-contact__info p {
    margin: 0;
}

.c-contact__info a {
    color: var(--color-link);
}

.c-contact__map {
    min-height: 18rem;
    background-color: var(--color-surface-card);
}

.c-contact__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 18rem;
    border: 0;
}

/* Final CTA (Figma "Ready to Get Started?"): white form card beside
   translucent contact cards; the cards come first on narrow screens. */
.c-final-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
}

.c-final-cta__info {
    order: -1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 992px) {
    .c-final-cta__grid {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 24.8rem);
        gap: var(--space-10);
    }

    .c-final-cta__info {
        order: 0;
        gap: var(--space-10);
    }
}

/* Tablets: the three contact cards sit in one row above the form instead
   of three full-width blocks (same as the Contact page's cards). */
@media (min-width: 576px) and (max-width: 991.98px) {
    ul.c-final-cta__info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* The contact cards stay in view beside the long form on wide screens
   (same as the Contact page and the Join Our Team application). On shorter
   laptop screens the cards sit closer together so they still fit under the
   header; below 690px tall they scroll normally. */
@media (min-width: 992px) and (min-height: 690px) {
    .c-final-cta__info {
        position: sticky;
        top: calc(var(--header-h) + var(--space-6));
    }
}

@media (min-width: 992px) and (min-height: 690px) and (max-height: 859.98px) {
    ul.c-final-cta__info {
        gap: var(--space-4);
    }
}

.c-final-cta__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-8) var(--space-4);
}

@media (min-width: 768px) {
    .c-final-cta__form {
        padding: var(--space-8);
    }
}

.c-final-cta__header > * {
    margin: 0;
}

.c-final-cta__header .section__subheading {
    margin-top: var(--space-2);
}

.c-final-cta__header .section__blurb {
    margin-top: var(--space-6);
    max-width: none;
}

/* Compact mode (the page already carries the form): the button points to it */
.c-final-cta--compact .c-final-cta__form > .c-btn {
    align-self: flex-start;
}

.c-final-cta__card {
    padding: var(--card-pad) calc(var(--card-pad) * 1.1);
}

.c-final-cta__card .card__kicker {
    margin: 0 0 var(--space-4);
    color: var(--color-eyebrow);
}

.c-final-cta__text,
.c-final-cta__text p {
    margin: 0;
    font-size: var(--text-card-blurb);
    line-height: var(--leading-body);
    color: var(--color-body);
}

.c-final-cta__text a {
    color: var(--color-link);
}

/* Figma form fields inside the final CTA card only. The sitewide Gravity
   Forms migration skin in style.css uses !important, so these scoped
   overrides have to as well. */
.c-final-cta__form .gform_wrapper.gform-theme--framework .gform_fields {
    gap: var(--space-4) 20px !important;
}

/* Labels in sentence case (2026-11-20, a deliberate departure from the Figma
   uppercase kicker labels): this form asks 14 questions, several a full
   sentence long, and small tracked capitals were hard to read and sat below
   the bold answer options. The question now leads (semibold, heading colour)
   and the options sit under it in regular weight. The label text itself is
   sentence case in Form 2 (setup/form-labels-20261120/). */
.c-final-cta__form .gform_wrapper .gfield_label {
    margin-bottom: 8px;
    font-family: var(--font-sans);
    font-size: 16px !important;
    font-weight: var(--weight-semibold) !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-heading);
}

.c-final-cta__form .gform_wrapper .gform-field-label--type-inline {
    font-size: 16px !important;
    font-weight: var(--weight-regular) !important;
    line-height: 1.45 !important;
    color: var(--color-neutral-900);
}

.c-final-cta__form .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.c-final-cta__form .gform_wrapper select,
.c-final-cta__form .gform_wrapper textarea {
    min-height: 45px !important;
    padding: 10px 15px !important;
    border: 1px solid var(--color-neutral-500) !important;
    border-radius: 0 !important;
    background-color: var(--color-white);
}

.c-final-cta__form .gform_wrapper textarea {
    min-height: 132px !important;
}

/* Spacing: fields sat 16px apart with 12px between radio choices, so the
   questions ran together (Jacob's phone test, 2026-11-20). More room between
   fields than inside them, and choices tall enough to tap (34px rows, was
   22px). Same rhythm at every width. */
.c-final-cta__form .gform_wrapper.gform-theme--framework .gform_fields {
    row-gap: var(--space-8) !important;
}

.c-final-cta__form .gform_wrapper .gfield_radio,
.c-final-cta__form .gform_wrapper .gfield_checkbox {
    gap: var(--space-1) !important;
}

.c-final-cta__form .gform_wrapper .gchoice {
    padding-block: 6px;
}

/* Process with material sliders (kitchen and one-week shower pages).
   Each step: a numbered ring and a real step title, then the copy, with its
   image slider beside it on wide screens (--flip swaps sides). The numbered
   ring matches the homepage process steps. */
.c-process__step {
    display: grid;
    gap: var(--space-6) var(--space-12);
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-divider);
    align-items: center;
}

.c-process__step:first-of-type,
.section__header + .c-process__step {
    border-top: 0;
    padding-top: 0;
}

@media (min-width: 992px) {
    .c-process__step:not(.c-process__step--final) {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .c-process__step--flip:not(.c-process__step--final) {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .c-process__step--flip > .c-process__intro {
        order: 2;
    }
}

.c-process__intro {
    max-width: 40rem;
}

.c-process__step--final .c-process__intro {
    margin-inline: auto;
    text-align: center;
}

/* A free-text block between steps (One Week Shower "step one" copy) */
.c-process__note {
    max-width: 48rem;
    margin: 0 auto;
    padding: var(--space-8) 0;
    text-align: center;
}

.c-process__intro > :last-child {
    margin-bottom: 0;
}

.c-process__count {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: 0 0 var(--space-4);
    font-size: inherit;
}

.c-process__step--final .c-process__count {
    justify-content: center;
}

.c-process__number {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 3px solid var(--color-stat);
    border-radius: 50%;
    background: transparent;
    color: var(--color-stat);
    font-family: var(--font-sans);
    font-weight: var(--weight-medium);
    font-size: 1.25rem;
    line-height: 1;
}

.c-process__number[data-step]::before {
    /* The numeral is drawn by CSS so the heading's text is just
       "Step 1: <title>" (the "Step 1:" part is visually hidden). */
    content: attr(data-step);
}

.c-process__label,
.c-process__count .c-process__label {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: var(--text-card-title);
    line-height: var(--leading-card-title);
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-heading);
    text-align: left;
}

.c-process__slider {
    width: 100%;
    min-width: 0;
}

.c-media--wide .c-media__img,
.c-media--wide img {
    aspect-ratio: 16 / 9;
}

/* Story cards */
.c-stories__slider .slick-list {
    margin: 0 calc(-1 * var(--space-3));
}

.c-stories__slider .slick-slide > div {
    padding: 0 var(--space-3);
}

.c-stories__slider .c-slider__slide > .card {
    height: 100%;
}

.c-story-card {
    display: flex;
    flex-direction: column;
}

.c-story-card__media {
    position: relative;
    display: block;
}

.c-story-card__placeholder {
    display: block;
    background: var(--color-surface-card-border);
}

.c-story-card__badge {
    position: absolute;
    left: var(--space-3);
    bottom: var(--space-3);
    font-family: var(--font-kicker);
    font-weight: var(--weight-semibold);
    font-size: var(--text-card-kicker);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    line-height: 1;
    padding: 0.5em 0.7em;
    background: rgba(0, 0, 0, 0.85);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-size: max(12px, calc(var(--text-card-kicker) * 0.88));
    letter-spacing: 0.1em;
}

/* Communities list (older Chesapeake bathroom page): neighbourhood chips
   with the location pin, centred under the section header. */
.c-communities__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 56rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.c-communities__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 44px;
    padding: 0 var(--space-5);
    border: 1px solid var(--color-border);
    background: var(--color-surface-card);
    color: var(--color-heading);
    font-weight: var(--weight-semibold);
    font-size: max(16px, var(--text-body-sm));
}

.c-communities__item .c-pin {
    color: var(--color-link);
}

.is-dark .c-communities__item {
    background: transparent;
    border-color: rgb(255 255 255 / 0.25);
    color: var(--color-white);
}

.is-dark .c-communities__item .c-pin {
    color: var(--color-salomie-200);
}

/* Location pin (story card badge, testimonial location) */
.c-pin {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

.c-story-card__link {
    color: inherit;
    text-decoration: none;
}

.c-story-card__link:hover,
.c-story-card__link:focus-visible {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.c-story-card__rating {
    display: flex;
    align-items: center;
    gap: 0.15em;
    margin: 0 0 var(--space-3);
}

.c-story-card__star {
    width: 1rem;
    height: 1rem;
    color: var(--color-divider);
}

.c-story-card__star.is-on {
    color: var(--color-rating-star);
}

/* Three different voices on the card so they don't run together: the project
   type is the kicker; "Google review" is a small plain label next to the
   stars; the reviewer's name reads as a signature. */
.c-story-card__rating-label {
    margin: 0 0 0 var(--space-2);
    white-space: nowrap;
    font-family: var(--font-sans);
    font-size: var(--text-body-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-body);
}

.c-story-card__reviewer {
    font-family: var(--font-sans);
    font-size: var(--text-body-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
}

.c-story-card__quote {
    margin: 0 0 var(--space-4);
    padding: 0 0 0 var(--space-4);
    border: 0;
    border-left: 3px solid var(--color-salomie-300);
}

.c-story-card__quote .card__blurb {
    font-style: italic;
}

/* Google "G" ahead of the stars, as on the live cards */
.c-story-card__g {
    display: inline-flex;
    margin-right: 0.35em;
}

.c-story-card__g svg {
    width: 1.1rem;
    height: 1.1rem;
}

.c-story-card__quote footer {
    margin: var(--space-2) 0 0;
}

.c-story-card .card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.c-story-card .card__cta {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   9. Global typography defaults (sitewide once brand.css is global)
   Headings are always Roboto. The legacy sheets set Libre Baskerville on
   headings with !important in places, hence the !important here.
   -------------------------------------------------------------------------- */
body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-sans) !important;
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

b, strong {
    font-weight: var(--weight-semibold);
}

/* Nothing below 400 anywhere */
[style*="font-weight: 300"],
[style*="font-weight:300"],
.fw-light,
.font-weight-light {
    font-weight: var(--weight-regular) !important;
}

/* --------------------------------------------------------------------------
   10. Global chrome: header, navigation, footer (Figma "Coradi Contracting-
   Header" component and the "end main-content" footer frame).
   The legacy markup, ids and JS hooks are kept; only presentation changes.
   Chrome dimensions stay in px: they are fixed component sizes in Figma and
   the fixed header's height is the page offset (--header-h).
   -------------------------------------------------------------------------- */
:root {
    --color-graphite: var(--color-neutral-graphite);
    --color-graphite-light: var(--color-neutral-graphite-light);
    --chrome-bar-dark: rgba(0, 0, 0, 0.8);
    /* Header colour roles (swap the whole scheme here): grey utility
       strip, translucent black nav bar as on the live site (the hero photo
       shows through), navy logo block and yellow "Get a Quote". */
    --chrome-strip-bg: var(--color-neutral-700);
    --chrome-strip-text: var(--color-white);
    /* Live site value (black at 80%); a light blur keeps the menu legible
       over busy photos */
    --chrome-bar-bg: var(--chrome-bar-dark);
    --chrome-bar-bg-scrolled: rgba(0, 0, 0, 0.9);
    --chrome-bar-blur: blur(12px) saturate(140%);
    --chrome-bar-text: var(--color-white);
    --chrome-bar-hover: var(--color-salomie-200);
    --chrome-bar-rule: rgba(255, 255, 255, 0.08);
    --chrome-logo-bg: var(--color-astronaut-blue-900);
    --chrome-quote-bg: var(--color-salomie-200);
    --chrome-quote-text: var(--color-astronaut-blue-900);
    --chrome-quote-hover-bg: var(--color-salomie-50);
    --chrome-quote-hover-text: var(--color-astronaut-blue-950);
    --header-strip-h: 45px;
    --header-bar-h: 85px;
    --header-mobile-h: 98px;
    --header-h: var(--header-mobile-h);
}

@media (min-width: 768px) {
    :root { --header-h: calc(var(--header-strip-h) + var(--header-mobile-h)); }
}

@media (min-width: 1200px) {
    :root { --header-h: calc(var(--header-strip-h) + var(--header-bar-h)); }
}

/* The fixed header no longer overlaps the first section (Figma places the
   page below the 130px header). */
#page .main-content {
    padding-top: var(--header-h);
}

#header,
#footer {
    font-family: var(--font-sans);
}

/* Top strip: socials + phone, right-aligned */
#header .header-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 21px;
    height: var(--header-strip-h);
    padding: 0 36px;
    background: var(--chrome-strip-bg);
    color: var(--chrome-strip-text);
}

#header .header-top a {
    margin: 0;
    padding: 12px 4px; /* a 44px tap area inside the 45px strip */
    color: var(--chrome-strip-text);
    text-decoration: none;
    line-height: 1;
}

#header .header-top i {
    font-size: 20px;
}

#header .header-top .header-tel {
    margin-left: 17px;
    font-family: var(--font-serif);
    font-weight: var(--weight-bold);
    font-size: 18px;
    font-variant-numeric: lining-nums;
}

#header .header-top a:hover,
#header .header-top a:focus-visible {
    color: var(--color-salomie-200);
}

#header .header-top a:focus-visible {
    outline: var(--focus-width) solid var(--color-salomie-200);
    outline-offset: 2px;
}

/* Logo block: navy, flush to the left edge, spans strip + bar */
#header {
    --logo-w: clamp(220px, 17vw, 316px);
}

#header .logo-container {
    left: 0;
    right: auto;
    z-index: 5; /* above the blurred bar (backdrop-filter makes its own layer) */
    padding-left: 0;
    pointer-events: none;
}

#header .logo-container a {
    transition: height var(--duration-fill) var(--ease-standard);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--logo-w);
    height: calc(var(--header-strip-h) + var(--header-bar-h));
    max-height: none;
    padding: 0;
    background: var(--chrome-logo-bg);
}

#header .logo-container a img {
    width: 84%;
    height: auto;
    transition: width var(--duration-fill) var(--ease-standard);
}

/* Nav bar: [logo space][menu, fills the rest][Get a Quote]. Flex instead of
   the legacy floats, so the menu can never run under the logo. */
#header .header-bottom {
    align-items: stretch;
    height: var(--header-bar-h);
    padding-left: var(--logo-w);
    background-color: var(--chrome-bar-bg);
    -webkit-backdrop-filter: var(--chrome-bar-blur);
    backdrop-filter: var(--chrome-bar-blur);
    box-shadow: inset 0 -1px 0 var(--chrome-bar-rule);
    transition: height var(--duration-fill) var(--ease-standard);
}

/* Desktop only: below 1200px the legacy theme hides this bar for the
   mobile header, so display is only set here. */
@media (min-width: 1200px) {
    #header .header-bottom {
        display: flex;
    }
}

#header .header-bottom > div {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    padding-inline: clamp(8px, 1.5vw, 32px);
}

#header .header-bottom > .quote-btn {
    order: 2;
    flex: none;
    float: none;
}

#header .header-bottom > div > ul {
    float: none;
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

#header .header-bottom > div > ul > li {
    float: none;
    position: relative;
}

#header .header-bottom ul li a {
    height: var(--header-bar-h);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 clamp(8px, 0.95vw, 18px);
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: clamp(14px, calc(7.4px + 0.6vw), 17.5px);
    line-height: 20px;
    letter-spacing: 0;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--chrome-bar-text);
    background: transparent;
    transition: color var(--duration-color) var(--ease-standard), height var(--duration-fill) var(--ease-standard);
}

#header .header-bottom ul li a:hover,
#header .header-bottom ul li a:focus-visible,
#header .header-bottom ul li.current-menu-item > a,
#header .header-bottom ul li.current-menu-ancestor > a {
    color: var(--chrome-bar-hover);
    background: transparent;
}

#header .header-bottom ul li a:focus-visible {
    outline: var(--focus-width) solid var(--color-salomie-200);
    outline-offset: -4px;
}

/* Current/hover marker: a yellow rule along the bottom of the bar */
#header .header-bottom > div > ul > li > a {
    position: relative;
}

#header .header-bottom > div > ul > li > a::before {
    content: "";
    position: absolute;
    left: clamp(8px, 0.95vw, 18px);
    right: clamp(8px, 0.95vw, 18px);
    bottom: 0;
    height: 3px;
    background: var(--color-salomie-300);
    transform: scaleX(0);
    transition: transform var(--duration-color) var(--ease-standard);
}

#header .header-bottom > div > ul > li > a:hover::before,
#header .header-bottom > div > ul > li:focus-within > a::before,
#header .header-bottom > div > ul > li.current-menu-item > a::before,
#header .header-bottom > div > ul > li.current-menu-ancestor > a::before {
    transform: scaleX(1);
}

/* Desktop dropdown: navy panel with hairline separators and a yellow rule
   along the bottom (the hover marker already underlines the menu item, so a
   rule on top doubled it) */
#header .header-bottom .sub-menu {
    left: 0;
    min-width: 16rem;
    padding: 6px 0;
    background-color: var(--color-astronaut-blue-1050);
    border-bottom: 3px solid var(--color-salomie-200);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

#header .header-bottom .sub-menu li + li {
    border-top: 1px solid var(--alpha-white-12);
}

#header .header-bottom .sub-menu li a {
    height: auto;
    padding: 14px 22px;
    white-space: normal;
    text-transform: none;
    font-weight: var(--weight-medium);
    font-size: 16px;
    color: var(--color-white);
}

#header .header-bottom .sub-menu li a:hover,
#header .header-bottom .sub-menu li a:focus-visible {
    background: var(--alpha-white-07);
}

/* Keyboard users can open dropdowns too */
#header .header-bottom li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

/* Dropdown indicator: Figma "arrow_drop_down" (solid triangle), replacing
   the legacy rotated-border chevron */
#header .header-bottom li.menu-item-has-children > a::after {
    content: "";
    width: 0;
    height: 0;
    margin: 0 0 0 2px;
    border: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transform: none;
    opacity: 1;
}

#header .header-bottom li.menu-item-has-children:hover > a::after,
#header .header-bottom li.menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
}

/* "Get a Quote": navy block filling the bar height */
#header .quote-btn {
    display: flex;
    align-items: center;
    height: var(--header-bar-h);
    max-height: none;
    padding: 0 36px;
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: clamp(17px, calc(10.6px + 0.833vw), 25px);
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--chrome-quote-text);
    background: var(--chrome-quote-bg);
    text-decoration: none;
    transition: background-color var(--duration-color) var(--ease-standard), height var(--duration-fill) var(--ease-standard);
}

@media (max-width: 1450px) {
    #header .quote-btn {
        padding: 0 clamp(16px, 1.6vw, 22px);
    }
}

#header .quote-btn:hover,
#header .quote-btn:focus-visible {
    background: var(--chrome-quote-hover-bg);
    color: var(--chrome-quote-hover-text);
}

#header .quote-btn:focus-visible {
    outline: var(--focus-width) solid var(--color-white);
    outline-offset: -4px;
}

/* Condensed bar after scrolling (legacy .header-fixed hook) */
#header.header-fixed .header-bottom,
#header.header-fixed .header-bottom ul li a,
#header.header-fixed .quote-btn {
    height: 69px;
}

/* Over page content (after scrolling) the bar is nearly opaque */
#header.header-fixed .header-bottom,
#header.header-fixed .mobile-header-right {
    background-color: var(--chrome-bar-bg-scrolled);
}

/* The legacy script slides the top strip away once the page scrolls, so the
   logo card shrinks to the condensed bar instead of hanging below it. */
#header.header-fixed .logo-container a {
    height: 69px;
    padding: 0;
}

#header.header-fixed .logo-container a img {
    width: 72%;
}

/* Mobile and tablet header: navy logo half + graphite menu half */
#header .mobile-header-left {
    width: 49.25%;
    height: var(--header-mobile-h);
    padding: 0 10px;
    background: var(--color-astronaut-blue-900);
}

#header .mobile-header-left img {
    width: 100%;
    max-width: 229px;
    height: auto;
}

#header .mobile-header-right {
    width: 50.75%;
    height: var(--header-mobile-h);
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: var(--chrome-bar-bg);
    -webkit-backdrop-filter: var(--chrome-bar-blur);
    backdrop-filter: var(--chrome-bar-blur);
    box-shadow: inset 0 -1px 0 var(--chrome-bar-rule);
}

/* A backdrop-filter makes this bar the containing block for the fixed
   #mobile-nav inside it, which pins the open menu to the bar's half and
   pushes its top items off screen. The open menu covers the page, so the
   blur can go while it is open. */
.noscroll #header .mobile-header-right {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

#header .mobile-header-right .menuicon__bar,
#header .mobile-header-right .menuicon__circle {
    stroke: var(--chrome-bar-text);
    transition: stroke var(--duration-color) var(--ease-standard);
}

.noscroll #header .mobile-header-right .menuicon__bar,
.noscroll #header .mobile-header-right .menuicon__circle {
    stroke: var(--color-white);
}

#header .mobile-header-right .splash::after {
    background-color: var(--color-astronaut-blue-1050);
}

/* Mobile menu: a left-aligned list with hairline dividers, a chevron toggle
   on the right of each parent, and indented submenus on a yellow rule. */
#header #mobile-nav-wrapper {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
    padding: 0 24px;
}

#header #mobile-nav .menu > li {
    text-align: left;
    border-bottom: 1px solid var(--alpha-white-12);
}

#header #mobile-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    min-height: 56px;
    padding: 12px 4px;
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--color-white);
    background: transparent;
}

#header #mobile-nav li a:hover,
#header #mobile-nav li a:focus-visible,
#header #mobile-nav li.current-menu-item > a,
#header #mobile-nav li.current-menu-ancestor > a {
    color: var(--color-salomie-200);
    background: transparent;
}

/* Chevron: replaces the legacy Font Awesome glyph that sat above the line */
#header #mobile-nav li.menu-item-has-children > a::after {
    content: "";
    position: static;
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    font-family: inherit;
    transform: none;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--duration-color) var(--ease-standard);
}

#header #mobile-nav li.menu-item-has-children > a.drop-active::after {
    content: "";
    transform: rotate(180deg);
}

#header #mobile-nav li .sub-menu {
    margin: 0 0 14px 4px;
    padding: 2px 0 2px 16px;
    border-left: 2px solid var(--color-salomie-200);
}

#header #mobile-nav li .sub-menu li a {
    min-height: 44px;
    padding: 8px 4px;
    font-weight: var(--weight-medium);
    font-size: 17px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--alpha-white-88);
}

#header #mobile-nav li .sub-menu li a:hover,
#header #mobile-nav li .sub-menu li a:focus-visible,
#header #mobile-nav li .sub-menu li.current-menu-item > a {
    color: var(--color-salomie-200);
}

#header #mobile-nav .mobile-top-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

#header #mobile-nav .mobile-top-header a {
    margin: 0;
    color: var(--color-white);
}

#header #mobile-nav .mobile-top-header .c-social-glyph svg {
    display: block;
    width: 22px;
    height: 22px;
}

#header #mobile-nav .mobile-top-header .header-tel {
    margin-left: 8px;
    font-family: var(--font-serif);
    font-weight: var(--weight-bold);
    font-size: 18px;
    font-variant-numeric: lining-nums;
}

#header #mobile-nav-btn:focus-visible,
#header #mobile-nav a:focus-visible {
    outline: var(--focus-width) solid var(--color-salomie-200);
    outline-offset: 2px;
}

/* Phone menu: keep the close (X) icon above the open menu so it can be tapped
   (the open #mobile-nav starts at mid-header and covered the button). The splash
   background stays below the menu, as before. */
#header #mobile-nav-btn {
    z-index: auto;
}

#header #mobile-nav-btn .splash {
    z-index: 10001;
}

#header #mobile-nav-btn .menuicon {
    position: relative;
    z-index: 1000000;
}

/* Footer: navy body, graphite bottom bar, everything centred */
#footer {
    --color-surface: var(--color-astronaut-blue-1050);
    --color-heading: var(--color-white);
    --color-body: var(--color-white);
    --color-link: var(--color-white);
    --color-link-hover: var(--color-salomie-200);
    --color-focus: var(--color-salomie-200);
    --footer-text: clamp(15px, calc(14.71px + 0.075vw), 16px);
    font-size: var(--footer-text);
}

#footer .footer-top {
    gap: 20px;
    padding: 65px 20px 45px;
    background: var(--color-surface);
    color: var(--color-body);
}

#footer a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--duration-color) var(--ease-standard);
}

#footer a:hover,
#footer a:focus-visible {
    color: var(--color-link-hover);
}

#footer a:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

#footer .footer-logo img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

#footer .footer-menu li a,
#footer .footer-contact,
#footer .footer-contact a {
    font-family: var(--font-sans);
    font-weight: var(--weight-regular);
    font-size: var(--footer-text);
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-link);
}

#footer .footer-menu li::after,
#footer .footer-contact span {
    color: var(--color-white);
    opacity: 1;
}

#footer .footer-social {
    gap: 25px;
}

#footer .footer-social a {
    display: inline-block;
    width: 44px;
    height: 44px;
    margin: 0;
    background: none;
    border-radius: 50%;
}

/* Social icons (Simple Icons, CC0) as brand-coloured discs. */
.c-social {
    --social-bg: var(--color-white);
    --social-fg: var(--color-white);
    display: inline-grid !important;
    place-items: center;
    color: var(--social-fg) !important;
    background: var(--social-bg) !important;
    transition: transform var(--duration-color) var(--ease-standard), filter var(--duration-color) var(--ease-standard);
}

.c-social svg {
    width: 56%;
    height: 56%;
}

.c-social--facebook {
    /* The Facebook mark is itself the disc: draw it full size in brand blue
       on a white ground so the "f" reads white. */
    --social-bg: var(--color-white);
    --social-fg: var(--color-brand-facebook);
}

.c-social--facebook svg {
    width: 100%;
    height: 100%;
}

.c-social--instagram {
    --social-bg: var(--gradient-brand-instagram);
}

.c-social--yelp {
    --social-bg: var(--color-brand-yelp);
}

.c-social--google {
    --social-bg: var(--color-white);
}

.c-social--google svg {
    width: 58%;
    height: 58%;
}

#footer .c-social:hover,
#footer .c-social:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

#header .header-top .c-social-glyph svg {
    display: block;
    width: 20px;
    height: 20px;
}

#footer .footer-social img {
    display: block;
    width: 35px;
    height: 35px;
    object-fit: contain;
}

#footer .footer-disclaimer {
    max-width: 58rem;
    margin: 0 auto;
}

#footer .footer-disclaimer p {
    font-family: var(--font-sans);
    font-size: var(--footer-text);
    line-height: 1.65;
    color: var(--color-body);
    margin: 0;
}

#footer .footer-disclaimer p a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

#footer .footer-bottom {
    padding: 34px 20px 35px;
    background: var(--color-graphite);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--footer-text);
    line-height: 1.2;
    text-transform: none;
}

#footer .footer-bottom p {
    text-transform: none;
}

#footer .footer-bottom a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

@media (max-width: 575.98px) {
    #footer .footer-logo img {
        width: 230px;
    }

    #footer .footer-menu ul {
        gap: 0;
    }

    #footer .footer-menu li a,
    #footer .footer-contact a {
        padding: 13px 0; /* 44px rows */
    }
}

/* Google Reviews plugin feed (grw), wherever it is embedded: its default
   greys and link blue miss AA on white (#777 4.48:1, #427fed 3.82:1, time
   2.69:1), so its text reads from the surface tokens. The plugin colours
   these with !important on selectors like .wp-gr.wpac a.wp-google-name, so
   these are scoped under the plugin's own wrappers to outrank them. */
:is(.wpac, .grw-slider, .wp-gr) :is(.grw-review, .wp-google-review) :is(a.wp-google-name, .wp-google-name, .wp-google-name a) {
    color: var(--color-heading) !important;
}

:is(.wpac, .grw-slider, .wp-gr) :is(.grw-review, .wp-google-review) :is(.wp-google-text, .wp-google-feedback) {
    color: var(--color-body) !important;
}

:is(.wpac, .grw-slider, .wp-gr) :is(.grw-review, .wp-google-review) .wp-google-time {
    /* body, not muted: the review card is cream even on a white section */
    color: var(--color-body) !important;
}


/* Heroes run up under the fixed header so the translucent bar shows the
   photo. The page offset is dropped and the hero adds the header height to
   its own top padding and minimum height, so the visible hero is unchanged. */
#page .main-content:has(> header.section:first-child) {
    padding-top: 0;
}

.main-content > header.section:first-child {
    padding-top: calc(var(--header-h) + var(--hero-pad-top));
    padding-bottom: var(--hero-pad-bottom);
}

.main-content > .c-hero:first-child {
    min-height: calc(var(--hero-min-h) + var(--header-h));
}

/* --------------------------------------------------------------------------
   11. Forms (Gravity Forms, native) on any surface
   -------------------------------------------------------------------------- */
.gform_wrapper,
.c-form {
    --gf-color-primary: var(--color-astronaut-blue-900);
    --gf-ctrl-border-color: var(--color-border);
    --gf-ctrl-border-color-focus: var(--color-astronaut-blue-800);
    --gf-ctrl-bg-color: var(--color-white);
    --gf-ctrl-color: var(--color-neutral-900);
    --gf-label-color-primary: var(--color-heading);
    --gf-label-color-secondary: var(--color-body);
    --gf-color-danger: var(--color-salomie-700);
    --gf-ctrl-radius: var(--radius-control);
    font-family: var(--font-sans);
}

.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label,
.c-form label {
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: var(--text-body-sm);
    color: var(--color-heading);
}

.gform_wrapper .gfield_required,
.gform_wrapper .gfield_required_text {
    color: var(--color-salomie-700) !important;
    font-weight: var(--weight-medium);
}

.gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.gform_wrapper select,
.gform_wrapper textarea,
.c-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.c-form select,
.c-form textarea {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-neutral-900);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    padding: 0.7em 0.9em;
    transition: border-color var(--duration-color) var(--ease-standard), box-shadow var(--duration-color) var(--ease-standard);
}

.gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus,
.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus {
    outline: none;
    border-color: var(--color-astronaut-blue-800);
    box-shadow: 0 0 0 3px rgba(0, 96, 145, 0.25);
}

.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.c-form [type="submit"],
.wp-block-button__link,
.c-page-content a.gb-button {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75em;
    padding: 0.8em 1.6em !important;
    border: 0 !important;
    border-radius: var(--radius-control) !important;
    background: var(--btn-blue-bg) !important;
    color: var(--btn-blue-text) !important;
    font-family: var(--font-sans) !important;
    font-size: var(--text-button) !important;
    font-weight: var(--weight-semibold) !important;
    letter-spacing: var(--tracking-button);
    text-transform: uppercase;
    line-height: 1.1;
    cursor: pointer;
    transition: color var(--duration-color) var(--ease-fill), background-color var(--duration-color) var(--ease-fill);
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover,
.c-form [type="submit"]:hover,
.wp-block-button__link:hover,
.c-page-content a.gb-button:hover,
.c-page-content a.gb-button:focus-visible,
.gform_wrapper .gform_button:focus-visible {
    background: var(--btn-blue-hover-bg) !important;
    color: var(--btn-blue-hover-text) !important;
}

.gform_wrapper .gform_button:focus-visible,
.c-form [type="submit"]:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.gform_wrapper .gfield_description,
.gform_wrapper .gform_validation_errors {
    font-family: var(--font-sans);
    font-size: var(--text-body-sm);
    color: var(--color-muted);
}

.gform_wrapper .gfield_error .gfield_label,
.gform_wrapper .validation_message {
    color: var(--color-salomie-700);
}

/* Legacy button classes map onto the component so untouched templates
   get the right look until they are converted. */
.btn-blue,
.btn-yellow,
.btn-white-border,
.btn-white {
    --_bg: var(--btn-blue-bg);
    --_text: var(--btn-blue-text);
    --_hover-bg: var(--btn-blue-hover-bg);
    --_hover-text: var(--btn-blue-hover-text);
    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    min-height: 2.75em;
    padding: 0.8em 1.6em !important;
    border: 0 !important;
    border-radius: var(--radius-control) !important;
    background: var(--_bg) !important;
    color: var(--_text) !important;
    font-family: var(--font-sans) !important;
    font-size: var(--text-button) !important;
    font-weight: var(--weight-semibold) !important;
    line-height: 1.1;
    letter-spacing: var(--tracking-button);
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--duration-color) var(--ease-fill), background-color var(--duration-color) var(--ease-fill), border-color var(--duration-color) var(--ease-fill);
}

.btn-yellow {
    --_bg: var(--btn-yellow-bg);
    --_text: var(--btn-yellow-text);
    --_hover-bg: var(--btn-yellow-hover-bg);
    --_hover-text: var(--btn-yellow-hover-text);
}

.btn-white-border,
.btn-white {
    --_bg: transparent;
    --_text: var(--btn-blue-outline-color);
    --_hover-bg: var(--btn-blue-outline-hover-bg);
    --_hover-text: var(--btn-blue-outline-hover-text);
    box-shadow: inset 0 0 0 1px var(--btn-blue-outline-color);
}

.btn-blue::before,
.btn-yellow::before,
.btn-white-border::before,
.btn-white::before {
    content: "";
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    background: var(--_hover-bg);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: all var(--duration-fill) var(--ease-fill);
}

.btn-blue:hover,
.btn-yellow:hover,
.btn-white-border:hover,
.btn-white:hover,
.btn-blue:focus-visible,
.btn-yellow:focus-visible,
.btn-white-border:focus-visible,
.btn-white:focus-visible {
    color: var(--_hover-text) !important;
    background: var(--_bg) !important;
    border-color: transparent !important;
}

.btn-blue:hover::before,
.btn-yellow:hover::before,
.btn-white-border:hover::before,
.btn-white:hover::before,
.btn-blue:focus-visible::before,
.btn-yellow:focus-visible::before,
.btn-white-border:focus-visible::before,
.btn-white:focus-visible::before {
    width: 200%;
    height: 550%;
    opacity: 1;
}

.btn-blue img,
.btn-yellow img {
    width: 1em;
    height: 1em;
    object-fit: contain;
}

/* Media variants */
.c-media--feature {
    max-width: 56rem;
    margin-inline: auto;
}

.c-media--portrait .c-media__img,
.c-media--portrait img {
    aspect-ratio: 3 / 4;
}

.c-stamp--bottom {
    top: auto;
    left: auto;
    right: calc(-1 * var(--space-4));
    bottom: calc(-1 * var(--space-4));
}

/* Feature card: icon on top, title, blurb */
.c-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
}

.c-feature-card {
    gap: var(--space-4);
}

.c-feature-card__icon {
    --icon-size: 4rem;
    margin-bottom: var(--space-2);
}

.c-feature-card .card__title,
.c-feature-card .card__blurb {
    margin-bottom: 0;
}

/* Logo row (awards, badges) */
.c-logo-row {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-6);
}

.c-logo-row__item img {
    display: block;
    height: 2.75rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
}

/* Badge strip on one line (About "Established 2009"): badges share a height
   and shrink together rather than wrapping. */
.c-logo-row--inline {
    flex-wrap: nowrap;
    gap: clamp(10px, 1.6vw, 24px);
    margin-top: var(--space-8);
}

.c-logo-row--inline .c-logo-row__item {
    flex: 0 1 auto;
    min-width: 0;
}

.c-logo-row--inline .c-logo-row__item img {
    height: clamp(40px, 3.4vw, 56px);
    max-width: 100%;
}

/* Third-party badges keep their own backgrounds; on dark they sit on a chip */
.is-dark .c-logo-row__item {
    background: var(--color-white);
    padding: var(--space-2) var(--space-3);
}

/* The menu's "Start your renovation" item is mobile-only (legacy .mob-nav) */
#header .header-bottom li.mob-nav {
    display: none !important;
}

#header #mobile-nav li.mob-nav {
    display: block;
    width: 100%;
    margin: var(--space-6) 0 0;
    border-bottom: 0;
}

#header #mobile-nav li.mob-nav a {
    justify-content: center;
    min-height: 52px;
    padding: 0.8em 1.6em;
    background: var(--btn-yellow-bg);
    color: var(--btn-yellow-text);
    font-size: 16px;
    letter-spacing: var(--tracking-button);
    text-align: center;
}

#header #mobile-nav li.mob-nav a {
    white-space: nowrap;
}

#header #mobile-nav li.mob-nav a::after {
    content: "";
    flex: none;
    width: 1.1em;
    height: 1.1em;
    margin-left: 0.6em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--duration-color) var(--ease-standard);
}

#header #mobile-nav li.mob-nav a:hover::after,
#header #mobile-nav li.mob-nav a:focus-visible::after {
    transform: translateX(3px);
}

/* Opening the menu: the navy circle grows from the menu button first, then
   the links and contacts settle in behind it (the legacy delay was lost to
   a later "always visible" rule, so the list showed over the page before
   the circle covered it). A keyframe runs when the menu goes from hidden to
   shown; a transition would not. */
@keyframes coradi-menu-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}

.noscroll #header #mobile-nav .menu > li,
.noscroll #header #mobile-nav .mobile-top-header {
    animation: coradi-menu-in 0.32s var(--ease-standard) both;
    animation-delay: 0.26s;
}

.noscroll #header #mobile-nav .menu > li:nth-child(2) { animation-delay: 0.3s; }
.noscroll #header #mobile-nav .menu > li:nth-child(3) { animation-delay: 0.34s; }
.noscroll #header #mobile-nav .menu > li:nth-child(4) { animation-delay: 0.38s; }
.noscroll #header #mobile-nav .menu > li:nth-child(5) { animation-delay: 0.42s; }
.noscroll #header #mobile-nav .menu > li:nth-child(n+6) { animation-delay: 0.46s; }
.noscroll #header #mobile-nav .mobile-top-header { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .noscroll #header #mobile-nav .menu > li,
    .noscroll #header #mobile-nav .mobile-top-header {
        animation: none;
    }
}

#header #mobile-nav li.mob-nav a:hover,
#header #mobile-nav li.mob-nav a:focus-visible {
    background: var(--color-salomie-50);
    color: var(--color-astronaut-blue-950);
}

/* Hero with a background video under the scrim */
.c-hero--video .c-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Stacked splits inside one section (alternating rows) */
.u-stack-xl > * + * {
    margin-top: var(--space-16);
}

@media (min-width: 992px) {
    .c-split .c-split--left .section__content { order: 1; }
    .c-split .c-split--left .section__media { order: 2; }
    .c-split .c-split--right .section__content { order: 2; }
    .c-split .c-split--right .section__media { order: 1; }
}

/* Feature card with a media top (the "why choose us" CTA tile) */
.c-feature-card--cta {
    align-items: stretch;
    gap: 0;
}

.c-feature-card--cta .card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
}

/* "Why choose us" (Our Services): seven reasons plus the CTA card fill two
   rows of four on desktop instead of leaving a gap in a 3-column grid. */
@media (min-width: 1200px) {
    .c-choose-grid {
        --grid-cols: 4;
    }

    .c-choose-grid .card__title {
        font-size: calc(var(--text-card-title) * 0.8);
    }
}

/* Phones: the reasons' copy reads at 15px, not the 13px card minimum */
@media (max-width: 575.98px) {
    .c-choose-grid .card__blurb {
        font-size: 15px;
    }
}

/* CTA card: a solid yellow tile with navy text and a navy button. The legacy
   decorative graphic sat behind the title and made it unreadable. */
.c-feature-card--cta {
    --color-heading: var(--color-astronaut-blue-900);
    --btn-yellow-bg: var(--color-astronaut-blue-900);
    --btn-yellow-text: var(--color-astronaut-blue-50);
    --btn-yellow-hover-bg: var(--color-astronaut-blue-1050);
    --btn-yellow-hover-text: var(--color-white);
    --color-focus: var(--color-astronaut-blue-900);
    justify-content: flex-end;
    background: var(--color-salomie-200) !important;
    border-color: var(--color-salomie-200) !important;
}

.c-feature-card--cta > .card__media {
    display: none;
}

.c-feature-card--cta .card__body {
    padding: var(--card-pad);
}

.c-feature-card--cta .card__title {
    font-size: var(--text-card-title);
}

/* The CTA tile as a photo (Our Services): a finished project under the
   heroes' navy fade, a yellow kicker, white title, yellow button and a brass
   edge. The whole tile links through its title. */
.c-feature-card--photo {
    --color-heading: var(--color-white);
    --color-eyebrow: var(--color-salomie-200);
    --btn-yellow-bg: var(--color-salomie-200);
    --btn-yellow-text: var(--color-astronaut-blue-900);
    --btn-yellow-hover-bg: var(--color-salomie-50);
    --btn-yellow-hover-text: var(--color-astronaut-blue-950);
    --color-focus: var(--color-salomie-200);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 20rem;
    background: var(--color-astronaut-blue-1050) !important;
    border-color: var(--color-salomie-200) !important;
    box-shadow: inset 0 3px 0 var(--color-salomie-200);
}

.c-feature-card--photo .c-feature-card__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-standard);
}

.c-feature-card--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 38, 55, 0) 0%, rgba(6, 38, 55, 0.15) 30%, rgba(6, 38, 55, 0.78) 62%, rgba(6, 38, 55, 0.96) 100%);
    pointer-events: none;
}

.c-feature-card--photo .card__body {
    gap: var(--space-3);
}

.c-feature-card--photo .card__title {
    text-wrap: balance;
}

.c-feature-card--photo .c-work-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.c-feature-card--photo .c-btn {
    position: relative;
    z-index: 2;
    width: 100%;
    justify-content: center;
    padding-inline: var(--space-3);
    white-space: normal;
    text-align: center;
}

/* The tile is narrowest in the four-column grid on laptops (about 176px of
   copy width at 1280): there the button uses the small size without its
   arrow, so "Start your remodel" stays on one line at the standard height. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .c-feature-card--photo .c-btn {
        font-size: calc(var(--text-button) * 0.875);
        padding-inline: var(--space-1);
        white-space: nowrap;
    }

    .c-feature-card--photo .c-btn--arrow::after {
        display: none;
    }
}


.c-feature-card--photo:hover .c-feature-card__photo {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .c-feature-card--photo .c-feature-card__photo {
        transition: none;
    }
}

/* Title links never take the legacy link colours */
.c-work-card__link,
.c-work-card__link:hover,
.c-work-card__link:focus {
    color: inherit;
    text-decoration: none;
}

/* Embedded iframe media (16:9) */
.c-media--embed {
    aspect-ratio: 16 / 9;
}

.c-media--embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Pull quote */
.c-pullquote {
    max-width: 48rem;
    margin-inline: auto; /* not margin: the stack's top spacing must apply */
    margin-bottom: 0;
    padding: 0;
    border: 0;
    text-align: center;
}

.c-pullquote .section__subtitle {
    margin-bottom: var(--space-3);
}

.c-pullquote footer {
    margin: 0;
}

/* Split hero (copy beside a photo): hero padding and lockup, copy
   centred against the photo, no scrim (the photo is not behind the text) */
.c-hero-split.surface-image::before {
    background: none;
}

.c-hero-split .section__split {
    align-items: center;
}

.c-hero-split .c-hero__content {
    max-width: none;
}

/* Portrait tablets (768 to 991px): split heroes (One Week Shower, Client
   Feedback) and case-study heroes keep copy and photo side by side, as on
   desktop. Stacked, the photo ran the full width under a short block of
   copy and pushed the hero past the first screen (up to 118% of an iPad). */
@media (min-width: 768px) and (max-width: 991.98px) {
    .c-hero-split .section__split,
    .c-cs-hero .section__split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--space-8);
    }

    /* A half-width column: the Client Feedback headline wrapped to five lines. */
    .c-cf-hero__title {
        font-size: clamp(2rem, 4.6vw, 2.5rem);
    }

    /* Case study type and date stack in the half column: no divider at the line start. */
    .c-cs-hero .c-cs-meta li + li {
        padding-left: 0;
        border-left: 0;
    }
}

/* "Not this" list: X marks in the accent colour */
.c-x-list {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0;
    display: grid;
    gap: var(--space-2);
}

.c-x-list li {
    position: relative;
    padding-left: 1.75em;
    color: var(--color-body-strong);
    font-weight: var(--weight-medium);
}

.c-x-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.1em;
    height: 1.1em;
    background-color: var(--color-icon);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 2x2 photo grid */
.c-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.c-photo-grid .c-media__img {
    aspect-ratio: 1 / 1;
}

/* Title with a small leading badge */
.c-title-with-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.c-title-with-badge__icon img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

/* Material slide: image plus meta and swatches */
.c-material {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .c-material {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: start;
    }
}

.c-material__meta > :last-child {
    margin-bottom: 0;
}

.c-swatches {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.c-swatch {
    width: 4.5rem;
    text-align: center;
    font-size: var(--text-card-kicker);
    color: var(--color-body);
}

.c-swatch img {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border: 1px solid var(--color-surface-card-border);
    margin-bottom: var(--space-1);
}

/* Blog post cards and pagination */
.c-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.c-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

/* Links and the current-page span only: WordPress also gives the <ul>
   the page-numbers class, and it must stay a plain flex row. */
.c-pagination :is(a, span).page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    color: var(--color-link);
    font-weight: var(--weight-medium);
    text-decoration: none;
}

.c-pagination span.page-numbers.current {
    background: var(--color-heading);
    border-color: var(--color-heading);
    color: var(--color-white);
}

.c-pagination a.page-numbers:hover,
.c-pagination a.page-numbers:focus-visible {
    border-color: var(--color-link);
    color: var(--color-link-hover);
}

/* Single post */
.c-post-hero .c-hero__content {
    max-width: 56rem;
    margin-inline: auto;
}

.c-post__layout {
    max-width: 48rem;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .c-post__layout--sidebar {
        max-width: none;
        display: grid;
        grid-template-columns: 16rem minmax(0, 1fr);
        gap: var(--space-12);
        align-items: start;
    }
}

.c-post__sidebar {
    position: sticky;
    top: calc(90px + var(--space-6));
}

.c-post__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-3);
}

.c-post__body {
    max-width: 48rem;
}

.c-post__body img {
    max-width: 100%;
    height: auto;
}

/* Job listing */
.c-job {
    display: grid;
    gap: var(--space-6);
    align-items: start;
}

@media (min-width: 768px) {
    .c-job {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.c-job__perks {
    margin-top: var(--space-4);
}

.c-job__main > :last-child {
    margin-bottom: 0;
}

/* Job application: the photo and note sit at the top of the long form
   and stay in view beside it on wide screens, like the Contact sidebar */
.c-apply .section__split {
    align-items: start;
}

.c-apply .c-pullquote {
    margin-inline: 0;
    text-align: left;
}

@media (min-width: 992px) and (min-height: 760px) {
    .c-apply__aside {
        position: sticky;
        top: calc(var(--header-h) + var(--space-6));
    }
}

/* Static map image */
.c-media--map .c-media__img {
    aspect-ratio: auto;
}

/* Full-width photo strip (e.g. the team photo closing Areas We Serve):
   a wide crop instead of the photo at its natural, very tall height. */
.c-media--banner {
    margin: 0;
    border-radius: 0;
}

.c-media--banner .c-media__img {
    width: 100%;
    height: clamp(260px, 38vw, 640px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 40%;
}

/* Rating lockup (client feedback hero) */
.c-rating-lockup {
    margin: var(--space-6) 0;
}

.c-rating-lockup__score {
    font-size: calc(var(--text-stat) * 1.6);
    margin-bottom: var(--space-1);
}

.c-rating-lockup__rotator {
    display: grid;
    gap: var(--space-1);
    margin: var(--space-3) 0 0;
    transform-origin: 50% 50%;
}

.c-rating-lockup__rotator .cf-rot-sub {
    color: var(--color-body);
    font-size: var(--text-body-sm);
}

/* Review author line with an initial avatar */
.c-review-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
}

.c-review-author__name {
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
}

.c-avatar {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--color-eyebrow);
    color: var(--color-white);
    font-weight: var(--weight-semibold);
}

/* Leave-a-review cards: the whole card is the link */
.c-leave-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--color-body);
    transition: box-shadow var(--duration-color) var(--ease-standard), transform var(--duration-color) var(--ease-standard);
}

.c-leave-card:hover,
.c-leave-card:focus-visible {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.c-leave-card .card__title {
    margin: 0;
}

.c-leave-card__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-eyebrow);
    border: 1px solid var(--color-surface-card-border);
}

.c-leave-card__icon img {
    width: 1.8rem;
    height: 1.8rem;
}

.c-leave-card__icon--text {
    font-family: var(--font-kicker);
    font-weight: var(--weight-bold);
    letter-spacing: 0.05em;
}

.c-leave-card--primary {
    border-color: var(--color-eyebrow);
}

/* CTA band: copy left, actions right */
.c-cta-band__inner {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 992px) {
    .c-cta-band__inner {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }

    .c-cta-band__actions {
        justify-content: flex-end;
    }
}

.c-cta-band__phone {
    font-size: var(--text-section-subheading);
}

/* Two buttons as a matched pair: full width on phones, a right-aligned
   stack of equal widths on wide screens (Our Services) */
.c-cta-band__actions--stack {
    display: grid;
    gap: var(--space-3);
}

.c-cta-band__actions--stack .c-btn {
    justify-content: center;
    width: 100%;
    margin: 0;
}

@media (min-width: 576px) {
    .c-cta-band__actions--stack {
        width: max-content;
    }
}

@media (min-width: 992px) {
    .c-cta-band__actions--stack {
        justify-self: end;
    }
}

/* Rating badge under the band's copy (Our Services): the reviews page's
   rating card in miniature, a white card with the Google mark, serif score,
   star icons and the review count, linking to the reviews. */
.c-rating-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-6);
    padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4);
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 12px 30px rgba(1, 20, 32, 0.35);
    text-decoration: none;
    transition: transform var(--duration-color) var(--ease-standard), box-shadow var(--duration-color) var(--ease-standard);
}

.c-rating-chip:hover,
.c-rating-chip:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(1, 20, 32, 0.45);
}

.c-rating-chip__mark {
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
}

.c-rating-chip__score {
    font-family: var(--font-serif);
    font-size: clamp(26px, calc(20px + 0.9vw), 34px);
    line-height: 1;
    font-variant-numeric: lining-nums;
    color: var(--color-astronaut-blue-900);
}

.c-rating-chip__stars {
    margin: 0;
}

.c-rating-chip__stars .c-story-card__star {
    width: 1.1rem;
    height: 1.1rem;
}

.c-rating-chip__count {
    padding-left: var(--space-3);
    border-left: 1px solid var(--color-limestone-200);
    font-size: var(--text-body-sm);
    font-weight: var(--weight-medium);
    color: var(--color-astronaut-blue-900);
}

/* Archive: search bar, filter sidebar, grid */
/* As on the live site: one wide, tall search field across the content
   width (Enter searches; the submit button is for screen readers). */
.c-search {
    margin: 0 0 var(--space-12);
}

.c-search__inner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 72px;
    padding: 0 var(--space-5);
    background: var(--color-surface-card);
    border: 1px solid var(--color-border);
}

.c-search__icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--color-heading);
}

.c-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: max(18px, var(--text-body));
    color: var(--color-body-strong);
    padding: 0.6em 0;
}

.c-search__input:focus {
    outline: none;
}

.c-search__inner:focus-within {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.c-archive__layout {
    display: grid;
    /* minmax(0, …): the swipeable chip row on phones must not widen the column */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
    align-items: start;
}

/* Cards in a row are the same height, their links on one line */
.cs-archive__grid > [role="listitem"] {
    display: flex;
}

.cs-archive__grid > [role="listitem"] > .c-story-card {
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 992px) {
    .c-archive__layout {
        grid-template-columns: 16rem minmax(0, 1fr);
        gap: var(--space-12);
    }

    .c-archive__sidebar {
        position: sticky;
        top: calc(90px + var(--space-6));
    }
}

/* Filter: no box, as on the live site; a heading, plain project types and
   a "View all" button. The selected type is underlined in yellow. */
.c-archive__filter-title {
    font-size: var(--text-card-title);
    font-weight: var(--weight-bold);
    color: var(--color-heading);
    margin: 0 0 var(--space-4);
}

.c-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
}

.c-filter-list__link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--color-body-strong);
    font-size: max(17px, var(--text-body));
    font-weight: var(--weight-medium);
    text-decoration: none;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
    border-bottom: 0;
    padding: 0;
    transition: color var(--duration-color) var(--ease-standard);
}

.c-filter-list__link:hover,
.c-filter-list__link:focus-visible {
    color: var(--color-link-hover);
    text-decoration-line: underline;
}

.c-filter-list__link.is-active {
    color: var(--color-heading);
    font-weight: var(--weight-semibold);
    text-decoration-line: underline;
    text-decoration-color: var(--color-salomie-400);
}

.c-archive__view-all {
    margin: var(--space-6) 0 0;
}

/* Desktop, as on the live site: three project cards across. The archive
   uses more of the window (smaller side margins, slimmer filter column) so
   the cards keep a readable width (about 285px at 1280). */
@media (min-width: 1200px) {
    .section.c-archive {
        padding-inline: clamp(1.5rem, 2.5vw, 3rem);
    }

    .c-archive .c-archive__layout {
        grid-template-columns: 12rem minmax(0, 1fr);
        gap: var(--space-10);
    }

    .c-archive .cs-archive__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* not the two-column "centre the odd card out" rule */
    .c-archive .cs-archive__grid > :last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: stretch;
        width: auto;
    }

    .c-archive .cs-archive__grid .card__title {
        font-size: min(var(--text-card-title), 1.2rem);
    }
}

/* Editor content on the older pages (Financing, Privacy, Thank You, ...):
   blocks the editor gave a dark background (e.g. the Coradi Financing offer
   cards) keep their light text; the prose colours are for the white page. */
.c-page-content .has-background.has-blue-background-color,
.c-page-content .has-background.has-blue-background-color :is(p, li, strong, span, td, th) {
    color: var(--color-white);
}

.c-page-content .has-background.has-blue-background-color :is(h1, h2, h3, h4, h5, h6),
.c-page-content .has-background.has-blue-background-color :is(h1, h2, h3, h4, h5, h6) strong {
    color: var(--color-salomie-200);
}

/* Tablets: three offers in a row left each list about 180px wide. Two per
   row with the third centred, as the card grids do. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .c-page-content .offer_block.wp-block-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--grid-gap);
    }

    .c-page-content .offer_block > .wp-block-column:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - var(--grid-gap) / 2);
    }
}

/* Coradi Financing offer cards: the same rhythm in each card (kicker,
   title, terms), the button at the bottom as a standard yellow button. */
.c-page-content .offer_block .wp-block-column {
    display: flex;
    flex-direction: column;
}

.c-page-content .offer_block .wp-block-column > *,
.c-page-content .offer_block .gb-container > * {
    margin-top: 0;
    margin-bottom: 0;
}

.c-page-content .offer_block .wp-block-column > * + * {
    margin-top: var(--space-5);
}

.c-page-content .offer_block .wp-block-column > p:first-child,
.c-page-content .offer_block .wp-block-column > .gb-container:first-child p {
    font-family: var(--font-kicker);
    font-size: var(--text-card-kicker);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    line-height: 1.2;
}

.c-page-content .offer_block .wp-block-buttons {
    margin-top: auto;
    padding-top: var(--space-6);
}

.c-page-content .offer_block .wp-block-button,
.c-page-content .offer_block .wp-block-button__link {
    width: 100%;
}

/* (beats core's .is-style-outline > .wp-block-button__link:not(.has-background)) */
.c-page-content .offer_block .wp-block-button.wp-block-button > .wp-block-button__link:not(.c-none) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: calc(0.857em + 2px) calc(1.143em + 2px);
    border: 0;
    border-radius: var(--radius-control);
    font-family: var(--font-sans);
    font-size: var(--text-button);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-button);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

/* Editor buttons on a dark block are yellow, as buttons are on every dark
   surface (the sitewide editor-button rule makes them blue, !important). */
.c-page-content .has-blue-background-color .wp-block-button__link {
    background-color: var(--btn-yellow-bg) !important;
    color: var(--btn-yellow-text) !important;
}

.c-page-content .has-blue-background-color .wp-block-button__link:hover,
.c-page-content .has-blue-background-color .wp-block-button__link:focus-visible {
    background-color: var(--btn-yellow-hover-bg) !important;
    color: var(--btn-yellow-hover-text) !important;
}

.c-page-content .has-background.has-blue-background-color hr {
    border-color: rgb(255 255 255 / 0.35);
}

/* The legacy stylesheet rounds the search (12px) and adds 50px under it */
.c-search .c-search__inner {
    border-radius: var(--radius-control);
    margin-bottom: 0;
}

/* Phones and tablets, as on the live site: the project types become one
   swipeable row of chips (navy when selected), "View all" under them. */
@media (max-width: 991.98px) {
    .c-archive__filter .c-filter-list {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--space-2);
        overflow-x: auto;
        margin: 0 calc(var(--section-pad-x) * -1);
        padding: 2px var(--section-pad-x);
        scrollbar-width: none;
    }

    .c-archive__filter .c-filter-list::-webkit-scrollbar {
        display: none;
    }

    .c-archive__filter .c-filter-list__link {
        min-height: 44px;
        padding: 0 var(--space-4);
        font-size: 16px;
        white-space: nowrap;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-control);
        background: var(--color-white);
        color: var(--color-body-strong);
        text-decoration: none;
    }

    .c-archive__filter .c-filter-list__link.is-active {
        background: var(--color-astronaut-blue-900);
        border-color: var(--color-astronaut-blue-900);
        color: var(--color-white);
    }

    .c-archive__view-all {
        margin-top: var(--space-4);
    }
}

/* --------------------------------------------------------------------------
   12. Homepage layouts
   -------------------------------------------------------------------------- */
/* Trust bar under the hero (Figma "Trust Bar"): centred stats, yellow serif
   numerals, Roboto Medium labels, hairline dividers between items. */
.c-trust-bar.section--tight {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

/* A navy strip under a navy-tinted hero blends into it: light blue rules
   above and below set it apart (Jacob, 2026-10-14). */
.c-trust-bar.is-dark {
    border-top: 1px solid color-mix(in srgb, var(--color-astronaut-blue-300) 32%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--color-astronaut-blue-300) 32%, transparent);
}

.c-trust-bar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.c-trust-bar__list .trust-bar-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: 0;
    border: 0;
}

.c-trust-bar__list .trust-bar-stat__value {
    margin: 0;
    font-size: var(--text-stat);
    line-height: 1;
}

.c-trust-bar__list .trust-bar-stat__label {
    font-family: var(--font-sans);
    font-weight: var(--weight-medium);
    font-size: var(--text-stat-label);
    line-height: 1.2;
    letter-spacing: 0.15em;
    color: var(--color-heading);
    display: block;
}

@media (min-width: 768px) {
    .c-trust-bar__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-8) var(--space-6);
    }
}

@media (min-width: 1024px) {
    .c-trust-bar.section--tight {
        padding-top: var(--space-4);
        padding-bottom: var(--space-4);
    }

    .c-trust-bar__list {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: clamp(2rem, 3.5vw, 4rem);
    }

    .c-trust-bar__list .trust-bar-stat + .trust-bar-stat {
        padding-left: clamp(2rem, 3.5vw, 4rem);
        border-left: 1px solid var(--alpha-white-15);
    }
}

/* Service cards (Figma "Expert Home Remodeling" = plain, "Popular Right Now"
   = boxed). Plain cards sit straight on the section surface; boxed cards put
   the copy on the card panel under a 16:9 photo. */
.c-service-cards .section__header {
    margin-bottom: var(--space-12);
}

.c-service-cards__grid {
    gap: var(--space-12) var(--space-8);
}

/* Three cards stay on one row from tablet up rather than orphaning one */
.c-service-cards__grid.grid--3 {
    --grid-cols-md: 3;
}

@media (min-width: 768px) {
    .c-service-cards__grid {
        gap: var(--space-10) var(--space-8);
    }
}

.c-service-card .card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.c-service-card .card__body > * {
    margin: 0;
}

.c-service-card .card__kicker + .card__title {
    margin-top: calc(-1 * var(--space-4) + 0.375rem);
}

.c-service-card .card__title + .card__subtitle {
    margin-top: calc(-1 * var(--space-4) + var(--space-1));
}

.c-service-card__media {
    position: relative;
    overflow: hidden;
}

.c-service-card--plain .card__media {
    aspect-ratio: 469 / 345;
}

.c-service-card--plain .card__body {
    padding: var(--space-8) 0 0;
}

@media (min-width: 1280px) {
    .c-service-card--plain .card__body {
        padding-top: var(--space-6);
    }
}

.c-service-card--boxed {
    border: 0;
}

.c-service-card--boxed .card__media {
    aspect-ratio: 16 / 9;
}

.c-service-card--boxed .card__body {
    padding: var(--space-6) var(--space-4);
}

@media (min-width: 1280px) {
    .c-service-card--boxed .card__body {
        padding: var(--space-6);
    }
}

/* Seal badge in the photo's bottom-right corner, set in from the edges */
.c-stamp--inset {
    top: auto;
    left: auto;
    right: var(--space-4);
    bottom: var(--space-4);
    width: 21.2%;
    height: auto;
    aspect-ratio: 1;
}

/* Desktop: the seal reads about 25% larger on the wide service card */
@media (min-width: 992px) {
    .c-stamp--inset {
        width: 26.5%;
    }
}

/* Differentiators (Figma "The Coradi Difference"): copy + feature list on
   one side, a stack of before/after projects on the other. From 992px the
   copy column sticks below the header while the projects scroll. */
.c-difference .section__split {
    gap: var(--space-12) var(--space-16);
    align-items: start;
}

.c-difference__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.c-difference__content > * {
    margin: 0;
}

.c-difference__content .section__title + .section__subtitle {
    margin-top: calc(-1 * var(--space-6) + var(--space-2));
}

@media (min-width: 992px) {
    .c-difference__content {
        position: sticky;
        top: calc(var(--header-h) + var(--space-8));
    }
}

/* Desktop: the two actions under the feature list share one row. At 1280px
   the column is 480px and the pair needed 491px, so the second one dropped
   to its own line. A tighter gap and side padding keep them together. */
@media (min-width: 1200px) {
    .c-difference .c-btn-group.section__actions {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .c-difference .c-btn-group.section__actions .c-btn {
        padding-inline: 16px;
        white-space: nowrap;
    }
}

.c-feature-list__heading {
    margin-bottom: 0;
}

.c-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-4);
}

.c-feature-list .c-feature {
    gap: var(--space-4);
}

.c-feature__glyph {
    flex: none;
    display: block;
    width: 1rem;
    min-width: 18px;
    padding-top: 0.15em;
    color: var(--color-heading);
}

.c-feature__glyph svg,
.c-feature__glyph img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.c-feature__title {
    margin: 0 0 var(--space-1);
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: var(--text-body);
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--color-heading);
}

.c-feature__text {
    margin: 0;
    font-size: var(--text-body-sm);
    line-height: var(--leading-body);
    color: var(--color-body);
}

.c-difference__projects {
    display: grid;
    gap: var(--space-12);
}

@media (min-width: 992px) {
    .c-difference__projects {
        gap: var(--space-16);
    }
}

.c-difference .c-compare__frame {
    aspect-ratio: 16 / 9;
}

.c-project__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.c-project__meta .card__kicker {
    margin-bottom: var(--space-2);
}

.c-project__title {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: var(--text-card-subtitle);
    line-height: var(--leading-card-title);
    letter-spacing: 0;
    color: var(--color-heading);
}

.c-project__meta .card__cta {
    flex: none;
}

/* Process steps (Figma "Section — Our Proven Process") */
.c-process-steps__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "title"
        "steps"
        "cta"
        "video";
    gap: var(--space-8);
}

.c-process-steps__title { grid-area: title; text-align: center; }
.c-process-steps__cta { grid-area: cta; justify-content: center; }
.c-steps-row { grid-area: steps; }
.c-process-steps__video { grid-area: video; margin-top: var(--space-4); }

@media (min-width: 768px) {
    .c-process-steps__layout {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title cta"
            "steps steps"
            "video video";
        gap: var(--space-16) var(--space-8);
        align-items: center;
    }

    .c-process-steps__title { text-align: left; }
    .c-process-steps__cta { justify-content: flex-end; }
    .c-process-steps__video { margin-top: 0; }
}

.c-steps-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 992px) {
    .c-steps-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.c-steps-row__item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.c-steps-row__number {
    flex: none;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--color-stat);
    border-radius: 50%;
    color: var(--color-stat);
    font-family: var(--font-sans);
    font-weight: var(--weight-medium);
    font-size: calc(var(--text-stat) * 0.75);
    line-height: 1;
}

.c-steps-row__title {
    margin: 0 0 var(--space-2);
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: var(--text-card-title);
    line-height: var(--leading-card-title);
    letter-spacing: 0;
    /* !important: legacy style.css forces text-transform: none !important on h1-h6 */
    text-transform: uppercase !important;
    color: var(--color-heading);
}

.c-process-steps__video .section__header {
    margin-bottom: var(--space-8);
    max-width: none;
}

.c-process-steps__video .section__title {
    margin-bottom: var(--space-2);
}

.c-process-steps__video .c-media {
    max-width: 48rem;
    margin-inline: auto;
}

/* Herringbone tile behind a light section (the live Client Feedback hero):
   the tile at 60% size from the top left, under an even light veil. */
.u-texture-herringbone {
    background-image:
        linear-gradient(color-mix(in srgb, var(--color-surface) 62%, transparent), color-mix(in srgb, var(--color-surface) 62%, transparent)),
        url("../images/Herringbone-Tile.svg");
    background-repeat: no-repeat, repeat;
    background-size: auto, 60%;
    background-position: center, left top;
    border-bottom: 1px solid var(--color-divider);
}

/* Tile texture behind a dark section (Figma: tile photo at 50% soft-light
   over the surface, fading to the plain surface at the bottom). */
.u-texture-tile {
    position: relative;
    isolation: isolate;
}

.u-texture-tile::before,
.u-texture-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.u-texture-tile::before {
    background: url("../images/textures/tile-diagonal.jpg") center / cover no-repeat;
    mix-blend-mode: soft-light;
    opacity: 0.42;
}

.u-texture-tile::after {
    background: linear-gradient(0deg, var(--color-surface) 0%, transparent 50%);
}

.is-light.u-texture-tile::before,
.is-light.u-texture-tile::after {
    display: none;
}

/* Cards on the tile texture: the card fill is only 6% white, so the tile
   lines ran straight behind the copy. Blur what is behind the card; the
   card colours stay as they are. (Staging fix S4.) */
.u-texture-tile:not(.is-light) .card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Joined section: continues the section above on the same surface,
   separated by a divider instead of a new colour band. */
.section:has(+ .section--joined) {
    padding-bottom: var(--space-12);
}

.section--joined {
    padding-top: 0;
}

.section--joined > .section__wrapper {
    border-top: 1px solid var(--color-divider);
    padding-top: var(--space-12);
}

/* Awards row (Figma "Recent Awards & Recognitions") */
.c-logo-section .section__header {
    margin-bottom: var(--space-4);
}

.c-logo-section .section__subheading {
    margin-bottom: var(--space-4);
}

.c-logo-section .section__blurb {
    max-width: 32rem;
    margin-bottom: 0;
}

.c-logo-row--center {
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 2.6vw, 45px);
    margin-top: var(--space-4);
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.05));
}

.c-logo-row--center .c-logo-row__item {
    flex: 0 1 8rem;
    min-width: 0;
}

.c-logo-row--center .c-logo-row__item img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: 8rem;
    object-fit: contain;
}

/* About split on the homepage pattern: 3:2 photo */
.layout-about_section .section__media .c-media__img {
    aspect-ratio: 3 / 2;
}

.layout-about_section .section__split {
    gap: var(--space-10) var(--space-12);
}

/* Guarantee (Figma "The Leak-Proof Guarantee"): 16:9 video over two
   square photos, copy vertically centred beside them. */
.c-guarantee .section__split {
    gap: var(--space-10) var(--space-12);
}

.c-guarantee__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.c-guarantee__video {
    grid-column: 1 / -1;
}

.c-guarantee__video .c-media__img {
    aspect-ratio: 16 / 9;
}

.c-guarantee__media > .c-media:not(.c-guarantee__video) .c-media__img {
    aspect-ratio: 1;
}


/* Rating stars are gold everywhere (Figma), on any surface; the label beside
   them keeps the text colour. */
.c-story-card__rating svg,
.c-rating-lockup__stars svg,
.c-reviews__stars svg {
    color: var(--color-rating-star);
    fill: var(--color-rating-star);
}

/* Client Feedback hero: the rating lockup sits in the hero lockup's gap */
.c-hero__content > .c-rating-lockup {
    margin: 0;
}

/* ==========================================================================
   Case study (single-case_study.php). Brand components throughout; these
   rules cover the parts unique to a project page. Optional pieces collapse
   to a centred single column (see the template).
   ========================================================================== */
.c-cs__breadcrumbs:empty {
    display: none;
}

.c-cs .section__split--single {
    margin-inline: auto;
}

.c-cs-hero__title {
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: var(--text-h1);
    line-height: var(--leading-title);
    letter-spacing: var(--tracking-tight);
    color: var(--color-heading);
    margin: 0 0 var(--space-4);
    text-wrap: balance;
}

.c-cs-meta {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-6);
    font-size: var(--text-body-sm);
    color: var(--color-body);
}

.c-cs-meta li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-astronaut-blue-900);
}

/* As on the live site: a navy rule between project type and date */
.c-cs-meta li + li {
    padding-left: var(--space-6);
    border-left: 2px solid var(--color-astronaut-blue-900);
}

.c-cs-meta__icon {
    width: 24px;
    height: 24px;
    flex: none;
    object-fit: contain;
}

/* Walkthrough photo: its own shape, top-aligned beside the description,
   a hairline between the two columns (as on the live site) */
.c-cs-details .section__split {
    align-items: start;
}

.c-cs-media--natural img {
    aspect-ratio: auto;
    height: auto;
}

@media (min-width: 992px) {
    .c-cs-details .section__split:not(.section__split--single) > .section__content {
        padding-left: var(--space-8);
        border-left: 1px solid var(--color-divider);
    }
}

/* Photo shapes from the project's aspect-ratio fields */
.c-cs-media--4-3 img { aspect-ratio: 4 / 3; }
.c-cs-media--16-9 img { aspect-ratio: 16 / 9; }
.c-cs-media--1-1 img { aspect-ratio: 1 / 1; }
.c-cs-media--tall img { aspect-ratio: 4 / 5; }

/* Section links under the intro */
.c-cs-nav,
.c-cs__breadcrumbs {
    padding-inline: var(--section-pad-x);
}

/* A tab bar: sticks under the fixed header, a hairline along the bottom,
   the section in view marked with a yellow bar (js/brand.js). */
.c-cs-nav {
    position: sticky;
    /* js/brand.js tracks the header's real bottom edge (the top strip
       slides away once the page scrolls) */
    top: var(--cs-nav-top, var(--header-h));
    z-index: 20;
    border-top: 1px solid rgb(112 211 255 / 0.18);
    border-bottom: 1px solid rgb(112 211 255 / 0.32);
}

.c-cs-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0 var(--space-8);
    overflow-x: auto;
    scrollbar-width: none;
}

.c-cs-nav__list::-webkit-scrollbar {
    display: none;
}

.c-cs-nav__list li {
    flex: none;
}

.c-cs-nav .c-cs-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: 0 var(--space-1);
    color: rgb(255 255 255 / 0.78);
    font-size: var(--text-nav);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    white-space: nowrap;
    column-gap: 0.28em; /* "Project Walkthrough": the span is a flex item, so its trailing space is trimmed */
    box-shadow: inset 0 -4px 0 transparent;
    transition: box-shadow 0.2s ease, color 0.2s ease;
}

.c-cs-nav .c-cs-nav__list a:hover,
.c-cs-nav .c-cs-nav__list a:focus-visible {
    color: var(--color-white);
    box-shadow: inset 0 -4px 0 rgb(241 211 126 / 0.45);
}

.c-cs-nav .c-cs-nav__list a.is-active {
    color: var(--color-white);
    box-shadow: inset 0 -4px 0 var(--color-salomie-300);
}

/* Phones: short tab labels ("Walkthrough", "Gallery", "Testimonial") so
   all the tabs fit on one row */
@media (max-width: 575.98px) {
    .c-cs-nav__more {
        display: none;
    }

    .c-cs-nav__list {
        gap: 0 var(--space-6);
    }
}

/* Section jumps land below the header and the tab bar */
.c-cs [id] {
    scroll-margin-top: calc(var(--header-h) + 64px);
}

/* Description + job overview */
.c-cs-details__overview {
    margin-top: var(--space-10);
}

.c-cs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-body-sm);
}

.c-cs-table th,
.c-cs-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-divider);
}

.c-cs-table thead th {
    background: var(--color-astronaut-blue-1050);
    color: var(--color-white);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 0;
}

.c-cs-table tbody th {
    width: 42%;
    color: var(--color-body-strong);
    font-weight: var(--weight-medium);
}

.c-cs-table tbody tr:nth-child(even) {
    background: var(--color-surface-card);
}

.c-cs-gallery__output .modula {
    margin-inline: auto;
}

/* Testimonial, as on the live site: on navy, the photo (a white play
   button when there is a video) beside a white card in two halves. Left:
   quote mark, the quote in italics, Google G and stars. Right, after a navy
   rule: project badge and type, then the reviewer and "Google Verified". */
.c-cs-testimonial__item {
    display: grid;
    gap: var(--space-8);
    align-items: stretch;
}

@media (min-width: 992px) {
    .c-cs-testimonial__item:not(.c-cs-testimonial__item--text) {
        grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    }

    /* The photo stays square at the top, however long the review */
    .c-cs-testimonial__media {
        align-self: start;
    }
}

.c-cs-testimonial__media {
    position: relative;
    display: block;
    margin: 0;
    overflow: hidden;
}

.c-cs-testimonial__media .c-cs-testimonial__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

@media (max-width: 991.98px) {
    .c-cs-testimonial__media .c-cs-testimonial__photo {
        aspect-ratio: 16 / 9;
    }
}

.c-cs-testimonial__card {
    margin: 0;
    padding: var(--space-10);
    background: var(--color-white);
    color: var(--color-body-strong);
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .c-cs-testimonial__card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0;
    }

    .c-cs-testimonial__said {
        padding-right: var(--space-8);
        border-right: 1px solid var(--color-astronaut-blue-900);
    }

    .c-cs-testimonial__who {
        padding-left: var(--space-8);
    }
}

@media (max-width: 767.98px) {
    .c-cs-testimonial__card {
        padding: var(--space-6);
    }

    .c-cs-testimonial__said {
        padding-bottom: var(--space-6);
        border-bottom: 1px solid var(--color-astronaut-blue-900);
    }
}

.c-cs-testimonial__said,
.c-cs-testimonial__who {
    display: flex;
    flex-direction: column;
}

.c-cs-testimonial__mark {
    width: 40px;
    height: auto;
    margin-bottom: var(--space-6);
}

.c-cs-testimonial__quote {
    font-size: max(16px, var(--text-body));
    font-style: italic;
    line-height: var(--leading-body);
    color: var(--color-body-strong);
}

.c-cs-testimonial__quote p:last-child {
    margin-bottom: 0;
}

.c-cs-testimonial__rating {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: auto 0 0;
    padding-top: var(--space-4);
}

.c-cs-testimonial__rating > img {
    width: 38px;
    height: 38px;
}

.c-cs-testimonial__stars {
    display: inline-flex;
    gap: 0.1em;
}

.c-cs-testimonial__stars svg {
    width: 20px;
    height: 20px;
    color: var(--color-rating-star);
}

.c-cs-testimonial__badge {
    margin: 0 0 var(--space-3);
    color: var(--color-eyebrow);
}

.c-cs-testimonial__project {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.c-cs-testimonial__project .c-cs-testimonial__badge {
    margin-bottom: var(--space-2);
}

.c-cs-testimonial__type {
    margin: 0 0 var(--space-8);
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: var(--text-card-title);
    line-height: var(--leading-title);
    letter-spacing: var(--tracking-tight);
    color: var(--color-heading);
}

.c-cs-testimonial__card .c-cs-testimonial__type a,
.c-cs-testimonial__card .c-cs-testimonial__type a:visited {
    color: var(--color-astronaut-blue-900);
    text-decoration: none;
}

.c-cs-testimonial__type a:hover,
.c-cs-testimonial__type a:focus-visible {
    text-decoration: underline;
}

.c-cs-testimonial__author {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
}

.c-cs-testimonial__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: var(--space-2);
    border-radius: 50%;
    background: #9747ff; /* as on the live site */
    color: var(--color-white);
    font-weight: var(--weight-bold);
    font-size: 24px;
    line-height: 1;
}

.c-cs-testimonial__name {
    display: block;
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: var(--weight-semibold);
    font-size: max(17px, var(--text-body));
    line-height: 1.3;
    color: var(--color-heading);
}

.c-cs-testimonial__location {
    display: block;
    font-size: 14px;
    font-weight: var(--weight-medium);
    color: var(--color-body-strong);
}

.c-cs-testimonial__verified {
    width: 115px;
    height: auto;
    margin-bottom: 4px;
}

.c-cs-testimonial__item--text .c-cs-testimonial__card {
    max-width: 60rem;
}

/* Several testimonials: the slider's arrows sit on the navy */
/* Consultation without a photo: a centred block */
.c-cs-cta--centered .section__content {
    text-align: center;
}

.c-cs-cta--centered .section__blurb {
    margin-inline: auto;
}

.c-cs-cta--centered .c-btn-group {
    justify-content: center;
}

.c-cs-related .c-header-split {
    margin-bottom: var(--space-10);
}


/* ==========================================================================
   Numbered process steps (Bathroom Remodeling "process is simple"): a true
   1 → 2 → 3. Large serif numerals sit behind each step as a watermark (as on
   the live site), the step word is the kicker, then title and text. Wide
   screens: three columns divided by rules, each rule carrying an arrow
   badge. Phones: a vertical line joins the steps.
   ========================================================================== */
.c-steps-flow {
    --steps-num-size: clamp(110px, calc(70px + 8vw), 190px);
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-12);
    counter-reset: none;
}

.c-steps-flow__item {
    position: relative;
    isolation: isolate;
    padding-top: calc(var(--steps-num-size) * 0.42);
    padding-left: var(--space-8);
}

.c-steps-flow__num {
    position: absolute;
    top: 0;
    left: calc(var(--space-8) - 0.06em);
    z-index: -1;
    font-family: var(--font-serif);
    font-size: var(--steps-num-size);
    font-weight: var(--weight-bold);
    line-height: 0.8;
    font-variant-numeric: lining-nums;
    color: var(--color-heading);
    opacity: 0.09;
    pointer-events: none;
    user-select: none;
}

.c-steps-flow__kicker {
    margin: 0 0 var(--space-2);
}

.c-steps-flow__title {
    font-family: var(--font-sans);
    font-size: var(--text-card-title);
    font-weight: var(--weight-bold);
    line-height: var(--leading-title);
    color: var(--color-heading);
    margin: 0 0 var(--space-4);
    text-wrap: balance;
}

.c-steps-flow__text {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-body);
    max-width: 34rem;
}

.c-steps-flow__text > :last-child {
    margin-bottom: 0;
}

/* Phones and tablets: a line down the left joins the steps */
@media (max-width: 991.98px) {
    .c-steps-flow__item::before {
        content: "";
        position: absolute;
        top: calc(var(--steps-num-size) * 0.42 + 0.35em);
        bottom: calc(-1 * var(--space-12));
        left: 0;
        width: 2px;
        background: var(--color-divider);
    }

    .c-steps-flow__item::after {
        content: "";
        position: absolute;
        top: calc(var(--steps-num-size) * 0.42 + 0.35em);
        left: -5px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--color-salomie-200);
        box-shadow: 0 0 0 3px var(--color-surface);
    }

    .c-steps-flow__item:last-child::before {
        bottom: auto;
        height: 0;
    }
}

/* Wide screens: three columns, divided, with an arrow on each divider */
@media (min-width: 992px) {
    .c-steps-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .c-steps-flow__item {
        padding-inline: var(--space-10);
    }

    .c-steps-flow__num {
        left: calc(var(--space-10) - 0.06em);
    }

    .c-steps-flow__item + .c-steps-flow__item {
        border-left: 1px solid var(--color-divider);
    }

    .c-steps-flow__item + .c-steps-flow__item::before {
        content: "";
        position: absolute;
        top: calc(var(--steps-num-size) * 0.18);
        left: -1.1rem;
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 50%;
        background: var(--color-salomie-200) no-repeat center / 1rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23024468' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
        box-shadow: 0 0 0 6px var(--color-surface);
    }
}

/* Feature pull quote (partner testimonial): a white card with a yellow rule
   and a navy quote badge on its top edge */
.c-pullquote--feature {
    position: relative;
    max-width: 52rem;
    padding: calc(var(--space-12) + 0.5rem) var(--space-10) var(--space-10);
    border-top: 4px solid var(--color-salomie-200);
    background: var(--color-surface);
    box-shadow: 0 18px 40px -28px rgba(6, 38, 55, 0.35);
    text-align: center;
}

.c-pullquote__mark {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3.5rem;
    height: 3.5rem;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    padding-top: 0.55em;
    border-radius: 50%;
    background: var(--color-astronaut-blue-900);
    color: var(--color-salomie-200);
    font-family: var(--font-serif);
    font-size: 2.6rem;
    line-height: 1;
}

.c-pullquote__text {
    margin: 0 auto var(--space-8);
    max-width: 44rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(18px, calc(15px + 0.6vw), 24px);
    line-height: 1.6;
    color: var(--color-heading);
    font-variant-numeric: lining-nums;
    text-wrap: pretty;
}

.c-pullquote__by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    margin: 0;
}

.c-pullquote__by::before {
    content: "";
    width: 2.5rem;
    height: 2px;
    margin-bottom: var(--space-3);
    background: var(--color-salomie-300);
}

.c-pullquote__name {
    font-style: normal;
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
}

.c-pullquote__role {
    font-family: var(--font-kicker, inherit);
    font-size: var(--text-card-kicker);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    color: var(--color-eyebrow);
}

@media (max-width: 575.98px) {
    .c-pullquote--feature {
        padding-inline: var(--space-6);
    }
}


/* A closing statement under centred content (e.g. after the 3 C's):
   centred at a reading width, never a half-width column on the left. */
.c-closing-note {
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
}

/* Odd card out in a two-column grid (tablet, or .grid--2): centred at the
   same width as its neighbours instead of leaving half a row empty. */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .grid--3:not(.c-service-cards__grid) > :last-child:nth-child(odd),
    .grid--4 > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - var(--grid-gap) / 2);
    }
}

@media (min-width: 768px) {
    .grid--2 > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - var(--grid-gap) / 2);
    }
}

/* Brass trim where two light surfaces meet (white and cream), like the
   metal edge on a tile or a fixture: a thin brushed-brass line from the
   Salomie steps, as on the live site. Dark/light changes need no trim. */
:root {
    --gradient-brass: linear-gradient(90deg,
        var(--color-salomie-400) 0%,
        var(--color-salomie-200) 14%,
        var(--color-salomie-100) 24%,
        var(--color-salomie-300) 38%,
        var(--color-salomie-500) 50%,
        var(--color-salomie-200) 63%,
        var(--color-salomie-100) 72%,
        var(--color-salomie-300) 86%,
        var(--color-salomie-400) 100%);
    --trim-width: 3px;
}

:is(.surface-white) + :is(.surface-cream, .surface-cream-subtle),
:is(.surface-cream, .surface-cream-subtle) + .surface-white,
.surface-cream + .surface-cream-subtle,
.surface-cream-subtle + .surface-cream {
    border-top: var(--trim-width) solid transparent;
    border-image: var(--gradient-brass) 1;
}


/* Icon list as chips (what is and is not included): each item a pill on
   the card surface, icon in the brand icon colour. */
.c-icon-list--chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.c-icon-list--chips .c-icon-list__item {
    gap: var(--space-2);
    padding: 0.55rem 1.1rem 0.55rem 0.8rem;
    border: 1px solid var(--color-limestone-300);
    border-radius: 999px;
    background: var(--color-limestone-50);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    line-height: 1.2;
}

.c-icon-list--chips .c-icon-list__icon {
    --icon-size: 1.3rem;
    --color-icon: var(--color-salomie-600);
}

/* Small laptops and iPad landscape: a touch tighter, so two chips still
   share a row in the narrower text column (1024 to 1199px). */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .c-icon-list--chips { gap: var(--space-2); }
    .c-icon-list--chips .c-icon-list__item { padding: 0.55rem 0.8rem 0.55rem 0.6rem; }
    .c-icon-list--chips .c-icon-list__icon { --icon-size: 1.15rem; }
}

/* Badge stamp (One Week): large, tilted, on a white disc with a dashed
   brass ring and a soft shadow, overlapping the photo's corner like a
   stamp pressed onto it. */
.c-stamp:not(.c-stamp--bottom):not(.c-stamp--inset) {
    width: clamp(128px, calc(60px + 8vw), 200px);
    height: auto;
    aspect-ratio: 1;
    top: calc(-1 * clamp(28px, 3vw, 48px));
    left: calc(-1 * clamp(16px, 3vw, 48px));
    padding: 7px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 14px 30px -12px rgba(6, 38, 55, 0.55);
    transform: rotate(-10deg);
}

.c-stamp:not(.c-stamp--bottom):not(.c-stamp--inset)::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1.5px dashed var(--color-salomie-500);
    border-radius: 50%;
    pointer-events: none;
}

.c-stamp:not(.c-stamp--bottom):not(.c-stamp--inset) img {
    border-radius: 50%;
    transform: scale(1.14); /* the badge artwork carries its own white margin */
}


/* Logo columns (One Week Shower "Real Value": Schluter, Delta, ROI). Open,
   centred, the logo shown whole at a fixed height, never cropped. */
.c-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5, 1.25rem);
}

.c-logo-card__logo {
    --logo-k: clamp(64px, calc(30px + 4.8vw), 104px); /* side of a square logo */
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--logo-k) * 1.1);
    width: 100%;
}

.c-logo-card__logo img {
    display: block;
    width: calc(var(--logo-k) * var(--logo-r, 1));
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.c-logo-card .c-title-with-badge {
    justify-content: center;
}

.c-logo-card__body {
    max-width: 24rem;
}

/* Hand-drawn swash under a title line (One Week): a yellow brush stroke,
   as on the live site. */
.display .c-swash,
.c-swash {
    display: inline-block;
    padding-bottom: 0.14em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'%3E%3Cpath d='M4 17.5c34-7.6 78-12.4 128-12.9 37-.4 70 2.1 104 6.4-1.6.9-3.3 1.6-5.2 1.9-31-3.3-62-5-96-4.6-46 .5-87 4.7-124 11.9-2.6.5-4.9-1.4-6.8-2.7z' fill='%23F1D37E'/%3E%3C/svg%3E") left bottom / 100% 0.3em no-repeat;
}

/* Process as a centred flow (One Week Shower, as on the live site): each
   step's number and title centred, the copy under it, the material
   showcase below at full width, a brass line joining one step to the next. */
.c-process--flow .c-process__step,
.c-process--flow .c-process__step--flip {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    border-top: 0;
    padding: 0;
    position: relative;
}

.c-process--flow .c-process__step + .c-process__step,
.c-process--flow .c-process__note + .c-process__step {
    margin-top: var(--space-16);
}

.c-process--flow .c-process__step + .c-process__step::before,
.c-process--flow .c-process__note + .c-process__step::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--space-16) + var(--space-3));
    left: 50%;
    width: 2px;
    height: calc(var(--space-16) - var(--space-6));
    background: linear-gradient(var(--color-salomie-200), var(--color-salomie-400));
    transform: translateX(-50%);
}

.c-process--flow .c-process__step--flip > .c-process__intro {
    order: 0;
}

.c-process--flow .c-process__intro {
    max-width: 40rem;
    margin-inline: auto;
    text-align: center;
}

.c-process--flow .c-process__count {
    justify-content: center;
}

.c-process--flow .c-process__number {
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    background: var(--color-salomie-200);
    color: var(--color-astronaut-blue-900);
    font-family: var(--font-serif);
    font-weight: var(--weight-bold);
    font-size: 1.3rem;
}

.c-process--flow .c-process__label,
.c-process--flow .c-process__count .c-process__label {
    font-family: var(--font-kicker);
    font-size: var(--text-kicker);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    color: var(--color-eyebrow);
    text-align: center;
}

.c-process--flow .c-process__slider {
    max-width: 60rem;
    margin-inline: auto;
}

.c-process--flow .c-process__note {
    padding: var(--space-10) 0 0;
}

.c-process--flow .c-process__step--final {
    margin-top: var(--space-16);
}

/* Kitchen process (steps carry data-step): each step's title is a real
   heading beside its numbered ring, as on the live site. */
.c-process--flow .c-process__step[data-step] .c-process__label {
    font-family: var(--font-sans);
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    line-height: var(--leading-title);
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-heading);
    text-wrap: balance;
}

/* Copy is a narrower measure than the intro: centre it under the title */
.c-process--flow .c-process__intro .section__blurb {
    margin-inline: auto;
}

/* Wide screens: the ring sits beside the title, so the pair shifts left by
   half the ring and its gap, which centres the title itself over the copy */
@media (min-width: 768px) {
    .c-process--flow .c-process__step[data-step] .c-process__count {
        transform: translateX(calc((2.6rem + var(--space-4)) / -2));
    }
}

/* Material lockup (One Week Shower process, as on the live site): the wall
   tile large, the chosen floor tile pinned over its corner, then a yellow
   "top pick" title, a gold rule running from the photo to the spec line,
   the options heading and large swatches (the chosen one framed). */
.c-material--lockup {
    --lockup-gap: clamp(2rem, 5vw, 5.5rem);
    display: grid;
    gap: var(--space-10) var(--lockup-gap);
    align-items: center;
    padding: 0 0 var(--space-8);
}

@media (min-width: 768px) {
    .c-material--lockup {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
        align-items: start;
    }
}

.c-material__visual {
    position: relative;
    margin-right: 8%;
}

.c-material__main {
    margin: 0;
}

.c-material__main img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.c-material__preview {
    position: absolute;
    right: -10%;
    bottom: -9%;
    width: 46%;
    margin: 0;
    padding: 6px;
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.55);
}

.c-material__preview img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.c-material__pick {
    margin: var(--space-4) 0 var(--space-8);
    font-family: var(--font-sans);
    font-weight: var(--weight-bold);
    font-size: clamp(22px, calc(14px + 1.2vw), 34px);
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--color-salomie-200);
}

.c-material__spec,
.c-material__options-title {
    margin: 0 0 var(--space-5, 1.25rem);
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    font-size: clamp(15px, calc(11px + 0.55vw), 19px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-salomie-200);
}

.c-material__spec-value {
    color: var(--color-white);
}

/* The gold rule from the photo to the spec line */
@media (min-width: 768px) {
    .c-material__spec {
        position: relative;
    }

    .c-material__spec::before {
        content: "";
        position: absolute;
        top: 50%;
        right: calc(100% + 0.75rem);
        width: calc(var(--lockup-gap) + 3rem);
        height: 2px;
        background: var(--color-salomie-200);
    }
}

.c-swatches--pick {
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.c-swatches--pick li {
    list-style: none;
}

.c-swatches--pick .c-swatch {
    width: clamp(84px, calc(50px + 4vw), 112px);
    padding: 8px;
    border: 2px solid transparent;
    background: none;
    color: var(--color-white);
    font-size: clamp(13px, calc(10px + 0.4vw), 16px);
    line-height: 1.3;
    text-align: center;
    text-transform: capitalize; /* "1x3 carrara herringbone" → as on live */
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.c-swatches--pick .c-swatch img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: var(--space-3);
    border: 0;
}

.c-swatches--pick .c-swatch[aria-pressed="true"],
.c-swatches--pick .c-swatch:hover {
    border-color: var(--color-astronaut-blue-600);
}

.c-swatches--pick .c-swatch:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: 2px;
}

/* Arrows: thin yellow chevrons at the edges (live), not round buttons */
.c-process--flow .c-process__slider {
    position: relative;
    padding-inline: clamp(2.5rem, 5vw, 5rem);
    max-width: 72rem;
}

.c-process--flow .slide-arrow.slick-arrow {
    width: 3rem;
    height: 4rem;
    margin-top: -2rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.c-process--flow .slide-arrow.prev-arrow { left: calc(-1 * clamp(2.5rem, 5vw, 5rem)); }
.c-process--flow .slide-arrow.next-arrow { right: calc(-1 * clamp(2.5rem, 5vw, 5rem)); }

.c-process--flow .slide-arrow.slick-arrow::before {
    width: 2.4rem;
    height: 3.2rem;
    background-color: var(--color-salomie-200);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3l11 13L7 29'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3l11 13L7 29'/%3E%3C/svg%3E");
}

@media (max-width: 767.98px) {
    .c-material__visual {
        margin: 0 8% 8% 0;
    }

    .c-process--flow .c-process__slider {
        padding-inline: 0;
    }

    .c-swatches--pick .c-swatch {
        width: 112px;
    }

    .c-process--flow .slide-arrow.slick-arrow {
        top: 30%;
        background: rgba(6, 38, 55, 0.55);
        border-radius: 50%;
        width: 2.75rem;
        height: 2.75rem;
        margin-top: 0;
    }

    .c-process--flow .slide-arrow.prev-arrow { left: 0.25rem; }
    .c-process--flow .slide-arrow.next-arrow { right: 0.25rem; }

    .c-process--flow .slide-arrow.slick-arrow::before {
        width: 1.2rem;
        height: 1.6rem;
    }
}

/* Phones: number disc above the step title, both centred (a wrapped title
   beside the disc left it stranded on the left) */
@media (max-width: 767.98px) {
    .c-process--flow .c-process__count {
        flex-direction: column;
        gap: var(--space-3);
    }
}


/* Financing: the lender's banner is pasted in with a fixed 700x110 inline
   size, so phones squashed it to 345x110. Keep its shape. (Staging fix P7.) */
img[src*="gethearth.com"] {
    max-width: 100%;
    height: auto !important;
}

/* Legacy plain pages (financing, privacy): WordPress's default block button
   (#0B9AEB, 3.1:1 with white) on the brand blue (6.6:1). */
.page-content .wp-block-button .wp-block-button__link {
    background-color: var(--color-astronaut-blue-800);
    color: var(--color-white);
}

.page-content .wp-block-button .wp-block-button__link:hover,
.page-content .wp-block-button .wp-block-button__link:focus-visible {
    background-color: var(--color-astronaut-blue-900);
    color: var(--color-white);
}


/* Legacy plain pages: Gutenberg columns stay in one row from 782px, which
   squeezed the financing offers to 140px each on tablets. Two per row until
   desktop. */
@media (min-width: 600px) and (max-width: 1023.98px) {
    .page-content .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .page-content .wp-block-columns > .wp-block-column {
        flex-basis: calc(50% - 1rem) !important;
        flex-grow: 1;
    }
}

/* Momnt financing widget trigger: inline white on #0B9AEB (3.1:1); brand
   blue keeps the button readable (6.6:1). */
#momnt-trigger {
    background-color: var(--color-astronaut-blue-800) !important;
    color: var(--color-white) !important;
}


/* Contact page: the homepage's closing-section components (white form
   card, contact cards), with the intro and cards in a right-hand sidebar
   that stays in view on wide screens. Phones: form first. */
.c-contact .c-final-cta__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.c-contact__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .c-contact__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .c-contact .c-final-cta__info {
        position: sticky;
        top: calc(var(--header-h) + var(--space-6));
    }

    .c-contact__cards {
        gap: var(--space-6);
    }
}

/* Contact and Areas We Serve: the form comes first on narrow screens,
   the details after it */
.c-contact .c-final-cta__info {
    order: 0;
}

.c-contact__intro {
    font-size: var(--text-card-blurb);
    line-height: var(--leading-body);
    color: var(--color-body);
}

.c-contact__intro > :last-child {
    margin-bottom: 0;
}

.c-contact__after {
    margin: 0;
    font-size: var(--text-body-sm);
    color: var(--color-body);
}

/* Gravity Forms, sitewide: */
/* - the "* indicates required fields" note stays visible (the legacy skin
     hid the whole form heading); the title itself stays hidden */
.gform-theme .gform_heading,
.gform_wrapper .gform_heading {
    display: block !important;
    margin: 0 0 var(--space-4);
}

.gform_wrapper .gform_heading .gform_title,
.gform_wrapper .gform_heading .gform_description:empty {
    display: none;
}

.gform_wrapper .gform_required_legend {
    margin: 0;
    font-size: var(--text-body-sm);
    color: var(--color-body);
}

/* - empty fields keep a visible boundary: border 3.2:1 on white (was 1.8:1) */
.gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]),
.gform_wrapper select,
.gform_wrapper textarea {
    border-color: var(--color-limestone-500) !important;
}

/* - "Continue below" is an instruction, not a control */
.coradi-form-step-cue__continue {
    font-weight: var(--weight-medium) !important;
    text-transform: none !important;
    letter-spacing: 0;
    color: var(--color-body) !important;
}

/* The legacy Buildertrend rule breaks the embed out to the viewport width;
   in the contact layout the form stays in its card. */
.c-contact .buildertrend-form-embed {
    width: auto;
    max-width: 100%;
    margin: 0;
    transform: none;
}


/* Keyboard: "Skip to main content", shown on focus */
.c-skip-link {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 10000;
    padding: var(--space-3) var(--space-5);
    background: var(--color-salomie-200);
    color: var(--color-astronaut-blue-900);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.15s ease;
}

.c-skip-link:focus {
    transform: none;
    outline: var(--focus-width) solid var(--color-astronaut-blue-900);
    outline-offset: 2px;
}
.main-content:focus { outline: none; }


/* Very narrow phones (under 390px): hero titles scale with the screen so a
   title's last two words always fit on one line (at 320px, "Remodeling
   Services" needs 342px at 37.5px but the screen gives 290px). */
@media (max-width: 389.98px) {
    :root {
        --text-display: max(28px, calc((100vw - 30px) * 0.106));
    }
}

/* Numbered steps between 992 and 1199px: three columns are narrow, so the
   columns give their side padding back to the text */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .c-steps-flow__item {
        padding-inline: var(--space-6);
    }

    .c-steps-flow__num {
        left: calc(var(--space-6) - 0.06em);
    }
}


/* Client Feedback hero, as on the live page: the rating as a white card
   (Google mark, score and stars on one line, the rotating line below) and
   the photo on rounded corners with a soft blue glow that fades it into
   the herringbone. */
.c-rating-card {
    width: 100%;
    max-width: 26rem;
    padding: var(--space-5) var(--space-6);
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 12px 30px rgba(2, 68, 104, 0.1);
}

.c-rating-card__top {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.c-rating-card__mark {
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
}

.c-rating-card__score {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(30px, calc(22px + 1.2vw), 42px);
    line-height: 1;
    font-variant-numeric: lining-nums;
    color: var(--color-astronaut-blue-900);
}

.c-rating-card__stars {
    margin: 0;
}

.c-rating-card .c-rating-lockup__rotator {
    margin-top: var(--space-3);
}

.c-cf-hero .section__media .c-media {
    border-radius: 10px;
    box-shadow:
        0 28px 56px -18px rgba(2, 68, 104, 0.32),
        0 10px 22px -12px rgba(2, 68, 104, 0.2);
}

/* --------------------------------------------------------------------------
   One Week Shower: the process, trial layout
   (template-parts/components/shower-process-steps.php, pages with
   coradi_process_layout = "steps"; js/shower-process.js). Same language as
   the "Real tile for a lasting finish" split: light surface, one split row
   per step, pill chips, one big photo.
   -------------------------------------------------------------------------- */
.c-proc {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-proc__step + .c-proc__step {
    margin-top: var(--space-16);
}

/* Step 2 mirrors step 1: photo on the left. */
@media (min-width: 1024px) {
    .c-proc__step--flip .section__media { order: -1; }
}

/* Phones: the photo comes first, so it stays in view next to the chips. */
@media (max-width: 1023.98px) {
    .c-proc__step .section__media { order: -1; }
}

.c-proc__kicker {
    margin-bottom: var(--space-2);
}

.c-proc__text {
    margin: 0 0 var(--space-6);
}

.c-proc__label {
    margin: 0 0 var(--space-2);
    font-size: var(--text-body-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-body-strong);
}

.c-proc__detail {
    margin-top: var(--space-6);
}
.c-proc__detail[hidden] { display: none; }

.c-proc__spec {
    margin-bottom: var(--space-4);
}

.c-proc__note {
    margin-top: var(--space-6);
    font-size: var(--text-body-sm);
    color: var(--color-muted);
}

/* Choice chips: the "No fiberglass panels" pill, as a button. */
.c-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-chip {
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--color-limestone-300);
    border-radius: 999px;
    background: var(--color-limestone-50);
    color: var(--color-heading);
    font: inherit;
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    cursor: pointer;
    transition: border-color var(--duration-color), background-color var(--duration-color), color var(--duration-color);
}

.c-chips--small .c-chip {
    font-size: var(--text-body-sm);
    font-weight: var(--weight-medium);
}

.c-chip:hover { border-color: var(--color-astronaut-blue-800); }
.c-chip:focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }

.c-chip[aria-pressed="true"] {
    border-color: var(--color-astronaut-blue-800);
    background: var(--color-astronaut-blue-800);
    color: var(--color-white);
}

/* The photo of the chosen pick, with its floor or finish as an inset card. */
.c-proc__photo {
    position: relative;
    margin: 0;
}
.c-proc__photo[hidden] { display: none; }

.c-proc__frame {
    position: relative;
    display: block;
}

.c-proc__photo > img,
.c-proc__frame > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.c-proc__inset {
    position: absolute;
    right: var(--space-4);
    bottom: var(--space-4);
    width: 32%;
    padding: 6px;
    background: var(--color-white);
    box-shadow: 0 12px 28px -12px rgba(6, 38, 55, 0.45);
}

.c-proc__inset img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Step 3: centred text and the buttons. */
.c-proc__step--final {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}

.c-proc__step--final .section__actions {
    justify-content: center;
}

.c-proc__caption {
    margin-top: var(--space-2);
    font-size: var(--text-body-sm);
    color: var(--color-muted);
}
