/*
Theme Name: demoonderhoudplf20e6
Theme URI: https://onderhoudplus.nl
Author: BlueCT Site Factory
Description: Maatwerk classic PHP theme voor OnderhoudPlus, vastgoedonderhoud, renovatie en verduurzamen. Content via SCF.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: demoonderhoudplf20e6
*/

/* =====================================================================
   Concept: "Solid & Sustainable Precision" — een B2B-vastgoedmerk dat
   betrouwbaarheid uitstraalt. Slate-ink + een zeker, diep blauw, een
   grotesk-display (Archivo) tegen een rustige body (Open Sans), hairline
   rules, gestructureerd raster. Signature: oversized index-cijfers op
   stappen + een korte accent-balk onder koppen. Rustig, degelijk, groen.
   Display: Archivo (grotesk-display met karakter, past bij bouw/vastgoed);
   Body: Open Sans (door klant gekozen).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --white: #ffffff;
  --surface: #eef2f7;      /* light blue-slate tint */
  --surface-2: #e3e9f1;
  --ink: #1b2430;          /* dark slate, body/heading ink */
  --muted: #4b5563;        /* secondary text, ~7:1 on white */
  --line: #d5dde7;         /* hairline rules */
  --brand: #0b57d0;        /* confident blue (fills, large headings, icons) */
  --brand-strong: #0a49ac; /* darker blue for filled small-text/hover */
  --accent-text: #0847a0;  /* small accent text, clears 4.5:1 on white/surface */
  --green: #1f7a4d;        /* sustainability accent */
  --green-text: #16603b;
  --cream: #eef2f7;

  /* button tokens */
  --btn-fill: #0b57d0;
  --btn-fill-hover: #0a49ac;
  --btn-label: #ffffff;

  /* type */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* fluid type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.85rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.3vw, 2.4rem);
  --step-4: clamp(1.9rem, 1.55rem + 2vw, 3.1rem);
  --step-5: clamp(2.05rem, 1.6rem + 3vw, 4.25rem);

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

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1280px;
  --measure: 760px;
  --shadow: 0 18px 40px -24px rgba(27, 36, 48, 0.35);
  --shadow-sm: 0 8px 24px -18px rgba(27, 36, 48, 0.4);
}

/* ---------- 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;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg { display: block; }
/* icons inline with text */
a > svg, button > svg, p svg, li > a svg, .chip svg, .btn svg {
  display: inline-block; vertical-align: middle;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
  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 var(--space-3); }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.25rem; }
