/* ==========================================================
   WAKA WAKA BV — huisstijl & componenten
   ========================================================== */

:root {
  /* Kleuren */
  --ink: #14213d;          /* primair donker: tekst, navigatie */
  --ink-2: #3a4663;
  --muted: #6b7489;
  --brand: #ff6b35;        /* tangerine: acties, accenten */
  --brand-dark: #e2531f;
  --brand-soft: #fff0e8;
  --sand: #fbf7f2;         /* achtergrond */
  --surface: #ffffff;
  --line: #ebe4db;
  --line-strong: #d9cfc3;
  --success: #1a9e8f;
  --success-soft: #e3f6f3;
  --warn: #c98a00;
  --warn-soft: #fff6dc;
  --danger: #d6344a;
  --danger-soft: #fde8eb;

  /* Typografie */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Vorm */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06);
  --shadow: 0 6px 24px rgba(20, 33, 61, .08);
  --shadow-lg: 0 20px 60px rgba(20, 33, 61, .16);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); }
button { font: inherit; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo img { width: 40px; height: 40px; }
.logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; }
.logo-text span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.logo--light .logo-text, .logo--light .logo-text span { color: #fff; }
.logo--light .logo-text span { opacity: .6; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(255, 107, 53, .35); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(255, 107, 53, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.1rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Formulierelementen ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 650; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: -4px; }
.input {
  width: 100%; min-height: 56px; padding: 14px 16px;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #a9afbd; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 107, 53, .15); }
.field.has-error .input { border-color: var(--danger); background: var(--danger-soft); }
.field .error { display: none; color: var(--danger); font-size: .88rem; font-weight: 600; }
.field.has-error .error { display: block; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.check {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1.5px solid var(--line-strong); border-radius: var(--r);
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.check input { width: 26px; height: 26px; margin: 0; accent-color: var(--brand); flex: none; }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check.has-error { border-color: var(--danger); background: var(--danger-soft); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-new { background: var(--brand-soft); color: var(--brand-dark); }
.badge-sent { background: var(--success-soft); color: var(--success); }
.badge-seen { background: #eef0f5; color: var(--ink-2); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Hulp ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
