/* ============================================================
   NEREX AUTOMATERIALEN — nerex.nl
   Licht, typografisch, hard. Wit + rood. Geen rondingen, geen schaduwen.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --fg: #141414;
  --red: #CA2631;      /* exact uit logo */
  --blauw: #234888;    /* exact uit logo */
  --line: #E4E4E4;
  --dim: #CBCBCB;
  --grijs: #6E6E6E;
  --bg-alt: #F1F1F1;   /* subtiele afwisseling tussen witte secties */
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Archivo', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --pad: clamp(20px, 4vw, 64px);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  background: var(--bg);
  scrollbar-color: var(--dim) var(--bg);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--bg); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }

em { font-style: normal; color: var(--red); }
em.blauw { color: var(--blauw); }

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

/* foto's: kleur, vol op het lichte thema */
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
figcaption {
  color: var(--grijs);
  padding-top: 12px;
}

/* ---- regel-masks (line reveals) ---- */
.regel { display: block; overflow: hidden; }
.regel-inner { display: block; will-change: transform; }

/* ---- sectielabel ---- */
.sectielabel { color: var(--red); margin-bottom: 20px; }

/* ---- afwisselende secties: subtiel gebroken wit voor ritme ---- */
.sectie-licht { background: var(--bg-alt); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
}
.js-motion .preloader { display: flex; }

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.preloader-x { width: clamp(48px, 7vw, 84px); height: auto; overflow: visible; }

.preloader-woord {
  display: flex;
  gap: 0.08em;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: 0.22em;
  overflow: hidden;
}
.preloader-woord span { display: inline-block; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.header.is-verborgen { transform: translateY(-101%); }

.header-logo img { display: block; height: 50px; width: auto; }

.header-nav { display: flex; gap: 22px; }
.header-nav a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color .25s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--red); }

.header-acties { display: flex; align-items: center; gap: 16px; }
.header-acties .btn { padding: 14px 30px; font-size: 12px; }

/* ---- knoppen ---- */
.btn {
  position: relative;
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--red);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color .3s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: #fff; }

.btn-vol { background: var(--red); color: #fff; }
.btn-vol::before { background: var(--fg); }
.btn-vol:hover { color: #fff; }

.btn-blauw { border-color: var(--blauw); }
.btn-blauw::before { background: var(--blauw); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #161616;
}

/* video-achtergrond: licht behandeld als subtiele textuur, tekst blijft de ster */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 112%; /* ruimte voor parallax */
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.52) contrast(1.08) saturate(0.85);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.42);
}

.hero-kicker, .hero-titel, .hero-cta, .hero-voet { position: relative; z-index: 1; }

.hero-titel { color: #fff; }
.hero-kicker { color: rgba(255, 255, 255, 0.72); margin-bottom: 3vh; }

.hero-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 9.5vw, 160px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-left: -0.04em;
}

.hero-voet {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 5vh 0 28px;
}

.hero-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.hint-lijn {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--red);
  animation: hintpuls 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
  transform-origin: top center;
}
@keyframes hintpuls {
  0%   { transform: scaleY(0); transform-origin: top center; }
  45%  { transform: scaleY(1); transform-origin: top center; }
  55%  { transform: scaleY(1); transform-origin: bottom center; }
  100% { transform: scaleY(0); transform-origin: bottom center; }
}

.hero-label { color: rgba(255, 255, 255, 0.72); text-align: right; }

.hero-intro {
  position: relative;
  z-index: 1;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34em;
  margin-top: clamp(16px, 2.5vh, 28px);
}

/* hero CTA — word partner */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: clamp(24px, 4vh, 44px);
}
.hero-cta-tekst {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 30em;
}
.hero-cta .btn-vol { padding: 16px 44px; }

/* ============================================================
   OVER NEREX
   ============================================================ */
.over {
  padding: clamp(72px, 12vh, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
}

.over-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.over-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 60px);
  line-height: 1.02;
  text-transform: uppercase;
  max-width: 14em;
  margin-bottom: 28px;
}

.over-tekst {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  color: #444;
  max-width: 34em;
}
.over-tekst + .over-tekst { margin-top: 16px; }
.over-tagline { font-weight: 500; color: var(--fg); }

