/* ===================================================================
   PRAKTIJK YUTORI — Shared styles
   Warm, professional, healthcare, accessible
   =================================================================== */

:root {
  /* Brand palette — warm earth tones taken from the Yutori dots */
  --terracotta: #D0653A;       /* orange dot — Kerntalenten */
  --terracotta-dark: #B8542D;
  --terracotta-soft: #F5E4D8;

  --teal: #2B7A7A;             /* teal dot — Hartcoherentie */
  --teal-dark: #1F5C5C;
  --teal-soft: #D9E8E6;

  --mustard: #E0B02E;          /* yellow dot — Studiekeuze */
  --mustard-dark: #B88F1E;
  --mustard-soft: #F6E9C4;

  --sage: #7FA594;             /* green-teal — ACT */
  --sage-dark: #5E8775;
  --sage-soft: #DCE7E0;

  /* Neutrals — warm cream and deep ink */
  --cream: #F7F2EA;
  --cream-2: #EFE8DC;
  --paper: #FDFBF6;
  --ink: #2A2620;
  --ink-2: #4A4339;
  --muted: #6B6357;
  --line: #E3D9C9;

  /* Semantic */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --text-muted: var(--muted);
  --primary: var(--terracotta);
  --primary-dark: var(--terracotta-dark);

  /* Type */
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Instrument Sans', 'Söhne', -apple-system, system-ui, sans-serif;

  /* Spacing rhythm */
  --container: 1200px;
  --container-narrow: 860px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(42, 38, 32, 0.04), 0 1px 3px rgba(42, 38, 32, 0.06);
  --shadow-md: 0 4px 14px rgba(42, 38, 32, 0.06), 0 2px 4px rgba(42, 38, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(42, 38, 32, 0.08), 0 4px 10px rgba(42, 38, 32, 0.04);
}

/* ---- Reset ---- */
* {
  box-sizing: border-box;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
a[href^="tel:"] { white-space: nowrap; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--ink); color: white; padding: 10px 16px;
  border-radius: 6px; z-index: 1000;
}
.skip-link:focus { top: 16px; }

/* ---- Type scale ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 450;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); line-height: 1.08; font-weight: 420; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.1rem; line-height: 1.3; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.6; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: clamp(40px, 5vw, 72px) 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1;
  min-height: 48px;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(208, 101, 58, 0.25);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(208, 101, 58, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--cream-2);
  color: var(--ink);
}
.btn-arrow::after {
  content: '→';
  font-size: 1.1em;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, 0.85);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid rgba(227, 217, 201, 0.6);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo__dots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  width: 28px;
}
.logo__dots span {
  width: 11px; height: 11px; border-radius: 50%;
}
.logo__dots span:nth-child(1) { background: var(--terracotta); }
.logo__dots span:nth-child(2) { background: var(--mustard); }
.logo__dots span:nth-child(3) { background: var(--sage); }
.logo__dots span:nth-child(4) { background: var(--teal); }
.logo__mark {
  display: flex; flex-direction: column; line-height: 1.15;
}
.logo__mark span:first-child {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
}
.logo__mark span:last-child {
  font-weight: 500;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(208, 101, 58, 0.08); color: var(--terracotta-dark); }
.nav a.is-active { color: var(--terracotta-dark); background: rgba(208, 101, 58, 0.08); }
.nav .btn { margin-left: 8px; padding: 11px 20px; min-height: 44px; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--line);
  width: 44px; height: 44px; border-radius: 10px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.nav-toggle:hover { background: var(--cream-2); border-color: var(--ink-2); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile / narrow: collapse to hamburger drawer */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; right: 16px; left: auto;
    width: min(320px, calc(100vw - 32px));
    flex-direction: column; align-items: stretch;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 16px; padding: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    gap: 2px;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav .btn {
    width: 100%; text-align: left; margin-left: 0;
    justify-content: flex-start;
    white-space: normal;
    padding: 12px 14px;
    font-size: 1rem;
  }
  .nav .btn { margin-top: 8px; }
}

