/*
Theme Name: demonewhorizon1008d
Theme URI: https://newhorizon.nl
Author: BlueCT Site Factory
Description: Maatwerk klassiek PHP-thema voor New Horizon, kennispartner in circulair bouwen te Nieuwkuijk. Layout in PHP, content in SCF.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: demonewhorizon1008d
*/

/*
  Concept: "Circulaire oogst" — verweerd zandpapier als drager, diep dennengroen
  als constructieve inkt, een frisse oogstgroene markering als signatuurdetail.
  Robuuste architecturale display-grotesk (Bricolage Grotesque) tegen een heldere
  humanist body (Hanken Grotesk): degelijk en menselijk, passend bij een
  kennispartner die grondstoffen een tweede leven geeft. Signatuur: genummerde
  proces-cijfers + een korte oogstgroene accentstreep onder elke sectiekop.
*/

/* ============================================================= TOKENS */
:root {
  /* palette */
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --surface: #eae3d3;
  --ink: #17251d;
  --ink-soft: #38473d;
  --muted: #5c6a60;
  --line: #d8cfbd;
  --brand: #2f6b4f;        /* deep pine — fills + icons (white text passes AA) */
  --brand-dark: #234f3a;   /* hover / strong */
  --accent: #46b450;       /* bright harvest green — decorative only (fills/markers) */
  --accent-text: #2f6b4f;  /* small accent text on paper — clears 4.5:1 */
  --cream: #f7f4ec;

  /* buttons */
  --btn-fill: #2f6b4f;
  --btn-fill-hover: #234f3a;
  --btn-label: #ffffff;

  /* type */
  --font-display: "Bricolage Grotesque", "Georgia", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.86rem, 0.82rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-4:  clamp(2rem, 1.6rem + 1.9vw, 3.25rem);
  --step-5:  clamp(2.15rem, 1.6rem + 2.9vw, 4.25rem);

  /* space */
  --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: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1280px;
  --measure: 760px;
  --header-h: 84px;
  --shadow-sm: 0 1px 2px rgba(23,37,29,.06), 0 6px 18px rgba(23,37,29,.06);
  --shadow-md: 0 10px 40px rgba(23,37,29,.12);
}

/* ============================================================= RESET */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
svg { display: block; }
/* keep inline icons on the same line as their text */
a > svg, button > svg, p svg, li > a svg, .btn > svg, label svg {
  display: inline-block; vertical-align: middle;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1rem; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { font-weight: 700; }
::selection { background: var(--accent); color: #06110b; }

/* ============================================================= HELPERS */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2rem); }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tint { background: var(--paper-2); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #d9e2db; }
.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: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--accent); }
.section-head { max-width: 42rem; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }

