/* =================================================================
   Migratieproject — Portret van een migrant
   Huisstijl exact overgenomen van POSTER.pdf
   Scrapbook / reisdagboek: kraftpapier, brush-script, bosgroen
   ================================================================= */

/* ---------- Lettertypen (lokaal, woff2 + woff) ---------- */
@font-face { font-family:"Riverstyle"; src:url("../fonts/Riverstyle Font Regular.woff2") format("woff2"), url("../fonts/Riverstyle Font Regular.woff") format("woff"); font-weight:400; font-display:swap; }

@font-face { font-family:"Bree"; src:url("../fonts/Bree Light.woff2") format("woff2"), url("../fonts/Bree Light.woff") format("woff");                 font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:"Bree"; src:url("../fonts/Bree Light Oblique.woff2") format("woff2"), url("../fonts/Bree Light Oblique.woff") format("woff"); font-weight:300; font-style:italic; font-display:swap; }
@font-face { font-family:"Bree"; src:url("../fonts/Bree Regular.woff2") format("woff2"), url("../fonts/Bree Regular.woff") format("woff");             font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Bree"; src:url("../fonts/Bree Oblique.woff2") format("woff2"), url("../fonts/Bree Oblique.woff") format("woff");             font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:"Bree"; src:url("../fonts/Bree Bold.woff2") format("woff2"), url("../fonts/Bree Bold.woff") format("woff");                   font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Bree"; src:url("../fonts/Bree Bold Oblique.woff2") format("woff2"), url("../fonts/Bree Bold Oblique.woff") format("woff");   font-weight:700; font-style:italic; font-display:swap; }
@font-face { font-family:"Bree"; src:url("../fonts/Bree ExtraBold.woff2") format("woff2"), url("../fonts/Bree ExtraBold.woff") format("woff");         font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:"Bree"; src:url("../fonts/Bree ExtraBold Oblique.woff2") format("woff2"), url("../fonts/Bree ExtraBold Oblique.woff") format("woff"); font-weight:800; font-style:italic; font-display:swap; }

