/* ---------- Kleuren, lettertype en maten: pas hier alles centraal aan ---------- */
:root {
  --bg: #ffffff;
  --soft: #f4f4f4;
  --line: #e2e2e2;
  --ink: #111111;
  --muted: #666666;
  --dark: #111111;
  --on-dark: #ffffff;
  --on-dark-muted: #b5b5b5;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1100px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 12px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 32px; }
h2 em { font-style: normal; color: var(--muted); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.logo { display: block; line-height: 0; }
.logo img { height: 32px; width: auto; filter: invert(1); transition: filter 0.3s ease, transform 0.25s ease; }
.logo:hover img { transform: translateX(3px); }

.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.site-header nav a:not(.nav-cta) {
  position: relative; text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 6px 0;
}
.site-header nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-header nav a:not(.nav-cta):hover::after,
.site-header nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

.nav-cta {
  padding: 8px 18px; border-radius: 999px; font-size: 0.92rem; font-weight: 700; text-decoration: none;
  background: var(--ink); color: #fff; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); opacity: 0.85; }

/* Met JavaScript: de kop is doorzichtig boven de openingsfoto */
.js .site-header:not(.is-scrolled) {
  background: transparent; backdrop-filter: none; border-bottom-color: transparent; color: #fff;
}
.js .site-header:not(.is-scrolled) .logo img { filter: none; }
.js .site-header:not(.is-scrolled) .nav-cta { background: #fff; color: var(--ink); }

@media (max-width: 720px) { .site-header nav a:not(.nav-cta) { display: none; } }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { transform: translateY(-3px); opacity: 0.85; }
.btn-solid:active { transform: none; }

/* ---------- Opening: beeldvullende foto ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) clamp(28px, 5vw, 56px);
  overflow: hidden; color: #fff; background: #222;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 49% 35%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.3) 38%, rgba(0,0,0,0) 62%), linear-gradient(to bottom, rgba(0,0,0,0.38), rgba(0,0,0,0) 22%); }
.hero-content, .hero-chip { position: relative; z-index: 1; max-width: var(--wrap); width: 100%; margin: 0 auto; }

h1 { font-size: clamp(3.6rem, 14vw, 9rem); letter-spacing: -0.045em; line-height: 0.92; }
.h1-white, .h1-orange { display: block; color: #fff; }

.hero-sub { margin: 18px 0 8px; font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hero-tag { margin: 0 0 8px; color: var(--on-dark-muted); font-weight: 500; }
.hero-events { margin: 0; font-weight: 500; }
.hero-events i { font-style: normal; opacity: 0.6; margin: 0 8px; }

.hero-chip { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 28px; }
.hero-chip > div {
  padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 0.9rem; line-height: 1.25;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.28);
}
.hero-chip dd { margin: 0; }
.hero-chip dd br { display: none; }
.hero-chip dd::after { content: ""; }

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise 0.8s ease-out both; }
  .hero-content > :nth-child(2) { animation-delay: 0.1s; }
  .hero-content > :nth-child(3) { animation-delay: 0.2s; }
  .hero-content > :nth-child(4) { animation-delay: 0.3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Secties ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad); }

.card {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .cards-3 { grid-template-columns: 1fr; } }

.photo { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo:hover img { transform: scale(1.04); }

/* ---------- Over ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.about-card { padding: 8px 0; display: flex; flex-direction: column; }
.about-card p { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }
.signature { margin-top: auto; padding-top: 16px; margin-bottom: 0; color: var(--ink) !important; font-weight: 700; }
.about-photo { min-height: 340px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* ---------- Prestaties ---------- */
.prs { margin-bottom: 16px; }
.pr { text-align: left; display: flex; flex-direction: column; padding: 28px 24px; }
.pr strong { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pr-label { font-weight: 700; margin-top: 6px; }
.pr-date { color: var(--muted); font-size: 0.9rem; }

.results { margin-bottom: 40px; }
.result { display: flex; gap: 16px; align-items: flex-start; }
.result p { margin: 0; font-size: 0.98rem; line-height: 1.45; }
.badge {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 0.95rem;
}
.badge-light { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .photo { aspect-ratio: 4 / 5; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } .gallery .photo { aspect-ratio: 4 / 3; } }

/* ---------- Racedag (video) ---------- */
.race-intro { color: var(--muted); max-width: 52ch; margin-top: -16px; margin-bottom: 28px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- De weg naar Europees niveau ---------- */
.journey { position: relative; overflow: hidden; color: #fff; background: #222; }
.journey-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.journey-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.15) 75%); }
.journey-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: clamp(70px, 10vw, 130px) var(--pad);
  display: grid; grid-template-columns: 1fr auto; gap: 24px 32px; align-items: start;
}
.journey h2 { font-size: clamp(2.2rem, 6vw, 4rem); grid-column: 1; margin-bottom: 0; }
.journey h2 em { display: block; color: #fff; }
.journey-sub { grid-column: 1; font-weight: 500; max-width: 40ch; margin: 0; color: rgba(255,255,255,0.85); }
.journey-photos { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 12px; width: 150px; }
.journey-photos .photo { aspect-ratio: 4 / 3; }
@media (max-width: 720px) {
  .journey-inner { grid-template-columns: 1fr; }
  .journey-photos { grid-column: 1; grid-row: auto; grid-template-columns: 1fr 1fr; width: 100%; }
}

/* ---------- Roadmap ---------- */
.roadmap-section { padding-top: clamp(56px, 8vw, 96px); }

.roadmap { list-style: none; margin: 0 0 56px; padding: 0; position: relative; display: grid; gap: 24px; }
.roadmap::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 50%; width: 2px; margin-left: -1px; background: var(--ink); }
.step { position: relative; width: calc(50% - 44px); }
.step:nth-child(even) { margin-left: auto; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 0.98rem; }
.dot {
  position: absolute; top: 18px; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.85rem;
}
.step:nth-child(odd) .dot { right: -60px; }
.step:nth-child(even) .dot { left: -60px; }

@media (max-width: 720px) {
  .roadmap::before { left: 16px; }
  .step, .step:nth-child(even) { width: auto; margin-left: 52px; }
  .step:nth-child(odd) .dot, .step:nth-child(even) .dot { left: -52px; right: auto; }
}

/* De lijn tekent zich en de stappen verschijnen na elkaar (alleen met JavaScript en zonder "minder beweging") */
@media (prefers-reduced-motion: no-preference) {
  .js .roadmap::before { transform: scaleY(0); transform-origin: top; transition: transform 1.4s ease; }
  .js .roadmap.in::before { transform: scaleY(1); }
  .js .step { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .roadmap.in .step { opacity: 1; transform: none; }
  .js .roadmap.in .step:nth-child(1) { transition-delay: 0.1s; }
  .js .roadmap.in .step:nth-child(2) { transition-delay: 0.45s; }
  .js .roadmap.in .step:nth-child(3) { transition-delay: 0.8s; }
  .js .roadmap.in .step:nth-child(4) { transition-delay: 1.15s; }
}

.quote { margin: 0; padding: clamp(8px, 2vw, 16px) 0 0; border-top: 1px solid var(--line); padding-top: 40px; }
.quote p { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; max-width: 22ch; }
.quote p::before { content: "“"; }
.quote p::after { content: "”"; }
.quote footer { color: var(--muted); }

/* ---------- Sponsoren ---------- */
.sponsors { padding-top: 0; }
.packages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.package {
  display: flex; gap: 20px; align-items: flex-start; padding: 28px;
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.package:hover { transform: translateY(-4px); border-color: var(--ink); }
.price { margin: 6px 0 14px; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.package-head { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.package-head:hover { border-color: var(--dark); }
.head-text { margin: 0; color: var(--on-dark-muted); }
.package-head .medal { background: #fff; color: var(--ink); }

.medal {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.97rem; color: var(--muted); }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 2px; background: var(--ink); }
@media (max-width: 820px) { .packages { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--dark); color: var(--on-dark); }
.contact-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad); }
.contact h2 { max-width: 16ch; }
.contact h2 em { color: var(--on-dark-muted); }
.contact p { color: var(--on-dark-muted); max-width: 52ch; }
.contact .btn-solid { background: #fff; color: var(--ink); margin-bottom: 40px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: clamp(1.2rem, 3.5vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-list a { text-decoration: none; border-bottom: 2px solid rgba(255,255,255,0.5); transition: border-color 0.2s ease; }
.contact-list a:hover { border-color: #fff; }

.copy {
  font: inherit; font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--on-dark);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; background: transparent; border: 1px solid #777;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.copy:hover { border-color: #fff; }
.copy:active { transform: scale(0.94); }
.copy.done { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 24px var(--pad) 36px; background: var(--dark); color: var(--on-dark-muted); font-size: 0.9rem;
  border-top: 1px solid #2a2a2a;
}
.site-footer p { margin: 0; }
.site-footer a:hover { color: #fff; }

/* ---------- Minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
