/* ==========================================================================
   ADHDinkracht — Design tokens
   Concept: "van ruis naar richting" (from noise to direction) — the visual
   signature is a field of scattered points that resolve into one steady
   line, echoing the practice's core idea: ADHD niet wegpoetsen, maar de
   aandacht een vorm geven.
   ========================================================================== */

:root {
  /* Color */
  --paper: #F6F4EE;         /* warm, quiet background — paper, not clinic-white */
  --paper-alt: #ECE7DC;     /* recessed sections */
  --ink: #202B29;           /* primary text — deep pine-charcoal, not pure black */
  --ink-soft: #4B564F;      /* secondary text */
  --pine: #00255E;          /* brand navy — from the ADHDinkracht logo */
  --pine-deep: #001433;     /* headers on light, hover states */
  --ochre: #B4812F;         /* "kracht" accent — used sparingly, never as background wash */
  --ochre-soft: #E7D2AC;    /* faint accent tint */
  --line: #D8D2C2;          /* hairlines / dividers */
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --radius: 3px;
  --max-w: 1180px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--pine-deep);
}
h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); color: var(--ink-soft); max-width: 62ch; }
ul { padding-left: 1.2em; color: var(--ink-soft); }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

/* Universal icon-badge base — every icon across the site is outline-only by
   default. Later, more specific rules only adjust size, never fill/stroke,
   so icons can never silently fall back to a solid black shape again. */
.icon-badge {
  border-radius: 50%;
  background: var(--ochre-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge svg {
  fill: none;
  stroke: var(--pine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.icon-badge.on-ochre svg { stroke: var(--ochre); }
.icon-badge.outline {
  background: transparent;
  border: 1.5px solid var(--ochre);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--pine);
  color: var(--white); padding: 0.75em 1.2em; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---- Eyebrow label ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 1.4em; height: 1px; background: var(--ochre);
  display: inline-block;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-2); padding-bottom: var(--space-2);
  gap: var(--space-3);
}
.brand {
  display: flex; align-items: center; gap: 0.65em;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; color: var(--pine-deep);
  white-space: nowrap;
}
.brand-mark { width: 30px; height: auto; flex-shrink: 0; object-fit: contain; }
.brand-sub {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 400; text-transform: uppercase;
}
nav.main-nav { display: flex; }
nav.main-nav ul {
  list-style: none; display: flex; gap: var(--space-3);
  padding: 0; margin: 0; color: var(--ink);
}
nav.main-nav a {
  text-decoration: none; font-size: 0.95rem; color: var(--ink-soft);
  padding: 0.4em 0; border-bottom: 2px solid transparent; transition: border-color 0.15s, color 0.15s;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] {
  color: var(--pine-deep); border-color: var(--ochre);
}
.nav-toggle { display: none; }
.header-cta {
  background: var(--pine); color: var(--white); text-decoration: none;
  padding: 0.6em 1.2em; border-radius: var(--radius); font-size: 0.9rem;
  white-space: nowrap; transition: background 0.15s;
}
.header-cta:hover { background: var(--pine-deep); }

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed; inset: 64px 0 0 0; background: var(--paper);
    flex-direction: column; padding: var(--space-4) var(--space-3);
    transform: translateX(100%); transition: transform 0.25s ease;
  }
  nav.main-nav ul { flex-direction: column; gap: var(--space-2); font-size: 1.15rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--line); background: none;
    border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
    position: relative;
  }
  body.nav-open nav.main-nav { transform: translateX(0); }
  .header-cta { display: none; }
}

/* ==========================================================================
   Hero + signature "noise to focus" motif
   ========================================================================== */
.hero {
  padding: var(--space-5) 0 var(--space-4);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center;
}
.hero-copy p.lede { font-size: 1.15rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-size: 0.95rem;
  padding: 0.85em 1.6em; border-radius: var(--radius); transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-secondary { background: transparent; color: var(--pine-deep); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--ochre); color: var(--ochre); }

