/* ============================================================
   Chiropro: main stylesheet (front end + editor iframe)

   Ported from the original css/style.css. Rules are kept verbatim wherever
   possible so the two can be diffed. Differences are marked "WP:".

   Design tokens are NOT defined here: theme.json is the single source of
   truth (editors see the same palette/sizes in the block editor). The :root
   block below only aliases them to the original variable names.
   ============================================================ */
:root {
  /* Color */
  --color-primary: var(--wp--preset--color--primary);
  --color-primary-dark: var(--wp--preset--color--primary-dark);
  --color-primary-darker: var(--wp--preset--color--primary-darker);
  --color-primary-tint: var(--wp--preset--color--primary-tint);
  --color-primary-tint-2: var(--wp--preset--color--primary-tint-2);

  --color-ink: var(--wp--preset--color--ink);
  --color-ink-soft: var(--wp--preset--color--ink-soft);
  --color-muted: var(--wp--preset--color--muted);
  --color-border: var(--wp--preset--color--border);
  --color-border-strong: var(--wp--preset--color--border-strong);

  --color-bg: var(--wp--preset--color--bg);
  --color-surface: var(--wp--preset--color--surface);
  --color-surface-alt: var(--wp--preset--color--surface-alt);

  --color-dark-bg: var(--wp--preset--color--dark-bg);
  --color-dark-bg-2: var(--wp--preset--color--dark-bg-2);
  --color-dark-text: var(--wp--preset--color--dark-text);
  --color-dark-muted: var(--wp--preset--color--dark-muted);

  --color-danger: var(--wp--preset--color--danger);
  --color-star: var(--wp--preset--color--star);

  /* Typography */
  --font-display: var(--wp--preset--font-family--display);
  --font-body: var(--wp--preset--font-family--body);

  --fs-sm: var(--wp--preset--font-size--sm);
  --fs-base: var(--wp--preset--font-size--base);
  --fs-md: var(--wp--preset--font-size--md);
  --fs-lg: var(--wp--preset--font-size--lg);
  --fs-xl: var(--wp--preset--font-size--xl);
  --fs-2xl: var(--wp--preset--font-size--2-xl);
  --fs-3xl: var(--wp--preset--font-size--3-xl);
  --fs-4xl: var(--wp--preset--font-size--4-xl);

  /* Spacing (8pt rhythm) */
  --space-1: var(--wp--preset--spacing--1);
  --space-2: var(--wp--preset--spacing--2);
  --space-3: var(--wp--preset--spacing--3);
  --space-4: var(--wp--preset--spacing--4);
  --space-5: var(--wp--preset--spacing--5);
  --space-6: var(--wp--preset--spacing--6);
  --space-7: var(--wp--preset--spacing--7);
  --space-8: var(--wp--preset--spacing--8);

  --radius-sm: var(--wp--custom--radius--sm);
  --radius-md: var(--wp--custom--radius--md);
  --radius-lg: var(--wp--custom--radius--lg);
  --radius-pill: var(--wp--custom--radius--pill);

  --shadow-sm: var(--wp--preset--shadow--sm);
  --shadow-md: var(--wp--preset--shadow--md);
  --shadow-lg: var(--wp--preset--shadow--lg);

  --container: var(--wp--custom--container);

  /* Motion: not editor-facing, so these stay plain CSS */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 320ms;
}

/* ============================================================
   Reset & base
   (body font, size, colour and background come from theme.json)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: 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(--color-ink);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h2.heading-lg { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--space-2); color: var(--color-ink-soft); }

.italic { font-style: italic; color: var(--color-primary-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

section { padding-block: 3rem 7rem; }
@media (max-width: 700px) {
  section { padding-block: 1rem 5rem; }
}
/* Every section that's a nav/menu anchor target gets breathing room above
   it, so the sticky header doesn't cover its heading when jumped to. */
section[id] { scroll-margin-top: 160px; }
@media (max-width: 700px) {
  section[id] { scroll-margin-top: 90px; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}
/* "Onze aanpak" stands alone as a section title, so it reuses the eyebrow's
   font/color treatment but a good deal larger. */
h2.eyebrow-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-3);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-md); }

:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
}

/* ============================================================
   Kernwaarden (value strip): blocks chiropro/values + chiropro/value-card
   ============================================================ */
.values { padding-block: var(--space-6); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}
.value-card .icon, .technique-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary-darker);
}
.value-card h3 { margin-bottom: 0.4rem; }
.value-card p { margin: 0; font-size: var(--fs-sm); }

@media (max-width: 760px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTIONS ported from the original css/style.css (verbatim unless
   marked "WP:"). Order follows the page.
   ============================================================ */
/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-base);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--color-primary-darker);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: #fff; }
.btn-outline.on-dark {
  border-color: rgba(244,241,232,0.55);
  color: var(--color-dark-text);
}
.btn-outline.on-dark:hover { background: var(--color-dark-text); color: var(--color-dark-bg); }
.btn-light {
  background: var(--color-dark-text);
  color: var(--color-dark-bg);
}
.btn-light:hover { background: #fff; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: var(--fs-sm); min-height: 40px; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-8) var(--space-7);
  min-height: 640px;
  display: flex;
  align-items: center;
}
/* Full-bleed photo behind the copy: opaque (hidden behind the page
   background color) where the text sits, fading in to fully visible
   toward the right edge. */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block;
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--color-bg) 0%,
    var(--color-bg) 38%,
    rgba(250, 247, 241, 0.55) 55%,
    transparent 78%);
}
/* Light top scrim behind the floating (transparent) header: the teal logo and the dark
   menu text sit on a soft cream wash instead of on grey photo, matching the solid
   header that appears after scrolling. (The hamburger no longer floats over the
   photo: below 1250px the header is always solid.) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(250, 247, 241, 0.92) 0, rgba(250, 247, 241, 0.75) 90px, rgba(250, 247, 241, 0) 230px);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
/* Since the eyebrow above the H1 was removed, push the copy block down a
   bit so it doesn't sit right under the (now transparent, logo-height)
   header. */
