/* ==========================================================================
   Nordic Escape — stylesheet
   Alle kleuren, typografie en ruimtes staan als tokens in :root hieronder.
   Pas daar aan; de rest van het bestand verwijst er alleen naar.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Lettertype — Manrope, zelf gehost (OFL-1.1, zie fonts/OFL.txt)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-variable.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Kleur */
  --background: #faf8f4;
  --surface: #ffffff;
  --sand: #efe7dc;
  --wood: #76543c;
  --wood-hover: #5d402d;
  --text: #292d28;
  --text-muted: #62665f;
  --sage: #dde5d9;
  --lake: #dee8e9;
  --border: #d6cfc4;
  --input-border: #827b70;
  --focus: #325b50;
  --error: #a33030;
  /* Tweede accent: diep bosgroen. Geeft de lichte vlakken tegenwicht. */
  --forest: #27453c;
  --forest-soft: #34574c;

  /* Typografie */
  --font: 'Manrope', Arial, sans-serif;

  --size-h1: clamp(2.375rem, 1.55rem + 3.6vw, 4rem);      /* 38 → 64 */
  --size-h2: clamp(1.875rem, 1.55rem + 1.45vw, 2.5rem);   /* 30 → 40 */
  --size-h3: clamp(1.375rem, 1.31rem + 0.28vw, 1.5rem);   /* 22 → 24 */
  --size-intro: clamp(1.1875rem, 1.13rem + 0.28vw, 1.3125rem); /* 19 → 21 */
  --size-body: clamp(1.0625rem, 1.03rem + 0.14vw, 1.125rem);   /* 17 → 18 */
  --size-ui: 1rem;        /* 16 */
  --size-small: 0.875rem; /* 14 */

  /* Ruimte */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  /* Maten */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 56px;
  --measure: 65ch;
  --radius-button: 6px;
  --radius-image: 8px;

  /* Beweging */
  --transition: 180ms ease;
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --section-y: 96px;
  }
}

@media (min-width: 1100px) {
  :root { --gutter: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition: 1ms linear; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0 0 var(--space-3);
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--size-h1); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: var(--size-h2); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: var(--size-h3); font-weight: 600; line-height: 1.3; }

p { margin: 0 0 var(--space-3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--wood); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wood-hover); }

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

ul { margin: 0 0 var(--space-3); padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: var(--space-1); }
li:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hulpklassen
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--sage { background: var(--sage); }
.section--lake { background: var(--lake); }

/* Donkere sectie: één keer per pagina, als tegenwicht voor het lichte geheel. */
.section--forest {
  background: var(--forest);
  color: #f4f1ea;
}
.section--forest h2,
.section--forest h3 { color: #ffffff; }
.section--forest .intro { color: #d9e2dc; }
.section--forest a:not(.button) { color: #ffffff; }
.section--forest .button--secondary {
  border-color: #ffffff;
  color: #ffffff;
}
.section--forest .button--secondary:hover {
  background: #ffffff;
  color: var(--forest);
}

.intro {
  font-size: var(--size-intro);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 54ch;
}

.note {
  font-size: var(--size-small);
  line-height: 1.5;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: var(--radius-button);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-2); }

/* --------------------------------------------------------------------------
   Knoppen
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  font: inherit;
  font-size: var(--size-ui);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.button--primary {
  background: var(--wood);
  border-color: var(--wood);
  color: #ffffff;
}
.button--primary:hover {
  background: var(--wood-hover);
  border-color: var(--wood-hover);
  color: #ffffff;
}

.button--secondary {
  background: transparent;
  border-color: var(--wood);
  color: var(--wood);
}
.button--secondary:hover {
  background: var(--wood);
  color: #ffffff;
}

.button[disabled] { opacity: 0.6; cursor: not-allowed; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Header en navigatie
   -------------------------------------------------------------------------- */
.header {
  position: relative;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  /* Zonder wrap komt het uitgeklapte menu naast de knop te staan en
     loopt het buiten het scherm; met wrap valt het er netjes onder. */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 72px;
  padding-block: var(--space-2);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--wood);
  text-decoration: none;
  white-space: nowrap;
}
/* Rondje in bosgroen: geeft het woordmerk een anker zonder een icoon te worden. */
.wordmark::before {
  content: '';
  flex: none;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--forest);
  transition: background-color var(--transition);
}
.wordmark:hover { color: var(--wood-hover); }
.wordmark:hover::before { background: var(--wood); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  color: var(--text);
  font: inherit;
  font-size: var(--size-ui);
  font-weight: 600;
  cursor: pointer;
}

.nav {
  display: none;
  width: 100%;
  padding-bottom: var(--space-3);
}
.nav.is-open { display: block; }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.nav__list li { margin: 0; }

.nav__link {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-size: var(--size-ui);
  font-weight: 600;
  text-decoration: none;
}
.nav__link:hover { color: var(--wood); }
.nav__link[aria-current='page'] {
  color: var(--wood);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav__cta { margin-top: var(--space-2); }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav {
    display: block;
    width: auto;
    padding-bottom: 0;
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
  .nav__link { padding: 0; }
  .nav__cta { margin-top: 0; margin-left: var(--space-2); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--section-y); }

.hero__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero__text > :last-child { margin-bottom: 0; }

.hero__image img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  /* De staande foto wordt liggend uitgesneden; hoger uitsnijden houdt
     het meer en de steiger in beeld in plaats van de bestrating. */
  object-position: center 30%;
  border-radius: var(--radius-image);
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 40fr 60fr;
    gap: var(--space-6);
  }
  .hero__image img { max-height: 620px; }
}