/* prose measure — long-form only */
.prose--longform { max-width: var(--measure); margin-inline: auto; text-align: left; }
.prose--longform p, .prose p { overflow-wrap: anywhere; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose a { color: var(--brand-dark); }

/* ============================================================= BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  line-height: 1.1; transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--btn-fill); color: var(--btn-label); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--btn-fill-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.microcopy { font-size: var(--step--1); color: var(--muted); margin: .8rem 0 0; }
.section--dark .microcopy { color: #b8c5bc; }

.textlink {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600;
  color: var(--brand-dark); text-decoration: none;
}
.textlink svg { width: 18px; height: 18px; transition: transform .18s ease; }
.textlink:hover svg { transform: translateX(3px); }
.textlink::after { content: none; }

/* ============================================================= HEADER */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,244,236,.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: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; flex-direction: column; gap: .1rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand__logo { height: clamp(34px, 4vw, 48px); width: auto; max-width: 220px; object-fit: contain; }
.brand__wordmark { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -.02em; }
.brand__slogan { font-size: var(--step--1); color: var(--muted); font-weight: 500; }

.header-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.primary-nav { display: flex; }
.nav-menu {
  list-style: none; display: flex; align-items: center; gap: clamp(.4rem, 1.6vw, 1.4rem);
  margin: 0; padding: 0;
}
.nav-menu a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--step-0);
  white-space: nowrap; padding: .5rem .2rem; display: inline-flex; align-items: center; gap: .3rem;
  position: relative;
}
.nav-menu > li > a::after {
  content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .1rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.nav-menu .menu-item-has-children > a > svg { width: 16px; height: 16px; transition: transform .2s ease; }

/* dropdown (≤3 items) */
.has-flyout { position: relative; }
.submenu-wrap {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  padding-top: .6rem; display: none; z-index: 60;
}
.sub-menu {
  list-style: none; margin: 0; padding: .5rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.sub-menu li { margin: 0; }
.sub-menu a { display: block; padding: .65rem .8rem; border-radius: 8px; white-space: nowrap; }
.sub-menu a:hover { background: var(--paper-2); color: var(--brand-dark); }
@media (min-width: 981px) {
  .has-flyout:hover > .submenu-wrap,
  .has-flyout:focus-within > .submenu-wrap { display: block; }
  .has-flyout:hover > a > svg { transform: rotate(180deg); }
}

.submenu-toggle { display: none; }
.nav-toggle, .drawer-close { display: none; }

.header-cta { flex: 0 0 auto; }

/* mobile drawer */
@media (max-width: 980px) {
  .header-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
    height: 100dvh; background: var(--paper); z-index: 1001;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--header-h) + .5rem) 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto; overscroll-behavior: contain; gap: 0;
    box-shadow: var(--shadow-md);
  }
  body.nav-open .header-nav { transform: translateX(0); }
  body.nav-open .site-header { z-index: 1000; }
  .primary-nav { width: 100%; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu .nav-menu a, .primary-nav li > a { font-size: var(--step-1); }
  .nav-menu > li > a { padding: 1rem 0; }
  .nav-menu > li > a::after { content: none; }
  .has-flyout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .has-flyout > a { flex: 1; }
  .submenu-wrap {
    position: static; display: none; padding: 0 0 .5rem; width: 100%; min-width: 0;
  }
  .has-flyout.is-open > .submenu-wrap { display: block; }
  .sub-menu { box-shadow: none; border: 0; background: transparent; padding: 0 0 0 .5rem; }
  .sub-menu a { padding: .7rem 0; }
  .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; color: var(--ink);
    flex: 0 0 auto;
  }
  .submenu-toggle svg { width: 22px; height: 22px; transition: transform .2s ease; }
  .has-flyout.is-open .submenu-toggle svg { transform: rotate(180deg); }
  .header-cta { margin-top: 1.2rem; }
  .header-cta .btn { width: 100%; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer; color: var(--ink); z-index: 1002;
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-toggle .icon-x { display: none; }
  body.nav-open .nav-toggle .icon-x { display: block; }
  body.nav-open .nav-toggle .icon-menu { display: none; }
  .drawer-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 1rem; right: 1.25rem; width: 44px; height: 44px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink);
  }
  .drawer-close svg { width: 24px; height: 24px; }
}
.nav-overlay {
  position: fixed; inset: 0; background: rgba(23,37,29,.45);
  opacity: 0; visibility: hidden; transition: opacity .28s ease; z-index: 990;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

/* ============================================================= HERO */
.hero { position: relative; overflow: hidden; }
.hero--home { background: var(--ink); color: var(--cream); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,26,20,.92) 0%, rgba(15,26,20,.72) 45%, rgba(15,26,20,.35) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem); max-width: 46rem;
}
.hero__inner .eyebrow { color: #a7e0b6; }
.hero__inner .eyebrow::before { background: var(--accent); }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero__intro { font-size: var(--step-1); color: #e2eae3; max-width: 40rem; }
.hero__cta { margin-top: 1.8rem; }
.area-chip {
  display: inline-flex; align-items: flex-start; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #eaf3ec; padding: .5rem .9rem; border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 600; margin-bottom: 1.4rem; max-width: 100%;
}
.area-chip svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--accent); }