.hero-copy { max-width: 560px; margin-top: var(--space-6); }
/* Smaller than the sitewide .eyebrow: at 36px it competed with the H1 right
   below it, especially now that the hero sits directly under the floating
   header instead of a fixed solid bar. */
.hero-copy .eyebrow { font-size: var(--fs-sm); letter-spacing: 0.14em; margin-bottom: var(--space-3); }
.hero-copy h1 { margin-bottom: var(--space-3); }
.hero-copy p.lead { font-size: var(--fs-md); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: var(--space-5);
  padding: 0.9rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-primary-tint-2);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.hero-trust:hover, .hero-trust:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-primary);
}
.hero-trust-google { display: inline-flex; flex-shrink: 0; }
.hero-trust .stars { color: var(--color-star); font-size: var(--fs-xl); letter-spacing: 2px; line-height: 1; }
.hero-trust strong { color: var(--color-ink); font-weight: 700; font-size: var(--fs-lg); }
@media (max-width: 480px) {
  .hero-trust { flex-wrap: wrap; padding: 0.8rem 1.1rem; gap: 0.5rem; }
}

@media (max-width: 900px) {
  /* The left-to-right fade only works with real horizontal room, so on
     narrow screens the photo goes back to a normal stacked card instead. */
  .hero { position: static; overflow: visible; display: block; min-height: 0; padding-block: var(--space-6); }
  .hero-bg { position: relative; inset: auto; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: var(--space-5); }
  /* At this portrait ratio the full photo height already fits, so cover
     only crops horizontally — shift hard right to frame the spine model
     the chiropractor is holding, instead of the centered patient's face. */
  .hero-bg img { object-position: 100% center; }
  .hero-bg-fade { display: none; }
  .hero .container { position: static; z-index: auto; }
  .hero-copy { max-width: none; margin-top: 0; }
  h1 { font-size: var(--fs-3xl); }
}

/* ============================================================
   Stats bar (used twice: below the hero, and again before the CTA banner)
   ============================================================ */
.stats-bar { padding-block: var(--space-5); }
.stats-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-3);
  display: grid;
  grid-template-columns: repeat(var(--stat-count, 5), 1fr);
  gap: var(--space-3);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1;
  color: var(--color-primary-darker);
  margin-bottom: 0.35rem;
}
.stat-label { font-size: var(--fs-sm); color: var(--color-muted); }

@media (max-width: 760px) {
  .stats-card { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-4); }
}
@media (max-width: 460px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Steps (3 stappen naar herstel)
   ============================================================ */
.steps-grid { --grid-gap: var(--space-4); }
.step-card {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
}
.step-card .step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary-darker);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  margin-bottom: var(--space-3);
}
.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { font-size: var(--fs-sm); margin-bottom: 0; }



.recovery-diagram {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: var(--space-6) auto 0;
}

/* ============================================================
   Number of columns (Kaartenraster: Stappen, Specialisaties, Team).
   The block sets grid-cols-N (chosen in the sidebar, or automatic).
   Flex-wrap instead of grid, so an incomplete last row is centred
   (5 cards in 3 columns: 3 + 2, with the 2 in the middle).
   ============================================================ */
.steps-grid, .team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--grid-gap);
}
.steps-grid > *, .team-grid > * {
  flex: 0 1 calc((100% - (var(--cols, 3) - 1) * var(--grid-gap)) / var(--cols, 3));
  min-width: 0;
}
.grid-cols-1 { --cols: 1; }
.grid-cols-2 { --cols: 2; }
.grid-cols-3 { --cols: 3; }
.grid-cols-4 { --cols: 4; }
.grid-cols-5 { --cols: 5; }
.grid-cols-6 { --cols: 6; }
@media (max-width: 1100px) {
  .grid-cols-4 { --cols: 2; }
  .grid-cols-5, .grid-cols-6 { --cols: 3; }
}
/* Tablets and phones (same as before): steps one under the other, team two side by side. */
@media (max-width: 1000px) {
  .team-grid[class*="grid-cols-"] { --cols: 2; }
}
@media (max-width: 900px) {
  .steps-grid[class*="grid-cols-"] { --cols: 1; }
}
@media (max-width: 480px) {
  .team-grid[class*="grid-cols-"] { --grid-gap: var(--space-3); }
}

/* ============================================================
   Specializations
   ============================================================ */
/* Flexbox instead of grid: with an odd card count (5), a grid leaves an
   empty cell dangling in the last row. Flex-wrap + justify-content:center
   lets an incomplete last row center itself instead. */
.specialisaties-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.spec-card {
  flex: 0 1 calc((100% - (var(--cols, 3) - 1) * var(--space-3)) / var(--cols, 3));
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) var(--ease);
}
.spec-card:hover, .spec-card:focus-within { box-shadow: var(--shadow-md); }
.spec-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-med) var(--ease);
}
.spec-card:hover img { transform: scale(1.05); }
.spec-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,48,43,0) 35%, rgba(22,48,43,0.88) 100%);
}
.spec-card .content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-3);
  color: var(--color-dark-text);
}
.spec-card h3 {
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.spec-card h3 .go-arrow {
  display: inline-block;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease);
}
.spec-card:hover h3 .go-arrow, .spec-card:focus-visible h3 .go-arrow {
  transform: translateX(0);
  opacity: 1;
}
.spec-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.spec-card .tags .tag-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-dark-text);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.spec-card:hover .tag-chip, .spec-card:focus-visible .tag-chip {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark-bg);
}
.spec-card a.stretch::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 1000px) {
  .spec-card { flex-basis: calc((100% - var(--space-3)) / 2); }
}
@media (max-width: 560px) {
  .spec-card { flex-basis: 100%; aspect-ratio: 4/3; }
}