.over-foto { display: flex; flex-direction: column; }
.over-foto img { display: block; width: 100%; height: clamp(280px, 30vw, 420px); }

/* ============================================================
   MERKEN
   ============================================================ */
.merken {
  padding: clamp(72px, 12vh, 140px) 0 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.merken-kop { padding: 0 var(--pad); }

.merken-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 84px);
  line-height: 1;
  text-transform: uppercase;
}

.merken-sub {
  color: var(--grijs);
  font-size: clamp(15px, 1.2vw, 18px);
  margin-top: 14px;
}

/* hoofdmerken: BSG + EUROL */
.hoofdmerken {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 5vh, 56px);
}

.hoofdmerk {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3.5vh, 40px) var(--pad);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hoofdmerk-label { color: var(--grijs); transition: color .3s; }
.hoofdmerk-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
}
.hoofdmerk-logo {
  height: clamp(56px, 6vw, 100px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity .3s, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.hoofdmerk:hover .hoofdmerk-logo { opacity: 1; transform: translateX(10px); }
.hoofdmerk-x {
  position: absolute;
  right: var(--pad);
  bottom: clamp(24px, 3.5vh, 40px);
  width: clamp(20px, 2.2vw, 34px);
  height: auto;
  fill: var(--red);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .3s, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.hoofdmerk:hover .hoofdmerk-label { color: var(--fg); }
.hoofdmerk:hover .hoofdmerk-x { opacity: 1; transform: translateX(0); }

/* ---- logo-rijen: rustig driftende merklogo's, veel lucht ---- */
.logo-rijen {
  padding: clamp(36px, 6vh, 72px) 0;
}

.logo-rij {
  overflow: hidden;
  white-space: nowrap;
  padding: clamp(22px, 3.6vh, 40px) 0;
}

.logo-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.logo-track img {
  width: auto;
  height: auto;
  max-height: clamp(28px, 3vw, 42px);
  max-width: clamp(150px, 18vw, 260px);
  object-fit: contain;
  margin: 0 clamp(26px, 3.4vw, 62px);
  flex: none;
}

.logo-track .logo-naam {
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grijs);
  margin: 0 clamp(26px, 3.4vw, 62px);
}

/* ============================================================
   WERKEN BIJ
   ============================================================ */
.werken {
  padding: clamp(72px, 12vh, 140px) var(--pad) 0;
  border-bottom: 1px solid var(--line);
}

.werken-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.redenen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.reden {
  padding: clamp(24px, 3.2vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.reden:hover { background: var(--bg-alt); }

.reden-num { color: var(--red); display: block; margin-bottom: 18px; }

.reden h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.reden p {
  color: var(--grijs);
  font-size: clamp(14px, 1.1vw, 16px);
  max-width: 30em;
}

.fotostrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
  padding: clamp(40px, 7vh, 80px) 0;
}
.fotostrip figure img { aspect-ratio: 16 / 10; }

/* rollen */
.rollen { padding: clamp(24px, 4vh, 48px) 0 clamp(72px, 12vh, 140px); }

.rollen-label { color: var(--grijs); padding-bottom: 24px; }

.rol {
  position: relative;
  display: grid;
  grid-template-columns: 6ch 1fr auto clamp(40px, 4vw, 64px);
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(20px, 3vh, 32px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .45s cubic-bezier(.22, 1, .36, 1);
}
.rol:last-child { border-bottom: 1px solid var(--line); }

.rol-num { color: var(--grijs); transition: color .3s; }

.rol-titel {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  transition: color .3s;
}

.rol-meta { color: var(--grijs); text-align: right; }

.rol-x {
  width: clamp(18px, 2vw, 28px);
  height: auto;
  fill: var(--red);
  justify-self: end;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .3s, transform .45s cubic-bezier(.22, 1, .36, 1);
}

.rol:hover { padding-left: clamp(12px, 1.5vw, 28px); }
.rol:hover .rol-titel { color: var(--red); }
.rol:hover .rol-num { color: var(--fg); }
.rol:hover .rol-x { opacity: 1; transform: translateX(0); }

/* ============================================================
   AANMELDEN
   ============================================================ */
.aanmelden {
  padding: clamp(72px, 12vh, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
}

.aanmelden-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: clamp(40px, 7vh, 80px);
}

.aanmelden-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 140px);
  align-items: start;
}

.formulier { display: flex; flex-direction: column; gap: 40px; }

.veld { position: relative; }

.veld input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dim);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(17px, 1.4vw, 21px);
  padding: 24px 0 12px;
  outline: none;
  transition: border-color .3s;
}
.veld label {
  position: absolute;
  left: 0;
  top: 28px;
  color: var(--grijs);
  pointer-events: none;
  transition: top .3s cubic-bezier(.22, 1, .36, 1), font-size .3s, color .3s;
}
.veld input:focus { border-color: var(--red); }
.veld input:focus + label,
.veld input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 9px;
  color: var(--red);
}

