:root {
  /* color variables */
  --primary: #22222b;
  --secondary: #d2a748;
  --secondary-hover: color-mix(in srgb, var(--secondary) 90%, transparent);
  --white: #ffffff;
  --white-hover: color-mix(in srgb, var(--white) 90%, transparent);
  /* spacing variables */
  --container-width: 1000px;
  --section-padding: clamp(1rem, calc(-0.455rem + 7.273vw), 5rem);

  --space-xs: clamp(0.5rem, 0.45rem + 0.2vw, 0.75rem);
  --space-s: clamp(0.75rem, 0.65rem + 0.4vw, 1rem);
  --space-m: clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
  --space-l: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  --space-xl: clamp(2.25rem, 1.7rem + 1.8vw, 3.5rem);
  --space-xxl: clamp(3.5rem, 2.6rem + 3vw, 5.5rem);

  --content-gap-xs: clamp(0.4rem, 0.35rem + 0.15vw, 0.5rem);
  --content-gap-s: clamp(0.6rem, 0.5rem + 0.25vw, 0.75rem);
  --content-gap-m: clamp(0.9rem, 0.75rem + 0.45vw, 1.25rem);
  --content-gap-l: clamp(1.25rem, 1rem + 0.75vw, 1.75rem);
  --content-gap-xl: clamp(1.75rem, 1.35rem + 1.2vw, 2.5rem);

  --h1: clamp(2.5rem, 2.1rem + 1.5vw, 3.5rem);
  --h2: clamp(2rem, 1.7rem + 1vw, 2.75rem);
  --h3: clamp(1.5rem, 1.35rem + 0.5vw, 1.875rem);
  --h4: clamp(1.25rem, 1.15rem + 0.3vw, 1.5rem);

  --text: clamp(1rem, 0.95rem + 0.15vw, 1.125rem);
  --text-small: clamp(0.875rem, 0.84rem + 0.1vw, 1rem);

  /* radius variables */
  --radius: 5px;

  /* borders */
  --border: 0.3em solid var(--white);
  --border-color-soft: rgb(0 0 0 / 20%);

  /* muted text colors */
  --text-muted: rgb(0 0 0 / 55%);
  --text-placeholder: rgb(0 0 0 / 40%);

  /* surfaces */
  --surface: #f2f2f2;

  /* shadows */
  --card-shadow: 0 1rem 2.5rem rgb(0 0 0 / 16%);
}

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

/*
 * Een eigen display-regel wint van de browserregel voor
 * [hidden]. Zonder deze regel blijft een verborgen
 * formulier of melding (zie js/global.js) gewoon staan.
 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

  html {
    scroll-behavior: auto;
  }

}

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


body {
  margin: 0;
  min-height: 100vh;
  font-family: sans-serif;
  line-height: 1.5;
}

section {
  display: flex;
  flex-direction: column;
 align-items: center;
 padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  padding-top: calc(var(--space-xxl)*2);
  padding-bottom: calc(var(--space-xxl)*2);
}

@media (max-width: 600px) {

  section {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
  }

}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: .2s;
}
a:hover {
    color: var(--secondary-hover);
  }

p {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.2;
}
h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

h4 {
  font-size: var(--h4);
}

p {
  font-size: var(--text);
}



/* header */
header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: fixed;
  top: 1em;
  z-index: 100;
  justify-items: center;
  width: 100%;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
}
.header-container {
  position: relative;

  width: 100%;
  max-width: var(--container-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
  background-color: var(--primary);
  padding-block: var(--space-xs);
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  border: 0.175em solid var(--secondary);
  border-radius: var(--radius);
}
.logo {
  width: clamp(90px, 25vw, 130px);
  height: auto;
}
/* navigatie */

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: var(--space-l);
  align-items: center;
  text-wrap: nowrap;
  margin: 0;
  padding: 0;
}

nav ul li {
  a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
  }

  &:not(:last-child) a:hover {
    color: var(--secondary);
  }
  &:last-child:hover {
    color: var(--white-hover);
  }
}
nav ul li section {
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  display: flex;
  justify-content: center;
  position: relative;
}


/* ==================================================
   MOBILE NAV TOGGLE
================================================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;

  width: 2.25rem;
  height: 2.25rem;
  padding: 0;

  background: transparent;
  border: none;

  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;

  background-color: var(--white);

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {

  .nav-toggle {
    position: relative;
    z-index: 110;

    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 90;

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

    padding: calc(var(--header-height) + var(--space-xl)) var(--section-padding) var(--space-xl);

    background-color: var(--primary);

    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: var(--space-m);

    width: 100%;
    max-width: 22rem;
    padding: 0;
  }

  .site-nav ul li {
    width: 100%;

    text-align: center;
  }

  .site-nav ul li a {
    display: block;

    padding: var(--space-s) 0;

    font-size: var(--h4);
  }

  .site-nav ul li .btn {
    display: block;

    width: 100%;
    padding: var(--space-s) 0;
    margin-top: 0;

    color: white;
    background-color: transparent;

    border-radius: 0;
  }

  .site-nav ul li .btn:hover {
    background-color: transparent;
  }

}

body.nav-open {
  overflow: hidden;
}
.container {
  width: 100%;
  max-width: var(--container-width);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background-color: var(--secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  &:hover {
    background-color: var(--secondary-hover);
    transition: background-color 0.2s ease-in-out;
    color: var(--white-hover);
  }
}

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

.error-page {
  min-height: 70vh;
  justify-content: center;

  padding-top: calc(var(--header-height) + 1em + var(--space-xxl));
}

.error-page__container {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: var(--content-gap-m);

  max-width: 40rem;

  text-align: center;
}

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

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

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  gap: var(--space-m);

  padding-top: var(--space-s);
}

.error-page__link {
  color: var(--secondary);

  font-size: var(--text-small);
  font-weight: 600;
}


/* footer */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer {
  background-color: var(--primary);
  border-top: 3px solid var(--secondary);
  padding-block: var(--space-xl);
  padding-inline: var(--section-padding);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.site-footer__logo {
  display: block;
  width: 10em;
  height: auto;
}

.site-footer__nav-list,
.site-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs) var(--content-gap-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  color: var(--white);
  text-decoration: none;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--content-gap-m);
}

.site-footer__copyright {
  color: var(--white-hover);
  text-align: center;
}

.site-footer__copyright a {
  color: var(--secondary);
}

.site-footer__legal-nav a {
  color: var(--white-hover);
}
footer a:hover {
  color: var(--secondary-hover);
}

@media (max-width: 600px) {

  .site-footer__inner {
    gap: var(--space-l);
  }

  .site-footer__logo {
    width: 8em;
  }

  .site-footer__nav-list {
    flex-direction: column;
    gap: var(--space-s);
  }

  .site-footer__copyright {
    font-size: var(--text-small);
  }

}