/* Compacte behandeltechnieken (labels) */
.technique-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; max-width: 860px; margin: var(--space-4) auto 0; }
.technique-chips li { list-style: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.technique-chips li:hover { border-color: var(--color-primary); background: var(--color-primary-tint); }
.technique-chips .chip-link { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.25rem; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--fs-base); color: var(--color-primary-darker); }
.technique-chips svg { flex-shrink: 0; color: var(--color-primary); }

/* ============================================================
   Team
   ============================================================ */
.team-grid { --grid-gap: var(--space-4); }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-2);
  background: var(--color-surface-alt);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: var(--fs-base); margin-bottom: 0.15rem; }
.team-role { color: var(--color-primary-dark); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.4rem; }
.team-focus { font-size: 0.85rem; color: var(--color-muted); margin: 0; }



/* ============================================================
   FAQ
   ============================================================ */

.faq-item[hidden] { display: none; }
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-3) 0.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-ink);
  min-height: 44px;
}
.faq-question .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--color-primary-darker); color: var(--color-primary-darker); display: flex; align-items: center; justify-content: center; transition: transform var(--dur-med) var(--ease); }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.js .faq-answer { overflow: hidden; max-height: 0; transition: max-height var(--dur-med) var(--ease); }
.faq-answer-inner { padding: 0 0.25rem var(--space-3); }
.faq-answer-inner p { font-size: var(--fs-base); margin: 0; }
.faq-answer-inner a, .technique-card p a { color: var(--color-primary-darker); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.faq-answer-inner a:hover, .technique-card p a:hover { color: var(--color-primary-dark); }

/* ============================================================
   Reveal-on-scroll (respects reduced motion via base rule)
   WP: scoped to .js (set by functions.php), so content is never hidden
   when JavaScript is off. Replaces the original <noscript> override.
   The class is only added by the blocks' render.php, never in the editor.
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   WP: section wrapper, modifiers and block-specific additions
   ============================================================ */
.section-alt { background: var(--color-surface-alt); }
.section-compact { padding-block: var(--space-6); }
.section-head a.eyebrow:hover { color: var(--color-primary-darker); }
/* Original had per-section CTA rules (only #technieken was centred); one rule for all. */
.section-cta { text-align: center; margin-top: var(--space-4); }
.section-cta .btn { display: inline-flex; }

/* Hero: the title's italic part is an <em> in the editor (original: span.italic) */
.hero-copy h1 em { font-style: italic; color: var(--color-primary-dark); }

/* Stats: number is server-rendered at its final value; JS counts up */
.stat-num { font-variant-numeric: tabular-nums; }

/* Steps: numbers come from a CSS counter, so editors never type "01" */
.steps-grid { counter-reset: step; }
.step-card .step-num::before { counter-increment: step; content: counter(step, decimal-leading-zero); }

/* Icons uploaded from the media library instead of picked from the registry */
.icon-img { width: 26px; height: 26px; object-fit: contain; }
.technique-chips .icon-img { width: 20px; height: 20px; }

/* Behandeltechnieken chips: <li> is a block wrapper in the editor too */
.technique-chips > li { list-style: none; }

/* Prijzen: <dl> instead of <table>, same look (see original .price-table) */
.price-table { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); margin: 0; }
.price-table-head { padding: 1.1rem 1.25rem; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.price-table > .price-row:last-child { border-bottom: none; }
.price-row dt { margin: 0; }
.price-row dt strong { display: block; font-family: var(--font-display); font-size: var(--fs-md); color: var(--color-ink); }
.price-row .duration { font-size: 0.8rem; color: var(--color-muted); }
.price-row dd { margin: 0; font-weight: 700; font-size: var(--fs-md); color: var(--color-primary-darker); white-space: nowrap; }
.kosten-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .kosten-wrap { grid-template-columns: 1fr; } }

/* FAQ question as a block: same look as button.faq-question */
.faq-item h3 { margin: 0; font-size: inherit; }

/* Split layout (Eerste bezoek): image left, copy right */
.split-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: center; }
.split-grid .wp-block-image { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-grid .wp-block-image img { width: 100%; height: auto; }
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; } }

/* Embed frame (360° tour etc.) */
.embed-frame { max-width: 900px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--color-surface-alt); }
.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   WP: styles for CORE blocks (registered in inc/block-styles.php)
   ============================================================ */
/* Paragraph "Eyebrow" */
p.is-style-eyebrow { display: inline-block; font-family: var(--font-body); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary-dark); margin-bottom: var(--space-2); }

/* List "Genummerd (cirkels)": the first bold line is the item title */
ol.is-style-steps-circles { list-style: none; counter-reset: circle; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
ol.is-style-steps-circles > li { counter-increment: circle; position: relative; padding-left: calc(36px + var(--space-2)); min-height: 36px; font-size: var(--fs-sm); color: var(--color-ink-soft); }
ol.is-style-steps-circles > li::before { content: counter(circle); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--color-primary-darker); color: var(--color-primary-darker); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm); }
ol.is-style-steps-circles > li strong { display: block; font-family: var(--font-display); font-size: var(--fs-base); font-weight: 600; line-height: 1.15; color: var(--color-ink); margin-bottom: 0.25rem; }

