/* ============================================
   Advocaat Nathalie Verherstraeten — Design System
   ============================================ */

:root {
  /* Warm variant (default) — klei & crème */
  --bg: #f6efe6;
  --bg-alt: #efe5d6;
  --paper: #fbf7f0;
  --ink: #2a2420;
  --ink-soft: #5b514a;
  --ink-mute: #8a7f75;
  --line: #e0d4c2;
  --line-soft: #ebe1d2;
  --accent: #b85c3a;           /* terracotta */
  --accent-deep: #8c3f22;
  --accent-soft: #e9c9b6;
  --accent-wash: #f3dfcc;
  --moss: #5a6a4a;             /* secundair voor bewind */
  --moss-soft: #c8d0b8;
  --focus: #8c3f22;

  /* Type */
  --font-display: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-body: "Mona Sans", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(42, 36, 32, 0.06);
  --shadow: 0 4px 16px rgba(42, 36, 32, 0.08);
}

/* ---------- Variant: Editorial (sereen, meer wit) ---------- */
body[data-variant="editorial"] {
  --bg: #faf7f2;
  --bg-alt: #f2ede4;
  --paper: #ffffff;
  --ink: #1e1a17;
  --ink-soft: #544c46;
  --line: #e8ded0;
  --line-soft: #f0e8da;
  --accent: #8a3a1f;
  --accent-deep: #6b2a13;
  --accent-soft: #e5d0c0;
  --accent-wash: #f5ebe0;
  --moss: #4e5e40;
}

/* ---------- Variant: Direct (grotere schaal, warmer) ---------- */
body[data-variant="direct"] {
  --bg: #f1e5d4;
  --bg-alt: #e6d7c0;
  --paper: #faf3e7;
  --ink: #2a1f17;
  --ink-soft: #5b4a3a;
  --line: #d9c7ac;
  --line-soft: #e4d6be;
  --accent: #c85a2e;
  --accent-deep: #983d17;
  --accent-soft: #f0c5a6;
  --accent-wash: #f7dfc4;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}

body[data-variant="direct"] { font-size: 18px; }

a { color: inherit; }

.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 380; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.2; font-weight: 420; }
p { margin: 0; text-wrap: pretty; }

body[data-variant="direct"] h1 { font-size: clamp(48px, 7.5vw, 96px); letter-spacing: -0.025em; font-weight: 340; }
body[data-variant="direct"] h2 { font-size: clamp(36px, 4.2vw, 58px); }

body[data-variant="editorial"] h1 { font-style: italic; font-weight: 300; }
body[data-variant="editorial"] h2 em { font-style: italic; color: var(--accent); }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  width: 24px; height: 1px; background: var(--ink-mute);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; max-width: 1200px; margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-size: 19px; font-weight: 440;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.brand-mark {
  font-family: var(--font-display); font-style: italic; color: var(--accent); font-weight: 420;
}
.brand-sub {
  font-family: var(--font-body); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  margin-left: 6px;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 14.5px; padding: 8px 14px; border-radius: var(--radius-pill);
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links a.nav-cta {
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-pill);
  text-decoration: none; font-size: 14.5px; font-weight: 600;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 1px 2px rgba(42, 36, 32, 0.08);
}
.nav-links a.nav-cta:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42, 36, 32, 0.15); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: none; cursor: pointer;
  position: relative; z-index: 110;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  position: fixed; inset: 0; background: rgba(42, 36, 32, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 100;
  overflow: hidden;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; }
.nav-mobile-inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--paper);
  padding: 88px 32px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}
.nav-mobile.open .nav-mobile-inner { transform: translateX(0); }
.nav-mobile-inner > a {
  display: block; padding: 14px 0;
  font-family: var(--font-display); font-size: 22px;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: color .15s ease;
}
.nav-mobile-inner > a:hover { color: var(--accent); }
.nav-mobile-divider { height: 16px; }
.nav-mobile-cta {
  margin-top: 8px;
  background: var(--accent) !important;
  color: #fff !important;
  text-align: center;
  border: none !important;
  border-radius: var(--radius-pill);
  padding: 16px 24px !important;
  font-size: 16px !important;
  font-weight: 600;
  font-family: var(--font-sans) !important;
}
.nav-mobile-cta:hover { background: var(--accent-deep) !important; color: #fff !important; }
.nav-mobile-meta {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.nav-mobile-meta a {
  color: var(--ink-soft); text-decoration: none;
  font-family: ui-monospace, Menlo, monospace; font-size: 13px;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--paper); border-color: var(--ink-soft); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 60px rgba(42, 36, 32, 0.18);
  width: 280px;
  font-family: var(--font-body);
}
.tweaks-panel h4 {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  margin: 0 0 14px 0; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; justify-content: space-between;
}
.tweaks-close {
  background: none; border: none; cursor: pointer; color: var(--ink-mute);
  font-size: 16px; padding: 0; line-height: 1;
}
.tweaks-group { margin-bottom: 16px; }
.tweaks-group:last-child { margin-bottom: 0; }
.tweaks-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.tweaks-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-opt {
  padding: 8px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg);
  font-size: 12.5px; cursor: pointer; transition: all .15s ease;
  color: var(--ink-soft);
  font-family: inherit;
}
.tweaks-opt:hover { border-color: var(--ink-soft); color: var(--ink); }
.tweaks-opt.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink-soft);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none; border-color: var(--accent);
  background: var(--paper);
}
.form-field .err {
  color: var(--accent-deep); font-size: 13px; margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.radio-pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill {
  padding: 10px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font-size: 14px; color: var(--ink-soft);
  transition: all .15s ease;
}
.radio-pill.selected {
  border-color: var(--accent); background: var(--accent-wash);
  color: var(--accent-deep); font-weight: 500;
}

/* ---------- Utils ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.divider {
  height: 1px; background: var(--line); margin: 0;
  max-width: 1200px; margin: 0 auto;
}

.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--accent-wash); color: var(--accent-deep);
  font-size: 12.5px; font-weight: 500;
}

/* ---------- Scroll ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
