/* ====================================================================
   JT-Multiservice — stylesheet entry.
   Import order = cascade order. Reveal / overrides must be imported LAST.
   PostCSS resolves @import at build time (postcss-import).
   ==================================================================== */

/* ----- Base ----- */

/* ====================================================================
   Design tokens — single source of truth.
   Mirrors the original styles.css :root, with spacing + easing additions.
   Reference variables in components; don't restate values.
   ==================================================================== */

:root {
    /* ---------- Brand (sage) ---------- */
    --brand:       #7AA555; /* sage primary — decorative, accents */
    --brand-deep:  #4F7037; /* AA-safe variant for solid CTAs */
    --brand-tint:  #E8EFE0; /* soft sage surface */

    /* ---------- Secondary accent (sunny honey) ---------- */
    --accent:      #E8B84F; /* always paired with dark text */
    --accent-deep: #C99428; /* deeper variant, hover */
    --accent-tint: #FAEDC4;

    /* ---------- Neutrals (warm) ---------- */
    --ink:     #1A1B19; /* headings */
    --fg:      #2A2A28; /* body */
    --muted:   #515151; /* secondary text */
    --subtle:  #8B8B86; /* meta, captions */
    --border:  #E6E3DA;
    --surface: #F4F2EC; /* default page background, warm cream */
    --surface-2: #FBFAF6; /* paper-light section breaks */
    --bg:      #FFFFFF; /* panels, cards */

    /* ---------- Radius ---------- */
    --r-sm:   12px;
    --r-md:   16px;
    --r-lg:   24px;
    --r-xl:   32px;
    --r-full: 9999px;

    /* ---------- Type ----------
       Three named families:
         --font-system  : the OS sans stack (Tailwind-preflight equivalent).
                           Used as the page default — header USPs, nav, footer
                           text all inherit this unless explicitly overridden.
         --font-sans    : Geist — applied to design elements like .btn, .input,
                           .eyebrow, .phone-cta .pc-eyebrow.
         --font-display : Host Grotesk — h1–h5, mobile drawer items, phone
                           number.

       Aliased to WordPress's preset variables (generated from theme.json)
       so the editor canvas and the front-end resolve fonts the same way.
       Fallbacks ensure these still work if the preset CSS isn't loaded yet. */
    --font-system:  var(--wp--preset--font-family--system, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    --font-display: var(--wp--preset--font-family--display, 'Host Grotesk', ui-sans-serif, system-ui, sans-serif);
    --font-sans:    var(--wp--preset--font-family--sans, 'Geist', ui-sans-serif, system-ui, sans-serif);
    --font-mono:    var(--wp--preset--font-family--mono, 'Geist Mono', ui-monospace, Menlo, Monaco, monospace);

    /* ---------- Spacing ---------- */
    --section-pad-block: clamp(4rem, 8vh, 6rem);        /* matches py-16 md:py-24 */
    --container-max:           1440px;
    --container-pad-inline:    1.5rem;                  /* 24px */
    --container-pad-inline-lg: 2.5rem;                  /* 40px @ ≥1024 */
    --header-offset:           5.5rem;                  /* reserved for sticky header */

    /* ---------- Easing ---------- */
    --ease-soft:     cubic-bezier(0.2, 0.8, 0.2, 1);    /* the workhorse in styles.css */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.30, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-pulse:    cubic-bezier(0.4, 0, 0.6, 1);
}

@media (min-width: 1024px) {
    :root {
        --section-pad-block: clamp(4rem, 10vh, 6rem);   /* matches md:py-24 */
    }
}

/* Mobile tuning — section padding matches hero, smaller radii. */
@media (max-width: 767px) {
    :root {
        --section-pad-block: 3rem;
        --r-md: 12px;
        --r-lg: 16px;
        --r-xl: 20px;
    }
}

/* ====================================================================
   Modern reset — replaces Tailwind CDN preflight, which is gone.
   Conservative scope: only what the design relies on.
   ==================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
         text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Sticky header is part of layout; offset anchor scrolling so #ids aren't hidden behind it */
    scroll-padding-top: var(--header-offset, 5.5rem);
}

body {
    margin: 0;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
    margin: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
    margin: 0;
    padding: 0;
}

img, picture, svg, video, canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Note: do NOT set `svg { fill: currentColor }` globally. It overrides
   fill="none" on stroke-only icons (Lucide-style) and turns them into
   chunky filled shapes. SVGs that need a fill declare it themselves —
   the brand mark via .cls-1/.cls-2 in globals.css, filled icons via
   inline fill="currentColor". */

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons get a clean reset because the theme uses .btn classes for them.
   Inputs / textareas / selects are deliberately LEFT ALONE so the
   WordPress admin (Customizer, dashboards, comment forms) and Gravity
   Forms — which both ship their own field styling — render correctly.
   Any form we render ourselves should use the GF classes / .input. */

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--brand-deep);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion — kill marquee + transition for users who ask for it */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ====================================================================
   Type roles — mirrored from typography.html spec.
   No !important needed now that Tailwind preflight is gone.
   ==================================================================== */