/* List "Vinkjes" */
ul.is-style-checks { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
ul.is-style-checks > li { position: relative; padding-left: 1.7rem; font-size: var(--fs-sm); }
ul.is-style-checks > li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: var(--color-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Group "Donkere kaart" (original .kosten-info) */
.wp-block-group.is-style-info-box { background: var(--color-dark-bg); color: var(--color-dark-text); border-radius: var(--radius-md); padding: var(--space-4); }
.is-style-info-box h2, .is-style-info-box h3 { color: #fff; }
.is-style-info-box li, .is-style-info-box p { color: var(--color-dark-muted); }
.is-style-info-box .wp-block-buttons { margin-top: var(--space-4); }

/* Buttons: core fill = .btn-primary, outline = .btn-outline, plus two extra styles.
   !important only where core's own :not() selectors would otherwise win. */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.6rem; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--fs-base); line-height: 1.6; border: 1.5px solid transparent; min-height: 48px; background: var(--color-primary-darker); color: #fff; text-decoration: none; box-shadow: none; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.wp-block-button .wp-block-button__link:hover { background: var(--color-primary-dark); color: #fff; }
.wp-block-button .wp-block-button__link:active { transform: scale(0.97); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent !important; border: 1.5px solid var(--color-ink) !important; color: var(--color-ink) !important; padding: 0.9rem 1.6rem !important; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--color-ink) !important; color: #fff !important; }
.wp-block-button.is-style-light > .wp-block-button__link { background: var(--color-dark-text); color: var(--color-dark-bg); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: #fff; color: var(--color-dark-bg); }
.wp-block-button.is-style-outline-dark > .wp-block-button__link { background: transparent; border-color: rgba(244, 241, 232, 0.55); color: var(--color-dark-text); }
.wp-block-button.is-style-outline-dark > .wp-block-button__link:hover { background: var(--color-dark-text); color: var(--color-dark-bg); }
.wp-block-buttons { gap: var(--space-2); }

/* Cover "Banner" (original .cta-banner): image + dark gradient, rounded, centred */
.wp-block-cover.is-style-banner { position: relative; min-height: 0; border-radius: var(--radius-lg); overflow: hidden; margin: var(--space-7) var(--space-3); padding: var(--space-7) var(--space-4); text-align: center; color: var(--color-dark-text); }
.wp-block-cover.is-style-banner > .wp-block-cover__background { background: linear-gradient(180deg, rgba(22, 48, 43, 0.75), rgba(22, 48, 43, 0.92)) !important; opacity: 1 !important; }
.wp-block-cover.is-style-banner .wp-block-cover__inner-container { max-width: 640px; margin-inline: auto; }
.wp-block-cover.is-style-banner h2 { color: #fff; }
.wp-block-cover.is-style-banner p { color: var(--color-dark-muted); }
.wp-block-cover.is-style-banner .wp-block-buttons { justify-content: center; margin-top: var(--space-3); }


/* ============================================================
   HEADER (template part "header", wrapper element has class .site-header)
   Adapted from the original: same values, selectors rewritten for the
   core Navigation / Buttons / Image blocks. Sticky on every page; pages
   with a Hero block (body.has-hero) get the floating transparent variant.
   ============================================================ */
.is-small .wp-block-button__link, .wp-block-button.is-small .wp-block-button__link { padding: 0.6rem 1.1rem; font-size: var(--fs-sm); min-height: 40px; }
.wp-block-button.is-style-outline.is-small > .wp-block-button__link { padding: 0.6rem 1.1rem !important; }

.site-header { position: sticky; top: 0; z-index: 500; border-bottom: 1px solid var(--color-border); isolation: isolate; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
/* Blur on a pseudo-element: backdrop-filter on the header itself would break
   position:fixed descendants (see original comment). */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(250, 247, 241, 0.92); backdrop-filter: blur(10px); }

/* Hero pages: transparent over the photo, solid after scrolling (.is-scrolled via components.js) */
.has-hero .site-header { position: fixed; left: 0; right: 0; border-bottom-color: transparent; transition: border-color var(--dur-med) var(--ease); }
.has-hero .site-header::before { opacity: 0; transition: opacity var(--dur-med) var(--ease); }
.has-hero .site-header.is-scrolled { border-bottom-color: var(--color-border); }
.has-hero .site-header.is-scrolled::before { opacity: 1; }
html:not(.js) .has-hero .site-header::before { opacity: 1; }
.admin-bar.has-hero .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
/* Whenever the hamburger replaces the quick menu, the header is always solid */
@media (max-width: 1250px) {
  .has-hero .site-header { border-bottom-color: var(--color-border); }
  .has-hero .site-header::before { opacity: 1; }
}
@media (max-width: 900px) {
  .has-hero .site-header { position: sticky; border-bottom-color: var(--color-border); }
  .has-hero .site-header::before { opacity: 1; }
}

.header-top { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-left: 0; padding-right: var(--space-3); padding-block: 0.4rem; gap: var(--space-3); }
.header-top > * { margin: 0; }
.site-header .brand img { height: clamp(88px, 8.5vw, 145px); width: auto; aspect-ratio: 591 / 177; }
.site-header .brand { display: flex; align-items: center; flex-shrink: 0; margin: 0; }
.header-cta { flex-shrink: 0; white-space: nowrap; }
.site-header .wp-block-buttons { margin: 0; }
@media (max-width: 480px) { .header-cta .wp-block-button__link { padding-inline: 0.85rem; font-size: 0.85rem; } }
/* Phones: the logo scales with the screen so logo + button + hamburger always fit */
@media (max-width: 700px) { .site-header .brand img { height: clamp(36px, 11vw, 64px); } }

/* Quick menu (wide screens only) */
.site-header .quick-nav { display: flex; flex: 1; justify-content: center; align-items: center; }
.site-header .quick-nav .wp-block-navigation__container { flex-wrap: nowrap; justify-content: center; gap: var(--space-4); }
.site-header .quick-nav .wp-block-navigation-item__content { padding: 0; font-weight: 500; font-size: var(--fs-base); color: var(--color-ink-soft); white-space: nowrap; transition: color var(--dur-fast) var(--ease); }
.site-header .quick-nav .wp-block-navigation-item__content:hover { color: var(--color-primary-darker); }
@media (max-width: 1400px) { .site-header .quick-nav .wp-block-navigation__container { gap: 1.25rem; } }
@media (max-width: 1250px) { .site-header .quick-nav { display: none; } }

/* Hamburger */
.nav-toggle { display: inline-flex; background: none; border: none; padding: 0.5rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Dropdown: collapsed by default, opened by the hamburger (components.js) */
.site-header .main-nav { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease); }
.site-header .main-nav.is-open { max-height: 90vh; overflow-y: auto; }
.main-nav-inner { display: flex; flex-direction: column; align-items: stretch; padding-block: 0 var(--space-4); }
.main-nav-inner .wp-block-navigation { display: block; width: 100%; }
.main-nav-inner .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; }
.main-nav-inner .wp-block-navigation-item { display: block; width: 100%; }
.main-nav-inner .wp-block-navigation-item__content { display: block; padding: 1rem 0; font-size: var(--fs-md); font-weight: 500; color: var(--color-ink-soft); border-bottom: 1px solid var(--color-border); transition: color var(--dur-fast) var(--ease); }
.main-nav-inner .wp-block-navigation-item__content:hover { color: var(--color-primary-darker); }
.header-ctas { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); margin-top: var(--space-3); }
.header-ctas .wp-block-button, .header-ctas .wp-block-button__link { width: 100%; justify-content: center; }
/* From this width the full menu sits in the bar: no hamburger */
@media (min-width: 1251px) { .nav-toggle, .site-header .main-nav { display: none; } }

/* ============================================================
   FOOTER (template part "footer", wrapper element has class .site-footer)
   ============================================================ */
.site-footer { background: var(--color-dark-bg); color: var(--color-dark-muted); }
/* Three equal columns (core Columns block), same width and padding as .container */
.site-footer > .wp-block-columns { max-width: var(--container, 1200px); margin-inline: auto; padding: var(--space-6) var(--space-3); gap: var(--space-5); flex-wrap: wrap; }
.site-footer > .wp-block-columns > .wp-block-column { flex: 1 1 0; min-width: 0; margin: 0; }
.site-footer .footer-brand > *, .site-footer .footer-col > * { margin-block-start: 0; }
.site-footer .footer-brand p.brand-word { margin-block-end: var(--space-1); line-height: 1.2; }
.site-footer .footer-brand .footer-logos { margin-block-start: var(--space-3); }
.footer-brand p.brand-word { font-family: var(--font-display); font-size: var(--fs-xl); color: #fff; letter-spacing: 0.02em; max-width: none; margin-bottom: var(--space-2); }
.footer-brand p { color: var(--color-dark-muted); font-size: var(--fs-sm); max-width: 32ch; }
.footer-logos { display: flex; gap: var(--space-2); margin-top: var(--space-3); align-items: center; }
.footer-logos .wp-block-image { margin: 0; }
.footer-logos .wp-block-image a { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius-md); padding: 0.6rem 0.9rem; height: 60px; box-shadow: var(--shadow-sm); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.footer-logos .wp-block-image a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.footer-logos .wp-block-image img { height: 100%; width: auto; display: block; }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-2); }
.footer-col ul, .footer-col .wp-block-navigation__container { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.footer-col li, .footer-col a, .footer-col .wp-block-navigation-item__content { font-size: var(--fs-sm); color: var(--color-dark-muted); padding: 0; }
.footer-col code { font: inherit; color: inherit; background: none; padding: 0; }
.footer-col a:hover, .footer-col .wp-block-navigation-item__content:hover { color: #fff; }
/* Same three-column grid (width, side padding, gap) as the footer columns above,
   so the bottom items line up under them. */
.footer-bottom { border-top: 1px solid rgba(244, 241, 232, 0.12); padding-block: var(--space-3); padding-inline: var(--space-3); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-5); row-gap: var(--space-1); align-items: start; font-size: 0.8rem; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--color-dark-muted); }
.footer-bottom a { color: var(--color-dark-muted); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 781px) {
  .site-footer > .wp-block-columns { gap: var(--space-4); }
  .site-footer > .wp-block-columns > .wp-block-column { flex: 1 1 100%; }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   WhatsApp floating button (block chiropro/whatsapp)
   ============================================================ */
.whatsapp-float { position: fixed; right: var(--space-3); bottom: var(--space-3); z-index: 400; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform var(--dur-fast) var(--ease); }
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: scale(1.08); }
.whatsapp-float.is-left { right: auto; left: var(--space-3); }
@media (max-width: 700px) {
  .whatsapp-float { width: 52px; height: 52px; right: var(--space-2); bottom: var(--space-2); }
  .whatsapp-float.is-left { right: auto; left: var(--space-2); }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.contact-row { display: flex; gap: var(--space-2); padding-block: var(--space-2); border-bottom: 1px solid var(--color-border); }
.contact-row:last-child { border-bottom: none; }
.contact-row svg { flex: none; width: 22px; height: 22px; color: var(--color-primary-darker); margin-top: 2px; }
.contact-row h3 { font-size: var(--fs-base); margin-bottom: 0.2rem; }
.contact-row p { margin: 0; font-size: var(--fs-sm); }
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours-table td { padding: 0.3rem 0; }
.hours-table td:last-child { text-align: right; color: var(--color-ink-soft); }

.map-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: var(--space-3); aspect-ratio: 16/11; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }


@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

/* Contact: WordPress additions */
.contact-wrap > * { min-width: 0; }
.contact-col > * + * { margin-top: 0; }
.contact-col .embed-frame { max-width: none; margin: var(--space-3) 0 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.contact-info-card .contact-row > div { min-width: 0; }
.contact-row .icon-img { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.contact-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Contact: columns may shrink below their content's intrinsic width (no horizontal scroll). */
.contact-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Content pages (from the original stylesheet)
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--color-dark-muted);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: var(--color-dark-muted); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: var(--color-dark-text); }

.content-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-block: var(--space-7) var(--space-5);
}
.content-hero-bg { position: absolute; inset: 0; z-index: 0; }
.content-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Even dark layer (strength from the block's slider) + gradient that starts higher up */
.content-hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(32, 47, 51, var(--hero-dim, 0.1));
}
.content-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(32,47,51,0) 0%, rgba(32,47,51,0.5) 50%, rgba(32,47,51,0.92) 100%);
}
.content-hero .container { position: relative; z-index: 1; }
.content-hero .eyebrow { color: var(--color-dark-text); }
.content-hero h1 { color: #fff; margin-bottom: var(--space-2); }
.content-hero .lead { color: var(--color-dark-muted); max-width: 62ch; font-size: var(--fs-md); margin-bottom: var(--space-3); }
.content-hero .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.content-hero .tags .tag-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-dark-text);
}

