/* =============================================================================
   intro.css — Atlas College V3: pill-menu + intro → videohero (3 prototypes)
   Gedeeld door intro-1-kleurvlak.html, intro-2-vijf-kleuren.html,
   intro-3-venster.html. Alleen voor beoordeling van menu en animatie.
   Tokens komen uit Figma "Atlas College (V3)", node 45:717.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF;
}

:root {
  /* Kleur — Figma variabelen */
  --primary-100: #ccdbea;
  --primary-500: #004b96;
  --primary-700: #002d5a;
  --primary-800: #001e3c;
  --rood: #e52713;
  --rood-hover: #c41f0e;
  --pagina: #f7f6f3;
  --kaart: #ffffff;
  --rand: #e2dfd8;
  --tekst: #2c3135;
  --kop: #001e3c;

  --copernicus: #56227d;
  --westfriesland: #ef7b10;
  --dedijk: #fdc600;
  --triade: #4da32f;
  --newton: #f49600;
  --asc: #004b96;

  --font-kop: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-400: 16px;
  --r-rond: 224px;
  --goot: clamp(16px, 4vw, 116px);
  --kop-h: 96px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pagina);
  color: var(--tekst);
  font: 400 1.125rem/1.55 var(--font-body);
}
body.is-intro { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rood); outline-offset: 3px; }