html {
    /* Default to the OS sans stack — header USPs, nav links, footer paragraphs
       and anything else without an explicit font-family inherit this. Geist
       is only applied where design rules call for it (buttons, inputs, etc.). */
    font-family: var(--font-system);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

body {
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
}

h1 {
    font-size: clamp(3rem, 7vw, 5.25rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

h2 {
    font-size: clamp(2.25rem, 4.6vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.028em;
    line-height: 1.05;
}

h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h4 {
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

h5 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.4;
}

/* Eyebrow — small uppercase label above section titles */

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fg);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--ink);
    letter-spacing: -0.005em;
}

p.small {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.mono {
    font-family: var(--font-mono);
    font-feature-settings: "ss01";
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0;
}

a.link {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: border-color .15s ease, color .15s ease;
}

a.link:hover {
    border-color: var(--ink);
}

/* Inline prose-link defaults — scoped to content-block contexts. */
:where(.faq-item__answer) a:not(.btn),
:where(.seo-grid__col) a:not(.btn),
:where(.about-copy) a:not(.btn),
:where(.about-copy__body) a:not(.btn),
:where(.text-image__body) a:not(.btn),
:where(.text-image__list-item) a:not(.btn) {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--brand-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color .15s ease, text-decoration-color .15s ease;
}
:where(.faq-item__answer) a:not(.btn):hover,
:where(.seo-grid__col) a:not(.btn):hover,
:where(.about-copy) a:not(.btn):hover,
:where(.about-copy__body) a:not(.btn):hover,
:where(.text-image__body) a:not(.btn):hover,
:where(.text-image__list-item) a:not(.btn):hover {
    color: var(--brand-deep);
}

::-moz-selection {
    background: var(--brand);
    color: var(--ink);
}

::selection {
    background: var(--brand);
    color: var(--ink);
}

/* Mobile typography tuning — shrink h1–h4 on phones */
@media (max-width: 767px) {
    h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
    h2 { font-size: clamp(1.625rem, 6vw, 2.25rem); }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.1875rem; }
    .lead { font-size: 1.0625rem; line-height: 1.5; }
}

/* ====================================================================
   Globals — body chrome, helper classes, brand-mark color binding.
   ==================================================================== */

body {
    background: var(--bg);
}

/* Brand mark SVG color binding — both versions of the mark share these classes */

.brand-mark .cls-1 { fill: var(--brand); }

.brand-mark .cls-2 { fill: var(--ink); }

.brand-mark.on-dark .cls-2 { fill: #fff; }

.brand-mark.on-dark .cls-1 { fill: var(--brand); }

/* Form input — shared field style */

.input {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color .15s ease;
}

.input::-moz-placeholder { color: var(--subtle); }

.input::placeholder { color: var(--subtle); }

.input:focus {
    outline: none;
    border-color: var(--brand-deep);
}

/* Skip link — keyboard accessibility helper, visible only when focused */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
    background: var(--bg);
    color: var(--ink);
    clip: auto;
    clip-path: none;
    display: block;
    font-weight: 500;
    height: auto;
    left: 16px;
    line-height: 1;
    padding: 12px 18px;
    text-decoration: none;
    top: 16px;
    width: auto;
    z-index: 100000;
    border-radius: var(--r-md);
    box-shadow: 0 6px 20px -8px rgba(26, 27, 25, 0.25);
}

/* ----- Layout ----- */

/* ====================================================================
   Container — shared width-constraint wrapper.
   The class is `.container` (not `.wrap`) because `.wrap` collides with
   the WordPress admin / Customizer chrome which uses .wrap on its own
   container, causing visual breakage in the Customizer preview pane.
   ==================================================================== */

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

@media (min-width: 1024px) {
    .container {
        padding-inline: var(--container-pad-inline-lg);
    }
}

/* Section vertical padding helper — matches Tailwind py-16 md:py-24 in source */

.section-pad {
    padding-block: 4rem;
}

@media (min-width: 768px) {
    .section-pad {
        padding-block: 6rem;
    }
}

/* ----- Components (chrome + shared UI) ----- */

/* ====================================================================
   Buttons — .btn base + .btn-primary/secondary/ghost/accent variants,
   plus .on-photo modifiers used when buttons sit on dark photo bg.
   ==================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        background-color .35s var(--ease-soft),
        color .35s var(--ease-soft),
        border-color .35s var(--ease-soft),
        transform .15s ease;
}

.btn:active { transform: scale(.98); }

/* ---------- Primary — solid brand-deep with arrow pill ---------- */

.btn-primary {
    position: relative;
    isolation: isolate;
    background: var(--brand-deep);
    color: #fff;
    padding: 0 8px 0 24px;
    border-radius: var(--r-full);
}

.btn-primary:hover,
.btn-primary.is-hover {
    color: #fff;
    background-color: #80986f;
    border-color: #80986f;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    transform-origin: center;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.18);
    transition: .2s;
    z-index: -1;
}
.btn-primary:hover::before,
.btn-primary.is-hover::before {
    width: 100%;
    height: 100%;
    right: 0;
    background: #80986f;
}

.btn-primary .arrow {
    width: 32px;
    height: 32px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Secondary — outline, transparent ---------- */

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
    border-radius: var(--r-full);
}

.btn-secondary:hover,
.btn-secondary.is-hover {
    background: var(--surface-2);
    border-color: var(--border);
}

/* ---------- Ghost — text-only link with arrow ---------- */

.btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 0;
    height: auto;
    gap: 8px;
    border-radius: 0;
    border: none;
}

.btn-ghost:hover { color: var(--brand-deep); }

.btn-ghost .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .35s var(--ease-soft);
}

.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ---------- Accent — honey on dark text ---------- */

.btn-accent {
    background: var(--accent);
    color: var(--ink);
    border-radius: var(--r-full);
}

.btn-accent:hover,
.btn-accent.is-hover {
    background: var(--accent-deep);
    color: var(--ink);
}

/* ---------- On-photo variants — when buttons sit on a dark photo bg ---------- */

.btn-primary.on-photo {
    background: #fff;
    color: var(--ink);
}

.btn-primary.on-photo::before {
    background: var(--brand-deep);
}

.btn-primary.on-photo:hover,
.btn-primary.on-photo.is-hover {
    color: #fff;
    background-color: var(--brand-deep);
    border-color: var(--brand-deep);
}
.btn-primary.on-photo:hover::before,
.btn-primary.on-photo.is-hover::before {
    background: var(--brand-deep);
}

.btn-primary.on-photo .arrow {
    color: #fff;
}

.btn-secondary.on-photo {
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
    background: transparent;
}

.btn-secondary.on-photo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.48);
}

/* Full-width helper for mobile drawer / stacked CTA layouts */

.btn.btn-block,
.btn.is-full {
    width: 100%;
}

/* ====================================================================
   Phone CTA — Jonas portrait + label + pulse dot when business hours
   are open. JS toggles .is-open on [data-phone-cta] based on hour 9-17.
   The portrait URL is set as a CSS variable so the Customizer can swap
   the image without rebuilding the stylesheet.
   ==================================================================== */

.phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform .25s ease;
}

.phone-cta:hover { transform: translateX(2px); }

.phone-cta .pc-photo { order: -1; }

.phone-cta .pc-body {
    display: flex;
    flex-direction: column;
}

.phone-cta .pc-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    line-height: 1;
    margin-bottom: 6px;
}

.phone-cta .pc-number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.005em;
    line-height: 1.1;
}

/* Portrait disc — image URL injected via --pc-photo-url CSS var */

.phone-cta .pc-photo {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    background-image: var(--pc-photo-url, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--surface);
    flex-shrink: 0;
}