strong { font-weight: 700; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #eef2f7; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.prose--longform {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: left;
}
.prose--longform p { margin-bottom: var(--space-4); }
.about-story p { margin-bottom: var(--space-4); color: var(--muted); }
.about-story p:last-child { margin-bottom: 0; }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-2);
}
.section--ink .eyebrow { color: #8fb4f0; }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.section--ink .lead { color: #cdd9ea; }
.muted { color: var(--muted); }
.center { text-align: center; }
.accent-bar::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--brand); border-radius: 2px; margin-top: var(--space-3);
}
.center.accent-bar::after { margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s 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(--accent-text); border-color: var(--brand);
}
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost-dark {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn--ghost-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--wide { padding-inline: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
  padding-block: .5rem;
}
.brand-link { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-link img { height: clamp(34px, 4vw, 46px); width: auto; max-width: 220px; object-fit: contain; }
.brand-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-slogan { font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: 4px; font-family: var(--font-body); }

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

.header-cta { display: inline-flex; }
.nav-toggle, .drawer-close { display: none; }

/* mobile overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 990;
  background: rgba(15, 20, 28, .5); opacity: 0; transition: opacity .25s ease;
}
body.nav-open .nav-overlay { display: block; opacity: 1; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line);
    background: #fff; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink);
  }
  .nav-toggle .bar { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s ease; }
  .nav-toggle .bar::before { top: -7px; } .nav-toggle .bar::after { top: 7px; }
  body.nav-open .nav-toggle .bar { background: transparent; }
  body.nav-open .nav-toggle .bar::before { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle .bar::after { transform: translateY(-7px) rotate(-45deg); }

  .header-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    height: 100dvh;
    background: #fff;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
    transform: translateX(100%);
    transition: transform .28s ease;
    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; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
    border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); margin-bottom: .5rem;
  }
  .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 .25rem; font-size: 1.15rem; }
  .primary-nav .nav-menu a:not(.btn)::after { display: none; }
  .header-cta { margin-top: 1.25rem; }
  .header-cta .btn { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero--image { color: #fff; }
.hero--image .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero--image .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--image .hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,22,34,.55) 0%, rgba(15,22,34,.72) 60%, rgba(15,22,34,.88) 100%);
}
.hero--image .container { position: relative; z-index: 2; }
.hero--image { min-height: 72vh; display: flex; align-items: center; padding-block: clamp(4rem, 10vw, 7rem); }
.hero-content { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero--image .eyebrow { color: #a9c6f4; }
.hero-sub { font-size: var(--step-1); color: #e7edf6; line-height: 1.5; margin-bottom: var(--space-5); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero-chip {
  display: inline-flex; align-items: flex-start; gap: .5rem;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28);
  padding: .55rem .9rem; border-radius: 999px; font-size: var(--step--1); font-weight: 700;
  margin-bottom: var(--space-4); max-width: 100%;
}
.hero-chip svg { flex: 0 0 auto; margin-top: 1px; }
.hero-chip span { white-space: normal; }

/* type-led hero (interior pages) */
.hero--type { background: var(--surface); padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero--type .hero-content { max-width: 780px; }
.hero--type h1 { color: var(--ink); }
.hero--type .hero-sub { color: var(--muted); }

@media (max-width: 599px) {
  .hero--image { min-height: 62vh; }
  .hero-content, .hero-actions { text-align: left; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-chip { width: 100%; }
}

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .5rem; height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: var(--step-1); margin-bottom: .25rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--brand); margin-bottom: var(--space-2);
}
.card__icon svg { width: 26px; height: 26px; }
.card__link { margin-top: auto; padding-top: .75rem; font-family: var(--font-display); font-weight: 600; }

/* value cards (the 4 V's) */
.value-card { position: relative; overflow: hidden; }
.value-card .value-index {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--brand);
  line-height: 1; opacity: .18; position: absolute; top: 1rem; right: 1.25rem;
}

/* ---------- Steps (signature index numerals) ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-4); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: var(--space-5); padding-top: var(--space-6);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 1rem; left: var(--space-5);
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem;
  color: var(--brand); opacity: .22; line-height: 1;
}
.section--ink .step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.section--ink .step::before { color: #8fb4f0; opacity: .5; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); margin-bottom: 0; }
.section--ink .step p { color: #cdd9ea; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.split__media { position: relative; }
.split__media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 55%; height: 55%;
  border: 3px solid var(--brand); border-radius: var(--radius); z-index: -1;
}
.split__body ul { list-style: none; padding: 0; }
.split__body ul li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; color: var(--muted); }
.split__body ul li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: 12px; height: 12px;
  border: 3px solid var(--brand); border-right: 0; border-bottom: 0; transform: rotate(45deg);
}

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); text-align: center; }
@media (max-width: 599px) { .stat-strip { grid-template-columns: 1fr; } }
.stat .stat-num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); color: #fff; line-height: 1; }
.stat .stat-label { color: #cdd9ea; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 0 var(--space-4); margin-bottom: var(--space-3);
}
.faq summary {
  list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-1); padding: var(--space-4) 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--brand); font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--accent-text); }
.faq details > p { color: var(--muted); padding-bottom: var(--space-4); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #cdd9ea; max-width: 620px; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); }
.cta-microcopy { margin-top: var(--space-4); color: #a9c6f4; font-size: var(--step--1); }
@media (max-width: 599px) { .cta-actions .btn { width: 100%; justify-content: center; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { background: var(--surface); border-radius: var(--radius); padding: var(--space-5); }
.contact-row { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: var(--space-4); }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .ci { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.contact-row .cl { font-family: var(--font-display); font-weight: 700; margin: 0; }
.contact-row a { color: var(--accent-text); text-decoration: none; word-break: break-word; }
.form-promise {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4);
  font-weight: 700; color: var(--ink);
}
.form-placeholder { border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--space-5); color: var(--muted); }

/* ---------- Forminator styling (form ships unstyled) ---------- */
.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-sm);
  padding: .8rem 1rem; line-height: 1.4;
}
.forminator-custom-form textarea { min-height: 140px; }
.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(11,87,208,.18);
}
.forminator-custom-form label,
.forminator-custom-form .forminator-label { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type=submit] {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); line-height: 1;
  background: var(--btn-fill); color: var(--btn-label);
  border: 2px solid transparent; border-radius: 999px; padding: .95rem 1.8rem; cursor: pointer;
  transition: background-color .2s ease, transform .2s 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: #cdd9ea; padding-block: clamp(3rem, 7vw, 4.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 899px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; font-family: var(--font-display); margin-bottom: var(--space-3); }
.site-footer a { color: #cdd9ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-brand img { height: 42px; width: auto; max-width: 220px; margin-bottom: var(--space-3); filter: brightness(0) invert(1); }
.site-footer .footer-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6rem; }
.footer-nap p { margin: 0 0 .4rem; }
.footer-social { display: flex; gap: .6rem; margin-top: var(--space-3); }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; color: #cdd9ea; }
.footer-social a:hover { color: #fff; border-color: #fff; }
.footer-cta { }
/* re-assert button label over the footer's scoped a{color} rule */
.site-footer .btn { text-decoration: none; }
.site-footer .btn--primary { color: var(--btn-label); }
.site-footer .btn--primary:hover { color: #fff; }
.site-footer .btn--outline { color: #fff; border-color: rgba(255,255,255,.6); }
.site-footer .btn--outline:hover { color: var(--ink); background: #fff; }
.footer-bottom {
  margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: var(--step--1); color: #9fb0c6;
}

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.error-404 .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 15vw, 9rem); color: var(--brand); line-height: 1; }

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Data tables (guard against overflow) ---------- */
table.data { table-layout: fixed; width: 100%; border-collapse: collapse; }
table.data th, table.data td { overflow-wrap: anywhere; word-break: break-word; padding: .65rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
