/* ============================================================
   3. Pagina-compositie — contact (alleen token-refs)
   Bewegings-tokens (R14-budget, pagina-lokaal genoteerd): 150–600ms, rustige easing.
   ============================================================ */
:root { --beweeg-duur: 450ms; --beweeg-ease: cubic-bezier(.22,.61,.36,1); }

h1, h2, h3, p { margin: 0; }
p + p { margin-top: var(--ruimte-300); }
:focus-visible { outline: 2px solid var(--kleur-merk); outline-offset: 2px; }
.measure-centrum { max-width: var(--measure-narrow); margin-inline: auto; }
.sectie-kop { margin-bottom: var(--ruimte-500); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
button { font-family: inherit; }

/* ---- sticky nav verbergt nooit een gefocust veld of anker-doel (WCAG 2.2/§2) ---- */
html { scroll-padding-top: var(--ruimte-800); }
[id], input, select, textarea, button { scroll-margin-top: var(--ruimte-800); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---- 0. PROMO-BALK — dunne financieringsbalk boven de nav (mens-akkoord 2026-07-05; nieuw sibling, nav-partial byte-identiek; R8: geen amber, R6: echte copy) ---- */
.promo-balk { background: var(--prim-merk-donker); color: #eaf6fb; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: var(--ruimte-200); padding: var(--ruimte-200) var(--ruimte-300); text-align: center; }
.promo-inner p { margin: 0; font-size: var(--prim-type-xs); font-weight: 600; }
.promo-inner .promo-mark { color: var(--prim-merk-tint); font-weight: 800; }

/* ---- 1. NAVIGATIE — sticky; header-CTA = het énige accent in de balk (R8) ---- */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--kleur-achtergrond); border-bottom: 1px solid var(--kleur-lijn); }
.nav-inner { display: flex; align-items: center; gap: var(--ruimte-400); padding-block: var(--ruimte-300); }
.nav-logo { font: 800 var(--prim-type-l)/1 var(--prim-font-kop); color: var(--prim-merk-donker); text-decoration: none; flex: none; }
.nav-menu { flex: 1; min-width: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--ruimte-200) var(--ruimte-400); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--ruimte-500); color: var(--kleur-tekst); text-decoration: none; font-weight: 600; font-size: var(--prim-type-s); border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--kleur-merk); border-bottom-color: var(--kleur-merk); }   /* actief-/hover-marker in merk, nooit accent (R8) */
.nav-links a[aria-current="page"] { color: var(--prim-merk-donker); border-bottom-color: var(--kleur-merk); }
.nav-cta { flex: none; }
.site-nav .cta { padding: var(--ruimte-200) var(--ruimte-400); font-size: var(--prim-type-s); }
.hamburger, .menu-sluit { display: none; align-items: center; justify-content: center; width: var(--cta-min-hoogte); height: var(--cta-min-hoogte); border: 1px solid var(--kleur-lijn); border-radius: var(--prim-radius-sm); background: var(--kaart-bg); color: var(--kleur-tekst); font-size: var(--prim-type-m); cursor: pointer; flex: none; }

/* ---- 2. HERO-FORMULIER — 55/45, formulier-kaart = focuspunt (R4/R8); tint-verloop, R6-compact ---- */
.sectie-hero { background: linear-gradient(180deg, var(--kleur-vlak-subtiel), var(--kleur-achtergrond)); }
.sectie-hero.section { padding-block: var(--ruimte-600); }
.hero-grid {
  display: grid; gap: var(--ruimte-400) var(--ruimte-700); align-items: start;
  grid-template-columns: minmax(0,55fr) minmax(0,45fr);
  grid-template-areas: "kop form" "subzin form" "wegwijzer form" ". form";
}
.hero-kop { grid-area: kop; }
.hero-subzin { grid-area: subzin; color: var(--kleur-tekst); max-width: var(--measure-narrow); }
.kanaal-wegwijzer { grid-area: wegwijzer; display: flex; flex-direction: column; gap: var(--ruimte-200); align-items: flex-start; }
.kanaal-wegwijzer a { display: inline-flex; align-items: center; min-height: var(--ruimte-500); color: var(--kleur-merk); font-weight: 600; font-size: var(--prim-type-s); text-decoration: underline; }
.kanaal-wegwijzer a:hover { color: var(--prim-merk-donker); }

