/* ==========================================================================
   Fyrian — huisstijl-CSS voor fyrian.nl
   Bron: Huisstijl Fyrian v1.3 + wireframe-brief 20260617
   Regels: 60·30·10 · rood is een uitroepteken · één donker anker (navy)
   · pastels alleen als achtergrond · twee blauwen, twee rollen
   · toegankelijkheid eerst (WCAG 2.2 AA)
   ========================================================================== */

/* ---- Lettertype: Source Sans 3 (Source Sans Pro), zelf gehost ---- */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---- Ontwerptokens ---- */
:root {
  /* Basiskleuren */
  --navy: #002060;         /* primair: koppen, navigatie, autoriteit */
  --blue: #18A0F5;         /* accent: decoratie, iconen, illustratie — géén leestekst op wit */
  --red: #F60000;          /* signaal, spaarzaam */
  --white: #FFFFFF;

  /* Ondersteunend */
  --red-text: #950000;     /* rode tekst op wit (AAA) */
  --red-hover: #C40000;    /* rode interactie-states */
  --red-100: #FDCCCC;
  --blue-100: #D1ECFD;     /* info-paneel achtergrond */
  --blue-200: #A3D9FB;
  --grey-1: #EAE9EE;       /* subtiele achtergrond */
  --grey-2: #D4D3DC;       /* scheidingslijnen */
  --grey-3: #ABA9BC;       /* placeholder, inactief */
  --grey-4: #777586;       /* secundaire tekst, meta */

  /* Afgeleiden */
  --ink: #33314a;          /* broodtekst: donkergrijs in de grijsfamilie */
  --grey-text: #666475;    /* secundaire leestekst: grijs-4 iets verdonkerd, AA op wit én grijs-1 */
  --navy-deep: #001845;    /* hover-state op navy vlakken */

  /* Typografie */
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;

  /* Maten */
  --max-w: 72rem;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --sect-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 0.375rem;
  --shadow: 0 10px 30px -12px rgba(0, 32, 96, 0.18);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* ---- Typografie ---- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 0.75em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 900; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.125rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 42em; }
.meta { font-size: 0.875rem; color: var(--grey-text); }
strong { color: var(--navy); }

/* Kicker: klein contextwoord boven een kop (donkerblauw, kapitaal) */
.kicker {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.kicker::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--blue);
}
.kicker--centered { text-align: center; }
.kicker--centered::after { margin-left: auto; margin-right: auto; }

/* Tagline-regel (vast merkonderdeel, punt hoort erbij) */
.tagline { font-weight: 600; color: var(--navy); }

/* Links in lopende tekst: navy + onderstreping (blauw haalt AA niet op wit) */
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Opsomming met rood > (huisstijl); tweede niveau helder blauw */
ul.fy-list { list-style: none; padding: 0; margin: 0 0 1.25em; }
ul.fy-list > li { position: relative; padding-left: 1.5em; margin-bottom: 0.6em; }
ul.fy-list > li::before { content: "\203A"; position: absolute; left: 0; top: -0.08em; color: var(--red); font-weight: 900; font-size: 1.25em; }
ul.fy-list ul { list-style: none; padding: 0.5em 0 0; }
ul.fy-list ul > li { position: relative; padding-left: 1.5em; margin-bottom: 0.4em; }
ul.fy-list ul > li::before { content: "\203A"; position: absolute; left: 0; top: -0.08em; color: var(--blue); font-weight: 900; font-size: 1.25em; }

/* ---- Layout ---- */
.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sect-y); }
.section--tint { background: var(--grey-1); }
.section--info { background: var(--blue-100); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy strong { color: var(--white); }
.section--navy .kicker { color: var(--blue-200); }
.section--navy .meta { color: var(--blue-200); }
.section--navy a:not(.btn) { color: var(--white); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.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: 56rem) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}

/* Toegankelijkheid: skip-link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-2);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.5rem;
}
.site-header__logo { margin-right: auto; display: flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 1.75rem; width: auto; }

.site-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0.5rem 0.8rem;
  font-weight: 600; color: var(--navy); text-decoration: none;
  border-radius: var(--radius);
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.25rem;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--grey-2); border-radius: var(--radius);
  padding: 0.5rem 0.7rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}

@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--grey-2);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.75rem var(--pad-x) 1.25rem; }
  .site-nav a { padding: 0.7rem 0.5rem; }
  .site-header .btn { display: none; }
  .site-nav .btn { display: inline-block; margin-top: 0.75rem; }
}
@media (min-width: 56.0625rem) { .site-nav .nav-cta { display: none; } }

/* ---- Knoppen ---- */
.btn {
  display: inline-block;
  font: inherit; font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--grey-1); }