/* Pulse dot — animates only when JS adds .is-open (during business hours) */

.phone-cta .pc-photo::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: var(--r-full);
    background: var(--brand);
    border: 2px solid var(--bg);
    opacity: 0;
    transition: opacity .25s ease;
}

.phone-cta.is-open .pc-photo::after {
    opacity: 1;
    animation: pulse-dot 2.4s var(--ease-pulse) infinite;
}

/* On-photo (dark bg) variant — invert text + border colors */

.phone-cta.on-photo .pc-eyebrow { color: rgba(255, 255, 255, 0.75); }

.phone-cta.on-photo .pc-number { color: #fff; }

.phone-cta.on-photo .pc-photo::after { border-color: rgba(20, 22, 18, 0.65); }

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(122, 165, 85, 0.45); }
    70%  { box-shadow: 0 0 0 5px rgba(122, 165, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(122, 165, 85, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .phone-cta.is-open .pc-photo::after {
        animation: none;
    }
}

/* ====================================================================
   USP bar — top sub-row of the header. Desktop = centered items with
   hairline dividers; mobile = infinite-marquee strip.
   ==================================================================== */

.usp-bar {
    background: var(--surface);
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .3s var(--ease-soft);
}
.usp-bar > * {
    overflow: hidden;
}
.site-header.is-usp-hidden .usp-bar {
    grid-template-rows: 0fr;
}

.usp-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding-block: 0.625rem;
    font-size: 0.78rem;
    color: var(--ink);
}

.usp-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.usp-bar__item svg { color: var(--brand-deep); }

.usp-divider {
    width: 1px;
    height: 12px;
    background: var(--border);
    display: inline-block;
    margin: 0 4px;
}

/* ---------- Desktop visibility ---------- */

.usp-bar__desktop { display: none; }

@media (min-width: 768px) {
    .usp-bar__desktop { display: flex; }
}

/* ---------- Mobile marquee ---------- */

.usp-bar__mobile {
    overflow: hidden;
    padding-block: 0.625rem;
    font-size: 0.78rem;
    color: var(--ink);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

@media (min-width: 768px) {
    .usp-bar__mobile { display: none; }
}

.usp-track {
    display: flex;
    width: -moz-max-content;
    width: max-content;
    animation: usp-marquee 30s linear infinite;
}

.usp-track > * {
    padding-right: 2.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes usp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

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

/* ====================================================================
   Site header — sticky w/ backdrop-blur, USP sub-row above main row.
   Below 1024px the desktop nav + CTA cluster swap to a hamburger
   trigger that opens the .mobile-menu sibling drawer.
   ==================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(12px);
}

.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
}

/* ---------- Brand cluster ---------- */

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-header__brand .brand-mark { display: block; }

/* Hide wordmark on mobile to avoid overflow alongside CTA + hamburger */

.header-wordmark { display: none; }

@media (min-width: 1024px) {
    .header-wordmark { display: block; }
}

/* ---------- Uploaded logo (Site Identity → Logo) ----------
   When an editor uploads a custom logo, jt_multiservice_render_brand()
   emits an <img> with one of these context classes. Sizing is constrained
   so the upload fits the chrome without breaking layout. Width is auto so
   any aspect ratio works. */

.site-brand-img {
    display: block;
    width: auto;
    max-width: 100%;
}

.site-brand-img--header {
    height: 31px;
}

@media (min-width: 1024px) {
    .site-brand-img--header {
        height: 45px;
    }
}

.site-brand-img--drawer {
    height: 31px;
}

.site-brand-img--footer {
    height: 31px;
}

/* ---------- Desktop nav ---------- */

.site-nav { display: none; }

@media (min-width: 1024px) {
    .site-nav { display: flex; align-items: center; }
}

.site-nav__list,
.site-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    white-space: nowrap;
}

.site-nav__list li,
.site-nav .menu li { margin: 0; }

.site-nav__list a,
.site-nav .menu a {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    transition: color .15s ease;
}

.site-nav__list a:hover,
.site-nav .menu a:hover,
.site-nav__list .current-menu-item > a,
.site-nav .menu .current-menu-item > a {
    color: var(--brand-deep);
}

/* ---------- Desktop CTA cluster ---------- */

.site-header__ctas { display: none; }

@media (min-width: 1024px) {
    .site-header__ctas {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
    }
}

/* ---------- Mobile cluster (compact CTA + hamburger) ---------- */

.site-header__mobile-cluster {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .site-header__mobile-cluster { display: none; }
}

.site-header__hamburger {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--ink);
    flex-shrink: 0;
    transition: background-color .2s ease;
}

.site-header__hamburger:hover { background: var(--border); }

/* Compact primary button used in mobile cluster */

.btn-primary--compact {
    height: 40px;
    padding: 0 6px 0 18px;
    font-size: 0.875rem;
    gap: 8px;
}

.btn-primary--compact .arrow {
    width: 28px;
    height: 28px;
}
.btn-primary--compact::before {
    right: 6px;
    width: 28px;
    height: 28px;
}

/* ---------- Admin-only setup prompt ----------
   Shown by jt_multiservice_nav_fallback() when no menu is assigned to
   the 'primary' location. Only visible to logged-in editors. Public
   visitors see an empty nav until an admin assigns a menu. */

.nav-setup-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 0.875rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: var(--r-md);
}

.nav-setup-prompt a {
    color: var(--brand-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color .15s ease;
}

.nav-setup-prompt a:hover {
    color: var(--ink);
}

.nav-setup-prompt__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    background: var(--accent);
    flex-shrink: 0;
}

/* Drawer context — give the prompt a bit more presence */

.mobile-menu .nav-setup-prompt {
    display: flex;
    margin: 0 0 3rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
}

/* ====================================================================
   Mobile menu — slide-from-right full-screen drawer.
   Placed as a SIBLING of the sticky header (not inside it), because the
   header has backdrop-filter, which would otherwise become a containing
   block for fixed-positioned descendants. See CLAUDE.md gotcha #11.
   The visibility breakpoint MUST match nav.css's hamburger swap (1024).
   ==================================================================== */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--surface);
    transform: translateX(100%);
    transition: transform .35s var(--ease-soft);
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .mobile-menu { display: none !important; }
}

