/* ==========================================================================
   base.css — reset, toegankelijkheid en formulier-basis (stijl-neutraal)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }

[hidden] { display: none !important; }

main:focus { outline: none; }

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--focus, #2563eb);
  outline-offset: 3px;
}

body.menu-open { overflow: hidden; }

/* ── Formulier-basis ──────────────────────────────────────────────────── */
.form__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}
textarea.field__input { min-height: 160px; resize: vertical; }
select.field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field__hint { font-size: .875rem; }
.field__error { font-size: .875rem; font-weight: 500; }

.field--check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}
.field--check input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}
.field--check label { flex: 1 1 0; font-size: .9375rem; line-height: 1.5; }
.field--check .field__error { flex-basis: 100%; }

.form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-errors { margin-bottom: 24px; padding: 20px 24px; }
.form-errors__title { font-size: 1rem; margin-bottom: 8px; }
.form-errors ul { list-style: disc; padding-left: 20px; }
.form-errors li + li { margin-top: 4px; }

.notice { margin-bottom: 24px; padding: 20px 24px; }

/* ── Reveal-basis (alleen met JS en zonder reduced motion) ────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 24px), 0);
  transition:
    opacity var(--reveal-duration, 700ms) var(--reveal-ease, ease),
    transform var(--reveal-duration, 700ms) var(--reveal-ease, ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Stijlwissel (alleen intern) ──────────────────────────────────────── */
.theme-switch {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 90;
  padding: 10px 16px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  background: #111;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
}
.theme-switch:hover { background: #333; }

/* ── Minder beweging ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
