/* ==========================================================================
   Layout: header, navigatie, mobiel menu, secties en footer
   ========================================================================== */

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  color: var(--white);
  transition: background-color var(--dur-base) linear, box-shadow var(--dur-base) linear, transform var(--dur-base) var(--ease-out-expo);
}

.site-header::before {
  /* Zachte schaduw boven de hero zodat het menu leesbaar blijft op de foto */
  content: "";
  position: absolute;
  inset: 0 0 -2.5rem;
  z-index: -1;
  background: linear-gradient(180deg, rgb(4 12 32 / 0.7), rgb(4 12 32 / 0));
  pointer-events: none;
  transition: opacity var(--dur-base) linear;
}

.site-header.is-solid {
  background: var(--night-950);
  box-shadow: 0 1px 0 rgb(250 252 254 / 0.08);
}

.site-header.is-solid::before {
  opacity: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  height: 100%;
}

.brand {
  display: block;
  flex: none;
}

.brand__logo {
  width: auto;
  height: 2.6rem;
}

.site-nav {
  margin-inline: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 105%;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(250 252 254 / 0.82);
  transition: color var(--dur-fast) linear;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 3px;
  background: var(--lime-400);
  transform: scaleX(0) skewX(var(--skew));
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1) skewX(var(--skew));
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-left: auto;
}

.site-nav + .site-header__actions {
  margin-left: 0;
}

.header-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(250 252 254 / 0.2);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-next__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime-400);
}

.header-next.is-live .header-next__dot {
  background: var(--signal);
  animation: pulse 1.6s var(--ease-out-quart) infinite;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  color: rgb(250 252 254 / 0.85);
}

.icon-link:hover {
  color: var(--lime-400);
}

.menu-button {
  display: none;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1.5px solid rgb(250 252 254 / 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
}

.menu-button .icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* --- Mobiel menu ------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: max(var(--space-l), env(safe-area-inset-bottom));
  background:
    linear-gradient(115deg, transparent 62%, rgb(198 246 72 / 0.08) 62%, rgb(198 246 72 / 0.08) 62.4%, transparent 62.4%),
    var(--night-950);
  opacity: 0;
  transition: opacity var(--dur-base) linear;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex: none;
}

.mobile-menu__top .menu-button {
  display: grid;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  padding-top: var(--space-l);
}

.mobile-menu__nav a {
  display: block;
  padding-block: 0.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-1.5rem);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out-expo), opacity var(--dur-slow) var(--ease-out-expo), color var(--dur-fast) linear;
}

.mobile-menu.is-open .mobile-menu__nav li a {
  transform: none;
  opacity: 1;
}

.mobile-menu__nav li:nth-child(2) a { transition-delay: 30ms; }
.mobile-menu__nav li:nth-child(3) a { transition-delay: 60ms; }
.mobile-menu__nav li:nth-child(4) a { transition-delay: 90ms; }
.mobile-menu__nav li:nth-child(5) a { transition-delay: 120ms; }
.mobile-menu__nav li:nth-child(6) a { transition-delay: 150ms; }
.mobile-menu__nav li:nth-child(7) a { transition-delay: 180ms; }
.mobile-menu__nav li:nth-child(8) a { transition-delay: 210ms; }
.mobile-menu__nav li:nth-child(9) a { transition-delay: 240ms; }

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  color: var(--lime-400);
}

.mobile-menu__extra .btn {
  font-size: var(--step-0);
}

.mobile-menu__extra a {
  opacity: 1;
  transform: none;
  font-style: italic;
  font-size: var(--step-0);
  font-stretch: 100%;
}

body.menu-open {
  overflow: hidden;
}

/* --- Secties ----------------------------------------------------------- */

main > section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-head {
  display: grid;
  gap: var(--space-s);
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

.section-head--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-m) var(--space-xl);
}

.section-head .kicker {
  color: var(--lime-700);
}

.theme-dark .section-head .kicker {
  color: var(--lime-400);
}

.theme-lime .section-head .kicker {
  color: var(--night-900);
}

.section-title {
  font-size: var(--step-5);
  /* em in plaats van ch: bij de smalle koppenletter is ch veel kleiner dan een gemiddelde letter */
  max-width: 10em;
}

.section-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
  -webkit-text-stroke-color: var(--ink);
}

.theme-dark .section-title span {
  -webkit-text-stroke-color: var(--lime-400);
}

.theme-lime .section-title span {
  -webkit-text-stroke-color: var(--night-900);
}

.section-intro {
  max-width: 58ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
}

.theme-dark .section-intro {
  color: var(--petrol-200);
}

/* --- Footer ------------------------------------------------------------ */

.site-footer {
  padding-block: var(--space-2xl) max(var(--space-xl), env(safe-area-inset-bottom));
  background: var(--night-950);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-xl) var(--space-2xl);
}

.site-footer__brand img {
  width: 9rem;
  height: auto;
  margin-bottom: var(--space-s);
}

.site-footer__brand p,
.site-footer__muted {
  color: var(--petrol-200);
  font-size: var(--step--1);
}

.site-footer__title {
  margin-bottom: var(--space-s);
  font-size: var(--step--1);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.site-footer__links {
  display: grid;
  gap: 0.35rem;
}

.site-footer__links a,
.site-footer a {
  text-decoration-color: rgb(250 252 254 / 0.35);
}

.site-footer__links a:hover {
  color: var(--lime-400);
}

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: var(--space-l);
  border-top: 1px solid rgb(250 252 254 / 0.1);
  color: var(--petrol-200);
  font-size: var(--step--1);
}

.socials {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-s);
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgb(250 252 254 / 0.25);
  border-radius: 50%;
  transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}

.socials a:hover {
  background: var(--lime-400);
  border-color: var(--lime-400);
  color: var(--night-900);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 117 39 / 0.7); }
  100% { box-shadow: 0 0 0 0.7rem rgb(255 117 39 / 0); }
}

/* --- Responsief -------------------------------------------------------- */

@media (max-width: 1180px) {
  .icon-link__label,
  .header-next {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  /* Zonder zichtbaar menu schuiven de acties naar rechts */
  .site-header .site-header__actions {
    margin-left: auto;
  }

  .section-head--split {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .brand__logo {
    height: 2.2rem;
  }

  .site-header__actions {
    gap: var(--space-xs);
  }

  .section-title {
    max-width: none;
  }

  .section-title span {
    -webkit-text-stroke-width: 1.5px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-l);
  }
}

@media (max-width: 420px) {
  .site-header .icon-link {
    display: none;
  }

  .site-header .btn--small {
    padding-inline: 0.9em;
  }

  .mobile-menu__nav {
    gap: var(--space-m);
  }
}
