/* ============================================================
   ANDERSS THUISBEGELEIDING — Shared Stylesheet
   Kleurpsychologie: kalmte · vertrouwen · warmte · verbinding
   ============================================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Primaire kleuren — teal-blauw: vertrouwen, kalmte, helderheid */
  --primary:        #4A8FA8;
  --primary-light:  #7BBCCC;
  --primary-dark:   #2D6E87;
  --primary-alpha:  rgba(74, 143, 168, 0.12);

  /* Secundair — salie-groen: groei, natuur, genezing */
  --secondary:      #6BAF99;
  --secondary-light:#A2D0C4;
  --secondary-dark: #4A8C78;
  --secondary-alpha:rgba(107, 175, 153, 0.12);

  /* Accent — warme terra: menselijkheid, warmte */
  --accent:         #9B7055;
  --accent-light:   #DFCAB8;
  --accent-dark:    #6A4432;
  --accent-alpha:   rgba(155, 112, 85, 0.12);

  /* Achtergronden */
  --bg:             #F6F4F1;
  --bg-rgb:         246, 244, 241;
  --bg-alt:         #EBF2EE;
  --bg-card:        #FFFFFF;
  --bg-dark:        #1E3040;
  --bg-darker:      #152332;
  --gradient-mint:  #DFF0EC;

  /* Tekst */
  --text:           #1E3040;
  --text-light:     #5A6E7E;
  --text-lighter:   #8FA0B0;
  --text-white:     #FFFFFF;

  /* Extra accenten (partnerpillen) */
  --partner-green-dark:      #4C7350;
  --partner-terracotta-dark: #B15A3A;

  /* Schaduw & effecten */
  --shadow-xs:      0 1px 4px rgba(30, 48, 64, 0.06);
  --shadow-sm:      0 2px 10px rgba(30, 48, 64, 0.08);
  --shadow:         0 4px 20px rgba(74, 143, 168, 0.14);
  --shadow-lg:      0 12px 40px rgba(74, 143, 168, 0.18);
  --shadow-card:    0 2px 16px rgba(30, 48, 64, 0.07);
  --shadow-card-h:  0 8px 32px rgba(74, 143, 168, 0.18);

  /* Vormen */
  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      22px;
  --radius-xl:      32px;
  --radius-full:    9999px;

  /* Animaties */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --transition:     all 0.18s var(--ease);
  --transition-med: all 0.3s var(--ease);
  --transition-slow:all 0.45s var(--ease);

  /* Typografie */
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --font-heading:   'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Typografieschaal — alle font-sizes verwijzen hiernaar */
  --fs-h1:         clamp(2.5rem, 5.5vw, 4.5rem);
  --fs-h2:         clamp(2rem, 4vw, 3rem);
  --fs-h3:         clamp(1.25rem, 2.5vw, 1.65rem);
  --fs-h4:         1.15rem;
  --fs-card-title: 1.25rem;   /* h3 in kaarten */
  --fs-body:       0.9375rem; /* standaard broodtekst */
  --fs-sm:         0.875rem;  /* labels, meta, tags */
  --fs-xs:         0.75rem;   /* kleine badges, taglines */

  /* Layout */
  --nav-h:          104px;
  --section-py:     96px;
  --container:      1180px;

  /* Zegt tegen de browser: deze site regelt licht/donker zelf, dus geen
     automatische kleur-/afbeeldingsinversie toepassen (voorkomt dat losse
     afbeeldingen zoals het IBvA-logo er verwassen uitzien in donkere modus) */
  color-scheme: light dark;
}