.content-article {
  max-width: 980px;
  margin-inline: auto;
  padding-block: var(--space-6);
}
.content-article h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.content-article h2:first-child { margin-top: 0; }
.content-article h3 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary-darker);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}
.content-article p { line-height: 1.75; margin-bottom: var(--space-3); }
.content-article p a { color: var(--color-primary-darker); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.content-article p a:hover { color: var(--color-primary-dark); }
.content-article ul { list-style: disc; margin: 0 0 var(--space-3) 1.2rem; }
.content-article li { line-height: 1.7; margin-bottom: 0.4rem; }
.content-article .article-intro { font-size: var(--fs-md); color: var(--color-ink-soft); max-width: 65ch; }

/* Image + short text blocks — used instead of long-form paragraphs so a
   page reads as mostly visual, with detail tucked behind "Lees meer". */
.pain-block, .article-note {
  scroll-margin-top: 160px;
}
.pain-block {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.pain-block-reverse { flex-direction: row-reverse; }
.pain-block-media { position: relative; flex: 0 0 38%; }
.pain-block-accent {
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--color-primary-tint-2);
  border-radius: var(--radius-md);
  z-index: 0;
}
.pain-block-reverse .pain-block-accent { inset: 20px 20px -20px -20px; }
.pain-block-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.pain-block-text { flex: 1; min-width: 0; }
.pain-block-text h2 { margin-top: 0; margin-bottom: var(--space-2); }
.pain-block-text > p { max-width: 52ch; }
.read-more-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-primary-darker);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.read-more-toggle:hover { color: var(--color-primary-dark); }
.js .read-more-panel { overflow: hidden; max-height: 0; transition: max-height var(--dur-med) var(--ease); }
html:not(.js) .read-more-toggle { display: none; }
.read-more-panel .read-more-inner { padding-top: var(--space-3); max-width: 60ch; }
.read-more-panel .read-more-inner p:last-of-type { margin-bottom: var(--space-2); }
.read-more-panel .read-more-inner h4 { font-size: var(--fs-base); color: var(--color-primary-darker); margin-top: var(--space-3); }
.read-more-panel .read-more-inner h4:first-child { margin-top: 0; }
.read-more-panel .read-more-inner ul { list-style: disc; margin: 0 0 var(--space-3) 1.2rem; }
.read-more-panel .read-more-inner li { line-height: 1.7; margin-bottom: 0.4rem; color: var(--color-ink-soft); }