.focus-field {
  width: 100%; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto;
}
.focus-field circle.scatter { fill: var(--ink-soft); opacity: 0.35; }
.focus-field circle.anchor { fill: var(--ochre); }
.focus-field path.thread { fill: none; stroke: var(--pine); stroke-width: 1.4; stroke-dasharray: 4 6; opacity: 0.6; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .focus-field { max-width: 280px; order: -1; }
}

/* Photo hero (homepage) */
.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,10,26,0.82) 0%, rgba(0,10,26,0.55) 55%, rgba(0,10,26,0.25) 100%);
  z-index: 0;
}
.hero-photo .hero-copy {
  position: relative; z-index: 1;
  padding: var(--space-5) var(--space-4);
  max-width: 640px;
}
.hero-photo .hero-copy h1,
.hero-photo .hero-copy p.lede {
  color: #F4F1E8;
}
.hero-photo .hero-copy .eyebrow { color: var(--ochre-soft); }
.hero-photo .hero-copy .eyebrow::before { background: var(--ochre-soft); }
@media (max-width: 860px) {
  .hero-photo { min-height: 0; }
  .hero-photo .hero-copy { padding: var(--space-4) var(--space-3); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: var(--space-5) 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

hr.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* Two/three column grids */
.grid {
  display: grid; gap: var(--space-4);
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3);
}
.card h3 { margin-bottom: 0.5em; }
.card p { margin-bottom: 0; }

/* Process steps (real sequence: intake -> diagnostiek -> behandelplan -> behandeling) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; }
.process .step { position: relative; padding-top: var(--space-3); border-top: 2px solid var(--line); }
.process .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ochre);
  position: absolute; top: -0.85em; left: 0; background: var(--paper); padding-right: 0.6em;
}
section.alt .process .step::before { background: var(--paper-alt); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
}

/* Photo with caption */
figure.photo {
  margin: 0;
}
figure.photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px -18px rgba(27, 51, 47, 0.35);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
figure.photo figcaption {
  margin-top: 0.75em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Quote / pull statement */
.pull {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--pine-deep);
  border-left: 3px solid var(--ochre); padding-left: var(--space-3);
  max-width: 46ch;
}

/* Legal page body copy — readable width, but flush with the rest of the page (not centered) */
.legal-content { max-width: 76ch; }

/* Aanmeldstappen — vertical numbered steps with connecting arrows */
.aanmeld-steps { max-width: 640px; margin: 0 auto; }
.aanmeld-step { display: flex; gap: var(--space-3); align-items: flex-start; }
.aanmeld-step .icon-badge { width: 92px; height: 92px; flex-shrink: 0; margin: 0; }
.aanmeld-step .icon-badge svg { width: 42px; height: 42px; }
.aanmeld-step-content { padding-top: 0.6em; min-width: 0; flex: 1; }
.aanmeld-step-title { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.4em; flex-wrap: wrap; }
.aanmeld-step-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--ochre); color: var(--white);
  font-family: var(--font-mono); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.aanmeld-step-title h3 { margin: 0; font-size: 1.1rem; min-width: 0; }
.aanmeld-step-content p { margin: 0; }
.aanmeld-arrow {
  width: 92px; display: flex; justify-content: center;
  padding: 0.4em 0; flex-shrink: 0;
}
.aanmeld-arrow svg { width: 16px; height: 22px; stroke: var(--ochre); fill: none; stroke-width: 1.6; opacity: 0.7; }

@media (max-width: 560px) {
  .aanmeld-step { gap: var(--space-2); }
  .aanmeld-step .icon-badge { width: 60px; height: 60px; }
  .aanmeld-step .icon-badge svg { width: 28px; height: 28px; }
  .aanmeld-arrow { width: 60px; }
  .aanmeld-step-title { flex-direction: column; align-items: flex-start; gap: 0.3em; }
}

