/* Survivalrun Vereniging Wageningen: opmaak in de stijl van de bestaande website
   Kleuren en maten staan hier bovenaan; wil je iets wijzigen, doe dat onder :root. */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/Poppins-Light.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Poppins-Bold.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: italic; font-display: swap; src: url("fonts/Poppins-BoldItalic.woff") format("woff"); }

:root {
  --dark: #2d2e2d;       /* donkere achtergrond */
  --darker: #232423;     /* voet */
  --burg: #5a363a;       /* bordeaux */
  --burg-dark: #3b1e22;  /* donker bordeaux */
  --gold: #a98a41;       /* goud (vlak) */
  --gold-btn: #e8c061;   /* geel van de knoppen */
  --mauve: #a08689;      /* lijntje onder koppen */
  --text: rgba(255, 255, 255, 0.9);
  --font: "Poppins", "Montserrat", "Century Gothic", "Futura", "Avenir Next", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--dark); color: var(--text);
  font-family: var(--font); font-weight: 300; font-size: 1rem; line-height: 1.75; letter-spacing: 0.02em;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--gold-btn); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold-btn); outline-offset: 3px; }
p { margin: 0 0 1.1rem; max-width: 60ch; }
strong, b { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--gold-btn); color: var(--dark); padding: 0.6rem 1rem; font-weight: 700; z-index: 40; }
.skip:focus { top: 0.5rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.note { font-size: 0.85rem; opacity: 0.8; }

/* Koppen: dikke, brede hoofdletters */
h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.15; margin: 0; color: #fff; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); margin-bottom: 1.5rem; }
h3 { font-size: 0.8rem; margin: 1.6rem 0 0.4rem; }
h3:first-child { margin-top: 0; }

/* Kopregel: dun lijntje met een dikker stukje, zoals op de huidige site */
.sec-head { position: relative; padding-bottom: 1.1rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.sec-head h2 { margin: 0; }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 30%; height: 5px; background: var(--mauve); }
.sec-head.right { text-align: right; }
.sec-head.right::after { left: auto; right: 0; }
.bar-head::after { content: ""; display: block; width: 4.5rem; height: 4px; background: rgba(255, 255, 255, 0.55); margin-top: 1.1rem; }

section { scroll-margin-top: 4.5rem; }

/* ---------- Koptekst (over de foto heen) ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; padding-block: 1.25rem; }
.site-header .inner {
  width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem;
}
.brand img { display: block; height: 3.75rem; width: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.35rem 2.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  color: #fff; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding-block: 0.3rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold-btn); }
.site-nav a.home { color: var(--gold-btn); }
.site-header.is-fixed { position: fixed; background: rgba(35, 36, 35, 0.96); padding-block: 0.5rem; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.site-header.is-fixed .brand img { height: 2.9rem; }
.site-header.is-fixed .site-nav a.home { color: #fff; }
.site-header.is-fixed .site-nav a.home:hover { color: var(--gold-btn); }
.site-header.solid { position: relative; background: var(--darker); }

/* ---------- Eerste scherm ---------- */
.hero { position: relative; min-height: clamp(34rem, 100svh, 58rem); display: flex; align-items: flex-end; background: #1b1c1b; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)); }
.hero-inner { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; padding: 8rem 0 clamp(2.5rem, 7vh, 5rem); }
.hero h1 {
  font-size: clamp(2.05rem, 7.4vw + 0.5rem, 8rem); letter-spacing: 0.05em; line-height: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero h1 span { display: block; }
.hero .sub { margin: 1.25rem 0 2.25rem; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: 0.1em; text-transform: none; color: #fff; }
.scroll-cue {
  position: absolute; right: clamp(0.5rem, 1.5vw, 1.5rem); top: 50%; z-index: 3; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; text-decoration: none;
}
.scroll-cue:hover { color: var(--gold-btn); }
@media (max-width: 52rem) { .scroll-cue { display: none; } }

/* Gele knopbalken met pijl */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(100%, 26rem); padding: 0.95rem 1.1rem; margin: 0 0 0.9rem;
  background: var(--gold-btn); color: var(--dark); text-decoration: none;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.cta::after { content: ""; flex: none; width: 1.1rem; height: 1.1rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2e2d' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M3 12h17M13 5l7 7-7 7'/%3E%3C/svg%3E"); transition: transform 0.2s; }
.cta:hover { background: #fff; color: var(--dark); }
.cta:hover::after { transform: translateX(4px); }
/* Witte variant met geel pijlvak (lid worden) */
.cta.white { background: #fff; padding: 0 0 0 1.1rem; width: min(100%, 22rem); }
.cta.white::after { width: 3.1rem; height: 3.1rem; background: var(--gold-btn) no-repeat center / 1.1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2e2d' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M3 12h17M13 5l7 7-7 7'/%3E%3C/svg%3E"); }
.cta.white:hover { background: var(--gold-btn); }
.cta.white:hover::after { background-color: #fff; transform: none; }

/* ---------- Gesplitste vlakken ---------- */
.split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }
.panel { padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 5rem); }
.panel .in { max-width: 34rem; }
.panel.burg { background: var(--burg); }
.panel.gold { background: var(--gold); color: #1d1a12; font-weight: 400; }
.panel.gold h2 { color: #fff; }
.panel.gold .bar-head::after { background: rgba(255, 255, 255, 0.8); }
.panel.gold a { color: #1d1a12; }
.panel.gold p { font-weight: 400; }
.photo-cell { position: relative; min-height: 18rem; background: var(--burg-dark); overflow: hidden; }
.photo-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-cell.tint img { opacity: 0.55; mix-blend-mode: luminosity; }
.photo-credit { position: absolute; right: 0.75rem; bottom: 0.6rem; margin: 0; font-size: 0.7rem; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
@media (min-width: 52rem) { .photo-cell { min-height: 30rem; } }

/* ---------- Trainingen / lid worden / bijdragen / contact ---------- */
.block { padding-block: clamp(3rem, 8vw, 6rem); }
.two { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) { .two { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); } }
.times p { margin: 0; max-width: none; }
.times .day { display: flex; justify-content: space-between; gap: 1rem; max-width: 22rem; padding-block: 0.35rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.times .day b { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.baan-foto { border-radius: 0 0 1.75rem 0; overflow: hidden; background: #1b1c1b; }
.baan-foto img { display: block; width: 100%; height: auto; }

.buttons { padding-top: 0.5rem; }

/* Bijdragen: grote regels, wisselend uitgelijnd */
.give h2.title { font-style: italic; font-size: clamp(1.35rem, 3.4vw, 2.5rem); }
.give .intro { margin-bottom: 3rem; max-width: none; }
.items { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.item h3 { font-size: clamp(1.35rem, 3.6vw, 2.5rem); letter-spacing: 0.1em; margin: 0 0 0.35rem; }
.item p { margin: 0; font-size: 0.85rem; }
@media (min-width: 52rem) {
  .item:nth-child(1) { margin-left: 28%; }
  .item:nth-child(3) { margin-left: 18%; }
}
/* Inschrijfformulier */
.signup-form { max-width: 34rem; margin-top: 2rem; }
.signup-form p { max-width: none; }
.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 0.4rem; padding: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"] {
  display: block; width: 100%; min-height: 3rem; padding: 0.8rem 0.9rem; background: var(--darker); color: #fff; color-scheme: dark;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 0; font: 400 1rem/1.5 var(--font); letter-spacing: 0.02em;
}
.field input[type="number"] { display: block; width: 100%; min-height: 3rem; padding: 0.8rem 0.9rem; background: var(--darker); color: #fff; color-scheme: dark; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 0; font: 400 1rem/1.5 var(--font); }
.field textarea { display: block; width: 100%; min-height: 8rem; padding: 0.8rem 0.9rem; background: var(--darker); color: #fff; color-scheme: dark; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 0; font: 400 1rem/1.5 var(--font); resize: vertical; }
.field textarea:focus { outline: 3px solid var(--gold-btn); outline-offset: 2px; border-color: var(--gold-btn); }
.amounts { margin-top: 2rem; }
.amounts legend { font-size: 0.8rem; margin-bottom: 1rem; }
.field input:focus { outline: 3px solid var(--gold-btn); outline-offset: 2px; border-color: var(--gold-btn); }
.hint { display: block; margin-top: 0.35rem; font-size: 0.8rem; opacity: 0.8; }
.choices .check { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0 0 0.7rem; font-size: 1rem; font-weight: 300; letter-spacing: 0.02em; text-transform: none; color: var(--text); cursor: pointer; }
.choices .check input { flex: none; width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; accent-color: var(--gold-btn); }
.iban-block { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.iban-block legend { font-size: 0.8rem; }
.hint-block { font-size: 0.95rem; margin: 0 0 1.25rem; }
.machtiging { font-size: 0.85rem; opacity: 0.85; margin: 0 0 1rem; }
.field input[type="text"]#f-iban { text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.cta { border: 0; cursor: pointer; font-family: var(--font); text-align: left; margin-top: 0.5rem; }
button.cta:disabled { opacity: 0.6; cursor: default; }
.form-status { overflow-wrap: anywhere; min-height: 1.5rem; margin: 0.5rem 0 0; font-weight: 400; }
.form-status.is-ok { color: #cfe8c3; }
.form-status.is-error { color: #ffb4a8; }

.mail { font-size: clamp(1rem, 3vw, 1.4rem); word-break: break-word; }
.mail a { font-weight: 400; }

/* ---------- Voet ---------- */
.site-footer { background: var(--darker); padding-block: 1.75rem 2.25rem; font-size: 0.85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer img { display: block; height: 3rem; width: auto; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-btn); }

/* ---------- Tekstpagina's (reglement, privacy) ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 { font-size: clamp(1.1rem, 5vw, 2.75rem); letter-spacing: 0.08em; overflow-wrap: anywhere; margin: 0 0 1.5rem; }
.doc h2 { font-size: 1.05rem; margin: 2.25rem 0 0.9rem; }
.doc ul, .doc ol { max-width: 62ch; padding-left: 1.5rem; }
.doc li { margin-bottom: 0.6rem; }
.doc li ul { margin-top: 0.5rem; }
.todo { border-left: 6px solid var(--gold-btn); background: var(--burg); padding: 0.75rem 1rem; max-width: 62ch; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta::after { transition: none; } }
