:root {
  --green: #1d4a36;
  --green-deep: #12321f;
  --green-soft: #2e6b4f;
  --cream: #f6efe1;
  --paper: #fbf7ee;
  --ink: #1b1f1c;
  --muted: #5e665f;
  --red: #d8452f;
  --gold: #e8b04a;
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--green-deep) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--cream);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.05rem; }
.brand b { font-weight: 700; color: var(--gold); }
.brand-mark { width: 30px; height: 30px; color: var(--cream); }
.topbar nav { display: flex; gap: clamp(.6rem, 2vw, 1.8rem); font-weight: 500; font-size: .95rem; }
.topbar nav a { text-decoration: none; opacity: .85; padding: .25rem 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover { opacity: 1; border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 6vw, 6rem) clamp(7rem, 12vw, 10rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232, 176, 74, .22), transparent 60%),
    linear-gradient(180deg, var(--green-deep), var(--green));
  color: var(--cream);
  overflow: hidden;
}
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1.2rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.kicker.dark { color: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(216, 69, 47, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(216, 69, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 69, 47, 0); } }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
.lede { max-width: 34ch; margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); opacity: .88; }

.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--paper); }

/* ---------- Player ---------- */
.player {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "top top"
    "btn now"
    "eq eq"
    "vol vol"
    "err err";
  gap: 1.2rem 1.4rem;
  align-items: center;
  padding: 1.6rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45), 0 0 0 6px rgba(246, 239, 225, .08);
}
.player-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.live-badge {
  background: var(--red); color: #fff; font-weight: 700; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px;
}
.live-badge.off { background: var(--muted); }

.play-btn {
  grid-area: btn;
  position: relative;
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: var(--cream);
  display: grid; place-items: center;
  transition: transform .15s ease, background .2s ease;
}
.play-btn:hover { transform: scale(1.05); background: var(--green-soft); }
.play-btn:active { transform: scale(.96); }
.play-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.play-btn svg { width: 36px; height: 36px; fill: currentColor; grid-area: 1 / 1; }
.icon-play { margin-left: 4px; }
.icon-stop, .spinner { display: none; }
.spinner {
  grid-area: 1 / 1; width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid transparent; border-top-color: var(--gold); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.player[data-state="playing"] .icon-play,
.player[data-state="loading"] .icon-play { display: none; }
.player[data-state="playing"] .icon-stop,
.player[data-state="loading"] .icon-stop { display: block; }
.player[data-state="loading"] .spinner { display: block; }
.player[data-state="playing"] .play-btn { background: var(--red); }

.now { grid-area: now; min-width: 0; }
.now-label { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.now-title { margin: .2rem 0 .1rem; font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.now-show { margin: 0; font-size: .9rem; color: var(--green-soft); font-weight: 500; }

.eq { grid-area: eq; display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.eq i { flex: 1; height: 15%; background: var(--green); border-radius: 3px; opacity: .25; transition: opacity .3s; }
.player[data-state="playing"] .eq i { opacity: 1; animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(2n) { background: var(--gold); animation-delay: -.3s !important; }
.eq i:nth-child(3n) { background: var(--red); animation-delay: -.6s !important; }
.eq i:nth-child(4) { animation-duration: .8s !important; }
.eq i:nth-child(6) { animation-duration: 1.3s !important; }
@keyframes eq { 0% { height: 15%; } 50% { height: 90%; } 100% { height: 40%; } }

.volume { grid-area: vol; display: flex; align-items: center; gap: .7rem; color: var(--green); }
.volume svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.volume input { flex: 1; accent-color: var(--green); }

.player-error { grid-area: err; margin: 0; font-size: .9rem; color: var(--red); }
.player-error a { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 6vw, 6rem); }
.section-head { margin-bottom: 2rem; }
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

/* ---------- Verzoek ---------- */
.verzoek {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start;
  background: var(--green-deep); color: var(--cream);
  border-radius: clamp(0px, 3vw, 32px) clamp(0px, 3vw, 32px) 0 0;
}
.verzoek-intro p:not(.kicker) { font-size: 1.1rem; opacity: .85; max-width: 38ch; margin-top: 1.2rem; }

.request-form {
  display: grid; gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
}
.request-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.request-form small { font-weight: 400; color: var(--muted); }
.request-form input[type="text"],
.request-form input[type="email"],
.request-form textarea {
  width: 100%; padding: .8rem .9rem;
  font: 400 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid #ddd3bf; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.request-form input:focus, .request-form textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 74, 54, .18);
}
.request-form textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row[hidden] { display: none; }
.hidden-field { position: absolute; left: -9999px; }

.type-toggle { display: flex; gap: .4rem; border: 0; padding: 0; margin: 0; flex-wrap: wrap; }
.type-toggle label { display: block; cursor: pointer; }
.type-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.type-toggle span {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid #d3c8b1; font-weight: 600; transition: all .15s;
}
.type-toggle input:checked + span { background: var(--green); border-color: var(--green); color: var(--cream); }
.type-toggle input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.submit {
  justify-self: start;
  padding: .95rem 1.8rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: #fff; font: 700 1rem var(--sans);
  transition: transform .15s, background .15s;
}
.submit:hover { transform: translateY(-2px); background: #c13a25; }
.submit:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: 2rem clamp(1rem, 6vw, 6rem);
  background: var(--green-deep); color: var(--cream);
  border-top: 1px solid rgba(246, 239, 225, .12);
}
.footer p { margin: 0; }
.muted { opacity: .65; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .verzoek { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar nav a:first-child { display: none; }
  .brand span { font-size: .92rem; }
  .row { grid-template-columns: 1fr; }
  .play-btn, .spinner { width: 70px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