/* Op navy vlakken */
.btn--inverse { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--inverse:hover { background: var(--blue-100); }

/* ---- Hero ---- */
.hero { padding-block: clamp(4rem, 10vw, 7.5rem); position: relative; overflow: hidden; }
.hero__content { max-width: 46em; position: relative; }
.hero .tagline { font-size: 1.125rem; margin-top: 1.25rem; display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
/* Subtiel V-accent rechts (decoratief) */
.hero--v::before {
  content: ""; position: absolute; right: -4rem; top: 50%;
  width: clamp(16rem, 30vw, 26rem); aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("../images/Fyrian_V_blauw.svg") no-repeat center / contain;
  opacity: 0.07; pointer-events: none;
}

/* ---- Padkaarten (homepage) ---- */
.path-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.path-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue); }
.path-card h3 { margin: 0; }
.path-card p { margin: 0; color: var(--grey-text); }
.path-card .path-card__arrow { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--navy); }
.path-card .path-card__arrow::after { content: "\2009\2192"; color: var(--blue); transition: margin 0.2s ease; }
.path-card:hover .path-card__arrow::after { margin-left: 0.35rem; }
.path-card__icon { display: block; width: 2.25rem; height: 2.25rem; color: var(--blue); margin-bottom: 0.75rem; }
.path-card__icon svg { width: 100%; height: 100%; }

/* ---- Stakes (wat staat er op het spel) ---- */
.stakes { border-left: 4px solid var(--red); padding-left: clamp(1.25rem, 3vw, 2rem); }

/* ---- Value proposition ---- */
.value-block { text-align: left; }
.value-block__icon {
  display: block;
  width: 2.25rem; height: 2.25rem; color: var(--blue);
  margin-bottom: 0.9rem;
}
.value-block__icon svg { width: 100%; height: 100%; }
.value-block h3 { margin-bottom: 0.35rem; }
.value-block p { color: var(--grey-text); margin: 0; }

/* ---- Gids-blok (empathie + autoriteit) ---- */
.guide { display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 56rem) { .guide { grid-template-columns: 1fr; } }
.guide__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--grey-1); border: 1px solid var(--grey-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-3); font-weight: 600;
  overflow: hidden;
}
.guide__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Plan (drie stappen) ---- */
.plan-step { position: relative; padding-top: 0.5rem; }
.plan-step__nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.plan-step h3 { margin-bottom: 0.35rem; }
.plan-step p { color: var(--grey-text); margin: 0; }

/* ---- Kennissectie ---- */
.kennis-card { position: relative; }
.kennis-card__type {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); background: var(--blue-100);
  padding: 0.2rem 0.6rem; border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.artikel { max-width: 46em; }
.artikel__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 2rem; }
.artikel h2 { margin-top: 1.75em; }
.artikel .lead { color: var(--navy); font-weight: 600; }
.carrousel-slide { border: 1px solid var(--grey-2); border-radius: var(--radius); margin-bottom: 1rem; }

/* ---- Tijdlijn (over-pagina) ---- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.4rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--grey-2); }
.timeline > li { position: relative; padding-bottom: 1.75rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -1.75rem; top: 0.45rem;
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue);
}
.timeline > li.timeline--nu::before { background: var(--navy); border-color: var(--navy); }
.timeline h3 { margin-bottom: 0.15rem; }
.timeline .meta { display: block; margin-bottom: 0.25rem; }
.timeline p { margin: 0; color: var(--grey-text); }

/* ---- CTA-band ---- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: var(--blue-200); max-width: 38em; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; margin-top: 1.75rem; }

/* ---- Testimonial ---- */
.testimonial {
  border-left: 4px solid var(--blue);
  padding: 0.5rem 0 0.5rem clamp(1.25rem, 3vw, 2rem);
  font-size: 1.2rem; line-height: 1.55; color: var(--navy);
  margin: 0;
}
.testimonial footer { font-size: 0.9375rem; color: var(--grey-text); margin-top: 0.9rem; }

/* ---- Info-paneel ---- */
.info-panel {
  background: var(--blue-100);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.info-panel > :last-child { margin-bottom: 0; }

/* Signaalvlak (spaarzaam!) */
.alert-panel {
  background: var(--red-100);
  color: var(--red-text);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

/* ---- Formulieren ---- */
.form { display: grid; gap: 1.1rem; }
.form label { font-weight: 600; color: var(--navy); display: block; margin-bottom: 0.3rem; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--grey-3);
  border-radius: var(--radius);
  background: var(--white);
}
.form input::placeholder, .form textarea::placeholder { color: var(--grey-3); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); }
/* Validatie in huisstijlrood; de foutmelding zelf bouwen we per pagina met eigen tekst */
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid { border-color: var(--red-hover); }
.form .form__error { font-size: 0.875rem; color: var(--red-text); font-weight: 600; margin-top: 0.3rem; }
.form .form__hint { font-size: 0.875rem; color: var(--grey-text); margin-top: 0.3rem; }
/* Honeypot: visueel én voor hulptechnologie verborgen */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: var(--blue-200); font-size: 0.9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
@media (max-width: 56rem) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo img { height: 1.75rem; width: auto; margin-bottom: 0.75rem; }
.site-footer__sub { color: var(--white); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer h3 { color: var(--white); font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 0.18em; }
.site-footer__meta {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  color: var(--blue-200);
}
.site-footer__meta a { color: var(--blue-200); }

/* ---- Onthulling bij scrollen (subtiel, respecteert reduced motion) ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
