/* Brein Balans Centrum
   ---------------------------------------------------------------
   NEUTRALS ONLY. The logo is being redrawn and Richard is working on its
   colour version; no palette is invented to fill the gap (design/DESIGN.md).
   When the colour lands it is sampled from the file and lands in :root here.

   Everything below is driven by the tokens in :root. Changing the feel of the
   whole site should be an edit to that block, not a tour of the file.

   Mobile-first: 390px is the primary viewport. */

:root {
  /* Colour — placeholder neutrals, NOT the brand */
  --ink:          #1c1d1f;
  --ink-soft:     #4a4d52;
  --ink-faint:    #83878d;
  --surface:      #ffffff;
  --surface-alt:  #f4f3f1;
  --surface-deep: #1c1d1f;
  --line:         #e2e0dd;
  --accent:       #1c1d1f;   /* becomes the brand colour */
  --on-accent:    #ffffff;

  /* Type */
  --font-head: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.35rem, 1.2rem + 0.7vw, 1.8rem);
  --step-3:  clamp(1.65rem, 1.4rem + 1.2vw, 2.35rem);
  --step-4:  clamp(1.95rem, 1.6rem + 1.8vw, 3rem);

  /* Space and shape */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(2.5rem, 5vw, 4.5rem);
  --measure: 62ch;
  --radius: 4px;
  --stroke: 1.5px;          /* icons follow the logo's stroke language */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1em; max-width: var(--measure); }
a  { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - (var(--gutter) * 2), 1140px);
  margin-inline: auto;
}

/* --- Unresolved content gaps -----------------------------------------
   Deliberately ugly. A placeholder that looks like the finished thing is a
   trap; a placeholder that looks like a placeholder is a to-do list.
   scripts/gap_report.py counts these, and they block a production launch. */
.gap {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px dashed #b4551f;
  border-radius: 2px;
  background: #fdf1e7;
  color: #8c3f14;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  font-style: normal;
  letter-spacing: 0;
}

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
/* Exactly one solid filled button per page. Everything else is quieter. */
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--surface-alt); }

.link-arrow {
  display: inline-block;
  margin-top: 0.4em;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-bottom-color: currentColor; }

/* --- Header ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  /* The lockup is a mark plus TWO lines of text (BreinBalans / Centrum).
     Give it room, or CENTRUM gets crushed at narrow widths. */
  min-height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-logo img { width: 38px; height: 38px; }
.nav-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.nav-lockup b { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.nav-lockup i {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--step--1); text-decoration: none; padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-burger { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 4px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); }
  /* main.js toggles `open` on .nav-links itself, not on .nav. Getting this
     selector wrong makes the burger a dead button and the whole menu
     unreachable on mobile, while everything still looks correct in a
     screenshot. Found by clicking it, not by looking at it. */
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0.4rem;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
  }
}

/* --- Hero ------------------------------------------------------------- */
.hero { position: relative; background: var(--surface-alt); overflow: hidden; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.28;
}
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
              color-mix(in srgb, var(--surface-alt) 88%, transparent),
              color-mix(in srgb, var(--surface-alt) 40%, transparent));
}
.hero-inner {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 46ch;
}
.hero-kicker {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.hero-inner p { font-size: var(--step-0); color: var(--ink-soft); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.detail-hero .hero-inner { padding-block: clamp(3rem, 7vw, 5rem); }

/* --- Sections --------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: var(--measure); }
.section-kicker {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.section-head p { color: var(--ink-soft); font-size: var(--step-0); }

/* --- Cards ------------------------------------------------------------ */
.usp-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.usp { padding-top: 1.5rem; border-top: 2px solid var(--accent); }
.usp-dot { display: none; }
.usp h3 { margin-bottom: 0.4em; }
.usp p { color: var(--ink-soft); margin-bottom: 0.6em; }

/* --- Stappen ---------------------------------------------------------- */
.stappen-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.stap { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.stap-num {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.stap h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.stap p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.7; }

/* --- Herkenning ------------------------------------------------------- */
.herkenning { background: var(--surface-alt); }
.herkenning-list {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 940px;
}
.herkenning-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
}
.herkenning-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 12px;
  border-left: var(--stroke) solid var(--accent);
  border-bottom: var(--stroke) solid var(--accent);
  transform: rotate(-45deg);
}
.herkenning-note { font-size: var(--step--1); color: var(--ink-faint); font-style: italic; }

/* --- Prijzen ---------------------------------------------------------- */
.prijzen-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.prijs-kaart { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.prijs-bedrag { font-size: var(--step-2); font-weight: 600; line-height: 1.1; }
.prijs-meta { font-size: var(--step--1); color: var(--ink-faint); margin-bottom: 1rem; }
.prijs-kaart p { font-size: var(--step--1); color: var(--ink-soft); }

/* --- Stats ------------------------------------------------------------ */
.stats {
  display: grid; gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat b { display: block; font-size: var(--step-2); line-height: 1.1; }
.stat span { display: block; font-size: var(--step--1); color: var(--ink-faint); margin-top: 0.4em; }

/* --- Quote ------------------------------------------------------------ */
.quote-band { background: var(--surface-deep); color: #fff; padding-block: var(--section-y); }
.quote-band blockquote { margin: 0; max-width: 46ch; }
.quote-band-mark { font-size: 3rem; line-height: 1; opacity: 0.35; }
.quote-band p { font-size: var(--step-2); line-height: 1.35; margin-bottom: 1rem; }
.quote-band cite { font-style: normal; font-size: var(--step--1); opacity: 0.75; }

/* --- CTA -------------------------------------------------------------- */
.cta-band {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--surface-alt);
  border-radius: var(--radius);
}
.cta-band h2 { font-size: var(--step-2); }
.cta-band p { margin: 0; color: var(--ink-soft); }

/* --- FAQ -------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { color: var(--ink-soft); padding-top: 0.7rem; }

/* --- Footer ----------------------------------------------------------- */
.footer {
  background: var(--surface-deep); color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  margin-top: var(--section-y);
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-wordmark { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.8rem; }
.footer-wordmark span {
  display: block; font-size: 0.6rem; letter-spacing: 0.28em;
  text-transform: uppercase; opacity: 0.6; font-weight: 400;
}
.footer p { opacity: 0.75; font-size: var(--step--1); }
.footer h4 { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.footer a { display: block; text-decoration: none; opacity: 0.85; font-size: var(--step--1); padding: 0.25em 0; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: var(--step--1); opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