/* ---- CV-upload (sollicitatieformulier) ---- */
.veld-bestand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dim);
}
.veld-bestand-titel { color: var(--grijs); }

.bestand-rij {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* native file-input onzichtbaar maar bereikbaar voor toetsenbord en screenreader */
.bestand-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bestand-knop {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--dim);
  padding: 14px 26px;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.bestand-knop:hover,
.bestand-input:focus-visible + .bestand-knop { border-color: var(--red); color: var(--red); }

.bestand-naam {
  color: var(--grijs);
  overflow-wrap: anywhere;
  text-transform: none;
}
.bestand-naam.is-gekozen { color: var(--fg); }

.veld-bestand.is-fout { border-bottom-color: var(--red); }
.veld-bestand.is-fout .bestand-knop { border-color: var(--red); color: var(--red); }

.formulier .btn-vol {
  align-self: flex-start;
  padding: 18px 48px;
  margin-top: 4px;
}

.formulier-noot { color: var(--grijs); }

.aanmelden-zij { display: flex; flex-direction: column; gap: 28px; }
.aanmelden-foto img { aspect-ratio: 16 / 9; }

.aanmelden-contact {
  color: var(--grijs);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-mail {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 34px);
  letter-spacing: 0.02em;
  color: var(--fg);
  transition: color .3s;
}
.contact-mail:hover { color: var(--red); }

/* ============================================================
   FOOTER — licht, zakelijk
   ============================================================ */
.footer {
  position: relative;
  background: #EDEDED;
  color: #0A0A0A;
  padding: clamp(56px, 9vh, 104px) var(--pad) 0;
  overflow: hidden;
}

.footer-boven {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.footer-logo { width: clamp(150px, 13vw, 210px); height: auto; }

.footer-tagline {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #4A4A4A;
  max-width: 26em;
}

.footer-kolom { display: flex; flex-direction: column; gap: 12px; }
nav.footer-kolom { padding-top: 24px; }
.footer-kolom h4 {
  color: #8A8A8A;
  font-weight: 500;
  margin-bottom: 8px;
}
.footer-kolom a, .footer-kolom p {
  font-size: 15px;
  line-height: 1.55;
  color: #1A1A1A;
}
.footer-kolom a { transition: color .25s; width: fit-content; }
.footer-kolom a:hover { color: var(--red); }

.footer-onder {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  color: #8A8A8A;
  border-top: 1px solid #D8D8D8;
  padding: 22px 0 28px;
}

/* ============================================================
   MOBIEL MENU (hamburger + overlay)
   ============================================================ */
.menu-knop { display: none; }

.mobiel-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 104px var(--pad) calc(var(--pad) + 16px);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .55s cubic-bezier(.76, 0, .24, 1), visibility .55s;
}
.menu-open .mobiel-menu { transform: translateY(0); visibility: visible; }

.mobiel-menu-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.mobiel-menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  transition: color .25s, padding-left .35s cubic-bezier(.22, 1, .36, 1);
}
.mobiel-menu-nav a:active,
.mobiel-menu-nav a:hover { color: var(--red); padding-left: 10px; }
.mobiel-menu-nav a .nr { color: var(--red); font-size: 12px; }