.mobile-menu__inner {
    padding: 1.25rem 1.5rem 3rem;
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    border-radius: var(--r-full);
    background: var(--bg);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Menu list ---------- */

.mobile-menu__list,
.mobile-menu .menu {
    list-style: none;
    margin: 0 0 3rem;
    padding: 0;
}

.mobile-menu__list li,
.mobile-menu .menu li { margin: 0; }

.mobile-menu__list a,
.mobile-menu .menu a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.15;
    transition: color .15s ease;
}

.mobile-menu__list a:hover,
.mobile-menu .menu a:hover,
.mobile-menu__list .current-menu-item > a,
.mobile-menu .menu .current-menu-item > a { color: var(--brand-deep); }

/* ---------- CTA stack at bottom ---------- */

.mobile-menu__ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu__ctas .btn { width: 100%; }

/* ====================================================================
   Section header — shared eyebrow + h2 + body pattern.
   Used by many blocks (services-grid, about, faq, footer-cta).
   Default layout is split-row (title left, body right on desktop).
   Modifiers: --center (stacked, centered), --on-dark (white text).
   ==================================================================== */

.section-header {
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section-header { margin-bottom: 3.5rem; }
}

.section-header__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: end;
}

@media (min-width: 768px) {
    .section-header__row {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

.section-header__eyebrow {
    /* inherits .eyebrow styles */
    display: inline-block;
    margin-bottom: 1.25rem;
}

.section-header__title {
    /* h2 inherits from typography */
    margin: 0;
}

.section-header__body {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Modifier: centered ---------- */

.section-header--center {
    text-align: center;
    margin-inline: auto;
    max-width: 720px;
}

.section-header--center .section-header__row {
    grid-template-columns: 1fr;
    justify-items: center;
}

/* ---------- Modifier: on dark backgrounds ---------- */

.section-header--on-dark .section-header__title { color: #fff; }

.section-header--on-dark .section-header__body  { color: rgba(255, 255, 255, 0.85); }

.section-header--on-dark .section-header__eyebrow { color: rgba(255, 255, 255, 0.75); }

/* ====================================================================
   Site footer — info row (brand + 3 columns) + copyright strip.
   The full-bleed footer CTA band (photo background + form) is a
   separate block placed inside page content, not in this template.
   ==================================================================== */

.site-footer {
    padding-block: 3rem;
    background: var(--surface);
}

@media (min-width: 768px) {
    .site-footer { padding-block: 4rem; }
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

/* ---------- Brand column ---------- */

.site-footer__brand-col p { margin-block: 0.25rem; }

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

/* ---------- Info columns ---------- */

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__col-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.site-footer__col-value {
    font-size: 0.95rem;
    color: var(--ink);
    font-style: normal;
    line-height: 1.4;
    transition: color .15s ease;
}

a.site-footer__col-value:hover {
    color: var(--brand-deep);
}

/* ---------- Legal / copyright strip ---------- */

.site-footer__legal {
    padding-block: 1.5rem;
    background: var(--surface);
}

.site-footer__legal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.site-footer__legal-row p { margin: 0; }

/* ----- Blocks (one file per block) ----- */

/* ====================================================================
   hero-home — cinematic homepage hero.
   Full-bleed photo background + dual gradient overlay. Two-column inner
   grid: copy left, form card right (stacks below 1024px).
   ==================================================================== */

.hero-home {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    min-height: 480px;
}

@media (min-width: 768px) {
    .hero-home { min-height: 560px; }
}
@media (min-width: 1024px) {
    .hero-home { min-height: 640px; }
}

/* ---------- Background photo ---------- */

.hero-home__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-home__bg--placeholder {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
    display: grid;
    place-items: center;
}

.hero-home__bg-msg {
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    border-radius: var(--r-md);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

/* ---------- Gradient overlay over the photo ---------- */

.hero-home__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(20, 22, 18, 0.35) 0%, rgba(20, 22, 18, 0.55) 50%, rgba(20, 22, 18, 0.85) 100%),
        linear-gradient(95deg,  rgba(20, 22, 18, 0.45) 0%, rgba(20, 22, 18, 0.15) 55%, transparent 80%);
}

/* ---------- Inner content layer ---------- */

.hero-home__inner {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
@media (min-width: 768px) {
    .hero-home__inner {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

.hero-home__grid {
    width: 100%;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-home__grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(320px, 400px);
        gap: 4rem;
    }
}

/* ---------- Left column: eyebrow + h1 + lead + CTAs ---------- */

.hero-home__copy { min-width: 0; }

.hero-home__eyebrow {
    display: inline-block;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
}

.hero-home__title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 18ch;
    margin: 0;
}
@media (max-width: 767px) {
    .hero-home__title { font-size: clamp(1.875rem, 7.5vw, 2.5rem); }
}

.hero-home__lead {
    margin-top: 1.25rem;
    font-size: 1.0625rem;
    max-width: 50ch;
    color: rgba(255, 255, 255, 0.85);
}

.hero-home__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ---------- Right column: form card ---------- */

.hero-home__form-card {
    background: var(--bg);
    border-radius: var(--r-lg);
    padding: 1.375rem;
    box-shadow:
        0 20px 60px -20px rgba(26, 27, 25, 0.25),
        0 6px 18px -10px rgba(26, 27, 25, 0.08);
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-home__form-card {
        padding: 1.625rem;
        margin-left: auto;
    }
}

.hero-home__form-title {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
}

.hero-home__form-lead {
    margin: 0 0 1rem;
}

.hero-home__form {
    margin-top: 0.5rem;
}

.hero-home__form-placeholder {
    margin-top: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: var(--r-md);
    color: var(--muted);
}

.hero-home__phone-strip {
    margin-top: 1.125rem;
    padding-top: 1.125rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================================================
   Editor-only rules — applied inside the block editor canvas via the
   .jt-block-edit--hero-home wrapper class added in edit.js.
   ==================================================================== */

/* Hero stretches naturally in the editor, no enforced min-height clipping */

.jt-block-edit--hero-home .hero-home {
    min-height: 0;
}

.jt-block-edit--hero-home .hero-home__inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* In the editor, the canvas is narrower than the real viewport — clamp the
   front-end's 4.25rem h1 ceiling down so the title doesn't wrap weirdly. */

.jt-block-edit--hero-home .hero-home__title {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem) !important;
    max-width: 24ch;
}

/* RichText placeholders visible against the dark overlay */

.jt-block-edit--hero-home .hero-home__copy [data-rich-text-placeholder]::before {
    color: rgba(255, 255, 255, 0.55) !important;
}

.jt-block-edit--hero-home .hero-home__copy [contenteditable="true"]:focus {
    outline: 2px dashed rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 4px;
}

/* CTA buttons in editor are display-only (labels edited in sidebar) */

.jt-block-edit--hero-home .hero-home__cta-row .btn {
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

/* Form-card placeholder (where GF embed will appear) */

.jt-block-edit--hero-home .hero-home__form-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    text-align: center;
    color: var(--muted);
}

/* Phone-CTA inert preview */

.jt-block-edit--hero-home .jt-phone-strip-placeholder {
    justify-content: center;
}

/* Editor-only rules (post title, canvas width, per-block placeholders)
   live in editor.build.css — loaded only in the block editor. */

/* ====================================================================
   services-grid — section header (h2 + body + optional phone CTA on
   the right) over a 4-card photo grid.
   2 cols on mobile, 4 cols ≥768px.
   ==================================================================== */

.services-section {
    padding-block: var(--section-pad-block);
    background: var(--bg);
}

.services-section__header-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--surface-2);
}

.service-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1s var(--ease-soft);
}

.service-card:hover .service-card__photo img {
    transform: scale(1.04);
}

.service-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0.25rem 0;
}

.service-card__title {
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0;
    transition: color 0.25s ease;
}

.service-card:hover .service-card__title {
    color: var(--brand-deep);
}

.service-card__arrow {
    color: var(--ink);
    opacity: 0.7;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    transition: transform 0.35s var(--ease-soft), color 0.25s ease, opacity 0.25s ease;
}

.service-card:hover .service-card__arrow {
    transform: translateX(4px);
    color: var(--brand-deep);
    opacity: 1;
}

/* ====================================================================
   about — "Om os" section. Two-column on desktop (5fr copy / 7fr values).
   Background: var(--surface). Stacks to one column below 1024px.
   ==================================================================== */

.about-section {
    padding-block: var(--section-pad-block);
    background: var(--surface);
}

.about-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 5fr 7fr;
        gap: 4rem;
    }
}