@media (max-width: 800px) {
  .pain-block, .pain-block-reverse { flex-direction: column; align-items: stretch; }
  .pain-block-media { flex-basis: auto; max-width: 360px; margin-inline: auto; width: 100%; }
  .pain-block-text > p, .read-more-panel .read-more-inner { max-width: none; }
}

@media (max-width: 700px) {
  .content-hero { min-height: 320px; padding-block: var(--space-6) var(--space-4); }
  .pain-block, .article-note { scroll-margin-top: 90px; }
}

/* Content pages: WordPress additions */
.content-article > * { margin-block-start: 0; }
.content-article .is-style-article-intro { font-size: var(--fs-md); color: var(--color-ink-soft); max-width: 65ch; }
.pain-block-text > * { margin-block-start: 0; }
.pain-block-text .read-more { margin-top: var(--space-1); }
.read-more-inner > * { margin-block-start: 0; }
.pain-block-media img { height: auto; }

/* Content-hero: brighter text so it reads on any photo */
.content-hero .breadcrumb, .content-hero .breadcrumb a, .content-hero .lead { color: var(--color-dark-text); }
.content-hero .breadcrumb a:hover { color: #fff; }
.content-hero .breadcrumb, .content-hero .eyebrow, .content-hero h1, .content-hero .lead { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.2); }
.content-hero .tags .tag-chip { background: rgba(20, 32, 35, 0.5); border-color: rgba(255, 255, 255, 0.4); text-shadow: none; }

/* ============================================================
   Overflow protection (no horizontal scrollbar on narrow screens)
   ============================================================ */
/* Uppercase, letter-spaced titles such as "BEHANDELTECHNIEKEN" were wider than a phone
   screen at a fixed 2.25rem. The size now shrinks with the viewport on small screens. */
.eyebrow, p.is-style-eyebrow, h2.eyebrow-title { font-size: clamp(1.25rem, 6.2vw, var(--fs-2xl)); }
/* Words are never split, except a single word that is wider than the whole line:
   that one wraps instead of widening the page. */
h1, h2, h3, h4, p, li, blockquote, .eyebrow { overflow-wrap: break-word; hyphens: manual; }
/* Safety net: even if something else is too wide, the page itself never scrolls sideways.
   `clip` (not `hidden`) keeps the sticky header working. */
html, body { overflow-x: clip; }

/* Buttons may wrap on narrow screens instead of running off the edge
   (the header button keeps one line; its logo and padding shrink instead). */
