/* ============================================================
   BuurOpslag — Huisstijl
   Kleuren: groen #3A7D44, geel #F2A33C, waterblauw #2B7A9E
   Achtergrond: #FAFAF7, tekst: #1F2A24
   Lettertypen: Baloo 2 (koppen), Inter (tekst)
   ============================================================ */

/* ---------- Fonts (Google Fonts, geen blocking) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700&family=Inter:wght@400;500;600&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --clr-primary:   #3A7D44;   /* buitenruimte, vertrouwen */
  --clr-accent:    #F2A33C;   /* vriendelijk, buurtgevoel */
  --clr-water:     #2B7A9E;   /* waterplekken */
  --clr-bg:        #FAFAF7;   /* warm wit */
  --clr-text:      #1F2A24;   /* donker grijsgroen */
  --clr-success:   #2F9E44;   /* past (3D-checker) */
  --clr-error:     #D64545;   /* past-niet / fout */
  --clr-muted:     #6B7C74;   /* secundaire tekst */

  --ff-heading: 'Baloo 2', cursive;
  --ff-body:    'Inter', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  --radius: 0.5rem;
  --max-width: 72rem;   /* 1152px */
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;        /* 16px basis */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--clr-accent); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }

p { margin-bottom: var(--space-md); max-width: 65ch; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

@media (min-width: 48em) {
  section { padding: var(--space-2xl) 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover { background: #326d3b; color: #fff; }

.btn-accent {
  background: var(--clr-accent);
  color: var(--clr-text);
}
.btn-accent:hover { background: #e0932e; color: var(--clr-text); }

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.btn-outline:hover { background: var(--clr-primary); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--clr-primary);
  color: #fff;
  text-align: center;
  padding: var(--space-2xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  color: #fff;
  margin-bottom: var(--space-md);
}
.hero p {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin: 0 auto var(--space-lg);
  opacity: 0.92;
}
.hero .btn { margin-top: var(--space-sm); }

/* ---------- "Wat is BuurOpslag?" ---------- */
.wat-is {
  background: #fff;
  text-align: center;
}
.wat-is .container { max-width: 48rem; }
.wat-is ul {
  list-style: none;
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: left;
}
.wat-is li {
  background: var(--clr-bg);
  padding: var(--space-md);
  border-radius: var(--radius);
  border-left: 4px solid var(--clr-primary);
}

/* ---------- "Zo werkt het straks" ---------- */
.hoe-werkt {
  text-align: center;
}
.stappen {
  list-style: none;
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
@media (min-width: 48em) {
  .stappen { grid-template-columns: repeat(3, 1fr); }
}
.stap {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid #e8e8e4;
}
.stap-nummer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}
.stap h3 { margin-bottom: var(--space-xs); }

.komt-eraan {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Aanmeldformulier ---------- */
.formulier-sectie {
  background: #fff;
}
.formulier-sectie .container { max-width: 36rem; }

.aanmeldformulier label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.aanmeldformulier fieldset {
  border: none;
  margin-bottom: var(--space-lg);
}

.aanmeldformulier legend {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.form-group { margin-bottom: var(--space-md); }

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid #d1d5c8;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--clr-text);
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: 2px solid var(--clr-primary);
  outline-offset: 1px;
  border-color: var(--clr-primary);
}

.form-group input[aria-invalid="true"],
.form-group input.is-invalid {
  border-color: var(--clr-error);
}
.foutmelding {
  color: var(--clr-error);
  font-size: 0.85rem;
  margin-top: var(--space-xs);
  display: none;
}
.foutmelding.visible,
input[aria-invalid="true"] + .foutmelding { display: block; }

/* Radio buttons */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 400;
  padding: var(--space-xs) var(--space-sm);
  border: 1.5px solid #d1d5c8;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.radio-group label:has(input:checked) {
  border-color: var(--clr-primary);
  background: rgba(58, 125, 68, 0.06);
}
.radio-group input[type="radio"] { accent-color: var(--clr-primary); }

/* Conditional fieldset */
[data-conditional] {
  display: none;
}
[data-conditional].visible {
  display: block;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}
.checkbox-group input[type="checkbox"] {
  accent-color: var(--clr-primary);
  margin-top: 0.25em;
  flex-shrink: 0;
}
.checkbox-group label { font-weight: 400; font-size: 0.9rem; }

.form-submit { margin-top: var(--space-lg); }
.form-submit .btn { width: 100%; font-size: 1.1rem; padding: var(--space-md) var(--space-lg); }

@media (min-width: 30em) {
  .form-submit .btn { width: auto; }
}

/* ---------- Bevestiging ---------- */
.bevestiging {
  background: var(--clr-primary);
  color: #fff;
  text-align: center;
  padding: var(--space-2xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bevestiging h1 { color: #fff; margin-bottom: var(--space-md); }
.bevestiging p { max-width: 36rem; margin: 0 auto var(--space-md); opacity: 0.92; }

/* ---------- Uitschrijven ---------- */
.uitschrijven {
  text-align: center;
  padding: var(--space-2xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uitschrijven .container { max-width: 36rem; }

/* ---------- Contact / Footer ---------- */
.contact-sectie {
  background: #fff;
  text-align: center;
}
.contact-sectie .container { max-width: 48rem; }

.contact-lijst {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.contact-lijst li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.contact-lijst strong {
  min-width: 7rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-muted);
}

footer {
  background: var(--clr-text);
  color: #d4d8d5;
  text-align: center;
  padding: var(--space-lg) 0;
  font-size: 0.85rem;
}
footer a { color: var(--clr-accent); }
footer a:hover { color: #fff; }
footer .footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ---------- Privacy ---------- */
.privacy {
  max-width: 48rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}
.privacy h1 { margin-bottom: var(--space-lg); }
.privacy h2 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.privacy ul { margin-left: var(--space-lg); margin-bottom: var(--space-md); }

/* ---------- Broodkruimel ---------- */
.broodkruimel ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1rem 0 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--clr-muted);
}
.broodkruimel li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--clr-muted);
}
.broodkruimel a { color: var(--clr-primary, #3A7D44); }

/* ---------- FAQ ---------- */
.faq-sectie { padding: var(--space-xl) 0; }
.faq-sectie h2 { text-align: center; margin-bottom: var(--space-lg); }
.faq-item {
  background: #ffffff;
  border: 1px solid #e8e8e4;
  border-radius: 0.5rem;
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #1F2A24;
}
.faq-item p { margin: var(--space-sm) 0 0; color: var(--clr-muted, #1F2A24); }
.privacy li { margin-bottom: var(--space-xs); }
