/*
Theme Name: demorevolve2e6bd
Theme URI: https://revolve-co.nl
Description: Custom classic PHP theme for Revolve. Content lives in SCF fields; layout is owned by PHP templates. SEO/security/images/forms are owned by the WPMU DEV suite.
Author: BlueCT Site Factory
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: demorevolve2e6bd
*/

/* ==========================================================================
   Concept: "Carbon-out engineering" — ink/paper monochrome with hairline
   rules and a single electric signal-green accent. Bold grotesk display over
   a neutral grotesk body reads as precise, low-carbon, editorial B2B. The
   signature detail: oversized index numerals on the approach steps plus a
   short accent marker rule under every section eyebrow.
   Type pairing: Display = Space Grotesk (engineered, technical character for a
   vastgoed/CO2 consultancy); Body = Inter (clean, highly legible).
   ========================================================================== */

:root {
    /* palette */
    --ink: #0d0d0d;
    --ink-soft: #1c1c1c;
    --paper: #f5f4f0;
    --surface: #eceae3;
    --gray: #656565;
    --muted: #4a4a46;          /* body-secondary text, clears 4.5:1 on paper */
    --line: rgba(13, 13, 13, .14);
    --line-strong: rgba(13, 13, 13, .28);
    --accent: #00a86b;         /* signal green — large text / fills / icons / borders (>=3:1) */
    --accent-text: #0a6b45;    /* darkened green for small accent text (>=4.5:1 on paper) */
    --accent-ink: #062e1f;     /* dark green ink for text on accent fills */
    --cream: #f5f4f0;

    /* buttons */
    --btn-fill: var(--ink);
    --btn-label: var(--paper);

    /* type */
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --step--1: clamp(.85rem, .82rem + .15vw, .92rem);
    --step-0:  clamp(1.0625rem, 1rem + .3vw, 1.125rem);
    --step-1:  clamp(1.2rem, 1.12rem + .4vw, 1.4rem);
    --step-2:  clamp(1.45rem, 1.3rem + .7vw, 1.85rem);
    --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.45rem);
    --step-4:  clamp(2rem, 1.6rem + 2vw, 3.15rem);
    --step-5:  clamp(2.15rem, 1.6rem + 3vw, 4.25rem);

    /* spacing */
    --space-1: .5rem;
    --space-2: .75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
    --space-8: 7rem;

    --radius: 4px;
    --radius-lg: 8px;
    --container: 1280px;
    --measure: 760px;
    --header-h: 76px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 .6em;
    overflow-wrap: anywhere;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
/* keep icons inline with their text */
a > svg, button > svg, p svg, li > a svg, .chip svg, .meta svg {
    display: inline-block; vertical-align: middle;
}

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

strong { font-weight: 600; }

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

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--ink);
    color: var(--paper);
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.surface--tint { background: var(--surface); }
.surface--dark { background: var(--ink); color: var(--paper); }
.surface--dark h1, .surface--dark h2, .surface--dark h3 { color: var(--paper); }
.surface--dark p { color: #d5d5cf; }
.surface--dark .eyebrow { color: var(--accent); }

.prose--longform {
    max-width: var(--measure);
    margin-inline: auto;
    text-align: left;
}
.prose--longform > * + * { margin-top: 1.1em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step--1);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin: 0 0 1rem;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
}
.surface--dark .eyebrow::before { background: var(--accent); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.surface--dark .section-head p { color: #d5d5cf; }

.lede { font-size: var(--step-1); color: var(--muted); }
.surface--dark .lede { color: #d5d5cf; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step-0);
    line-height: 1;
    padding: .95rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--primary { background: var(--btn-fill); color: var(--btn-label); border-color: var(--btn-fill); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* on-dark ghost — composited stays dark, safe */
.surface--dark .btn--outline,
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(245,244,240,.4); }
.surface--dark .btn--outline:hover,
.btn--ghost:hover { background: rgba(245,244,240,.12); color: var(--paper); border-color: var(--paper); }

.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { background: #00c27d; color: var(--accent-ink); border-color: #00c27d; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.microcopy { font-size: var(--step--1); color: var(--muted); margin: .4rem 0 0; }
.surface--dark .microcopy { color: #bdbdb7; }

/* text link with animated underline */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--accent-text);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .3s ease;
    padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 2px; color: var(--accent-text); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(245,244,240,.9);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}
.brand { display: inline-flex; flex-direction: column; gap: .1rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { height: clamp(30px, 3.4vw, 40px); width: auto; max-width: 190px; object-fit: contain; }
.brand__wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    line-height: 1;
}
.brand__wordmark b { color: var(--accent-text); }
.brand__slogan { font-size: .72rem; letter-spacing: .04em; color: var(--muted); }

.header-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.primary-nav .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.9rem);
    margin: 0; padding: 0;
}
.primary-nav .nav-menu a:not(.btn) {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .98rem;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
    padding: .4rem 0;
    position: relative;
}
.primary-nav .nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width .25s ease;
}
.primary-nav .nav-menu a:not(.btn):hover::after,
.primary-nav .nav-menu .current-menu-item > a::after { width: 100%; }
.primary-nav .nav-menu .current-menu-item > a { color: var(--ink); }

