/* ijspegels.be — IT2SERVU BV
   Palette note: --brand (#2892D7) is decorative only. Anything carrying white
   text uses --brand-deep, because #2892D7 on white is 3.40:1 and fails WCAG AA
   for body copy. --muted replaces the old #7d9aa4 (2.99:1) for the same reason. */

/* ---------- fonts (self-hosted: no third-party request, no GDPR exposure) --- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --brand: #2892d7;
  --brand-deep: #1b6d9f;
  --brand-deeper: #14568c;
  --ice: #a8f9ff;
  --ice-pale: #f2feff;
  --ice-mist: #dff6ff;
  --ink: #0b3a48;
  --body: #456a76;
  --muted: #55757f;
  --line: #dcecf1;
  --white: #fff;
  --ok: #017a39;

  --pad-x: clamp(18px, 5vw, 80px);
  --pad-y: clamp(52px, 7vw, 96px);
  --max: 1240px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deeper); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- helpers ---------- */
.wrap { max-width: var(--max); margin-inline: auto; }
.wrap--narrow { max-width: 1120px; margin-inline: auto; }
section { padding: var(--pad-y) var(--pad-x); }
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--body); }
.h2 { font-size: clamp(28px, 4vw, 48px); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-deep); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; text-decoration: none;
}
.skip:focus { left: 0; color: var(--white); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-body); font-size: 17px; font-weight: 700;
  border-radius: var(--r-sm); border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand-deep); color: var(--white); }
.btn--primary:hover { background: var(--brand-deeper); color: var(--white); }
.btn--outline { background: var(--white); color: var(--brand-deep); border-color: var(--brand-deep); }
.btn--outline:hover { background: var(--ice-pale); color: var(--brand-deeper); border-color: var(--brand-deeper); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--onblue { background: var(--white); color: var(--brand-deeper); }
.btn--onblue:hover { background: var(--ice-mist); color: var(--brand-deeper); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
  padding: 14px var(--pad-x);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--brand-deep); }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.site-nav a:not(.btn) { color: var(--body); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--brand-deep); text-decoration: underline; }

/* ---------- banner ---------- */
.banner { width: 100%; aspect-ratio: 21 / 4; min-height: 130px; background: var(--brand); }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.hero h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.035em; margin: 20px 0 22px; }
/* Utility, niet aan de hero gebonden: ook koppen verderop gebruiken hem. */
.accent { color: var(--brand-deep); }
.on-blue .accent { color: var(--ice); }
.hero .lede { max-width: 52ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__audience { font-size: 15px; color: var(--muted); }
.hero__figure {
  padding: clamp(18px, 2.5vw, 30px);
  border-radius: 28px; background: var(--ice-pale); border: 1px solid var(--ice);
}
/* max-height houdt de hero compact nu de tekstkolom kort is; zonder deze cap
   rekt 4/5 op breed scherm de hele sectie onnodig uit. */
.hero__figure img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: var(--r-md); }

/* ---------- flavours ---------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 40px;
}
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--body); max-width: 42ch; }
.flavours { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.flavour {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white);
}
.flavour img { width: 100%; height: 190px; object-fit: cover; }
.flavour__body {
  padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px;
  border-top: 4px solid var(--flavour, var(--brand));
}
.flavour h3 { font-size: 19px; letter-spacing: -0.01em; }
.flavour p { font-size: 15px; color: var(--muted); }

/* ---------- blue section ---------- */
.on-blue { background: var(--brand-deep); color: var(--white); }
.on-blue h2, .on-blue h3 { color: var(--white); }
.on-blue .eyebrow { color: var(--ice); }
.on-blue .lede, .on-blue p { color: var(--ice-mist); }
.on-blue .intro { max-width: 60ch; margin-bottom: 42px; }
.on-blue .intro h2 { margin: 12px 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--white); color: var(--ink);
  border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
/* De kaarten staan op de blauwe sectie maar hebben zelf een witte achtergrond,
   dus ze moeten de witte tekstkleur van .on-blue terugdraaien. */
.on-blue .card h3, .on-blue .card { color: var(--ink); }
.on-blue .card p, .card p { color: var(--body); }
.card__num { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.card h3 { font-size: 24px; letter-spacing: -0.02em; }
.checklist {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid rgba(168, 249, 255, 0.3);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 32px;
}
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ice-mist); }
.checklist svg { flex: none; margin-top: 6px; color: var(--ice); }

/* ---------- story ---------- */
.story .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.story img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); }
.story h2 { margin: 16px 0 20px; max-width: 22ch; }
.story p { color: var(--body); max-width: 56ch; margin-bottom: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stats div { border: 1px solid var(--line); background: #f7fdfe; border-radius: var(--r-md); padding: 14px 22px; }
.stats dt { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--brand-deep); }
.stats dd { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- whitelabel (secondary) ---------- */
.whitelabel { background: var(--ice-pale); border-block: 1px solid var(--ice); }
.whitelabel .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.whitelabel h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 12px 0 16px; }
.whitelabel p { color: var(--body); margin-bottom: 14px; max-width: 54ch; }
.whitelabel img { width: 100%; aspect-ratio: 20 / 11; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--ice); }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq h2 { margin: 12px 0 32px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 22px; margin-bottom: 12px; background: var(--white);
}
.faq details[open] { border-color: var(--ice); background: #fbfeff; }
.faq summary {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  padding: 16px 34px 16px 0; cursor: pointer; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--brand-deep); border-bottom: 2.5px solid var(--brand-deep);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--body); }
.faq details > div p + p { margin-top: 10px; }

/* ---------- contact ---------- */
.contact { background: var(--ice-pale); border-top: 1px solid var(--ice); }
.contact .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 56px); align-items: start;
}
.contact h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 12px 0 16px; }
.contact .lede { margin-bottom: 26px; }
.nap { font-style: normal; display: grid; gap: 10px; font-size: 16px; color: var(--body); }
.nap strong { color: var(--ink); }
.nap a { font-weight: 700; }

.form {
  background: var(--white); border: 1px solid var(--ice); border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.form label { font-size: 15px; font-weight: 700; color: var(--ink); }
.form .hint { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #c2d5dc; border-radius: var(--r-sm); background: var(--white);
  padding: 0 12px; min-height: 48px; width: 100%;
}
.form textarea { padding: 12px; min-height: 120px; resize: vertical; line-height: 1.55; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--brand-deep); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--body); }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 3px; accent-color: var(--brand-deep); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: var(--ice-mist); padding: 44px var(--pad-x) 32px; font-size: 15px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--ice); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 40px; }
.footer__brand { font-family: var(--font-display); font-weight: 700; color: var(--white); letter-spacing: -0.02em; font-size: 20px; }
.footer h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); margin-bottom: 10px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer__links { display: grid; gap: 8px; }
.footer__legal {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(168, 249, 255, 0.28);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px;
}

/* ---------- legal subpages ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h1 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 10px; }
.prose h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 36px 0 12px; }
.prose p, .prose li { color: var(--body); }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.prose .updated { font-size: 15px; color: var(--muted); margin-bottom: 26px; }