/* === DARK MODE — volgt systeemvoorkeur === */
@media (prefers-color-scheme: dark) {
  :root {
    --primary:        #6BAAC2;
    --primary-light:  #8FC4D6;
    --primary-dark:   #4A8FA8;
    --primary-alpha:  rgba(107, 170, 194, 0.16);

    --secondary:      #83C1AB;
    --secondary-light:#A2D0C4;
    --secondary-dark: #6BAF99;
    --secondary-alpha:rgba(131, 193, 171, 0.16);

    --accent:         #C99B7C;
    --accent-light:   #DFCAB8;
    --accent-dark:    #9B7055;
    --accent-alpha:   rgba(201, 155, 124, 0.16);

    --bg:             #141D26;
    --bg-rgb:         20, 29, 38;
    --bg-alt:         #1A2731;
    --bg-card:        #1E2C38;
    --bg-dark:        #0D141B;
    --bg-darker:      #0A0F14;
    --gradient-mint:  #16262C;

    --text:           #EAF0F3;
    --text-light:     #AEBECB;
    --text-lighter:   #7C8E9C;
    --text-white:     #FFFFFF;

    --partner-green-dark:      #7FAE85;
    --partner-terracotta-dark: #D98A66;

    --shadow-xs:      0 1px 4px rgba(0, 0, 0, 0.25);
    --shadow-sm:      0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow:         0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg:      0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-card:    0 2px 16px rgba(0, 0, 0, 0.25);
    --shadow-card-h:  0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

/* === HANDMATIGE OVERRIDE (?theme=light / ?theme=dark in de URL) ===
   Voor lokaal testen, ongeacht de systeeminstelling — zie main.js.
   html[data-theme] heeft hogere specificiteit dan :root, dus dit wint altijd. */
html[data-theme="dark"] {
  --primary:        #6BAAC2;
  --primary-light:  #8FC4D6;
  --primary-dark:   #4A8FA8;
  --primary-alpha:  rgba(107, 170, 194, 0.16);
  --secondary:      #83C1AB;
  --secondary-light:#A2D0C4;
  --secondary-dark: #6BAF99;
  --secondary-alpha:rgba(131, 193, 171, 0.16);
  --accent:         #C99B7C;
  --accent-light:   #DFCAB8;
  --accent-dark:    #9B7055;
  --accent-alpha:   rgba(201, 155, 124, 0.16);
  --bg:             #141D26;
  --bg-rgb:         20, 29, 38;
  --bg-alt:         #1A2731;
  --bg-card:        #1E2C38;
  --bg-dark:        #0D141B;
  --bg-darker:      #0A0F14;
  --gradient-mint:  #16262C;
  --text:           #EAF0F3;
  --text-light:     #AEBECB;
  --text-lighter:   #7C8E9C;
  --text-white:     #FFFFFF;
  --partner-green-dark:      #7FAE85;
  --partner-terracotta-dark: #D98A66;
  --shadow-xs:      0 1px 4px rgba(0, 0, 0, 0.25);
  --shadow-sm:      0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow:         0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg:      0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-card:    0 2px 16px rgba(0, 0, 0, 0.25);
  --shadow-card-h:  0 8px 32px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
html[data-theme="light"] {
  --primary:        #4A8FA8;
  --primary-light:  #7BBCCC;
  --primary-dark:   #2D6E87;
  --primary-alpha:  rgba(74, 143, 168, 0.12);
  --secondary:      #6BAF99;
  --secondary-light:#A2D0C4;
  --secondary-dark: #4A8C78;
  --secondary-alpha:rgba(107, 175, 153, 0.12);
  --accent:         #9B7055;
  --accent-light:   #DFCAB8;
  --accent-dark:    #6A4432;
  --accent-alpha:   rgba(155, 112, 85, 0.12);
  --bg:             #F6F4F1;
  --bg-rgb:         246, 244, 241;
  --bg-alt:         #EBF2EE;
  --bg-card:        #FFFFFF;
  --bg-dark:        #1E3040;
  --bg-darker:      #152332;
  --gradient-mint:  #DFF0EC;
  --text:           #1E3040;
  --text-light:     #5A6E7E;
  --text-lighter:   #8FA0B0;
  --text-white:     #FFFFFF;
  --partner-green-dark:      #4C7350;
  --partner-terracotta-dark: #B15A3A;
  --shadow-xs:      0 1px 4px rgba(30, 48, 64, 0.06);
  --shadow-sm:      0 2px 10px rgba(30, 48, 64, 0.08);
  --shadow:         0 4px 20px rgba(74, 143, 168, 0.14);
  --shadow-lg:      0 12px 40px rgba(74, 143, 168, 0.18);
  --shadow-card:    0 2px 16px rgba(30, 48, 64, 0.07);
  --shadow-card-h:  0 8px 32px rgba(74, 143, 168, 0.18);
  color-scheme: light;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  /* Woorden springen als geheel naar de volgende regel, nooit midden-doorbroken */
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.22; color: var(--text); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p  { color: var(--text-light); font-size: var(--fs-body); }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* === UTILITY === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.text-center { text-align: center; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm); font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 18px rgba(74,143,168,0.38);
}
.btn-primary:hover {
  background: var(--primary-dark); color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,143,168,0.45);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white; color: var(--primary);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.btn-white:hover {
  background: var(--bg); color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent; color: white;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15); color: white;
  border-color: white;
  transform: translateY(-2px);
}
.btn-ghost-white {
  background: transparent; color: rgba(255,255,255,0.8);
  border-color: transparent;
  padding: 12px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}
.btn-ghost-white:hover { color: white; }
.btn-lg { padding: 16px 36px; font-size: var(--fs-body); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74,143,168,0.08);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo svg { height: 64px; width: auto; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-heading); font-size: 2rem;
  font-weight: 700; letter-spacing: 3px; color: var(--text);
}
/* A en SS accentkleur in het logo — verwijzing naar ASS (autismespectrumstoornis) */
.logo-hi {
  color: var(--accent);
  font-style: normal;
  font-weight: inherit;
}

.logo-tagline {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--secondary);
  margin-top: 2px;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  height: 46px;
}
.nav-link {
  padding: 11px 22px; border-radius: var(--radius-full);
  color: var(--text); font-size: 1.1rem; font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary); background: var(--primary-alpha);
}
.nav-cta { margin-left: 10px; }