.header-cta { display: inline-flex; }
.header-cta-mobile { display: none; }

.nav-toggle,
.drawer-close {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--line-strong);
    color: var(--ink);
    width: 46px; height: 46px;
    border-radius: 999px;
    cursor: pointer;
}
.nav-toggle svg, .drawer-close svg { width: 22px; height: 22px; }
.nav-overlay { display: none; }

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }

    .header-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(360px, 86vw);
        height: 100dvh;
        background: var(--paper);
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1001;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.25rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    body.nav-open .header-nav { transform: translateX(0); }
    body.nav-open .site-header { z-index: 1000; }

    .drawer-close {
        display: inline-flex;
        align-self: flex-end;
        margin-bottom: 1rem;
    }

    .primary-nav { width: 100%; }
    .primary-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-nav .nav-menu li { border-bottom: 1px solid var(--line); }
    .primary-nav .nav-menu a:not(.btn) {
        display: block;
        padding: 1rem .2rem;
        font-size: 1.15rem;
    }
    .primary-nav .nav-menu a:not(.btn)::after { display: none; }

    .header-cta-mobile {
        display: inline-flex;
        margin-top: 1.5rem;
        width: 100%;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(13,13,13,.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease;
        z-index: 990;
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; }
.hero--home {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
}
.hero--home .hero__media { position: absolute; inset: 0; }
.hero--home .hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero--home .hero__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(13,13,13,.92) 0%, rgba(13,13,13,.72) 45%, rgba(13,13,13,.35) 100%);
}
.hero--home .container { position: relative; }
.hero--home .hero__inner {
    min-height: min(70vh, 640px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(3.5rem, 9vw, 6.5rem);
    max-width: 54rem;
}
.hero--home h1 { color: var(--paper); margin-bottom: .5em; }
.hero--home .eyebrow { color: var(--accent); }
.hero--home .eyebrow::before { background: var(--accent); }
.hero__lead { font-size: var(--step-1); color: #e2e2dc; max-width: 42rem; margin-bottom: 1.6rem; }
.hero__cta { margin-top: .5rem; }
.hero__contact { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: 1.4rem; }
.hero__phone {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-display); font-weight: 500; color: var(--paper);
    text-decoration: none;
}
.hero__phone:hover { color: var(--accent); }
.hero__phone svg { width: 20px; height: 20px; }

.area-chip {
    display: inline-flex;
    align-items: flex-start;
    gap: .5rem;
    background: rgba(245,244,240,.1);
    border: 1px solid rgba(245,244,240,.22);
    color: #e2e2dc;
    font-size: var(--step--1);
    padding: .5rem .85rem;
    border-radius: 999px;
    max-width: 100%;
    white-space: normal;
    margin-bottom: 1.4rem;
}
.area-chip svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }

/* page hero (inner pages) */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-hero__text { max-width: 40rem; }
.page-hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.page-hero__media { position: relative; }
.page-hero__media::after {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}
@media (max-width: 760px) {
    .page-hero .container { grid-template-columns: 1fr; }
    .page-hero__media { order: -1; }
    .page-hero__media::after { inset: 10px -10px -10px 10px; }
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.1rem);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    height: 100%;
}
.surface--tint .card { background: #faf9f6; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(13,13,13,.5); }
.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(0,168,107,.12);
    color: var(--accent-text);
    margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; }

/* approach / process — signature oversized numerals */
.steps { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 1rem; border-top: 2px solid var(--ink); }
.surface--dark .step { border-top-color: rgba(245,244,240,.5); }
.step__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    line-height: 1;
    color: var(--accent);
    letter-spacing: -.03em;
    display: block;
    margin-bottom: .6rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; }