/* ---------- Tokens ---------- */
:root {
  /* Kleuren — afgeleid van de poster */
  --kraft:         #c8b994;
  --kraft-diep:    #b1a075;
  --kraft-licht:   #f4eed9;
  --kraft-rand:    rgba(70,52,28,0.52); /* donkere randen / vignet */
  --papier:        #fbf7ea;
  --olijf:         #868c54;
  --olijf-licht:   #b6b986;
  --groen:         #356b3c;
  --groen-helder:  #46874f;
  --groen-donker:  #1f3a1f;
  --groen-diep:    #16291a;
  --tekst:         #2c2a24;
  --tekst-zacht:   #5a5546;
  --tekst-groen:   #2f6e3e;
  --tape:          rgba(233, 226, 200, 0.72);
  --lijn:          rgba(47, 110, 62, 0.25);

  /* Typografie */
  --font-brush: "Riverstyle", cursive;            /* brush-script: titels + banners */
  --font-hand:  "Bree", system-ui, sans-serif;    /* labels/UI (Bree, vetter gewicht) */
  --font-body:  "Bree", system-ui, sans-serif;    /* lopende tekst */

  /* Maatvoering */
  --maxw: 1140px;
  --radius: 4px;
  --schaduw: 0 18px 40px -22px rgba(31, 58, 31, 0.55);
  --schaduw-zacht: 0 10px 24px -16px rgba(44, 42, 36, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  color: var(--tekst);
  line-height: 1.7;
  font-size: 1.05rem;
  background-color: var(--kraft);
  background-image:
    url("../assets/img/speckle.webp"),                                                          /* kurk/recyclepapier-spikkels */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),  /* fijne vezel */
    radial-gradient(ellipse 130% 125% at 50% 30%, transparent 48%, var(--kraft-rand) 100%),     /* donkere randen */
    linear-gradient(180deg, #e8e0c9 0%, #d8c8a7 45%, #c6b187 100%);                             /* verticaal verloop */
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-size: 280px 280px, 200px 200px, cover, cover;
  background-attachment: fixed, fixed, fixed, fixed;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--groen); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Typografie ---------- */
.brush {
  font-family: var(--font-brush);
  color: var(--tekst-groen);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.5px;
}
h1, h2, h3 { font-family: var(--font-brush); color: var(--tekst-groen); font-weight: 400; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

p { max-width: 68ch; }
.kaart p { max-width: none; }   /* in kaarten vult de tekst de hele breedte */
.center { text-align: center; }

/* Grote brush-sectiekop zonder achtergrond (bv. "Ontdek het project") */
.brush-titel { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 0.4rem; }

/* Sectielabel: groene kwaststreek-banner met witte tekst (zoals poster) */
.banner {
  display: inline-block;
  font-family: var(--font-brush);
  color: var(--papier);
  background: url("../assets/img/kwaststreek.webp") no-repeat center;
  background-size: 100% 100%;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1;
  padding: 0.16em 2em 0.42em 1em;
  filter: drop-shadow(0 4px 6px rgba(31, 58, 31, 0.28));
}

/* ---------- Layout ---------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.stack > * + * { margin-top: 1.2rem; }

/* ===================================================================
   HEADER / NAVIGATIE
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(205, 191, 158, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--lijn);
}
.nav {
  width: min(var(--maxw), 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0;
}
.nav__links { display: flex; gap: 0.4rem; list-style: none; padding: 0; flex-wrap: wrap; justify-content: center; }
.nav__links a {
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  color: var(--tekst);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover { background: rgba(58,125,68,0.14); color: var(--tekst-groen); }
.nav__links a[aria-current="page"] { background: var(--groen); color: var(--papier); }

.nav__toggle {
  display: none;
  background: none; border: 2px solid var(--groen);
  border-radius: 8px; padding: 0.3rem 0.5rem; cursor: pointer;
  color: var(--groen); font-size: 1.2rem;
}

/* ===================================================================
   HERO (home)
   =================================================================== */
.hero { position: relative; overflow: hidden; }

/* Europa-kaart als achtergrond (rechtsboven, faded zoals de poster) */
.hero__earth {
  position: absolute; z-index: 0; pointer-events: none;
  top: clamp(-2rem, -1vw, 0rem);
  right: clamp(-3rem, -2vw, -0.5rem);
  width: min(66%, 780px);
  aspect-ratio: 681 / 648;
  opacity: 0.96;
  -webkit-mask: radial-gradient(ellipse 78% 72% at 54% 42%, #000 50%, transparent 82%);
          mask: radial-gradient(ellipse 78% 72% at 54% 42%, #000 50%, transparent 82%);
}
.hero__earth > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__map { object-fit: contain; }

.hero__inner { position: relative; z-index: 2; padding: clamp(2.5rem,7vw,6rem) 0 clamp(3rem,6vw,5rem); }
.hero h1 { text-shadow: 0 2px 0 rgba(251,247,234,0.65); }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .lijn2 { margin-left: clamp(1rem, 7vw, 5rem); }
.hero .lead {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  max-width: 50ch;
  color: var(--tekst-zacht);
}
.hero .lead strong { color: var(--tekst-groen); font-weight: 700; }

/* Vliegtuig op de route */
.route .plane path { fill: var(--groen-donker); }

/* Knop */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-hand); font-size: 1.05rem; font-weight: 800;
  background: var(--groen); color: var(--papier);
  padding: 0.6rem 1.5rem; border-radius: 30px;
  text-decoration: none; box-shadow: var(--schaduw-zacht);
  transition: transform 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); background: var(--groen-helder); color: #fff; }
.btn--ghost { background: transparent; color: var(--tekst-groen); border: 2px solid var(--groen); }
.btn--ghost:hover { background: var(--groen); color: var(--papier); }

/* ===================================================================
   POLAROID-KAARTEN (navigatie naar onderdelen)
   =================================================================== */
.kiekjes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.8rem);
  margin-top: 2.5rem;
}
.polaroid {
  background: #fff;
  padding: 0.4rem 0.4rem 0;
  box-shadow: var(--schaduw);
  text-decoration: none;
  color: var(--tekst);
  display: block;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.polaroid::before {  /* washi-tape */
  content: "";
  position: absolute; top: -12px; left: 50%;
  width: 84px; height: 26px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.kiekjes .polaroid:nth-child(1) { transform: rotate(-3.5deg) translateY(8px); }
.kiekjes .polaroid:nth-child(2) { transform: rotate(2.4deg) translateY(-12px); }
.kiekjes .polaroid:nth-child(3) { transform: rotate(-1.8deg) translateY(10px); }
.kiekjes .polaroid:nth-child(4) { transform: rotate(3.2deg) translateY(-6px); }
.kiekjes .polaroid:nth-child(2)::before { transform: translateX(-50%) rotate(5deg); }
.kiekjes .polaroid:nth-child(3)::before { left: 32%; transform: rotate(-7deg); }
.kiekjes .polaroid:nth-child(4)::before { left: 68%; transform: rotate(6deg); }
.polaroid:hover { transform: rotate(0) translateY(-8px) scale(1.03); box-shadow: 0 26px 50px -24px rgba(31,58,31,0.65); z-index: 3; }
.polaroid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.polaroid__cap {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  text-align: center;
  margin-top: 0;
  padding: 1.15rem 1.1rem 1.05rem;
  color: var(--tekst-groen);
  font-weight: 800;
}

/* ===================================================================
   GESCHEURD-PAPIER KAARTEN
   =================================================================== */
.kaart {
  background: var(--papier);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  position: relative;
  /* gescheurde papierrand (boven + onder), zoals op de poster */
  --tear-h: 16px;
  -webkit-mask:
    url("../assets/img/tear-top.svg")    top    left / 360px var(--tear-h) repeat-x,
    url("../assets/img/tear-bottom.svg") bottom left / 360px var(--tear-h) repeat-x,
    linear-gradient(#000, #000) left center / 100% calc(100% - (var(--tear-h) * 2 - 2px)) no-repeat;
  -webkit-mask-composite: source-over;
  mask:
    url("../assets/img/tear-top.svg")    top    left / 360px var(--tear-h) repeat-x,
    url("../assets/img/tear-bottom.svg") bottom left / 360px var(--tear-h) repeat-x,
    linear-gradient(#000, #000) left center / 100% calc(100% - (var(--tear-h) * 2 - 2px)) no-repeat;
  mask-composite: add;
  filter: drop-shadow(0 14px 20px rgba(31, 58, 31, 0.30));
}

/* ===================================================================
   FOOTER (donkergroene balk met iconen)
   =================================================================== */
.site-footer {
  background: var(--groen-donker);
  color: var(--kraft-licht);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.6rem, 4vw, 2.4rem) 0;
  border-top: 4px solid var(--groen);
}
.footer__inner {
  width: min(var(--maxw), 94vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer__waarden { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.waarde {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-brush); font-size: 1.7rem; color: var(--kraft-licht);
}
.waarde svg { width: 26px; height: 26px; fill: var(--kraft-licht); }
.footer__sep { width: 1px; height: 26px; background: rgba(255,255,255,0.25); }
.footer__tagline {
  font-family: var(--font-brush);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--kraft-licht);
  text-align: right;
  line-height: 1.15;
  max-width: 18ch;
}

/* ===================================================================
   INTERVIEW (vraag-antwoord)
   =================================================================== */
.qa { border-bottom: 1px dashed var(--lijn); padding: 1.4rem 0; }
.qa:last-child { border-bottom: 0; }
.qa__v {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-family: var(--font-hand); font-size: 1.15rem; font-weight: 800; color: var(--tekst-groen);
}
.qa__v .merk, .qa__a .merk {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
}
.qa__v .merk { background: var(--groen); color: var(--papier); }
.qa__a { display: flex; gap: 0.7rem; margin-top: 0.6rem; }
.qa__a .merk { background: var(--kraft-diep); color: var(--groen-donker); }
.qa__a p { margin-top: 0.15rem; }

/* Intro-kaart interview */
.steekkaart { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; font-family: var(--font-hand); font-size: 1.05rem; font-weight: 600; }
.steekkaart b { color: var(--tekst-groen); }

/* ===================================================================
   ONDERZOEK (accordeon-achtige vraagblokken + bronnen)
   =================================================================== */
.vraagblok { margin-top: 2.5rem; max-width: 860px; margin-inline: auto; }
.vraagblok h2 {
  display: flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--font-hand);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.2;
}
.vraagblok h2 .nr {
  font-family: var(--font-body); font-weight: 600; font-size: 1.1rem;
  background: var(--groen); color: var(--papier);
  border-radius: 50%; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; flex: none;
}
.bronnen {
  margin-top: 1.5rem; padding: 1rem 1.3rem;
  background: rgba(139,145,89,0.16);
  border-left: 4px solid var(--olijf);
  border-radius: var(--radius);
}
.bronnen h3 { font-family: var(--font-hand); font-size: 1.1rem; font-weight: 800; color: var(--tekst-groen); }
.bronnen ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.bronnen li { font-size: 0.95rem; color: var(--tekst-zacht); margin-top: 0.35rem; }

/* ===================================================================
   REFLECTIE
   =================================================================== */
.reflectie { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 2rem; }
.reflectie__nr {
  font-family: var(--font-brush); font-size: 3.5rem; color: var(--olijf);
  line-height: 1; flex: none; opacity: 0.8;
}

/* Intro-rij (steekkaart + polaroid) */
.intro-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}
.intro-row .lead-tekst { font-size: 1.12rem; }
.polaroid--solo { transform: rotate(-2deg); max-width: 360px; margin-inline: auto; }
.polaroid--solo:hover { transform: rotate(0) translateY(-6px); }

/* Twee gelijke kolommen */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  margin-top: 2rem;
}

/* Subkop in Bree (zoals "Doorzettingsvermogen" op de poster) */
.subkop { font-family: var(--font-hand); font-weight: 800; color: var(--tekst-groen); font-size: 1.18rem; margin-bottom: 0.15rem; }
.blok + .blok { margin-top: 1.5rem; }
.blok p { margin-top: 0; }

/* Paginakop (binnenpagina's) */
.paginakop { padding: clamp(2rem,5vw,3.5rem) 0 1rem; text-align: center; }
.paginakop .sub { max-width: 60ch; margin-inline: auto; }
.paginakop .sub { font-family: var(--font-hand); font-size: 1.1rem; font-weight: 600; color: var(--tekst-zacht); margin-top: 0.5rem; }

/* Foto-strip */
.fotostrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 2rem; }
.fotostrip .polaroid { padding: 0.5rem 0.5rem 0; }
.fotostrip .polaroid::before { display: none; }
.fotostrip .polaroid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.fotostrip .polaroid__cap { font-size: 1rem; padding: 0.8rem 0.6rem 0.7rem; }
.fotostrip .polaroid:nth-child(3n+1) { transform: rotate(-2.2deg); }
.fotostrip .polaroid:nth-child(3n+2) { transform: rotate(1.6deg); }
.fotostrip .polaroid:nth-child(3n)   { transform: rotate(2.4deg); }
.fotostrip .polaroid:hover { transform: rotate(0) translateY(-6px) scale(1.02); z-index: 3; }