/* Diensten-dropdown — position:absolute, telt dus niet mee in de breedte
   van .nav-links. Daardoor kan het paneel nooit de layout of de CTA-knop
   verschuiven, op geen enkele schermbreedte. */
.nav-has-dropdown { position: relative; }
.nav-caret {
  width: 0; height: 0; margin-left: 2px; display: inline-block;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.6;
  transition: transform 0.2s var(--ease);
}
.nav-has-dropdown.is-open .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 210px; padding: 8px;
  background: rgba(var(--bg-rgb), 0.98);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(74, 143, 168, 0.12);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}
/* Onzichtbare hover-brug: voorkomt dat het menu sluit tijdens het bewegen
   van de knop náár het paneel toe */
.nav-dropdown::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-has-dropdown.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  padding: 10px 16px; border-radius: var(--radius-full);
  color: var(--text); font-size: var(--fs-sm); font-weight: 500;
  white-space: nowrap; transition: var(--transition);
}
.nav-dropdown-link:hover, .nav-dropdown-link.active {
  color: var(--primary); background: var(--primary-alpha);
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown, .nav-caret { transition: none; }
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; padding: 8px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.mobile-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(var(--bg-rgb), 0.97);
  backdrop-filter: blur(14px);
  padding: 20px 24px 28px;
  border-bottom: 1px solid rgba(74,143,168,0.1);
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
.mobile-nav .nav-link { padding: 12px 16px; font-size: var(--fs-body); border-radius: var(--radius); }
.mobile-nav .btn { margin-top: 8px; justify-content: center; width: 100%; }

/* === HERO (homepage) === */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
  background: linear-gradient(150deg, var(--bg) 0%, var(--bg-alt) 55%, var(--gradient-mint) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
  animation: blobDrift 10s ease-in-out infinite;
}
.blob-1 { width: 550px; height: 550px; background: var(--primary-light); top: -160px; right: -120px; animation-delay: 0s; }
.blob-2 { width: 420px; height: 420px; background: var(--secondary); bottom: -80px; left: -80px; animation-delay: -4s; }
.blob-3 { width: 280px; height: 280px; background: var(--accent-light); top: 45%; left: 38%; animation-delay: -7s; }

@keyframes blobDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(24px,-18px) scale(1.06); }
  66%       { transform: translate(-18px,14px) scale(0.94); }
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; width: 100%;
}
.hero-text { max-width: 640px; }

.hero-label {
  display: block;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}

.hero h1 { margin-bottom: 24px; color: var(--text); }
.hero h1 em {
  font-style: normal; color: var(--primary);
}