@media (max-width: 600px) {
  .btn, .wp-block-button:not(.header-cta) .wp-block-button__link { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
  .section-cta .btn { padding-inline: 1.25rem; }
}
.section-cta, .wp-block-buttons { max-width: 100%; }
@media (max-width: 340px) {
  .header-top { gap: 0.25rem; padding-right: 0.25rem; }
  .site-header .brand img { height: 32px; }
  .nav-toggle { min-width: 36px; padding-inline: 0.25rem; }
}

/* ============================================================
   Mobile header (portrait): one row, logo | "Maak een afspraak" | hamburger.
   The logo takes all the width the button and hamburger leave over.
   ============================================================ */
@media (max-width: 600px) {
  .header-top { display: flex; align-items: center; gap: var(--space-1); padding-block: 0.35rem; padding-right: var(--space-2); }
  .header-top .brand { flex: 1 1 0; min-width: 0; }
  .header-top .brand a { display: block; }
  .site-header .brand img { width: 100%; height: auto; max-width: 260px; max-height: 76px; object-fit: contain; object-position: left center; }
  .header-top > .wp-block-buttons { flex: none; }
  .site-header .wp-block-button.header-cta .wp-block-button__link { padding: 0.45rem 0.8rem; font-size: 0.8rem; min-height: 36px; } /* beats .is-small */
  .header-top .nav-toggle { flex: none; min-width: 40px; min-height: 40px; padding-inline: 0.3rem; }
}
@media (max-width: 380px) {
  .site-header .wp-block-button.header-cta .wp-block-button__link { padding-inline: 0.6rem; font-size: 0.74rem; }
}

/* ============================================================
   Subpages: FAQ search, patient quote, card buttons, grids
   ============================================================ */
.faq-search {
  max-width: 760px;
  margin: 0 auto var(--space-4);
  position: relative;
}
.faq-search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--color-muted); pointer-events: none;
}
.faq-search input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.faq-search input:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.faq-search input::-webkit-search-cancel-button { cursor: pointer; }
.faq-no-results {
  max-width: 760px;
  margin: 0 auto var(--space-4);
  text-align: center;
  color: var(--color-muted);
}
.faq-no-results a { text-decoration: underline; color: var(--color-primary-darker); }
.faq-item[hidden] { display: none; }
.patient-quote, .wp-block-quote.is-style-patient-quote {
  border: 0;
  box-shadow: none;
  position: relative;
  background: var(--color-primary-tint-2);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5) var(--space-4) 3.25rem;
  margin: 0 0 var(--space-7);
}
.patient-quote::before, .wp-block-quote.is-style-patient-quote::before {
  content: "\201C";
  position: absolute;
  top: 0.1rem;
  left: var(--space-4);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary-dark);
  opacity: 0.45;
}
.patient-quote p, .wp-block-quote.is-style-patient-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--color-ink);
  margin: 0 0 var(--space-1);
}
.patient-quote cite, .wp-block-quote.is-style-patient-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-primary-darker);
}

.content-article > .wp-block-quote.is-style-patient-quote { margin: 0 0 var(--space-7); }
.wp-block-quote.is-style-patient-quote > * { margin-block-start: 0; }

/* Text-only "Afbeelding + tekstblok" (no photo) */
.pain-block-textonly .pain-block-text { flex: 1 1 100%; }