.skiplink {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 12px 20px; border-radius: var(--r-rond);
  background: var(--primary-800); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skiplink:focus { transform: none; }
.verborgen-tekst {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------------ pills */
.pil {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-rond); border: 0;
  background: #fff; color: var(--kop);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgb(0 30 60 / .08), 0 6px 18px -8px rgb(0 30 60 / .25);
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.pil:hover { background: var(--primary-100); }
.pil:active { transform: scale(.97); }
.pil[aria-current="page"] { background: var(--primary-800); color: #fff; }
.pil--rood { background: var(--rood); color: #fff; }
.pil--rood:hover { background: var(--rood-hover); }
.pil--rond { width: 48px; padding: 0; }
.pil svg { width: 18px; height: 18px; flex: none; }

/* Gesplitste utility-pil: Ouderomgeving | Magister (vervangt de utility-balk) */
.pil-duo {
  display: inline-flex; align-items: stretch; min-height: 48px;
  border-radius: var(--r-rond); background: #fff; overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 30 60 / .08), 0 6px 18px -8px rgb(0 30 60 / .25);
}
.pil-duo a {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px;
  color: var(--kop); font: 600 1rem/1 var(--font-body); text-decoration: none;
  transition: background-color .2s;
}
.pil-duo a:hover { background: var(--primary-100); }
.pil-duo a + a { border-left: 1px solid var(--rand); }
.pil-duo svg { width: 18px; height: 18px; flex: none; }

/* ----------------------------------------------------------------- header */
.sitekop {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 24px var(--goot) 0;
  pointer-events: none;
  transition: transform .45s var(--ease-out);
}
.sitekop > * { pointer-events: auto; }
.sitekop.is-weg { transform: translateY(-120%); }

.logo-tegel {
  justify-self: start;
  display: inline-flex; align-items: center;
  height: 64px; padding: 0 24px;
  border-radius: var(--r-rond); background: #fff;
  box-shadow: 0 1px 2px rgb(0 30 60 / .08), 0 6px 18px -8px rgb(0 30 60 / .25);
}
.logo-tegel img { height: 46px; width: auto; }

.hoofdnav ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kop-acties { justify-self: end; display: flex; gap: 8px; align-items: center; }
.menuknop { display: none; }
.menuknop .icoon-dicht { display: none; }
.menuknop[aria-expanded="true"] .icoon-dicht { display: block; }
.menuknop[aria-expanded="true"] .icoon-open { display: none; }

@media (max-width: 1320px) {
  .pil-duo .pil-duo__tekst { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pil-duo a { padding: 0 15px; }
}
@media (max-width: 1080px) {
  .sitekop { grid-template-columns: auto 1fr; padding-top: 16px; }
  .hoofdnav, .pil-duo, .kop-acties .pil--zoek { display: none; }
  .menuknop { display: inline-flex; }
  .logo-tegel { height: 48px; padding: 0 16px; }
  .logo-tegel img { height: 30px; }
}
@media (max-width: 420px) {
  .kop-acties .pil--rood .pil__tekst { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kop-acties .pil--rood { width: 48px; padding: 0; }
}

/* Mobiel menupaneel — het enige paneel dat opent (geen megamenu op desktop) */
.menupaneel {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: 112px var(--goot) 48px;
  background: var(--primary-500); color: #fff;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out), visibility 0s .55s;
}
.menupaneel.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .55s var(--ease-out); }
.menupaneel ul { margin: 0; padding: 0; list-style: none; }
.menupaneel__groot a {
  display: block; padding: 4px 0;
  font: 800 clamp(2.5rem, 9vw, 3.75rem)/1.1 var(--font-kop); color: #fff; text-decoration: none;
}
.menupaneel__groot a:hover { color: var(--primary-100); }
.menupaneel__klein { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------- videohero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: calc(var(--kop-h) + 48px) var(--goot) calc(clamp(56px, 8vh, 104px) + 3vw);
  color: #fff; overflow: hidden;
  /* Schuine onderrand: dezelfde gekantelde vlakken als de secties in Figma */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--primary-800); }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 30 60 / .45) 0%, rgb(0 30 60 / 0) 28%, rgb(0 30 60 / 0) 55%, rgb(0 30 60 / .35) 100%);
}

.herokaart {
  max-width: 640px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-400);
  background: var(--kaart); color: var(--tekst);
  box-shadow: 0 24px 60px -24px rgb(0 30 60 / .45);
}
.herokaart__eyebrow { margin: 0 0 12px; font: 600 .875rem/1.4 var(--font-body); color: var(--primary-500); }
.herokaart h1 {
  margin: 0 0 16px; color: var(--kop);
  font: 800 clamp(2.5rem, 1.6rem + 3vw, 4rem)/.98 var(--font-kop);
  text-wrap: balance;
}
.herokaart p { margin: 0 0 28px; max-width: 52ch; }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; }
.knop {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-rond);
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.knop:active { transform: scale(.97); }
.knop svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease-out); }
.knop:hover svg { transform: translateX(3px); }
.knop--rood { background: var(--rood); color: #fff; }
.knop--rood:hover { background: var(--rood-hover); }
.knop--rand { box-shadow: inset 0 0 0 2px var(--primary-800); color: var(--primary-800); }
.knop--rand:hover { background: var(--primary-800); color: #fff; }

/* WCAG 2.2.2: bewegend beeld langer dan 5 s moet te pauzeren zijn */
.videoknop {
  position: absolute; right: var(--goot); bottom: calc(clamp(56px, 8vh, 104px) + 3vw);
  background: rgb(0 30 60 / .6); color: #fff; box-shadow: none;
  backdrop-filter: blur(8px);
}
.videoknop:hover { background: var(--primary-800); }
.videoknop .icoon-play { display: none; }
.videoknop[aria-pressed="true"] .icoon-play { display: block; }
.videoknop[aria-pressed="true"] .icoon-pauze { display: none; }

/* Regenboogregel — de accentregel uit de Figma-header, nu op de herorand */
.regenboog { display: flex; height: 6px; }
.regenboog span { flex: 1; }
.regenboog span:nth-child(1) { background: var(--copernicus); }
.regenboog span:nth-child(2) { background: var(--westfriesland); }
.regenboog span:nth-child(3) { background: var(--dedijk); }
.regenboog span:nth-child(4) { background: var(--triade); }
.regenboog span:nth-child(5) { background: var(--newton); }
.regenboog span:nth-child(6) { background: var(--asc); }
.hero-rand { position: relative; height: 0; z-index: 2; }
.hero-rand .regenboog {
  position: absolute; left: 0; right: 0; top: -3vw; height: calc(3vw + 6px);
  clip-path: polygon(0 calc(100% - 6px), 100% 0, 100% 6px, 0 100%);
}

/* ------------------------------------------------------------- intro-laag */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center;
  color: #fff; pointer-events: none;
}
.intro__tekst {
  position: relative; z-index: 2; margin: 0; text-align: center;
  font: 800 clamp(2.75rem, 1.5rem + 5vw, 7rem)/.95 var(--font-kop);
  padding: 0 16px;
}
.intro__tekst .regel { display: block; overflow: hidden; padding-bottom: .1em; }
.intro__tekst .regel > span { display: inline-block; }
.intro__sub {
  position: relative; z-index: 2; margin: 24px 0 0;
  font: 600 1.125rem/1.4 var(--font-body); text-align: center;
}
.intro__overslaan {
  position: fixed; right: var(--goot); bottom: 32px; z-index: 101;
  background: rgb(255 255 255 / .16); color: #fff; box-shadow: none;
  backdrop-filter: blur(6px);
}
.intro__overslaan:hover { background: rgb(255 255 255 / .3); }
.intro__overslaan[hidden] { display: none; }

/* Begintoestand: vóór de animatie staan nav en kaart verborgen.
   Zonder JS (geen .js op html) is alles direct zichtbaar en is er geen intro. */
.js .hoofdnav li, .js .kop-acties > *, .js .logo-tegel { opacity: 0; }
.js .herokaart, .js .videoknop { opacity: 0; }
html:not(.js) .intro, html:not(.js) .intro__overslaan { display: none; }

/* ---------------------------------------------- vervolg: context eronder */
.vervolg { padding: 96px var(--goot) 160px; }
.vervolg__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 1368px; margin: 0 auto; }
.paneel {
  min-height: 280px; padding: 32px; border-radius: var(--r-400); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.paneel small { font: 600 .875rem/1.4 var(--font-body); }
.paneel h2 { margin: 8px 0 0; font: 800 clamp(1.75rem, 1.3rem + 1vw, 2.25rem)/1.1 var(--font-kop); }
.paneel a { font-weight: 600; text-underline-offset: 4px; }
.paneel--paars { background: var(--copernicus); }
.paneel--oranje { background: #b35500; }
.paneel--blauw { background: var(--primary-500); }
@media (max-width: 900px) { .vervolg__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- beoordelingswerkbalk */
.proefbalk {
  position: fixed; left: 50%; bottom: 16px; z-index: 300;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: var(--r-rond); background: rgb(17 17 17 / .88); color: #fff;
  font: 600 .875rem/1 var(--font-body);
  backdrop-filter: blur(10px);
}
.proefbalk a, .proefbalk button {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: var(--r-rond); background: transparent; color: #fff;
  font: inherit; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.proefbalk a:hover, .proefbalk button:hover { background: rgb(255 255 255 / .16); }
.proefbalk a[aria-current="page"] { background: #fff; color: #111; }
.proefbalk__sep { width: 1px; height: 20px; background: rgb(255 255 255 / .25); margin: 0 4px; }
@media (max-width: 700px) { .proefbalk__naam { display: none; } }

@media (max-width: 760px) {
  .herokaart h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
  .videoknop { top: 80px; bottom: auto; right: 16px; width: 48px; padding: 0; }
  .videoknop .videoknop__tekst { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .intro__overslaan { bottom: 80px; }
}

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