.hero-desc {
  font-size: var(--fs-body); color: var(--text-light);
  line-height: 1.85; margin: 0 auto 40px; max-width: 490px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* === SECTION BASE === */
section { padding: var(--section-py) 0; }
.section-bg-white { background: var(--bg-card); }
.section-bg-alt   { background: var(--bg-alt); }
.section-bg-dark  { background: var(--bg-dark); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-label {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { color: var(--text-light); font-size: var(--fs-body); margin: 0 auto; }

/* === PILLAR CARDS === */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.pillar-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  cursor: default;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(74,143,168,0.07);
  transition: var(--transition-med);
  position: relative; overflow: hidden;
}
.pillar-card::before { display: none; }

.pillar-icon {
  width: 66px; height: 66px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(74,143,168,0.15), rgba(107,175,153,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.85rem; margin-bottom: 24px;
  transition: var(--transition);
}
.pillar-card h3 { margin-bottom: 12px; font-size: var(--fs-card-title); }
.pillar-card p  { font-size: var(--fs-body); max-width: none; }

/* === ABOUT PREVIEW (home) === */
.about-split {
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(340px, 1fr);
  gap: 80px; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-ring { display: none; }
.about-img-box {
  position: relative;
  width: 100%; aspect-ratio: 1/1;
  background: var(--primary);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  overflow: hidden;
}
.about-img-box .img-icon { font-size: 5rem; opacity: 0.35; }
.about-img-box .img-label { font-size: var(--fs-xs); color: var(--text-lighter); }
.about-badge {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--accent); color: white;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: var(--fs-sm); box-shadow: var(--shadow);
  white-space: nowrap;
}

.about-copy { display: flex; flex-direction: column; gap: 24px; }
.about-copy .section-label { display: block; text-align: left; margin-bottom: 0; }
.about-copy h2 { text-align: left; }
.about-copy > p { max-width: none; font-size: var(--fs-body); }

.check-grid { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr); gap: 14px; margin: 8px 0; }
.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 14px 16px;
}
.check-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.check-item p { font-size: var(--fs-body); color: var(--text); max-width: none; margin: 0; }

/* === QUOTE SECTION === */
.quote-section {
  background: linear-gradient(160deg, var(--bg-dark) 0%, #152536 100%);
  padding: 100px 0; position: relative; overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: rgba(74,143,168,0.07); top: -250px; right: -150px;
  pointer-events: none;
}
.quote-section::after {
  content: '';
  position: absolute; width: 450px; height: 450px; border-radius: 50%;
  background: rgba(107,175,153,0.05); bottom: -180px; left: -80px;
  pointer-events: none;
}
.quote-wrap {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto; text-align: center;
}
/* "anders" typografisch achtergrondpatroon */
.anders-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 16px 0;
}
.anders-row {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  line-height: 0.95;
  letter-spacing: -0.01em;
  word-spacing: 0.5em;
  flex-shrink: 0;
}

.quote-marks {
  font-family: var(--font-heading); font-size: 9rem;
  color: var(--primary); opacity: 0.25;
  line-height: 0.7; display: block; margin-bottom: 20px;
  user-select: none;
}
.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  color: var(--text-white); line-height: 1.55;
  font-style: italic; margin-bottom: 32px;
  max-width: none;
}
.quote-attr {
  font-size: var(--fs-body); color: var(--primary-light);
  font-weight: 600; letter-spacing: 0.5px;
  max-width: none;
}
.quote-attr span { color: var(--secondary-light); }

/* === PROCESS STEPS (home) === */
.process-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 32px; position: relative;
}
.process-row::before {
  content: '';
  position: absolute; top: 32px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
  z-index: 0;
}
.step {
  text-align: center; position: relative; z-index: 1;
}
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-card);
  border: 2.5px solid var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: var(--primary); margin: 0 auto 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.step h3 { font-size: var(--fs-card-title); margin-bottom: 8px; }
.step p  { font-size: var(--fs-body); max-width: 190px; margin: 0 auto; }

/* === PARTNERS === */
.partners-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.partner-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px 14px 14px; background: var(--bg-card);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(74,143,168,0.1);
  font-weight: 600; font-size: var(--fs-sm); color: var(--text);
  transition: var(--transition-med);
}
.partner-pill-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  flex-shrink: 0;
}
.partner-pill-icon svg { width: 20px; height: 20px; }