.about-copy .eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.about-copy__title {
    margin: 0 0 1.5rem;
}

.about-copy__body {
    color: var(--fg);
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 36ch;
    margin: 0 0 2rem;
}

.about-copy__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.value-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .value-list {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.value-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.value-item__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    background: var(--brand-deep);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.value-item__num svg {
    width: 18px;
    height: 18px;
}

.value-item__body {
    min-width: 0;
}
.value-item__body h4 {
    font-size: 1.0625rem;
    line-height: 1.3;
    margin: 0 0 0.375rem;
}
.value-item__body p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* ====================================================================
   gallery-marquee — full-bleed infinite-scroll image strip.
   ==================================================================== */

.gallery-marquee {
    width: 100%;
    overflow: hidden;
}

.gallery-marquee--bg-solid {
    background: var(--surface);
}
.gallery-marquee--bg-split {
    background: linear-gradient(
        to bottom,
        var(--surface) 0%,
        var(--surface) 50%,
        var(--bg)      50%,
        var(--bg)      100%
    );
}

.gallery-marquee__viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.gallery-marquee__track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: gallery-marquee-scroll var(--gallery-speed, 60s) linear infinite;
}
@media (min-width: 768px) {
    .gallery-marquee__track { gap: 1.25rem; }
}

@keyframes gallery-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

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

.gallery-marquee__item {
    flex-shrink: 0;
    width: 220px;
    height: 280px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
}
@media (min-width: 768px) {
    .gallery-marquee__item {
        width: 320px;
        height: 400px;
    }
}
.gallery-marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-marquee__empty {
    padding: 4rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ====================================================================
   testimonials — section with carousel of review cards.
   1 visible slide on mobile, 3 on tablet+.
   ==================================================================== */

.testimonials-section {
    padding-block: var(--section-pad-block);
    background: var(--surface);
}

.testimonials-section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .testimonials-section__header { margin-bottom: 3rem; }
}

.testimonials-section__title {
    margin: 0;
}

.testimonials-section__empty {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 -0.75rem;
}

.testimonial-carousel__track {
    display: flex;
    transition: transform 0.6s var(--ease-soft);
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
            user-select: none;
}
.testimonial-carousel.is-dragging .testimonial-carousel__track {
    cursor: grabbing;
    transition: none;
}
.testimonial-carousel__track img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.testimonial-carousel__slide {
    flex: 0 0 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .testimonial-carousel__slide {
        flex: 0 0 33.333%;
    }
}

.testimonial-card {
    background: var(--bg);
    border-radius: var(--r-xl);
    padding: 2rem 1.5rem;
    text-align: left;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .testimonial-card { padding: 2.25rem 1.75rem; }
}

.testimonial-card__quote-mark {
    display: block;
    width: 30px;
    height: 26px;
    margin-bottom: 0.25rem;
    background-color: var(--brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 4C5.5 4 3 7 3 11.5V20h7v-8H6.5c0-3 1.5-4.5 3-4.5V4zm10 0c-4 0-6.5 3-6.5 7.5V20h7v-8H16.5c0-3 1.5-4.5 3-4.5V4z'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 4C5.5 4 3 7 3 11.5V20h7v-8H6.5c0-3 1.5-4.5 3-4.5V4zm10 0c-4 0-6.5 3-6.5 7.5V20h7v-8H16.5c0-3 1.5-4.5 3-4.5V4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.testimonial-card__body {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    line-height: 1.45;
    color: var(--ink);
    letter-spacing: -0.005em;
    margin: 0;
    margin-top: 0.375rem;
    flex: 1;
}

.testimonial-card__stars {
    display: flex;
    gap: 3px;
    color: var(--accent);
    margin-top: 0.875rem;
}
.testimonial-card__stars svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.testimonial-card__meta {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.testimonial-card__name {
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 500;
}

.testimonial-card__place {
    font-size: 0.8rem;
    color: var(--muted);
}

.testimonial-carousel__dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s ease, width 0.25s ease;
}
.testimonial-carousel__dot.is-active {
    background: var(--brand-deep);
    width: 32px;
}
.testimonial-carousel__dot.is-hidden {
    display: none;
}

/* ====================================================================
   faq — sticky left column + native <details> accordion right column.
   ==================================================================== */

.faq-section {
    padding-block: var(--section-pad-block);
    background: var(--bg);
}

.faq-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: 6fr 6fr;
        gap: 4rem;
        align-items: start;
    }
}