.surface--dark .step p { color: #d5d5cf; }

/* split / statement */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.split__media img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* stat strip */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(1.75rem, 4vw, 2.75rem);
}
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); letter-spacing: -.02em; }
.stat__value b { color: var(--accent-text); }
.stat__label { color: var(--muted); font-size: var(--step--1); }

/* full-width statement band */
.statement { max-width: 22ch; font-size: var(--step-4); line-height: 1.1; }
.statement__wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,5vw,4rem); align-items: end; }
@media (max-width: 800px) { .statement__wrap { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 52rem; }
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
}
.faq summary {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step-1);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-text);
    transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--accent-text); }
.faq p { margin-top: .8rem; color: var(--muted); }

/* ==========================================================================
   CTA band (every page ends here)
   ========================================================================== */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .container {
    padding-block: clamp(3.5rem, 8vw, 6rem);
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.cta-band h2 { color: var(--paper); max-width: 20ch; margin-bottom: .4rem; }
.cta-band p { color: #d5d5cf; margin: 0; max-width: 44ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.cta-band__phone {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--paper); text-decoration: none; font-family: var(--font-display); font-weight: 500;
}
.cta-band__phone:hover { color: var(--accent); }
.cta-band__phone svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
    .cta-band .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail svg { width: 22px; height: 22px; color: var(--accent-text); flex: none; margin-top: 2px; }
.contact-detail a { color: var(--ink); text-decoration: none; }
.contact-detail a:hover { color: var(--accent-text); }
.contact-detail__label { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.form-promise {
    background: rgba(0,168,107,.1);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
    font-weight: 500;
}
.form-placeholder {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

/* Forminator — inherit theme tokens (Forminator ships unstyled) */
.forminator-custom-form { --forminator-gap: 1rem; }
.forminator-custom-form .forminator-label,
.forminator-custom-form label {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .35rem;
    display: block;
}
.forminator-custom-form input[type="text"],
.forminator-custom-form input[type="email"],
.forminator-custom-form input[type="tel"],
.forminator-custom-form input[type="url"],
.forminator-custom-form input[type="number"],
.forminator-custom-form textarea,
.forminator-custom-form select {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--step-0);
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    line-height: 1.4;
}
.forminator-custom-form textarea { min-height: 140px; resize: vertical; }
.forminator-custom-form input:focus,
.forminator-custom-form textarea:focus,
.forminator-custom-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,168,107,.2);
}
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type="submit"] {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step-0);
    background: var(--btn-fill);
    color: var(--btn-label);
    border: 1.5px solid var(--btn-fill);
    border-radius: 999px;
    padding: .95rem 1.8rem;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form button[type="submit"]:hover {
    transform: translateY(-2px);
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #dcdcd7; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.site-footer a { color: #dcdcd7; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(245,244,240,.14);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--paper); letter-spacing: -.02em; }
.footer-brand__mark b { color: var(--accent); }
.footer-brand p { color: #b7b7b1; margin-top: 1rem; max-width: 32ch; }
.footer-col h4 { color: var(--paper); font-size: var(--step-0); font-family: var(--font-display); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-nap p { margin: 0 0 .4rem; }
.footer-cta { margin-top: 1.25rem; }
.site-footer .btn { color: var(--accent-ink); }        /* re-assert button label over footer a{} */
.site-footer .btn--accent { color: var(--accent-ink); }
.site-footer .btn--outline { color: var(--paper); border-color: rgba(245,244,240,.4); }
.site-footer .btn--outline:hover { color: var(--paper); }
.social-row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-row a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px;
    border: 1px solid rgba(245,244,240,.24);
}
.social-row a:hover { border-color: var(--accent); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    padding-top: 1.75rem;
    font-size: var(--step--1);
    color: #9a9a95;
}

/* ==========================================================================
   Prose (generic page + editor content)
   ========================================================================== */
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.2em; }
.entry-content a { color: var(--accent-text); }

/* ==========================================================================
   404
   ========================================================================== */
.error-page { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.error-page .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 18vw, 9rem); color: var(--accent); line-height: 1; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive grid collapse
   ========================================================================== */
@media (max-width: 900px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .steps--4 { grid-template-columns: repeat(2, 1fr); }
    .stat-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .steps--3, .steps--4 { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
    .grid, .steps { align-items: stretch; }
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
    .cta-band__actions { align-items: stretch; }
    .cta-band__actions .btn { width: 100%; }
    .hero--home .hero__inner { min-height: auto; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    .btn:hover, .card:hover { transform: none; }
}