.mobiel-menu-voet {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobiel-menu-voet .btn-vol,
.mobiel-menu-voet .btn-blauw { text-align: center; padding: 18px; }
.mobiel-menu-voet .mono { color: var(--grijs); }
.mobiel-menu-voet .mono:active { color: var(--red); }

@media (max-width: 768px) {
  .menu-knop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .menu-knop span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--fg);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .25s;
  }
  .menu-open .menu-knop span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-knop span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  /* Aanmelden + login verhuizen naar het menu */
  .header-btn { display: none; }
  .header-login { display: none; }
}

/* ============================================================
   NAV — actieve pagina
   ============================================================ */
.header-nav a.is-actief { color: var(--fg); }
.header-nav a.is-actief::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 5px;
  background: var(--red);
}

/* ============================================================
   SUBPAGINA-HERO (Over ons, Contact)
   ============================================================ */
.pagina-hero {
  position: relative;
  padding: clamp(140px, 20vh, 220px) var(--pad) clamp(56px, 10vh, 110px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pagina-hero-x {
  position: absolute;
  top: 50%;
  right: -6vw;
  width: 40vw;
  max-width: 560px;
  transform: translateY(-52%);
  fill: var(--red);
  opacity: 0.06;
  pointer-events: none;
}
.pagina-hero-x.blauw {
  fill: var(--blauw);
}
.pagina-kicker { color: var(--red); margin-bottom: 22px; position: relative; z-index: 1; }
.pagina-titel {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 150px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.pagina-intro {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  max-width: 32em;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.62;
  color: #444;
}

/* inline "lees meer"-link met pijl */
.tekst-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 28px;
  color: var(--red);
  transition: gap .3s cubic-bezier(.22, 1, .36, 1);
}
.tekst-link span { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.tekst-link:hover { gap: 16px; }

/* CTA-blok onderaan een pagina */
.pagina-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: clamp(48px, 8vh, 96px) 0 clamp(72px, 12vh, 140px);
}
.pagina-cta p {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  margin-right: clamp(8px, 2vw, 28px);
}

/* ============================================================
   OLIE ADVISEUR
   ============================================================ */
.adviseur-sectie {
  padding: 0 var(--pad) clamp(72px, 12vh, 140px);
}
.adviseur-frame-wrap {
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.adviseur-frame {
  display: block;
  width: 100%;
  height: clamp(560px, 90vh, 900px);
  border: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(72px, 12vh, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.contact-details { display: flex; flex-direction: column; }
.contact-blok {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vh, 32px) 0;
  border-top: 1px solid var(--line);
}
.contact-blok:last-child { border-bottom: 1px solid var(--line); }
.contact-blok-label { color: var(--grijs); }
.contact-blok .groot {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 40px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color .3s;
  width: fit-content;
}
a.groot:hover { color: var(--red); }
.contact-blok p { color: #444; line-height: 1.55; }
.contact-kaart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 4px;
  color: var(--grijs);
  transition: color .3s;
}
.contact-kaart:hover { color: var(--red); }
.contact-kaart svg { width: 12px; height: auto; fill: currentColor; }

/* textarea deelt de veld-stijl van inputs */
.veld textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dim);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  padding: 24px 0 12px;
  outline: none;
  resize: vertical;
  min-height: 96px;
  transition: border-color .3s;
}
.veld textarea:focus { border-color: var(--red); }
.veld textarea:focus + label,
.veld textarea:not(:placeholder-shown) + label { top: 0; font-size: 9px; color: var(--red); }

/* ============================================================
   KAART / LOCATIE
   ============================================================ */
.kaart-sectie { border-bottom: 1px solid var(--line); }

.kaart-kop { padding: clamp(56px, 9vh, 110px) var(--pad); }
.kaart-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  margin-top: 14px;
}

.kaart-wrap {
  position: relative;
  height: clamp(400px, 62vh, 640px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.kaart {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
}

/* zwevende adreskaart op de kaart */
.kaart-kaartje {
  position: absolute;
  left: var(--pad);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 10;
  max-width: min(370px, 80vw);
  padding: clamp(26px, 2.4vw, 36px);
  background: var(--bg);
  border: 1px solid var(--dim);
}
.kaart-label { color: var(--red); display: block; margin-bottom: 14px; }
.kaart-adres {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 24px;
}
.kaart-route { display: inline-block; }

/* rode pulserende marker — de icoon-box is zelf de dot; pulse via box-shadow
   (geen kind-elementen, dus geen containing-block-verrassingen) */
.kaart-marker {
  width: 16px !important;
  height: 16px !important;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 50% !important;
  box-sizing: border-box;
  animation: markerpuls 2.4s cubic-bezier(.22, 1, .36, 1) infinite;
}
@keyframes markerpuls {
  0%   { box-shadow: 0 0 0 0 rgba(202, 38, 49, 0.5); }
  70%  { box-shadow: 0 0 0 20px rgba(202, 38, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(202, 38, 49, 0); }
}

/* Leaflet in de Nerex-look (licht, hoekig) */
.leaflet-container { background: var(--bg-alt); font-family: var(--mono); }
.leaflet-bar { border: 1px solid var(--dim); }
.leaflet-bar a,
.leaflet-bar a:hover {
  background: #fff;
  color: var(--fg);
  border-bottom-color: var(--line);
  width: 32px;
  height: 32px;
  line-height: 32px;
}
.leaflet-bar a:hover { background: var(--red); color: #fff; }
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--grijs) !important;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
}
.leaflet-control-attribution a { color: var(--grijs) !important; }
.leaflet-control-attribution a:hover { color: var(--fg) !important; }

/* ============================================================
   MODAL — partner worden
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s, visibility .35s;
}
.modal.is-open { visibility: visible; opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(6px);
}

.modal-paneel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--dim);
  padding: clamp(32px, 5vw, 56px);
  transform: translateY(26px);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 24px;
}
.modal-grid .veld.vol { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .modal-grid { grid-template-columns: 1fr; }
}
.modal.is-open .modal-paneel { transform: translateY(0); }

.modal-sluit {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.modal-sluit::before,
.modal-sluit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: background-color .25s;
}
.modal-sluit::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-sluit::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-sluit:hover::before,
.modal-sluit:hover::after { background: var(--red); }

.modal-label { color: var(--red); display: block; margin-bottom: 16px; }
.modal-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.modal-tekst {
  color: var(--grijs);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  margin-bottom: 34px;
}
.modal-form { display: flex; flex-direction: column; gap: 28px; }
.modal-form .btn-vol { align-self: flex-start; padding: 16px 42px; }
.modal-noot { color: var(--grijs); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .logo-track img { max-height: clamp(26px, 4vw, 40px); max-width: 44vw; margin: 0 clamp(20px, 3vw, 40px); }
}

@media (max-width: 900px) {
  .over-grid { grid-template-columns: 1fr; }
  .over-foto img { min-height: 260px; }
  .aanmelden-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .fotostrip { grid-template-columns: 1fr; }
  .fotostrip figure img { aspect-ratio: 16 / 9; }
  .redenen { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-logo img { height: 34px; }

  .hero { padding-top: 96px; }
  .hero-titel { font-size: clamp(44px, 13vw, 84px); }
  .hero-label { max-width: 52vw; font-size: 9px; }

  .pagina-hero { padding-top: 120px; }
  .pagina-titel { font-size: clamp(46px, 15vw, 90px); }
  .pagina-hero-x { width: 72vw; right: -20vw; }

  .kaart-wrap { height: 420px; }
  .kaart-kaartje { left: 14px; right: 14px; bottom: 14px; max-width: none; }

  .logo-rij { padding: 16px 0; }
  .logo-track img { max-height: 26px; max-width: 60vw; margin: 0 22px; }

  .footer-boven { grid-template-columns: 1fr 1fr; }
  .footer-merk { grid-column: 1 / -1; }

  .rol { grid-template-columns: 4ch 1fr clamp(28px, 8vw, 40px); }
  .rol-meta { display: none; }
  .hoofdmerk-x { display: none; }
}

/* ============================================================
   REDUCED MOTION — alles statisch
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hint-lijn { animation: none; transform: scaleY(1); }
  .hero-video { display: none; } /* poster/zwart blijft staan */
}