/* ---- formulier-kaart (R12 — verankerd; twee-staps, stap 1 van 2 zichtbaar) ---- */
.formulier-kaart { grid-area: form; }
.formulier-kop { font-weight: 800; font-family: var(--prim-font-kop); font-size: var(--prim-type-m); margin-bottom: var(--ruimte-200); }
.stap-indicator { font-size: var(--prim-type-s); font-weight: 700; color: var(--kleur-merk); }
.voortgang { height: var(--ruimte-100); background: var(--kleur-lijn); border-radius: var(--prim-radius-pill); overflow: hidden; margin: var(--ruimte-200) 0 var(--ruimte-400); }
.voortgang > div { height: 100%; width: 50%; background: var(--kleur-merk); border-radius: inherit; }
[data-formulier][data-stap="2"] .voortgang > div { width: 100%; }
.veld-groep { margin-bottom: var(--ruimte-300); }
.veld-label { display: block; font-size: var(--prim-type-s); font-weight: 700; margin-bottom: var(--ruimte-100); color: var(--kleur-tekst); padding: 0; }
.veld {
  width: 100%; box-sizing: border-box; min-height: var(--cta-min-hoogte);
  padding: var(--ruimte-200) var(--ruimte-300);
  border: 1px solid var(--kleur-lijn); border-radius: var(--prim-radius-sm);
  background: var(--kaart-bg); color: var(--kleur-tekst); font: inherit;
}
.veld:hover { border-color: var(--kleur-merk); }
.veld:focus { border-color: var(--kleur-merk); }
.veld[aria-invalid="true"] { border-color: var(--kleur-functioneel-rood); }
.veld-fout { display: block; color: var(--kleur-functioneel-rood); font-size: var(--prim-type-s); margin-top: var(--ruimte-100); }
.keuze-groep { margin-bottom: var(--ruimte-300); }
.keuze-rij { display: flex; gap: var(--ruimte-200); }
.keuze { flex: 1; position: relative; }
.keuze input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.keuze span {
  display: flex; align-items: center; justify-content: center; min-height: var(--cta-min-hoogte);
  border: 1px solid var(--kleur-lijn); border-radius: var(--prim-radius-sm);
  background: var(--kaart-bg); font-weight: 600; font-size: var(--prim-type-s); color: var(--kleur-tekst);
}
.keuze input:hover + span { border-color: var(--kleur-merk); }
.keuze input:checked + span { border-color: var(--kleur-merk); background: var(--kleur-vlak-subtiel); color: var(--prim-merk-donker); }
.keuze input:focus-visible + span { outline: 2px solid var(--kleur-merk); outline-offset: 2px; }
.cta-vol { width: 100%; box-sizing: border-box; }
.cta:hover { background: var(--prim-accent-hover); }
.cta[disabled] { opacity: .6; cursor: progress; }
.btn-secundair:hover { background: var(--kleur-vlak-subtiel); color: var(--prim-merk-donker); }
.btn-secundair[disabled] { opacity: .6; cursor: progress; }
.knop-terug { background: none; border: 0; padding: var(--ruimte-200) 0; margin-top: var(--ruimte-200); color: var(--kleur-merk); font: 600 var(--prim-type-s)/1 var(--prim-font-body); text-decoration: underline; cursor: pointer; }
.privacy { font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); margin-top: var(--ruimte-300); }
.bedankt { padding: var(--ruimte-300) 0; }

/* ---- 3. RISICO-OMKERING — horizontale vinkjes-strip in kaartvorm (R1-clausule; K11 uitsluitend hier) ---- */
.sectie-risico.section { padding-block: var(--ruimte-600); }
.risico-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--ruimte-400); margin: 0; }
.risico-strip > li { font-weight: 600; color: var(--prim-merk-donker); font-size: var(--prim-type-s); }

/* ---- 4. TERUGBEL — 60/40 asymmetrisch (hét R15-moment); knop SECUNDAIR, nooit accent ---- */
.terugbel-grid {
  display: grid; gap: var(--ruimte-400) var(--ruimte-700); align-items: start;
  grid-template-columns: minmax(0,60fr) minmax(0,40fr);
  grid-template-areas: "kop beeld" "subregel beeld" "kaart beeld";
}
.terugbel-kop { grid-area: kop; }
.terugbel-subregel { grid-area: subregel; max-width: var(--measure-narrow); }
.terugbel-kaart { grid-area: kaart; }
.terugbel-beeld { grid-area: beeld; text-align: center; }
.adviseur-avatar {
  width: 55%; aspect-ratio: 1; margin: 0 auto var(--ruimte-400);
  border-radius: var(--prim-radius-pill); background: var(--kleur-vlak-subtiel);
  border: 1px solid var(--kleur-lijn); box-shadow: var(--prim-elevatie-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--prim-font-accent-serif); font-size: var(--prim-type-2xl); color: var(--prim-merk-donker);
}
.credential { font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); max-width: var(--measure-narrow); margin-inline: auto; }
.terugbel-succes { margin-top: var(--ruimte-300); font-weight: 600; color: var(--kleur-functioneel-groen); }