.partner-pill-blue .partner-pill-icon      { background: var(--primary-alpha); color: var(--primary-dark); }
.partner-pill-brown .partner-pill-icon     { background: var(--accent-alpha); color: var(--accent-dark); }
.partner-pill-green .partner-pill-icon     { background: rgba(107, 142, 111, 0.14); color: var(--partner-green-dark); }
.partner-pill-terracotta .partner-pill-icon{ background: rgba(196, 108, 74, 0.14); color: var(--partner-terracotta-dark); }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 100px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px, transparent 1px, transparent 24px
  );
}
/* Zachte overgang naar de footer i.p.v. een harde kleurrand */
.cta-banner::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 72px;
  background: var(--bg-darker);
  clip-path: ellipse(58% 100% at 50% 100%);
}
.cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-inner h2    { color: white; margin-bottom: 18px; }
.cta-inner p     { color: rgba(255,255,255,0.85); font-size: var(--fs-body); margin: 0 auto 44px; max-width: none; }
.cta-btns        { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
footer {
  background: var(--bg-darker); color: rgba(255,255,255,0.65);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 64px; margin-bottom: 60px;
}
.footer-brand .logo-name   { color: white; }
.footer-brand .logo-tagline{ color: var(--secondary-light); }
.footer-brand > p {
  margin: 20px 0 26px; font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55); max-width: 310px; line-height: 1.8;
}
/* IBvA-logo heeft lichte letters op transparante achtergrond — gemaakt voor een
   donkere ondergrond, dus rechtstreeks op de (altijd donkere) footer, geen wit vlak erachter */
.ibva-badge {
  display: inline-flex; align-items: center;
  margin-top: 14px;
  opacity: 0.85; transition: var(--transition);
}
.ibva-badge:hover { opacity: 1; transform: translateY(-1px); }
.ibva-badge img { height: 40px; width: auto; display: block; }
.footer-col h4 {
  color: white; font-size: var(--fs-xs);
  font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px;
  font-family: var(--font-body);
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: rgba(255,255,255,0.55); font-size: var(--fs-sm);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--primary-light); padding-left: 5px; }

.footer-contact-line {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px; color: rgba(255,255,255,0.55); font-size: var(--fs-sm);
}
.footer-contact-line span:first-child { flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p  { color: rgba(255,255,255,0.35); font-size: var(--fs-xs); max-width: none; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.35); font-size: var(--fs-xs);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--primary-light); }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--gradient-mint) 100%);
  padding: calc(var(--nav-h) + 80px) 0 100px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 64px;
  background: var(--bg-card);
  clip-path: ellipse(56% 100% at 50% 100%);
}
.page-hero .blob { opacity: 0.18; }
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.werkgebied-note {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 20px;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--primary); background: var(--primary-alpha);
  padding: 9px 18px; border-radius: var(--radius-full);
  text-decoration: none;
}
.werkgebied-note:hover { background: rgba(74,143,168,0.2); color: var(--primary-dark); }
.page-hero .section-label { display: block; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 20px; }
.page-hero p  { font-size: var(--fs-body); max-width: none; margin: 0; }

/* === OVER MIJ PAGE === */
.profile-layout { display: grid; grid-template-columns: minmax(240px, 5fr) minmax(320px, 8fr); gap: 72px; align-items: start; }
.profile-sidebar { position: sticky; top: calc(var(--nav-h) + 28px); }

.profile-card {
  background: var(--bg-card); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  border: 1px solid rgba(74,143,168,0.07);
}
.profile-photo {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--bg-alt), #C8E8DF);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.profile-photo .ph-icon  { font-size: 5rem; opacity: 0.4; }
.profile-photo .ph-label { font-size: var(--fs-xs); color: var(--text-lighter); }
.profile-photo-img { width: 100%; height: 100%; object-fit: cover; }

.profile-info { padding: 28px; }
.profile-name  { font-size: 1.5rem; margin-bottom: 4px; }
.profile-role  { font-size: var(--fs-sm); color: var(--primary); font-weight: 500; max-width: none; margin-bottom: 20px; }

.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.pstat {
  text-align: center; padding: 14px;
  background: var(--bg-alt); border-radius: var(--radius);
}
.pstat-num   { font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary); font-weight: 700; line-height: 1; display: block; }
.pstat-label { font-size: var(--fs-xs); color: var(--text-light); display: block; margin-top: 4px; }

.profile-certs { border-top: 1px solid rgba(74,143,168,0.1); padding-top: 20px; }
.cert-heading  { font-size: var(--fs-xs); font-weight: 700; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.cert-item     { display: flex; align-items: center; gap: 9px; font-size: var(--fs-sm); color: var(--text-light); margin-bottom: 8px; }
.cert-dot      { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; }

/* About main content */
.about-main > h2   { text-align: left; margin-bottom: 22px; }
.about-main > p    { max-width: none; font-size: var(--fs-body); margin-bottom: 22px; }
.about-main h3     { margin: 40px 0 14px; font-size: var(--fs-card-title); }

.info-box {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 24px 28px; border-left: 4px solid var(--primary); margin: 32px 0;
}
.info-box h4 { color: var(--primary); margin-bottom: 8px; font-size: var(--fs-h4); }
.info-box p  { max-width: none; font-size: var(--fs-body); margin: 0; }

/* === DIENSTEN PAGE === */
.dienst-checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.skill-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 24px;
  margin: 18px 0 24px;
}
.dcl-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--fs-body); color: var(--text-light);
}
.dcl-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-alpha); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; flex-shrink: 0; margin-top: 2px;
}