/* Mission intro block */
.mission-head { text-align: center; max-width: 700px; margin: 0 auto var(--space-4); }
.mission-head .eyebrow { justify-content: center; }
.mission-head h2 { margin-bottom: 0.15em; }
.mission-head .sub {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--ochre);
  margin: 0;
}
.mission-divider {
  display: flex; align-items: center; justify-content: center; gap: 0.8em;
  margin: var(--space-3) auto; max-width: 320px;
}
.mission-divider span { flex: 1; height: 1px; background: var(--line); }
.mission-divider svg { width: 18px; height: 18px; stroke: var(--ochre); fill: none; stroke-width: 1.6; flex-shrink: 0; }

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.insurance-callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex; gap: var(--space-3);
  align-items: flex-start;
}
.insurance-callout .icon-badge {
  background: transparent;
  border: 1.5px solid var(--ochre);
  width: 60px; height: 60px; flex-shrink: 0;
}
.insurance-callout .icon-badge svg { width: 30px; height: 30px; }
.insurance-callout > div { min-width: 0; }
.insurance-callout h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.insurance-callout p { font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* Help-topics grid */
.helps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.help-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.help-card .icon-badge {
  width: 52px; height: 52px; margin: 0 0 var(--space-2);
}
.help-card .icon-badge svg { width: 26px; height: 26px; }
.help-card h3 { font-size: 1rem; margin: 0; }
.help-card p.help-sub { font-size: 0.85rem; color: var(--ink-soft); margin: 0.3em 0 0; }
.help-callout {
  background: var(--ochre-soft);
  border: 1px solid var(--ochre);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex; flex-direction: column; justify-content: center;
}
.help-callout svg { width: 24px; height: 24px; stroke: var(--ochre); fill: none; stroke-width: 1.6; margin-bottom: var(--space-2); }
.help-callout p { font-family: var(--font-display); font-size: 1.05rem; color: var(--pine-deep); margin: 0; }
.helps-closing { text-align: center; margin-top: var(--space-4); color: var(--ink-soft); }
.helps-closing .heart { color: var(--ochre); }
@media (max-width: 860px) {
  .helps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .helps-grid { grid-template-columns: 1fr; }
}

/* Werkwijze — numbered icon list */
.werkwijze-list {
  display: grid;
  gap: var(--space-4);
}
.werkwijze-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.werkwijze-item:last-child { border-bottom: none; padding-bottom: 0; }
.werkwijze-icon { position: relative; width: 72px; height: 72px; }
.werkwijze-icon .icon-badge {
  width: 72px; height: 72px; margin: 0;
}
.werkwijze-icon .icon-badge svg { width: 34px; height: 34px; }
.werkwijze-num {
  position: absolute; bottom: -4px; right: -4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ochre); color: var(--white);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--paper);
}
section.alt .werkwijze-num { border-color: var(--paper-alt); }
.werkwijze-content h3 { margin-bottom: 0.5em; }
.werkwijze-content p { margin-bottom: 0.7em; max-width: 68ch; }
.werkwijze-content p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .werkwijze-item { grid-template-columns: 1fr; }
}

/* Treatment-forms icon grid */
.treatments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4) var(--space-3);
}
.treatment {
  text-align: center;
}
.treatment .icon-badge {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--ochre-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-2);
}
.treatment .icon-badge svg {
  width: 32px; height: 32px;
  stroke: var(--pine);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.treatment h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.treatment p { font-size: 0.92rem; margin: 0 auto; max-width: 26ch; }
.treatments-closing {
  text-align: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--pine-deep);
}
@media (max-width: 860px) {
  .treatments { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .treatments { grid-template-columns: 1fr; }
}

/* Contact block */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); width: 9em; flex-shrink: 0; }
.detail-list dd { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Referrer info form-like table */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 0.75em 0.5em; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); width: 12em; }

/* Legal-notice box used on legal pages */
.notice {
  background: var(--ochre-soft); border: 1px solid var(--ochre);
  border-radius: var(--radius); padding: var(--space-3); color: var(--pine-deep);
}
.notice p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--pine-deep); color: #E7E3D6; padding: var(--space-5) 0 var(--space-3);
}
.site-footer a { color: #E7E3D6; text-decoration: none; }
.site-footer a:hover { color: var(--ochre-soft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-4); }
.footer-grid h4 { color: #F2EFE6; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5em; }
.footer-brand p { color: #B9C4BE; max-width: 32ch; }
.footer-bottom {
  margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
  font-size: 0.82rem; color: #97A39C;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