/* Kernwaarden grid: 2, 3 or 4 columns (block setting), optional narrow width */
.values-grid { grid-template-columns: repeat(var(--values-cols, 3), minmax(0, 1fr)); }
.values-grid-narrow { max-width: 820px; margin-inline: auto; }
@media (max-width: 900px) { .values-grid[style*="--values-cols:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .values-grid, .values-grid[style*="--values-cols:4"] { grid-template-columns: minmax(0, 1fr); } }
.content-article > .values-grid { margin-bottom: var(--space-7); }

/* Buttons inside cards */
.value-card .wp-block-buttons { justify-content: center; margin-top: var(--space-3); }
.team-card .wp-block-buttons { flex-direction: column; align-items: stretch; gap: var(--space-1); margin-top: var(--space-2); }
.team-card .wp-block-button, .team-card .wp-block-button__link { width: 100%; justify-content: center; }

/* Buttons placed directly in a Sectie are centred, like the original .btn-row */
/* (.section-inner: the wrapper the editor puts around the blocks inside a Sectie) */
.section .container > .wp-block-buttons,
.section .container > .section-inner > .wp-block-buttons { justify-content: center; gap: var(--space-2); }

/* Paragraph style "Notitie": small centred note under a grid */
p.is-style-note { text-align: center; max-width: 640px; margin: var(--space-4) auto 0; font-size: var(--fs-sm); }
p.is-style-note a { text-decoration: underline; font-weight: 600; }

/* ============================================================
   Laatste nieuws (block chiropro/latest-posts), original blog styles
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.blog .section-cta { text-align: center; margin-top: var(--space-5); }
.blog-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.blog-card .blog-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.blog-date { font-size: 0.8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.blog-card h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }
.blog-card p { font-size: var(--fs-sm); flex: 1; }
.blog-card .read-more { font-weight: 600; font-size: var(--fs-sm); color: var(--color-primary-darker); margin-top: var(--space-2); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}
/* Whole card is clickable (stretched title link), lifts on hover */
.blog-card { position: relative; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 30px rgba(32, 47, 51, 0.12)); }
.blog-card:focus-within { outline: 3px solid var(--color-primary-dark); outline-offset: 3px; }
.blog-card .blog-link { color: inherit; text-decoration: none; }
.blog-card .blog-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blog-card .blog-link:focus-visible { outline: none; }
.blog-card .blog-img img { transition: transform var(--dur-med) var(--ease); }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-card .blog-body > :last-child { margin-bottom: 0; }
.blog-card p { margin-bottom: 0; }
.blog-card .read-more { display: inline-block; }
/* No photo: tinted panel of the same size, icon + category */
.blog-img-placeholder {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(135deg, var(--color-primary-tint) 0%, var(--color-primary-tint-2) 100%);
  color: var(--color-primary-darker);
}
.blog-img-placeholder span { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 901px) and (max-width: 1100px) { .blog-grid { gap: var(--space-3); } }
@media (prefers-reduced-motion: reduce) { .blog-card, .blog-card .blog-img img { transition: none; } .blog-card:hover, .blog-card:hover .blog-img img { transform: none; } }

/* ============================================================
   News posts (templates single / home / archive)
   ============================================================ */
/* Header band: breadcrumb, category, title, date · reading time */
.post-header {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.6), transparent 40%),
    linear-gradient(135deg, var(--color-primary-tint) 0%, var(--color-primary-tint-2) 100%);
  padding-block: var(--space-6);
}
.post-header .container { max-width: calc(760px + 2 * var(--space-3)); }
.post-header .breadcrumb, .post-header .breadcrumb a { color: var(--color-ink-soft); }
.post-header .breadcrumb a:hover { color: var(--color-primary-darker); }
.post-header .breadcrumb span[aria-current] { color: var(--color-ink); }
.post-header .post-cat {
  display: inline-block; margin-bottom: var(--space-2); padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary-darker);
}
.post-header h1 { font-size: clamp(2rem, 5vw, var(--fs-3xl)); margin-bottom: var(--space-2); }
.post-header .post-meta { margin: 0; font-size: var(--fs-sm); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-muted); }
.post-header .post-intro { max-width: 60ch; }
/* Featured image overlaps the band */
.post-header:has(+ .post-single-image) { padding-bottom: calc(var(--space-6) + var(--space-6)); }
.post-single-image {
  max-width: 760px; width: calc(100% - 2 * var(--space-3)); margin: calc(-1 * var(--space-6)) auto 0;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 9;
}
.post-single-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article body: readable column with spacing between blocks */
.post-body { max-width: calc(760px + 2 * var(--space-3)); margin: var(--space-6) auto var(--space-4); padding-inline: var(--space-3); }
.post-body > * { margin-block: 0 var(--space-3); }
.post-body p, .post-body li { font-size: var(--fs-md); line-height: 1.75; color: var(--color-ink-soft); }
.post-body strong { color: var(--color-ink); }
.post-body a { color: var(--color-primary-darker); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.post-body a:hover { color: var(--color-primary-dark); }
.post-body h2 { font-size: var(--fs-xl); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.post-body h3 { font-size: var(--fs-lg); margin-top: var(--space-4); margin-bottom: var(--space-1); }
.post-body h4 { font-size: var(--fs-md); margin-top: var(--space-3); margin-bottom: var(--space-1); }
.post-body > :first-child { margin-top: 0; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 0.35rem; }
.post-body .wp-block-image { margin-block: var(--space-4); }
.post-body .wp-block-image img { border-radius: var(--radius-md); height: auto; max-width: 100%; margin-inline: auto; display: block; }
.post-body .wp-block-image figcaption { text-align: center; font-size: var(--fs-sm); color: var(--color-muted); margin-top: var(--space-1); }
.post-body blockquote:not(.is-style-patient-quote) {
  border-left: 4px solid var(--color-primary); padding: var(--space-2) var(--space-3); margin-block: var(--space-4);
  background: var(--color-surface); border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.post-body blockquote p { font-family: var(--font-display); font-style: italic; color: var(--color-ink); }
.post-body p:empty { display: none; }
.post-body hr { border: 0; border-top: 1px solid var(--color-border); margin-block: var(--space-5); }

.post-back { max-width: calc(760px + 2 * var(--space-3)); margin: 0 auto var(--space-6); padding-inline: var(--space-3); }
.post-back a { font-weight: 600; color: var(--color-primary-darker); text-decoration: none; }
.post-back a:hover { text-decoration: underline; }

/* News overview */
.post-archive-body { padding-block: var(--space-6) var(--space-7); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); margin-top: var(--space-5); }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 0.9rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface);
  font-weight: 600; color: var(--color-ink); text-decoration: none;
}
.pagination .page-numbers.current { background: var(--color-primary-darker); border-color: var(--color-primary-darker); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--color-primary-darker); color: var(--color-primary-darker); }
.latest-posts-empty { text-align: center; color: var(--color-muted); }

/* Section title used as the page's h1 (Sectie setting "Titel is de paginatitel"): same look as the h2 */
.section-head h1 { font-size: var(--fs-2xl); }
.section-head h1.heading-lg { font-size: var(--fs-3xl); }
.section-head h1.eyebrow-title { font-size: clamp(1.25rem, 6.2vw, var(--fs-2xl)); margin-bottom: var(--space-3); }

/* Specialisaties: readable white text on bright photos */
.spec-card .tags .tag-chip { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.spec-card:hover .tag-chip, .spec-card:focus-visible .tag-chip { text-shadow: none; }
@media (max-width: 760px) {
  .spec-card h3 { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 14px rgba(0, 0, 0, 0.3); }
}

/* Specialisaties: the text block is part of the card's flow (photo and shade fill the
   background), so a card with many tags on a narrow phone grows taller instead of
   pushing the title out at the top. The aspect ratio stays the minimum height. */
.spec-card { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; overflow: clip; }
/* overflow: clip (instead of hidden) still rounds the corners but, unlike hidden, lets the
   aspect ratio act as a minimum height, so the card can grow. Old browsers keep "hidden". */
.spec-card > img { position: absolute; inset: 0; }
.spec-card .content { position: relative; display: block; z-index: 1; }
/* Small phones: slightly more compact title and tags, so more cards keep their 4:3 shape */
@media (max-width: 400px) {
  .spec-card .content { padding: var(--space-2); }
  .spec-card h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
  .spec-card .tags { gap: 0.3rem; }
  .spec-card .tags .tag-chip { padding: 0.25rem 0.55rem; font-size: 0.7rem; }
}

/* Call to action banner (CTA): layering spelled out, so it does not depend on which
   core block styles happen to be loaded (editor preview and site look the same). */
.chiropro-cta { position: relative; display: flex; align-items: center; justify-content: center; }
.chiropro-cta > .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; z-index: 0; }
.chiropro-cta > .wp-block-cover__background { position: absolute; inset: 0; z-index: 1; }
.chiropro-cta > .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; }
.chiropro-cta .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; }