/* PGB info box */
.pgb-box {
  background: linear-gradient(135deg, var(--primary-alpha), var(--secondary-alpha));
  border-radius: var(--radius-lg); padding: 40px;
  border: 1px solid rgba(74,143,168,0.18);
  display: grid; grid-template-columns: auto minmax(220px, 1fr); gap: 24px; align-items: start;
  margin-top: 48px;
}
.pgb-icon { font-size: 3.5rem; }
.pgb-text h3 { font-size: var(--fs-card-title); margin-bottom: 12px; color: var(--primary-dark); }
.pgb-text p  { max-width: none; font-size: var(--fs-body); margin-bottom: 12px; }
.pgb-text p:last-child { margin-bottom: 0; }

/* === WERKWIJZE PAGE === */
.werkwijze-timeline {
  max-width: 780px; margin: 0 auto;
  position: relative;
}
.werkwijze-timeline::before {
  content: '';
  position: absolute; left: 39px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--primary-light), var(--secondary-light));
}
.wstep {
  display: flex; gap: 36px;
  margin-bottom: 44px; position: relative;
}
.wstep:last-child { margin-bottom: 0; }
.wstep-num {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-card); border: 2.5px solid var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--primary); position: relative; z-index: 1;
  box-shadow: var(--shadow-xs); transition: var(--transition-med);
}
.wstep-card {
  flex: 1; background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-card);
  border: 1px solid rgba(74,143,168,0.07); transition: var(--transition-med);
  margin-top: 8px;
}
.wstep-card-hover-placeholder {
  display: none;
}
.wstep-card h3 { font-size: var(--fs-card-title); margin-bottom: 10px; }
.wstep-card p  { max-width: none; font-size: var(--fs-body); }

/* Values section */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.value-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 36px 28px; box-shadow: var(--shadow-card);
  border: 1px solid rgba(74,143,168,0.07);
  text-align: center; transition: var(--transition-med);
}
.value-emoji { font-size: 2.75rem; margin-bottom: 18px; display: block; }
.value-card h3 { font-size: var(--fs-card-title); margin-bottom: 10px; }
.value-card p  { font-size: var(--fs-body); max-width: none; }

/* FAQ */
.faq-stack { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid rgba(74,143,168,0.1);
  overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: rgba(74,143,168,0.3); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer;
  font-weight: 600; font-size: var(--fs-body); color: var(--text);
  gap: 16px; user-select: none; transition: var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-q-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--primary);
  transition: var(--transition);
}
.faq-item.open .faq-q-icon {
  transform: rotate(45deg);
  background: var(--primary); color: white;
}
.faq-a { display: none; padding: 0 24px 22px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: var(--fs-body); max-width: none; }

/* === CONTACT PAGE === */
.contact-layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.6fr); gap: 64px; align-items: start; }
.contact-info h2 { text-align: left; margin-bottom: 18px; }
.contact-info > p { max-width: none; margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.cdetail { display: flex; align-items: flex-start; gap: 16px; }
.cdetail-icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  background: var(--primary-alpha); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.cdetail-body h4 {
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary); margin-bottom: 4px; font-family: var(--font-body);
}
.cdetail-body p { font-size: var(--fs-body); color: var(--text); max-width: none; margin: 0; }

.contact-form-card {
  background: var(--bg-card); border-radius: var(--radius-xl);
  padding: 48px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(74,143,168,0.1);
}
.contact-form-card h3 { font-size: var(--fs-card-title); margin-bottom: 32px; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 22px; }
label {
  display: block; font-size: var(--fs-sm); font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
input, select, textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(74,143,168,0.2);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: var(--fs-body); color: var(--text); background: var(--bg);
  transition: var(--transition); outline: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(74,143,168,0.1);
}
input::placeholder, textarea::placeholder { color: var(--text-lighter); }
textarea { resize: vertical; min-height: 135px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A6E7E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 42px; cursor: pointer;
}
.form-check  { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.form-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0;
  border: 1.5px solid rgba(74,143,168,0.5); border-radius: 6px;
  background: var(--bg-card); cursor: pointer; transition: var(--transition);
}
.form-check input[type="checkbox"]:hover { border-color: var(--primary); }
.form-check input[type="checkbox"]:checked {
  background-color: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.form-check input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px rgba(74,143,168,0.25); }
