/* ====================================================================
   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 */
    }
}

/* ====================================================================
   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);
}

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

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

/* ====================================================================
   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 {
    background: var(--brand-deep);
    color: #fff;
    padding: 0 8px 0 24px;
    border-radius: var(--r-full);
}

.btn-primary:hover,
.btn-primary.is-hover {
    background: color-mix(in srgb, var(--brand-deep) 82%, #ffffff 18%);
    color: #fff;
}

.btn-primary .arrow {
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background-color .35s var(--ease-soft),
        color .35s var(--ease-soft),
        transform .35s var(--ease-soft);
}

.btn-primary:hover .arrow,
.btn-primary.is-hover .arrow { transform: translateX(4px); }

/* ---------- 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:hover {
    background: var(--surface);
    color: var(--ink);
}

.btn-primary.on-photo .arrow {
    background: var(--brand-deep);
    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);
}

.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;
}

/* ---------- 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 { 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: 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: 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;
}

.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 chrome (post-title, etc.) ----- */

/* ====================================================================
   Editor-only chrome — rules that only apply inside the Gutenberg
   block editor. Loaded via add_editor_style(); front-end ignores these
   selectors since they don't exist outside the editor.
   ==================================================================== */

/* ---------- Canvas content width ----------
   Constrain the post-title wrapper and the root block list to 1200px
   so normal (non-aligned) blocks have a comfortable preview width.
   Blocks with .alignfull continue to span the full canvas — the hero
   uses align: full, so it stays edge-to-edge. */

body.block-editor-iframe__body {
    padding: 0 20px;
}

.editor-visual-editor__post-title-wrapper > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ---------- Post title ("Forside" / page title at top of editor) ----
   Shrink + separate from the block area below. The default WP styling
   inherits our h1 size (clamp 3rem → 5.25rem) which dominates the screen.
   Override with a calmer admin-style size and a hairline rule under it. */

.editor-post-title, 
.editor-post-title__input, 
.wp-block-post-title {
    font-family: var(--font-display) !important;
    font-size: 1.875rem !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    color: var(--ink) !important;
    margin: 0 auto 1.5rem !important;
    padding: 0 0 1.5rem !important;
    border-bottom: 1px solid var(--border) !important;
}

/* ----- Reveal / overrides — KEEP LAST ----- */

/* @import './components/reveal.css'; */
