/* ==================================================
   VARIABELEN

   Overgenomen uit de ontwerp-handoff. Kleuren en maten
   die per site verschillen staan hier bovenaan; de rest
   van de CSS verwijst alleen nog naar deze namen.

   De clamp()-waarden schalen mee met het scherm: de
   eerste waarde geldt op 390px, de laatste op 1240px.
================================================== */

:root {
  /* kleuren */
  --primary: #14232b;
  --accent: #0068a0;
  --accent-hover: #00456d;
  --accent-bright: #0079bd;
  --accent-tint: #f0f7fb;
  --accent-tint-border: #cde4f1;
  --sand: #e8dcc8;
  --sand-text: #4a3a1e;
  --star: #d99b1c;
  --star-on-dark: #e8b84b;

  --white: #ffffff;
  --surface: #f4f6f7;
  --line: #e2e7ea;
  --line-strong: #cfd8dd;
  --text: #14232b;
  --text-muted: #5c6b74;
  --text-soft: #7d8b93;

  /* op donkere vlakken */
  --on-dark: rgb(255 255 255 / 82%);
  --on-dark-soft: rgb(255 255 255 / 60%);
  --on-dark-faint: rgb(255 255 255 / 45%);
  --on-dark-line: rgb(255 255 255 / 13%);

  /* maten */
  --container-width: 1240px;
  --container-padding: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
  --section-padding-top: clamp(3.25rem, 2rem + 5vw, 5.5rem);
  --section-padding-bottom: clamp(3.5rem, 2.1rem + 5.6vw, 6rem);

  --radius: 3px;
  --radius-card: 4px;

  /* typografie */
  --font: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --font-quote: 'Newsreader', Georgia, serif;

  --h1: clamp(2.3125rem, 1.4rem + 3.79vw, 3.875rem);
  --h2: clamp(1.875rem, 1.43rem + 1.82vw, 2.625rem);
  --h2-klein: clamp(1.75rem, 1.31rem + 1.82vw, 2.5rem);
  --h3-groot: clamp(1.4375rem, 1.23rem + 0.85vw, 1.8125rem);
  --h3: clamp(1.3125rem, 1.13rem + 0.76vw, 1.5625rem);
  --h3-klein: clamp(1.3125rem, 1.2rem + 0.53vw, 1.375rem);
  --h4: clamp(0.96875rem, 0.94rem + 0.12vw, 1.03125rem);

  --lead: clamp(1rem, 0.86rem + 0.59vw, 1.15625rem);
  --text-basis: clamp(0.9375rem, 0.91rem + 0.12vw, 1rem);
  --text-kaart: clamp(0.90625rem, 0.89rem + 0.06vw, 0.96875rem);
  --text-klein: clamp(0.78125rem, 0.76rem + 0.09vw, 0.84375rem);
  --kicker: clamp(0.65625rem, 0.63rem + 0.12vw, 0.71875rem);
  --tag: clamp(0.75rem, 0.74rem + 0.06vw, 0.78125rem);
  --cijfer: clamp(1.25rem, 1.02rem + 0.95vw, 1.5625rem);
  --citaat: clamp(1.125rem, 0.99rem + 0.57vw, 1.3125rem);
}


/* ==================================================
   LETTERTYPEN

   Zelf gehost in plaats van via Google Fonts: scheelt
   een externe verbinding en de tekst is meteen zichtbaar.
================================================== */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ==================================================
   BASIS
================================================== */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

}

/*
 * De header plakt bovenaan en zou anders over een
 * aangeklikt anker heen vallen.
 */