.form-check span { font-size: var(--fs-sm); color: var(--text-light); }
.form-check span a { color: var(--primary); }

/* Klikbare contactgegevens (mailto/tel) — erven kleur van omgeving */
.footer-contact-line a { color: inherit; text-decoration: none; transition: var(--transition); }
.footer-contact-line a:hover { color: var(--primary-light); }
.cdetail-body a { color: inherit; text-decoration: none; }
.cdetail-body a:hover { color: var(--primary); }

/* Formulier-statusmelding */
.form-status { font-size: var(--fs-sm); margin-top: 14px; text-align: center; display: none; }
.form-status.is-error   { display: block; color: var(--accent-dark); }
.form-status.is-success { display: block; color: var(--secondary-dark); }
.btn-submit { width: 100%; justify-content: center; padding: 16px; font-size: var(--fs-body); margin-top: 8px; }

/* === SCROLL REVEAL ANIMATIONS === */
.reveal       { opacity: 0; transform: translateY(30px); transition: opacity var(--reveal-dur, 0.5s) var(--ease), transform var(--reveal-dur, 0.5s) var(--ease); }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity var(--reveal-dur, 0.5s) var(--ease), transform var(--reveal-dur, 0.5s) var(--ease); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity var(--reveal-dur, 0.5s) var(--ease), transform var(--reveal-dur, 0.5s) var(--ease); }
.reveal.in-view, .reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: none; }
/* Als main.js niet laadt (netwerkfout, verkeerd pad) blijft .no-js op <html>
   staan — dan moet alle content gewoon meteen zichtbaar zijn, geen vangnet
   binnen JS kan dat geval namelijk opvangen. */
.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* === RESPONSIVE === */
/* Eigen, krappere omslagpunt voor het profiel-blok: met de minmax-vloeren
   hierboven blijft dit tot een smallere breedte nog netjes naast elkaar staan,
   i.p.v. onnodig vroeg (bij 1024px) al te stapelen. */
@media (max-width: 820px) {
  .profile-layout   { grid-template-columns: 1fr; }
  .profile-sidebar  { position: static; }
  .profile-card     { max-width: 420px; }
}

@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .hero-inner       { gap: 48px; }
  .process-row      { grid-template-columns: repeat(2,1fr); }
  .process-row::before { display: none; }
}

/* Hamburger-fallback zonder JS (zeldzaam), en absolute ondergrens voor telefoons.
   Het echte omslagpunt wordt hierboven dynamisch bepaald door main.js — die meet of
   de navbar-inhoud daadwerkelijk past, i.p.v. een geraden pixelbreedte. Zo blijft het
   kloppen op elke schermbreedte, zoomniveau en tekstlengte. */
.navbar.nav-overflow .nav-links,
.navbar.nav-overflow .nav-cta { display: none; }
.navbar.nav-overflow .hamburger { display: flex; }
.navbar.nav-overflow .hamburger span { background: var(--primary); }

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* Eigen omslagpunten voor de vloeiend-krimpende twee-koloms blokken —
   elk berekend op zijn eigen minmax-vloeren + gap + containerpadding,
   i.p.v. gedeelde blanket-breakpoints die niet bij elk blok passen. */
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .about-split    { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .pgb-box    { grid-template-columns: 1fr; gap: 16px; }
  .check-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; --nav-h: 80px; }

  .hero-text         { max-width: 100%; }
  .hero-desc         { max-width: 100%; }

  .footer-grid       { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom     { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; row-gap: 10px; }

  .contact-form-card { padding: 28px 22px; }
  .form-row          { grid-template-columns: 1fr; }

  .profile-stats     { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 560px) {
  .hero-actions      { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-btns          { flex-direction: column; align-items: stretch; }
  .cta-btns .btn     { justify-content: center; }
  .process-row       { grid-template-columns: 1fr; }
  .profile-stats     { grid-template-columns: repeat(2,1fr); }
}

/* ── Werkgebied kaart ─────────────────────────────────── */
.kaart-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  /* Lock the 760:648 aspect ratio of the SVG viewBox */
  aspect-ratio: 760 / 648;
  width: 100%;
}

.twente-kaart {
  width: 100%;
  height: 100%;
  display: block;
}

.twente-kaart .gem {
  transition: filter 0.18s ease, opacity 0.18s ease;
  cursor: default;
}

.twente-kaart .gem:hover {
  filter: brightness(1.18);
  opacity: 0.95;
}

.kaart-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  fill: #ffffff;
  pointer-events: none;
}