.faq-left .eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.faq-left__title {
    margin: 0 0 1.5rem;
}

.faq-left__body {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 38ch;
    margin: 0 0 2rem;
}

.faq-left__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .faq-left {
        position: sticky;
        top: 140px;
    }
}

.faq-item {
    border-top: 1px solid var(--border);
    padding: 4px 0;
}
.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-item__summary,
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.375rem 0.25rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.35;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item__question {
    flex: 1;
    min-width: 0;
}

.faq-item__toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--r-full);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.faq-item[open] .faq-item__toggle {
    background: var(--brand-tint);
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 0.25rem 1.375rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 60ch;
}
.faq-item__answer p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.faq-item__answer p + p {
    margin-top: 0.75em;
}

/* ====================================================================
   seo-content — 2-column long-form prose section. Headings flattened.
   ==================================================================== */

.seo-section {
    padding-block: var(--section-pad-block);
    background: var(--surface);
}

.seo-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
}

.seo-grid__col h2,
.seo-grid__col h3,
.seo-grid__col h4,
.seo-grid__col h5,
.seo-grid__col h6 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--ink);
    margin-top: 1.5rem;
    margin-bottom: 0.375rem;
}
.seo-grid__col > h2:first-child {
    margin-top: 0;
}

.seo-grid__col p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.5rem;
    max-width: 60ch;
}
.seo-grid__col > p:first-of-type {
    font-size: 1rem;
    color: var(--fg);
}

/* ====================================================================
   footer-cta — full-bleed photo CTA band at the bottom of pages.
   ==================================================================== */

.footer-cta {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.footer-cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.footer-cta__bg--placeholder {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--ink) 100%);
    display: grid;
    place-items: center;
}
.footer-cta__bg-msg {
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    border-radius: var(--r-md);
    background: rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.footer-cta__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg,
        rgba(20, 22, 18, 0.78) 0%,
        rgba(20, 22, 18, 0.60) 45%,
        rgba(20, 22, 18, 0.40) 75%,
        rgba(20, 22, 18, 0.30) 100%
    );
}

.footer-cta__inner {
    position: relative;
    z-index: 2;
    padding-top: 2.75rem;
    padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
    .footer-cta__inner {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }
}
@media (min-width: 1024px) {
    .footer-cta__inner {
        padding-top: 6rem;
        padding-bottom: 7rem;
    }
}

.footer-cta__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 1024px) {
    .footer-cta__grid {
        grid-template-columns: 6fr 6fr;
        gap: 4rem;
    }
}

.footer-cta__copy { min-width: 0; }

.footer-cta__headline {
    color: #fff;
    margin: 0;
}

.footer-cta__lead {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-cta__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 2.5rem;
}

.footer-cta__form-card {
    background: var(--bg);
    border-radius: var(--r-xl);
    padding: 1.75rem;
    box-shadow:
        0 24px 64px -20px rgba(0, 0, 0, 0.35),
        0 8px 20px -10px rgba(0, 0, 0, 0.18);
}

.footer-cta__form-title {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
}

.footer-cta__form-lead {
    margin: 0 0 1.25rem;
}

.footer-cta__form {
    margin-top: 0.5rem;
}

.footer-cta__form-placeholder {
    margin-top: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: var(--r-md);
    color: var(--muted);
}

.footer-cta__phone-strip {
    margin-top: 1.125rem;
    padding-top: 1.125rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================================================
   Gravity Forms styling — scoped under .contact-form-card so it only
   affects GF embeds inside hero-home / footer-cta / future contact
   blocks. Targets the GF 2.5 "gravity-theme" template.
   ==================================================================== */

.contact-form-card .gform_wrapper.gravity-theme {
    font-family: var(--font-sans);
    color: var(--ink);
}

.contact-form-card .gform_wrapper.gravity-theme .gform_heading {
    display: none;
}

.contact-form-card .gform_wrapper.gravity-theme .gform_fields {
    list-style: none;
    margin: 0;
    padding: 0;
    grid-row-gap: 0.75rem;
    grid-column-gap: 0.75rem;
}

.contact-form-card .gform_wrapper.gravity-theme .gfield {
    margin: 0;
}

.contact-form-card .gform_wrapper.gravity-theme .gfield_label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.contact-form-card .gform_wrapper.gravity-theme .gfield_required {
    color: var(--brand-deep);
}

.contact-form-card .gform_wrapper.gravity-theme .gfield_description {
    margin-top: 0.375rem;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.contact-form-card .gform_wrapper.gravity-theme input[type="text"],
.contact-form-card .gform_wrapper.gravity-theme input[type="email"],
.contact-form-card .gform_wrapper.gravity-theme input[type="tel"],
.contact-form-card .gform_wrapper.gravity-theme input[type="url"],
.contact-form-card .gform_wrapper.gravity-theme input[type="number"],
.contact-form-card .gform_wrapper.gravity-theme input[type="password"],
.contact-form-card .gform_wrapper.gravity-theme input[type="date"],
.contact-form-card .gform_wrapper.gravity-theme textarea,
.contact-form-card .gform_wrapper.gravity-theme select {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    box-sizing: border-box;
}

.contact-form-card .gform_wrapper.gravity-theme input::placeholder,
.contact-form-card .gform_wrapper.gravity-theme textarea::placeholder {
    color: var(--subtle);
    opacity: 1;
}

.contact-form-card .gform_wrapper.gravity-theme input:focus,
.contact-form-card .gform_wrapper.gravity-theme textarea:focus,
.contact-form-card .gform_wrapper.gravity-theme select:focus {
    outline: none;
    border-color: var(--brand-deep);
}

.contact-form-card .gform_wrapper.gravity-theme textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Override GF 2.5's mobile-only `line-height: 2; min-height: 32px` rule on
   inputs. Match GF's :not() chain so we win on specificity without !important. */
.contact-form-card .gform_wrapper.gravity-theme input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
    line-height: 1.4;
    min-height: 0;
}

.contact-form-card .gform_wrapper.gravity-theme select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23515151' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3,5.5 7,9.5 11,5.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 44px;
}