/* inner-page hero (lighter) */
.hero--page { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero--page .hero__inner { min-height: auto; padding-block: clamp(3rem, 7vw, 5rem); }
.hero--page h1 { color: var(--ink); }
.hero--page .eyebrow { color: var(--accent-text); }
.hero--page .hero__intro { color: var(--ink-soft); }

@media (max-width: 599px) {
  .hero__inner { min-height: 60vh; text-align: left; align-items: flex-start; }
  .hero__cta .btn { width: 100%; }
  .area-chip { width: 100%; }
}

/* ============================================================= GRIDS / CARDS */
.grid { display: grid; gap: var(--space-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; align-items: stretch; }
}

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-5);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c7bda8; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); color: var(--brand); margin-bottom: .4rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .2rem; font-size: var(--step-1); }
.card p { color: var(--ink-soft); margin-bottom: .4rem; }
.card .textlink { margin-top: auto; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }

/* split layout */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-sm); }
.frame { position: relative; }
.frame::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--accent); border-radius: var(--radius-lg); z-index: 0;
}
.frame img { position: relative; z-index: 1; }

/* process / steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: step; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: .5rem; }
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--brand); line-height: 1; display: block; margin-bottom: .6rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.step p { color: var(--ink-soft); }
.section--dark .step p { color: #cdd8d0; }
.section--dark .step__num { color: var(--accent); }

/* value list */
.value-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.value-list li { display: flex; gap: .8rem; align-items: flex-start; }
.value-list svg { width: 24px; height: 24px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.section--dark .value-list svg { color: var(--accent); }
.value-list strong { display: block; }
.value-list span { color: var(--ink-soft); }
.section--dark .value-list span { color: #cdd8d0; }

/* stat strip */
.statstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 599px) { .statstrip { grid-template-columns: 1fr; } }
.stat { text-align: left; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); color: var(--brand); line-height: 1; }
.section--dark .stat__num { color: #fff; }
.stat__label { color: var(--ink-soft); font-size: var(--step-0); margin-top: .3rem; }
.section--dark .stat__label { color: #cdd8d0; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding-top: .8rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .container { max-width: 48rem; }
.cta-band h2 { margin-bottom: .8rem; }
.cta-band p { font-size: var(--step-1); margin-bottom: 1.6rem; }
.cta-band .btn-row { justify-content: center; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-row {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.contact-row:hover { border-color: var(--brand); }
.contact-row svg { width: 24px; height: 24px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.contact-row strong { display: block; font-family: var(--font-display); }
.contact-row span { color: var(--ink-soft); overflow-wrap: anywhere; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-promise { display: flex; gap: .6rem; align-items: flex-start; color: var(--brand-dark); font-weight: 600; margin-bottom: 1.3rem; }
.form-promise svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--brand); }
.form-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted);
}

/* ============================================================= FORMINATOR */
.forminator-custom-form .forminator-row { margin-bottom: 1rem; }
.forminator-custom-form label,
.forminator-custom-form .forminator-label {
  font-family: var(--font-body); font-weight: 600; color: var(--ink); display: block; margin-bottom: .35rem;
}
.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); border-radius: var(--radius);
  padding: .8rem 1rem; line-height: 1.4; transition: border-color .18s ease, box-shadow .18s ease;
}
.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(--brand); box-shadow: 0 0 0 3px rgba(47,107,79,.18);
}
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type=submit],
.forminator-custom-form input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  background: var(--btn-fill); color: var(--btn-label); border: 2px solid transparent;
  padding: .85rem 1.7rem; border-radius: var(--radius-pill); cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form button[type=submit]:hover { background: var(--btn-fill-hover); color: #fff; transform: translateY(-2px); }

/* ============================================================= FOOTER */
.site-footer { background: var(--ink); color: #d9e2db; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand__logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-wordmark { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: #fff; margin-bottom: .6rem; }
.site-footer h4 { color: #fff; font-size: var(--step-0); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer a { color: #d9e2db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-nap { font-style: normal; line-height: 1.8; }
.footer-hours { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.footer-socials a:hover { background: rgba(255,255,255,.16); }
.footer-socials svg { width: 20px; height: 20px; color: #fff; }
.footer-cta { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 1.5rem; }
.footer-cta p { color: #cdd8d0; }
/* re-assert button label over footer link colour */
.site-footer .btn--primary { color: var(--btn-label); }
.site-footer .btn--light { color: var(--ink); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: var(--step--1); color: #a9b6ac;
}
.footer-bottom a { color: #a9b6ac; }

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::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; }
}