[id] {
  scroll-margin-top: calc(var(--header-height, 6.125rem) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;

  background-color: var(--white);
  color: var(--text);

  font-family: var(--font);
  font-size: var(--text-basis);
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

/*
 * De width/height op een <img> staan er voor de juiste
 * verhouding tijdens het laden. Zonder deze regel telt die
 * hoogte ook echt mee zodra de CSS de breedte aanpast.
 */
img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--h1);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

h2 {
  font-size: var(--h2);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h3 {
  font-size: var(--h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--h4);
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

/*
 * Elke sectie heeft dezelfde ritmiek en sluit af met een
 * lijn. Donkere en blauwe secties tekenen die lijn niet,
 * daar doet de kleurwissel het werk.
 */
.sectie {
  padding-top: var(--section-padding-top);
  padding-bottom: var(--section-padding-bottom);

  border-bottom: 1px solid var(--line);
}

.sectie--grijs {
  background-color: var(--surface);
}

.sectie--donker {
  background-color: var(--primary);
  color: var(--white);

  border-bottom: none;
}

.sectie--blauw {
  background-color: var(--accent);
  color: var(--white);

  border-bottom: none;
}

.sectie--donker h2,
.sectie--blauw h2 {
  color: var(--white);
}

/* Label boven een kop */

.kicker {
  font-size: var(--kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-soft);
}

.sectie--donker .kicker {
  color: var(--on-dark-soft);
}

/*
 * Sectiekop: titel links, ondersteunende tekst of een
 * link rechts. Klapt vanzelf onder elkaar als het niet past.
 */
.sectiekop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

.sectiekop__titel {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 0.6rem + 0.6vw, 1rem);

  max-width: 36rem;
}

.sectiekop__naast {
  max-width: 25rem;

  font-size: var(--text-kaart);
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

.lead {
  font-size: var(--lead);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.tekst {
  color: var(--text-muted);
  text-wrap: pretty;
}


/* ==================================================
   KNOPPEN
================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 2.75rem;
  padding: 0.9375rem 1.75rem;

  background-color: var(--accent);
  color: var(--white);

  font-size: var(--text-kaart);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;

  border: none;
  border-radius: var(--radius);

  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}

/* op een foto: oplichten in plaats van verdonkeren */

.btn--op-foto:hover {
  background-color: var(--accent-bright);
}

/* aanvragen in plaats van direct boeken */

.btn--dark {
  background-color: var(--primary);
}

.btn--dark:hover {
  background-color: var(--accent);
}

/* secundair, op een lichte ondergrond */

.btn--ghost {
  padding: 0.875rem 1.625rem;

  background-color: transparent;
  color: var(--text);

  font-weight: 500;

  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  background-color: var(--surface);
  color: var(--text);
}

/* secundair, op een donkere ondergrond of foto */

.btn--ghost-licht {
  padding: 0.875rem 1.625rem;

  background-color: transparent;
  color: var(--white);

  font-weight: 500;

  border: 1px solid rgb(255 255 255 / 40%);
}

.btn--ghost-licht:hover {
  background-color: rgb(255 255 255 / 10%);
  color: var(--white);
}

/* wit, voor op het blauwe vlak */

.btn--light {
  background-color: var(--white);
  color: var(--accent);
}

.btn--light:hover {
  background-color: var(--accent-tint);
  color: var(--accent);
}

.btn-rij {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}


/* ==================================================
   CONTACTBALK

   Smalle balk helemaal bovenaan met adres en
   contactgegevens. Verdwijnt op mobiel; daar staan de
   gegevens in het uitgeklapte menu.
================================================== */

.contactbalk {
  background-color: var(--primary);
  color: var(--on-dark);

  font-size: 0.78125rem;
}

.contactbalk__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  min-height: 2.375rem;
}

.contactbalk__gegevens {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contactbalk a {
  color: var(--on-dark);
}

.contactbalk a:hover {
  color: var(--white);
}

.contactbalk__scheiding {
  color: rgb(255 255 255 / 28%);
}

.taalkiezer {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.taalkiezer a {
  padding: 0.1875rem 0.5rem;

  color: var(--on-dark-soft);

  border-radius: 2px;
}

.taalkiezer a[aria-current] {
  background-color: rgb(255 255 255 / 14%);
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 899px) {

  .contactbalk {
    display: none;
  }

}


/* ==================================================
   HEADER

   Plakt bovenaan met een licht doorschijnende
   achtergrond. De hoogte wordt door global.js in
   --header-height gezet, zodat ankers goed uitkomen.
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;

  background-color: rgb(255 255 255 / 94%);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  height: clamp(3.875rem, 2.6rem + 3.3vw, 6.125rem);
}

.site-header__logo {
  width: clamp(7.375rem, 5.6rem + 4.6vw, 10.75rem);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;

  margin: 0;
  padding: 0;

  list-style: none;
}

.site-nav__links a {
  color: var(--text);

  font-size: var(--text-kaart);
  font-weight: 500;
}

.site-nav__links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;

  width: 2.75rem;
  height: 2.75rem;

  align-items: center;
  justify-content: center;

  background: none;
  color: var(--text);

  font-size: 1.1875rem;
  line-height: 1;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  cursor: pointer;
}

.nav-toggle__sluiten {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__openen {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__sluiten {
  display: block;
}

/* het uitklappaneel bestaat alleen op mobiel */

.mobiel-menu {
  display: none;
}

@media (max-width: 899px) {

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /*
   * Schermvullend paneel onder de header, over de boekbalk heen.
   *
   * z-index 80 legt het over de boekbalk (70) heen. Let op: dit paneel
   * moet in de HTML búiten .site-header blijven staan. Die header heeft
   * backdrop-filter en wordt daardoor het bevattende blok voor alles
   * wat erin position:fixed staat — het paneel zou zich dan aan de
   * header meten in plaats van aan het scherm.
   */
  .mobiel-menu[data-open] {
    position: fixed;
    z-index: 80;
    top: var(--header-height, 6.125rem);
    right: 0;
    bottom: 0;
    left: 0;

    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;

    padding-top: 0.5rem;
    padding-bottom: 2.5rem;

    background-color: var(--white);
    border-top: 1px solid var(--line);
  }

  .mobiel-menu__links {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0.5rem 0 0;

    list-style: none;
  }

  .mobiel-menu__links a {
    display: block;

    padding: 0.9375rem 0;

    color: var(--text);

    font-size: 1.125rem;
    font-weight: 600;

    border-bottom: 1px solid #eef1f3;
  }

  .mobiel-menu__links li:last-child a {
    border-bottom: none;
  }

  .mobiel-menu .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .mobiel-menu__gegevens {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    margin-top: 1.125rem;

    font-size: var(--text-kaart);
    color: var(--text-muted);
  }

  .mobiel-menu__gegevens a {
    color: var(--text);
  }

  .mobiel-menu .taalkiezer {
    margin-top: 1rem;
    gap: 0.375rem;
  }

  .mobiel-menu .taalkiezer a {
    padding: 0.3125rem 0.6875rem;

    color: var(--text-muted);

    font-size: 0.8125rem;

    border: 1px solid var(--line);
  }

  .mobiel-menu .taalkiezer a[aria-current] {
    background-color: var(--primary);
    color: var(--white);

    border-color: var(--primary);
  }

}


/* ==================================================
   FOOTER
================================================== */

.site-footer {
  background-color: var(--primary);
  color: var(--on-dark);

  padding-top: clamp(2.75rem, 1.9rem + 3.4vw, 4rem);
  padding-bottom: 1.75rem;
}

.site-footer__kolommen {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
}

.site-footer__logo {
  width: clamp(9.375rem, 7.6rem + 4.6vw, 11.625rem);
  height: auto;
}

.site-footer__adres {
  margin-top: 1.375rem;

  font-size: var(--text-kaart);
  line-height: 1.75;
  color: rgb(255 255 255 / 66%);
}

.site-footer__contact {
  margin-top: 1rem;

  font-size: var(--text-kaart);
  line-height: 1.75;
}

.site-footer__contact a {
  color: var(--white);
}

.site-footer__contact a:hover {
  color: var(--on-dark);
}

.site-footer__kop {
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.site-footer__lijst {
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;

  margin: 1.125rem 0 0;
  padding: 0;

  font-size: var(--text-kaart);

  list-style: none;
}

.site-footer__lijst a {
  color: var(--on-dark);
}

.site-footer__lijst a:hover {
  color: var(--white);
}

.site-footer__lijst a[aria-current] {
  color: var(--white);
  font-weight: 600;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;

  margin-top: 1.5rem;

  font-size: var(--text-kaart);
  color: var(--on-dark);
}

.site-footer__social svg {
  width: 1.5rem;
  height: 1.5rem;

  padding: 0.3125rem;

  background-color: rgb(255 255 255 / 14%);
  color: var(--white);

  border-radius: 50%;
}

.site-footer__onderbalk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  margin-top: clamp(2rem, 1.4rem + 2.3vw, 3.5rem);
  padding-top: 1.625rem;

  border-top: 1px solid var(--on-dark-line);

  font-size: var(--text-klein);
  color: rgb(255 255 255 / 55%);
}

.site-footer__onderbalk a {
  color: rgb(255 255 255 / 55%);
}

.site-footer__onderbalk a:hover {
  color: var(--white);
}

.site-footer__juridisch {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 1099px) {

  .site-footer__kolommen {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .site-footer__merk {
    grid-column: 1 / -1;
  }

}

@media (max-width: 599px) {

  .site-footer__juridisch {
    flex-direction: column;
    gap: 0.5rem;
  }

}


/* ==================================================
   VASTE BOEKINGSBALK (alleen mobiel)
================================================== */

.boekbalk {
  display: none;
}

@media (max-width: 899px) {

  /* De pagina onder het open menu mag niet meescrollen */
  body[data-menu-open] {
    overflow: hidden;
  }

  .boekbalk {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;

    display: flex;
    gap: 0.625rem;

    padding: 0.625rem 1rem;

    background-color: rgb(255 255 255 / 97%);
    backdrop-filter: blur(10px);

    border-top: 1px solid var(--line);
  }

  .boekbalk .btn {
    flex: 1;
    padding-block: 0.8125rem;
  }

  .boekbalk .btn--ghost {
    flex: 0 0 auto;
  }

  /* zodat de footer niet achter de balk verdwijnt */
  body {
    padding-bottom: 4.75rem;
  }

}


/* ==================================================
   404
================================================== */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 60vh;

  text-align: center;
}

.error-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  max-width: 34rem;
}

.error-page__code {
  color: var(--accent);

  font-size: var(--h1);
  font-weight: 600;
  line-height: 1;
}