/* Posterweergave */
.posterfig { margin: 2rem auto; max-width: 720px; box-shadow: var(--schaduw); background:#fff; padding: 10px; }
.posterfig img { width: 100%; }

/* ===================================================================
   ANIMATIES (subtiel)
   =================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .hero h1 { animation: opkomst 0.9s ease both; }
  .hero .lead { animation: opkomst 0.9s ease 0.15s both; }
  .hero .btn { animation: opkomst 0.9s ease 0.3s both; }
}
@keyframes opkomst { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Header krijgt subtiele schaduw zodra je scrollt */
.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.site-header.scrolled { box-shadow: 0 8px 22px -12px rgba(31, 58, 31, 0.55); }

/* Poster zacht laten 'liften' bij hover */
.posterfig { transition: transform 0.3s ease, box-shadow 0.3s ease; }
a:hover > .posterfig { transform: translateY(-5px) rotate(-0.4deg); box-shadow: 0 30px 55px -26px rgba(31, 58, 31, 0.6); }

@media (prefers-reduced-motion: no-preference) {
  /* Entree van de paginakop */
  .paginakop .banner { animation: opkomst 0.7s ease both; }
  .paginakop h1      { animation: opkomst 0.7s ease 0.12s both; }
  .paginakop .sub    { animation: opkomst 0.7s ease 0.24s both; }
  /* Kleine speelse hover op de footer-iconen */
  .waarde svg { transition: transform 0.25s ease; }
  .waarde:hover svg { transform: scale(1.18) rotate(-5deg); }
  /* Genummerde cirkels en V/A-merken zachtjes opschalen bij hover van het blok */
  .vraagblok h2 .nr, .reflectie__nr { transition: transform 0.3s ease; }
  .vraagblok:hover h2 .nr { transform: scale(1.08) rotate(-4deg); }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .intro-row { grid-template-columns: 1fr; }
  .polaroid--solo { max-width: 320px; }

  /* Geen menubalk op mobiel: enkel een zwevend icoon rechtsboven */
  .site-header {
    position: fixed; inset: 0 0 auto 0;
    background: transparent; backdrop-filter: none;
    border: none; box-shadow: none !important;
    pointer-events: none;
  }
  .nav { justify-content: flex-end; padding: 0; position: relative; }
  .nav__toggle {
    display: grid; place-items: center;
    pointer-events: auto;
    width: 48px; height: 48px; margin: 0.7rem 0;
    border: none; border-radius: 12px;
    background: var(--groen); color: var(--papier);
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(31,58,31,0.6);
  }
  .nav__links {
    position: absolute; top: calc(100% + 6px); right: 0; left: auto;
    width: min(230px, 72vw);
    flex-direction: column; gap: 0;
    background: var(--kraft-licht);
    border: 2px solid var(--groen); border-radius: 14px;
    overflow: hidden; box-shadow: var(--schaduw);
    pointer-events: auto;
    max-height: 0; opacity: 0; visibility: hidden;
    transition: max-height 0.32s ease, opacity 0.25s ease, visibility 0s linear 0.32s;
  }
  .nav__links.open { max-height: 460px; opacity: 1; visibility: visible; transition: max-height 0.32s ease, opacity 0.25s ease; }
  .nav__links li + li a { border-top: 1px solid var(--lijn); }
  .nav__links a { display: block; padding: 0.85rem 1.2rem; border-radius: 0; font-size: 1.15rem; }
  .nav__links a[aria-current="page"] { background: var(--groen); color: var(--papier); }

  /* iets meer ruimte bovenaan zodat content niet onder het icoon valt */
  .hero { padding-top: 1.5rem; }
  .paginakop { padding-top: 4.5rem; }

  .hero__earth { width: 118%; right: -25%; top: 0; opacity: 0.32; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__tagline { text-align: center; max-width: none; }
  .reflectie { flex-direction: column; gap: 0.4rem; }
}