.contact-form-card .gform_wrapper.gravity-theme .ginput_container_checkbox,
.contact-form-card .gform_wrapper.gravity-theme .ginput_container_radio {
    margin-top: 0.25rem;
}
.contact-form-card .gform_wrapper.gravity-theme .gchoice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    font-size: 0.95rem;
    color: var(--ink);
}
.contact-form-card .gform_wrapper.gravity-theme .gchoice input[type="checkbox"],
.contact-form-card .gform_wrapper.gravity-theme .gchoice input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-deep);
    flex-shrink: 0;
}

.contact-form-card .gform_wrapper.gravity-theme .gform_footer {
    margin: 1rem 0 0;
    padding: 0;
}

.contact-form-card .gform_wrapper.gravity-theme .gform_button,
.contact-form-card .gform_wrapper.gravity-theme button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    background: var(--brand-deep);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    border-radius: var(--r-full);
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.35s var(--ease-soft),
                color 0.35s var(--ease-soft),
                transform 0.15s ease;
}
.contact-form-card .gform_wrapper.gravity-theme .gform_button:hover,
.contact-form-card .gform_wrapper.gravity-theme button[type="submit"]:hover {
    background: color-mix(in srgb, var(--brand-deep) 82%, #ffffff 18%);
    color: #fff;
}
.contact-form-card .gform_wrapper.gravity-theme .gform_button:active,
.contact-form-card .gform_wrapper.gravity-theme button[type="submit"]:active {
    transform: scale(0.98);
}
.contact-form-card .gform_wrapper.gravity-theme .gform_button:disabled,
.contact-form-card .gform_wrapper.gravity-theme button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form-card .gform_wrapper.gravity-theme .gfield_error input,
.contact-form-card .gform_wrapper.gravity-theme .gfield_error textarea,
.contact-form-card .gform_wrapper.gravity-theme .gfield_error select {
    border-color: #c4453f;
}

.contact-form-card .gform_wrapper.gravity-theme .gfield_validation_message,
.contact-form-card .gform_wrapper.gravity-theme .validation_message {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #c4453f;
    background: none;
    padding: 0;
    border: 0;
}

.contact-form-card .gform_wrapper.gravity-theme .gform_validation_errors {
    margin: 0 0 1rem;
    padding: 0.625rem 0.875rem 0.625rem 2.125rem;
    background: #fdf2f1;
    border: 1px solid #f4c8c4;
    border-radius: var(--r-md);
    color: #8a302c;
}
.contact-form-card .gform_wrapper.gravity-theme .gform_validation_errors > h2 {
    font-family: var(--font-sans) !important;
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #8a302c !important;
    margin: 0 !important;
}
.contact-form-card .gform_wrapper.gravity-theme .gform_validation_errors .gform-icon,
.contact-form-card .gform_wrapper.gravity-theme .gform_validation_errors svg {
    width: 1rem !important;
    font-size: 16px !important;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.contact-form-card .gform_wrapper.gravity-theme .gform_validation_errors ol,
.contact-form-card .gform_wrapper.gravity-theme .gform_validation_errors ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.contact-form-card .gform_wrapper.gravity-theme .gform_ajax_spinner {
    margin-left: 0.5rem;
    width: 18px;
    height: 18px;
}

.contact-form-card .gform_confirmation_wrapper,
.contact-form-card .gform_confirmation_message {
    padding: 1.5rem;
    background: var(--brand-tint);
    border-radius: var(--r-md);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.contact-form-card .gform_wrapper.gravity-theme .gform_validation_container,
.contact-form-card .gform_wrapper.gravity-theme .gfield--type-honeypot {
    display: none !important;
}

/* ====================================================================
   hero-service — centered statement hero for sub-pages.
   ==================================================================== */

.hero-service {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    min-height: 380px;
}
@media (min-width: 768px) {
    .hero-service { min-height: 440px; }
}
@media (min-width: 1024px) {
    .hero-service { min-height: 500px; }
}

.hero-service__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-service__bg--placeholder {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
    display: grid;
    place-items: center;
}
.hero-service__bg-msg {
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    border-radius: var(--r-md);
    background: rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.hero-service__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(20, 22, 18, 0.55) 0%,
        rgba(20, 22, 18, 0.62) 100%
    );
}

.hero-service__inner {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.hero-service__content {
    max-width: 900px;
}

.hero-service__eyebrow {
    display: inline-block;
    color: rgba(255, 255, 255, 0.75);
}

.hero-service__title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 22ch;
    margin: 1rem auto 0;
}
@media (max-width: 767px) {
    .hero-service__title { font-size: clamp(1.875rem, 8vw, 2.5rem); }
}

.hero-service__lead {
    margin: 1.375rem auto 0;
    font-size: 1.0625rem;
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.85);
}

.hero-service__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
    justify-content: center;
}

/* ====================================================================
   text-image — two-column section, photo + text, alternating bg + side.
   ==================================================================== */

.text-image {
    padding-block: var(--section-pad-block);
}

.text-image--bg-white { background: var(--bg); }
.text-image--bg-cream { background: var(--surface); }

.text-image__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 1024px) {
    .text-image__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

@media (min-width: 1024px) {
    .text-image--image-right .text-image__photo {
        order: 2;
    }
}

.text-image__photo {
    aspect-ratio: 5 / 4;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--surface-2);
}
.text-image__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-image__copy { min-width: 0; }

.text-image__title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.05;
    margin: 0;
}

.text-image__body {
    color: var(--fg);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-top: 1.25rem;
    max-width: 50ch;
}

.text-image__list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.text-image__list-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--fg);
}

.text-image__list-item::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: var(--r-full);
    background-color: var(--brand-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%234F7037' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3,7 6,10 11,4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.text-image__cta-row {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ====================================================================
   sub-services — section header + grid of items. Two variants:
     --3col → 3 columns at ≥1024px (default)
     --4col → 4 columns at ≥1024px (stubfraesning, tagrenderens, om-os)
   ==================================================================== */

.sub-services {
    padding-block: var(--section-pad-block);
}
.sub-services--bg-white { background: var(--bg); }
.sub-services--bg-cream { background: var(--surface); }

.sub-services__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}
@media (min-width: 1024px) {
    .sub-services__head { margin-bottom: 3rem; }
}

.sub-services__title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    line-height: 1.05;
    max-width: 18ch;
    margin: 0;
}

.sub-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
    .sub-services__grid { grid-template-columns: 1fr 1fr; }
}

.sub-services__grid .sub-services__item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
@media (min-width: 640px) {
    .sub-services__grid .sub-services__item { padding: 2.25rem 1.75rem; }
    .sub-services__grid .sub-services__item:nth-child(odd) { border-right: 1px solid var(--border); }
}