/* ---- 5. WAT-DAARNA — kaartenrij 3 (R1), icoon + tekstlabel (R5, één set); CTA-herhaling eronder (R9f) ---- */
.icoon {
  width: var(--ruimte-600); height: var(--ruimte-600); flex: none;
  border-radius: var(--prim-radius-pill); background: var(--kleur-vlak-subtiel);
  color: var(--prim-merk-donker); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--ruimte-300);
}
.stap-kaart { display: flex; flex-direction: column; }
.stap-kaart h3 { font-size: var(--prim-type-m); margin-bottom: var(--ruimte-200); }
.stap-kaart p { font-size: var(--prim-type-s); }
.wat-daarna-slot { margin-top: var(--ruimte-600); text-align: center; }

/* ---- 6. CONTACTGEGEVENS — kanaal-kaartenrij 3 (R1); tel:/mailto neutraal, hele regel tikbaar ---- */
.kanaal-kaart { display: flex; flex-direction: column; }
.kanaal-kaart h3 { font-size: var(--prim-type-m); margin-bottom: var(--ruimte-200); }
.kanaal-waarde { font-size: var(--prim-type-m); font-weight: 700; color: var(--prim-merk-donker); }
.kanaal-waarde a { display: inline-flex; align-items: center; min-height: var(--cta-min-hoogte); color: var(--prim-merk-donker); text-decoration: underline; }
.kanaal-waarde a:hover { color: var(--kleur-merk); }
.kanaal-detail { font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); margin-top: var(--ruimte-100); }

/* ---- footer (site-breed patroon: navigatie + juridisch — 7 items conform site-structuur) ---- */
.voet { background: var(--kleur-achtergrond); border-top: 1px solid var(--kleur-lijn); padding: var(--ruimte-600) var(--ruimte-300); }
.voet-nav { display: flex; flex-wrap: wrap; gap: var(--ruimte-300) var(--ruimte-400); list-style: none; margin: 0 0 var(--ruimte-400); padding: 0; justify-content: center; }
.voet-nav a { color: var(--kleur-tekst-zacht); text-decoration: none; font-size: var(--prim-type-s); font-weight: 600; }
.voet-nav a:hover { color: var(--kleur-merk); }
.voet-juridisch { text-align: center; font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); }

/* ---- Levendigheid (R14): scroll-reveal + hover-lift — alleen transform/opacity, 150–600ms ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(var(--ruimte-300)); transition: opacity var(--beweeg-duur) var(--beweeg-ease), transform var(--beweeg-duur) var(--beweeg-ease); }
  .js .reveal.is-zichtbaar { opacity: 1; transform: none; }
  .lift { transition: transform var(--beweeg-duur) var(--beweeg-ease), box-shadow var(--beweeg-duur) var(--beweeg-ease); }
  .lift:hover { transform: translateY(calc(-1 * var(--ruimte-100))); box-shadow: var(--prim-elevatie-md); }
  .cta { transition: background-color var(--beweeg-duur) var(--beweeg-ease), transform var(--beweeg-duur) var(--beweeg-ease); }
  .cta:hover { transform: translateY(calc(-1 * var(--ruimte-100) / 2)); }
  .voortgang > div { transition: width var(--beweeg-duur) var(--beweeg-ease); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .lift, .lift:hover, .cta, .voortgang > div { transition: none; transform: none; }
}

/* ---- Navigatie mobiel (~390px): canoniek hamburger-paneel ---- */
@media (max-width: 767px) {
  .nav-inner { gap: var(--ruimte-200); }
  .nav-menu { display: none; position: fixed; inset: 0; z-index: 60; background: var(--kleur-achtergrond); padding: var(--ruimte-500) var(--ruimte-400); overflow: auto; }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; gap: var(--ruimte-300); margin-top: var(--ruimte-400); }
  .nav-links a { font-size: var(--prim-type-m); min-height: var(--cta-min-hoogte); }
  .hamburger { display: inline-flex; }
  .nav-menu .menu-sluit { display: inline-flex; }
  .nav-cta { flex: 1; min-width: 0; }
  .site-nav .cta { width: 100%; box-sizing: border-box; padding: var(--ruimte-200); font-size: var(--prim-type-xs); }
}

/* ---- Mobiel (~390px): stapelvolgorde conform wireframe-mobiel ---- */
@media (max-width: 767px) {
  h1 { font-size: var(--prim-type-xl); }
  h2 { font-size: var(--prim-type-l); }
  .sectie-hero.section { padding-block: var(--ruimte-400); }
  .hero-grid {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "kop" "form" "subzin" "wegwijzer";   /* stapel 2-3-4-5 */
  }
  .risico-strip { grid-template-columns: minmax(0,1fr); gap: var(--ruimte-300); }   /* vinkjes stapelen (6–9) */
  .terugbel-grid {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "kop" "beeld" "subregel" "kaart";   /* stapel 10-11-12-13, beeld gereduceerd */
  }
  .adviseur-avatar { width: 40%; }
  .keuze-rij--moment { flex-direction: column; }   /* 3 voorkeursmoment-opties stapelen — klikdoel ruim */
}