/* ---- Service circles (aanbod teasers) ---- */
.circles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.circle-card {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(42, 38, 32, 0.08);
}
.circle-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(42, 38, 32, 0.15);
  color: #fff;
}
.circle-card__icon {
  width: 44px; height: 44px;
  margin-bottom: 10px;
  opacity: 0.95;
}
.circle-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.circle-card__desc {
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.92;
}
.circle-card--terracotta { background: var(--terracotta); }
.circle-card--teal { background: var(--teal); }
.circle-card--mustard { background: var(--mustard); color: var(--ink); }
.circle-card--mustard:hover { color: var(--ink); }
.circle-card--sage { background: var(--sage); }

@media (max-width: 760px) {
  .circles { grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 480px; }
}
@media (max-width: 480px) {
  .circles { grid-template-columns: 1fr; max-width: 280px; gap: 20px; }
  .circle-card { max-width: 260px; margin: 0 auto; }
}

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }

/* ---- Footer ---- */
.site-footer {
  background: var(--teal-dark);
  color: #EFE8DC;
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 232, 220, 0.65);
  margin-bottom: 18px;
  font-weight: 600;
}
.site-footer a {
  color: #EFE8DC;
  display: block;
  padding: 4px 0;
  font-size: 0.95rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: rgba(239, 232, 220, 0.85); font-size: 0.95rem; }

.footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.footer-logo .logo__mark span:first-child { color: rgba(239, 232, 220, 0.65); }
.footer-logo .logo__mark span:last-child { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(239, 232, 220, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(239, 232, 220, 0.6);
}
.footer-bottom a { display: inline; padding: 0; color: rgba(239, 232, 220, 0.8); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.divider-wave {
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 Q300,0 600,20 T1200,20' fill='none' stroke='%23E3D9C9' stroke-width='1.5'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* ---- Tag / chip ---- */
.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--cream-2);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
}
.chip--terracotta { background: var(--terracotta-soft); color: var(--terracotta-dark); border-color: rgba(208, 101, 58, 0.25); }
.chip--teal { background: var(--teal-soft); color: var(--teal-dark); border-color: rgba(43, 122, 122, 0.25); }
.chip--mustard { background: var(--mustard-soft); color: var(--mustard-dark); border-color: rgba(224, 176, 46, 0.35); }
.chip--sage { background: var(--sage-soft); color: var(--sage-dark); border-color: rgba(127, 165, 148, 0.35); }

/* ---- Accessibility tools ---- */
.a11y-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 100;
}
.a11y-trigger {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.a11y-trigger:hover { transform: scale(1.05); background: var(--teal-dark); }
.a11y-trigger svg { width: 24px; height: 24px; }
.a11y-menu {
  position: absolute;
  bottom: 60px; right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.a11y-menu.is-open { display: block; }
.a11y-menu h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); margin: 0 0 10px;
}
.a11y-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; margin: 2px 0;
  border: none; background: transparent;
  width: 100%; text-align: left;
  cursor: pointer; border-radius: 6px;
  font-family: var(--font-sans); font-size: 0.9rem;
  color: var(--ink-2);
}
.a11y-option:hover, .a11y-option.is-active {
  background: var(--cream-2); color: var(--ink);
}

/* Font-size multiplier */
body[data-fontsize="large"] { font-size: 19px; }
body[data-fontsize="xlarge"] { font-size: 21px; }

/* Dyslexia-friendly */
body[data-font="dyslexic"] {
  --font-serif: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.75;
}

/* High contrast */
body[data-contrast="high"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #000000;
  --ink: #000000;
  --ink-2: #000000;
  --muted: #333333;
  --line: #000000;
  --cream: #FFFFFF;
  --cream-2: #F0F0F0;
  --paper: #FFFFFF;
}
body[data-contrast="high"] .btn-primary {
  background: #000; color: #fff; border-color: #000;
}
body[data-contrast="high"] .circle-card { border: 2px solid #000; }

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