.kaart-label-dim {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  fill: #6a8fa0;
  pointer-events: none;
}

.kaart-legenda {
  font-family: var(--font-body);
  font-size: 10px;
  fill: #5A7A88;
  dominant-baseline: middle;
}

.gemeente-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gemeente-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
}

.gemeente-list li::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--primary);
  opacity: 0.85;
}

/* ── Doelgroep gateway cards (diensten.html + index.html) ── */
.dg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.dg-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative; overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.dg-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.dg-card:hover::before { transform: scaleX(1); }
.dg-card:hover { box-shadow: 0 8px 32px rgba(74,143,168,0.13); transform: translateY(-3px); }
.dg-card-icon { font-size: 2.8rem; line-height: 1; }
.dg-card h3 { font-size: var(--fs-card-title); margin: 0; color: var(--text); }
.dg-card p { color: var(--text-light); margin: 0; font-size: var(--fs-body); flex: 1; }
.dg-card .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 600px) { .dg-grid { grid-template-columns: 1fr; } }

/* ── Back link on sub-pages ── */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--primary); text-decoration: none; margin-bottom: 12px; }
.back-link:hover { text-decoration: underline; }

/* ── Diensten split: cards left, werkgebied right ── */
.diensten-split {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}
.diensten-split .dg-grid { margin-top: 0; grid-template-columns: 1fr; }
.werkgebied-panel { position: sticky; top: 88px; }
.gemeente-list-wrap { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.gemeente-list-wrap li { font-size: var(--fs-xs); padding: 7px 10px; }
.aac-card {
  grid-column: 1;
  background: linear-gradient(135deg, rgba(74,143,168,0.07), rgba(107,175,153,0.07));
  border: 1.5px solid rgba(74,143,168,0.18);
  border-radius: 20px;
  padding: 28px;
}
.werkgebied-ref-mobile { display: none; }

@media (max-width: 960px) {
  .diensten-split { grid-template-columns: 1fr; }
  .werkgebied-panel { position: static; }
  .werkgebied-ref-mobile {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    text-decoration: none;
  }
  .werkgebied-ref-mobile:hover { color: var(--primary); }
}

@media (max-width: 768px) {
  .gemeente-list { flex-direction: row; flex-wrap: wrap; }
  .gemeente-list li { font-size: var(--fs-xs); padding: 7px 10px; }
}

/* === JURIDISCHE / LEGAL PAGINA'S === */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 48px 0 16px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: var(--fs-card-title); margin: 28px 0 10px; }
.legal-content p { margin-bottom: 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 20px 4px; padding-left: 22px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { color: var(--text-light); font-size: var(--fs-body); margin-bottom: 8px; padding-left: 4px; }
.legal-content li::marker { color: var(--primary); }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--primary-dark); }
.legal-content strong { color: var(--text); }
.legal-updated { font-size: var(--fs-sm); color: var(--text-lighter); margin-top: 8px; }

/* Table of contents / snel naar */
.legal-toc {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 40px;
}
.legal-toc h4 { margin-bottom: 12px; font-size: var(--fs-h4); color: var(--primary); }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-toc li { margin: 0; padding: 0; }
.legal-toc a { font-size: var(--fs-sm); color: var(--text-light); text-decoration: none; }
.legal-toc a:hover { color: var(--primary); padding-left: 4px; }

/* Bedrijfsgegevens-blok */
.legal-details {
  background: var(--bg-card); border: 1.5px solid rgba(74,143,168,0.18);
  border-radius: var(--radius); padding: 24px 28px; margin: 8px 0 24px;
}
.legal-details p { margin-bottom: 6px; }
.legal-details .row { display: flex; gap: 10px; flex-wrap: wrap; }
.legal-details .row span:first-child { min-width: 150px; color: var(--text-lighter); font-size: var(--fs-sm); }
.legal-details .row span:last-child { color: var(--text); font-weight: 500; }