/* --------------------------------------------------------------------------
   Tekstblokken
   -------------------------------------------------------------------------- */
.prose > :last-child { margin-bottom: 0; }

.section__head {
  max-width: 54ch;
  margin-bottom: var(--space-5);
}
.section__head > :last-child { margin-bottom: 0; }

/* Drie inhoudsblokken zonder kaartranden */
.blocks {
  display: grid;
  gap: var(--space-5);
}
.block > :last-child { margin-bottom: 0; }
.block h3 { margin-bottom: var(--space-2); }

@media (min-width: 768px) {
  .blocks { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}

/* Beeld naast tekst */
.split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.split__text > :last-child { margin-bottom: 0; }
.split__image img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-image);
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  /* Staande foto's naast een korte tekst niet laten uitgroeien. */
  .split__image img { max-height: 540px; }
  .split--wide-image { grid-template-columns: 1fr 1.15fr; }
  .split--image-first .split__image { order: -1; }
}

/* Kerncijfers, groot gezet */
.cijfers {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.cijfers > li { margin: 0; }

.cijfer__getal {
  display: block;
  /* nowrap: "3,3 mln" mag niet over twee regels breken */
  white-space: nowrap;
  font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}
.section--forest .cijfer__getal { color: #a8c8b8; }

.cijfer__label {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--size-ui);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.section--forest .cijfer__label { color: #ffffff; }

.cijfer__tekst {
  margin-top: var(--space-2);
  max-width: 34ch;
}

@media (min-width: 768px) {
  .cijfers { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}

/* Beeld met bijschrift */
.figuur { margin: 0; }
.figuur figcaption {
  margin-top: var(--space-2);
  font-size: var(--size-small);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Volle breedte beeld met tekst eronder */
.feature__image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  /* Iets hoger uitsnijden: bij staande foto's blijft zo het onderwerp
     in beeld in plaats van de voorgrond. */
  object-position: center 32%;
  border-radius: var(--radius-image);
  margin-bottom: var(--space-4);
}

/* Voor staande foto's op volle breedte: meer hoogte, zodat de voorgrond
   niet wegvalt in een smalle strook. */
.feature__image--hoog img {
  max-height: 620px;
  object-position: center 55%;
}

/* Lijst met korte omschrijvingen */
.definitions {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}
.definitions dt {
  font-size: var(--size-h3);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-1);
}
.definitions dd { margin: 0; max-width: var(--measure); }

@media (min-width: 768px) {
  .definitions { grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); }
}

/* Afsluitende oproep */
.closing { text-align: left; }
.closing .intro { margin-inline: 0; }

/* --------------------------------------------------------------------------
   Formulier
   -------------------------------------------------------------------------- */
.form {
  max-width: 620px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-image);
}

@media (min-width: 768px) {
  .form { padding: var(--space-5); }
}

.field { margin-bottom: var(--space-4); }

.field__label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--size-ui);
  font-weight: 600;
}

.field__hint {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--size-small);
  color: var(--text-muted);
}

.field input[type='text'],
.field input[type='email'],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-button);
  color: var(--text);
  font: inherit;
  font-size: var(--size-body);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2362665f' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.field__error {
  display: block;
  margin-top: var(--space-1);
  color: var(--error);
  font-size: var(--size-small);
  font-weight: 600;
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--error);
  border-width: 2px;
}

.form__status {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-button);
  font-size: var(--size-body);
}
.form__status:empty { display: none; }
.form__status--error {
  background: #f7e9e9;
  border: 1px solid var(--error);
  color: #7a2424;
}
.form__status--ok {
  background: var(--sage);
  border: 1px solid var(--focus);
  color: var(--text);
}

.form__footnote {
  margin-top: var(--space-3);
  font-size: var(--size-small);
  color: var(--text-muted);
}

/* Zichtbare markering dat het formulier in deze preview niets verstuurt */
.demo-banner {
  max-width: 620px;
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--lake);
  border: 1px solid var(--focus);
  border-radius: var(--radius-button);
  font-size: var(--size-small);
  line-height: 1.5;
}
.demo-banner strong { font-weight: 700; }

/* Interne markering voor ontbrekend materiaal — alleen in de preview */
.placeholder {
  display: block;
  padding: var(--space-2) var(--space-3);
  background: repeating-linear-gradient(
    45deg, var(--sand), var(--sand) 10px, var(--background) 10px, var(--background) 20px
  );
  border: 1px dashed var(--input-border);
  border-radius: var(--radius-button);
  font-size: var(--size-small);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-block: var(--space-5);
  background: var(--sand);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  gap: var(--space-4);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.footer__nav li { margin: 0; }
.footer__nav a {
  color: var(--text);
  font-size: var(--size-ui);
  font-weight: 600;
  text-decoration: none;
}
.footer__nav a:hover { color: var(--wood); text-decoration: underline; }

.footer__meta {
  font-size: var(--size-small);
  color: var(--text-muted);
}
.footer__meta p { max-width: var(--measure); }

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: var(--space-5);
  }
}