.sub-services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--brand-deep);
    flex-shrink: 0;
}
.sub-services__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.sub-services__item-body-wrap { min-width: 0; }

.sub-services__item-title {
    font-size: 1.0625rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.25rem;
}
.sub-services__item-body {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 1024px) {
    .sub-services__grid--3col { grid-template-columns: repeat(3, 1fr); }
    .sub-services__grid--3col .sub-services__item { padding: 2.5rem 2rem; }
    .sub-services__grid--3col .sub-services__item:nth-child(odd) { border-right: none; }
    .sub-services__grid--3col .sub-services__item:not(:nth-child(3n)) { border-right: 1px solid var(--border); }

    .sub-services__grid--4col { grid-template-columns: repeat(4, 1fr); }
    .sub-services__grid--4col .sub-services__item { padding: 2.5rem 1.5rem; }
    .sub-services__grid--4col .sub-services__item:nth-child(odd) { border-right: none; }
    .sub-services__grid--4col .sub-services__item:not(:nth-child(4n)) { border-right: 1px solid var(--border); }
}

/* ====================================================================
   contact-info — kontakt page layout (h2 + info cards on left,
   form card on right).
   ==================================================================== */

.contact-info {
    padding-block: var(--section-pad-block);
    background: var(--bg);
}

.contact-info__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .contact-info__grid {
        grid-template-columns: 6fr 6fr;
        gap: 4rem;
        align-items: start;
    }
}

.contact-info__title {
    margin: 0 0 2rem;
}

.contact-info__items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info__label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.contact-info__value {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
    margin: 0;
    transition: color 0.15s ease;
}
a.contact-info__value:hover {
    color: var(--brand-deep);
}

.contact-info__item--lg .contact-info__value {
    font-size: 1.375rem;
}

.contact-info__note {
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

.contact-info__form-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 2rem;
}

.contact-info__form-title {
    font-size: 1.5rem;
    line-height: 1.1;
    margin: 0 0 0.5rem;
}

.contact-info__form-lead {
    margin: 0 0 1.5rem;
}

.contact-info__form-embed {
    margin-top: 0.5rem;
}

.contact-info__form-placeholder {
    margin-top: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--r-md);
    color: var(--muted);
}

/* ====================================================================
   404 — centered "not found" page.
   ==================================================================== */

.error-404 {
    background: var(--bg);
    padding-block: clamp(4rem, 12vh, 8rem);
}

.error-404__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 640px;
}

.error-404__mark {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(5rem, 18vw, 11rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--brand-tint);
    margin-bottom: 0.5rem;
    max-width: 100%;
}

.error-404__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
}

.error-404__title {
    margin: 0;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    line-height: 1.05;
}

.error-404__lead {
    margin: 1.25rem 0 0;
    color: var(--muted);
    max-width: 46ch;
}

.error-404__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .error-404__mark   { margin-bottom: 0.25rem; }
    .error-404__lead   { margin-top: 0.875rem; }
    .error-404__cta-row { margin-top: 1.5rem; }
}

/* ====================================================================
   Mobile rhythm + spacing tune — overrides at ≤767px to compensate
   for the smaller title sizes. Loaded LAST so it wins on equal
   specificity vs block-level rules.
   ==================================================================== */

@media (max-width: 767px) {

    .btn { height: 44px; }

    .section-header { margin-bottom: 1.5rem; }
    .section-header__row { gap: 1rem; }

    .hero-home__eyebrow { margin-bottom: 0.75rem; }
    .hero-home__lead    { margin-top: 0.875rem; }
    .hero-home__cta-row { margin-top: 1.25rem; }

    .hero-service__title  { margin-top: 0.75rem; }
    .hero-service__lead   { margin-top: 0.875rem; }
    .hero-service__cta-row { margin-top: 1.25rem; }

    .about-copy .eyebrow { margin-bottom: 0.75rem; }
    .about-copy__title   { margin: 0 0 0.875rem; }
    .about-copy__body    { margin: 0 0 1.25rem; }

    .faq-left .eyebrow { margin-bottom: 0.75rem; }
    .faq-left__title   { margin: 0 0 0.875rem; }
    .faq-left__body    { margin: 0 0 1.25rem; }

    .text-image__body    { margin-top: 0.875rem; }
    .text-image__list    { margin-top: 1rem; }
    .text-image__cta-row { margin-top: 1.25rem; }

    .footer-cta__lead    { margin-top: 0.875rem; }
    .footer-cta__cta-row { margin-top: 1.5rem; }

    .sub-services__head { margin-bottom: 1.5rem; }

    .testimonials-section__header { margin-bottom: 1.5rem; }

    .contact-info__title { margin: 0 0 1.25rem; }
    .contact-info__items { gap: 1.125rem; }

    .services-section__header-side { gap: 1.125rem; }

    /* Gravity Forms — tighter inputs + slimmer submit on mobile */
    .contact-form-card .gform_wrapper.gravity-theme input[type="text"],
    .contact-form-card .gform_wrapper.gravity-theme input[type="email"],
    .contact-form-card .gform_wrapper.gravity-theme input[type="tel"],
    .contact-form-card .gform_wrapper.gravity-theme input[type="url"],
    .contact-form-card .gform_wrapper.gravity-theme input[type="number"],
    .contact-form-card .gform_wrapper.gravity-theme input[type="password"],
    .contact-form-card .gform_wrapper.gravity-theme input[type="date"],
    .contact-form-card .gform_wrapper.gravity-theme textarea,
    .contact-form-card .gform_wrapper.gravity-theme select {
        padding: 11px 14px;
        font-size: 0.9375rem;
    }
    .contact-form-card .gform_wrapper.gravity-theme .gform_button,
    .contact-form-card .gform_wrapper.gravity-theme button[type="submit"] {
        height: 44px;
        font-size: 0.9375rem;
    }
}

/* ====================================================================
   Reveal-on-scroll — KEEP LAST. CSS transition `shorthand` would
   otherwise be clobbered by component-level transitions on equal
   specificity ties (CLAUDE.md gotcha #1).
   ==================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.85s var(--ease-out-expo),
        transform 0.85s var(--ease-out-expo);
    transition-delay: calc(
        var(--reveal-base-delay, 0ms) +
        var(--reveal-i, 0) * var(--reveal-step, 90ms)
    );
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
