/* Beat the (b)east, richting B: donker en filmisch. Mobile-first. */
:root {
  --bg: #0e1215;
  --surface: #161c21;
  --surface-2: #393731;
  --line: #3a3e42;
  --accent: #f07024;   /* oranje uit het logo */
  --accent-dark: #b84e12;
  --accent-hi: #ff8a3d;
  --text: #ffffff;
  --muted: #b9bec4;
  --light: #f5f5f5;
  --ink: #222222;
  --head: "Barlow Condensed", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --gutter: 20px;
  --max: 1240px;
  --hdr: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(3.4rem, 15vw, 9.5rem); }
h2 { font-size: clamp(2.4rem, 8vw, 4.6rem); }
h3 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--bg); padding: 12px 16px; font-weight: 700; z-index: 100; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 1rem;
  color: var(--accent-hi);
  margin: 0 0 .8rem;
  display: flex; align-items: center; gap: .8rem;
}
.kicker::before { content: ""; width: 36px; height: 3px; background: var(--accent); }
.lead { font-size: 1.2rem; line-height: 1.55; color: #e8eaed; max-width: 62ch; }

/* knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--bg);
  font-family: var(--head); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-hi); color: var(--bg); transform: translateY(-2px); }
.btn--big { min-height: 64px; padding: 0 40px; font-size: 1.7rem; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; clip-path: none; }
.btn--ghost:hover { background: #fff; color: var(--bg); }
.btn svg { width: 22px; height: 22px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 18, 21, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.logo svg { height: 34px; width: auto; }
.nav-toggle {
  display: none; width: 48px; height: 48px; background: transparent; border: 2px solid var(--line); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .08em;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-hi); }
.nav .btn { min-height: 44px; font-size: 1.15rem; padding: 0 20px; color: var(--bg); margin-left: 8px; }
.nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--bg); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: var(--hdr); background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { min-height: 52px; font-size: 1.5rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 14px 0 0; justify-content: center; min-height: 56px; border: 0; }
  :root:not(.js) .nav a { min-height: 44px; font-size: 1rem; padding: 0 8px; }
  :root:not(.js) .site-header .wrap { height: auto; flex-wrap: wrap; padding-block: 8px; }
}

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(92svh, 860px); padding: 110px 0 56px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,18,21,.55) 0%, rgba(14,18,21,.10) 30%, rgba(14,18,21,.80) 72%, #0e1215 100%),
    linear-gradient(90deg, rgba(14,18,21,.75) 0%, rgba(14,18,21,0) 70%);
}
.hero h1 { margin-bottom: .15em; text-shadow: 0 4px 40px rgba(0,0,0,.5); }
.hero h1 em { font-style: normal; color: var(--accent-hi); }
.hero .meta { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 4.4vw, 2.1rem); letter-spacing: .08em; margin: 0 0 1.4rem; }
.hero .meta span { color: var(--accent-hi); padding-inline: .35em; }
.countdown { display: flex; gap: 10px; margin: 0 0 1.8rem; }
.countdown div { min-width: 68px; text-align: center; background: rgba(14,18,21,.72); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 8px 6px 6px; }
.countdown strong { display: block; font-family: var(--head); font-size: clamp(2rem, 8vw, 3rem); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; }

/* kleinere pagina-hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 120px 0 48px; min-height: 340px; display: flex; align-items: flex-end; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,18,21,.45), rgba(14,18,21,.85) 70%, var(--bg)); }
.page-hero h1 { font-size: clamp(3rem, 12vw, 7rem); margin: 0; }
.page-hero p { margin: .6rem 0 0; color: #e8eaed; font-size: 1.2rem; max-width: 60ch; }

/* stats */
.stats { background: var(--surface-2); border-top: 4px solid var(--accent); }
.stats ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats li { padding: 22px 18px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.stats strong { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1; text-transform: uppercase; }
.stats strong b { color: var(--accent-hi); font-weight: 800; }
.stats span { color: #e2e5e9; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; }
@media (min-width: 800px) { .stats ul { grid-template-columns: repeat(4, 1fr); } .stats li { border-bottom: 0; } .stats li:last-child { border-right: 0; } }

/* secties */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: .2em; }
.surface { background: var(--surface); }

/* nieuws */
.news { display: grid; gap: 28px; align-items: center; }
.news .date-block { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: .9; color: var(--accent-hi); font-size: clamp(3.2rem, 13vw, 6.5rem); border-left: 6px solid var(--accent); padding-left: 18px; }
.news .date-block small { display: block; font-size: .32em; letter-spacing: .15em; color: #fff; margin-bottom: .3em; }
@media (min-width: 900px) { .news { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

/* race-kaarten */
.cards { display: grid; gap: 24px; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover figure img { transform: scale(1.05); }
.card figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface)); }
.badge { position: absolute; left: 16px; top: 16px; z-index: 2; background: var(--accent); color: var(--bg); font-family: var(--head); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; font-size: 1rem; }
.card-body { padding: 8px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .3em; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 14px 0 22px; }
.specs div { background: var(--surface); padding: 12px 14px; }
.specs dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.specs dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; line-height: 1.15; }
.card .btn { margin-top: auto; align-self: flex-start; }
.fine { font-size: .9rem; color: var(--muted); }

/* Wat is adventure race */
.what { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0 88px; clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%); margin-block: -14px; }
.what > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.what::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,18,21,.94) 0%, rgba(14,18,21,.8) 55%, rgba(14,18,21,.55) 100%); }
.what h2 { font-size: clamp(3rem, 11vw, 7rem); }
.what h2 em { font-style: normal; color: var(--accent-hi); }
.what .big { font-size: clamp(1.2rem, 3.6vw, 1.55rem); line-height: 1.5; max-width: 34em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.chips li { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 8px 16px; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; }
.duo { display: grid; gap: 14px; margin-top: 34px; }
.duo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
@media (min-width: 700px) { .duo { grid-template-columns: 1fr 1fr; max-width: 820px; } }

/* materialen */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 64px; } .split--rev > :first-child { order: 2; } }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 6px solid var(--accent); }
.checks li { position: relative; padding: 11px 0 11px 38px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 16px; border: solid var(--accent-hi); border-width: 0 4px 4px 0; transform: rotate(40deg); }
.checks--no li::before { content: "\00d7"; border: 0; transform: none; width: auto; height: auto; top: 6px; left: 6px; color: #ff9a8a; font-size: 1.9rem; line-height: 1.2; font-weight: 700; }
.checks--tip li::before { border-color: var(--muted); }
.warn { border-left: 5px solid var(--accent); background: var(--surface); padding: 16px 20px; margin: 20px 0; }
.gear-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gear-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.gear-box { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 20px 22px 12px; }
.gear-box--no { border-top-color: #ff9a8a; }
.gear-box h3 { font-size: 1.8rem; }

/* fotomuur */
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; grid-auto-flow: dense; }
.wall a, .gallery a { position: relative; display: block; overflow: hidden; background: var(--surface); min-height: 44px; }
.wall img, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; filter: saturate(1.05) contrast(1.05); }
.wall a:hover img, .gallery a:hover img { transform: scale(1.06); }
.wall .w2 { grid-column: span 2; }
.wall a { aspect-ratio: 1; }
.wall .w2 { aspect-ratio: 2 / 1; }
@media (min-width: 800px) {
  .wall { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
.gallery { columns: 2; column-gap: 8px; }
.gallery a { margin-bottom: 8px; break-inside: avoid; }
.gallery img { height: auto; }
@media (min-width: 800px) { .gallery { columns: 3; column-gap: 12px; } .gallery a { margin-bottom: 12px; } }
@media (min-width: 1200px) { .gallery { columns: 4; } }

/* sponsors */
.sponsors { background: var(--light); color: var(--ink); padding: 64px 0; }
.sponsors h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); max-width: 22ch; color: var(--ink); }
.sponsors .kicker { color: var(--accent-dark); }
.sponsors .kicker::before { background: var(--accent-dark); }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(5, 1fr); } }
.logos li { background: #fff; border: 1px solid #dcdcdc; height: 120px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logos img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* dars */
.dars { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 28px; }
.dars img { width: 220px; background: #111; }

/* cta band */
.cta-band { background: var(--accent); color: var(--bg); padding: 52px 0; clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); margin-top: -24px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: clamp(2.4rem, 8vw, 4.4rem); color: var(--bg); }
.cta-band .btn { background: var(--bg); color: #fff; }
.cta-band .btn:hover { background: #fff; color: var(--bg); }

/* formulieren */
.form-grid { display: grid; gap: 22px; max-width: 760px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 1.1rem; padding: 0; }
.field .hint { font-size: .9rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: #fff;
  background: var(--surface); border: 2px solid #5a5e63; border-radius: 0;
}
textarea { min-height: 160px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa0a6; }
input:focus, textarea:focus { border-color: var(--accent-hi); outline: 3px solid rgba(163,181,47,.35); outline-offset: 0; }
input[type=date] { color-scheme: dark; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.two { display: grid; gap: 22px; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .check { display: flex; gap: 14px; align-items: flex-start; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--accent); margin: 12px 9px 0 9px; }
.check label { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; min-height: 44px; padding: 10px 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 20px 22px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.status { padding: 16px 20px; border-left: 5px solid var(--accent); background: var(--surface); display: none; }
.status.show { display: block; }

.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 26px; align-self: start; }
.contact-card address { font-style: normal; }
.contact-card a { word-break: break-word; }

/* footer */
.site-footer { background: #090c0e; border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.3rem; letter-spacing: .14em; color: var(--accent-hi); margin-bottom: .8em; }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--accent-hi); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--muted); }
.site-footer .logo svg { height: 40px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* beweging uit voor wie dat wil */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .btn:hover, .card:hover figure img, .wall a:hover img, .gallery a:hover img { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: rise .8s both; }
  .hero .wrap > *:nth-child(2) { animation-delay: .08s; }
  .hero .wrap > *:nth-child(3) { animation-delay: .16s; }
  .hero .wrap > *:nth-child(4) { animation-delay: .24s; }
  .hero .wrap > *:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}
