/* =====================================================================
   style.css — mobile-first. Basisstijlen gelden voor smalle schermen,
   media queries breiden uit (48em ≈ tablet, 75em ≈ desktop).
   Naamgeving: BEM. Kleuren, lettertypes en ruimtes staan als custom
   properties bovenaan: per klant pas je bijna enkel die aan.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Kleuren: pastelgroen (munt). Knoppen zijn pastel met donkere tekst (8,0:1);
     tekst en links gebruiken het donkerdere --color-primary (5,2:1 op wit). --color-accent is enkel decoratief. */
  --color-button: #a6dcb8;          /* vulling van knoppen en de vaste belbalk; nooit als tekstkleur */
  --color-button-hover: #8fd3a9;
  --color-primary: #2d7a4f;         /* tekst, links, genummerde stappen */
  --color-primary-dark: #1f5a3a;    /* hover van links en focus */
  --color-accent: #8fd3a9;          /* enkel decoratief: lijnen, iconen, vlakken, nooit als tekst */
  --color-ink: #212934;             /* koppen, 14,7:1 op wit */
  --color-text: #4a4e57;            /* lopende tekst, 8,3:1 op wit */
  --color-text-soft: #4a4e57;
  --color-bg: #ffffff;
  --color-bg-soft: #f6fbf8;
  --color-tint: #eaf7ef;
  --color-border: #d3ebdc;
  --color-on-primary: #1b3a29;      /* tekst op pastelknoppen */
  --color-focus: #1f5a3a;
  --color-warning-bg: #fff8e1;
  --color-warning-border: #e0b84a;

  /* Typografie: systeemfonts = 0 kB, geen extern verzoek en meteen zichtbaar */
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-base);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-small: 0.9rem;
  --line-height: 1.7;

  /* Ruimte */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --width-max: 72rem;
  --width-text: 44rem;
  --radius: 1rem;
  --radius-small: 0.6rem;
  --shadow: 0 4px 20px rgb(33 41 52 / 0.08);
  --header-height: 4.25rem;
  --sticky-cta-height: 3.5rem;
}

/* ---------- 2. Reset en basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Ruimte onderaan zodat de vaste knoppenbalk op mobiel niets afdekt */
.page--has-sticky-cta { padding-bottom: calc(var(--sticky-cta-height) + env(safe-area-inset-bottom)); }

img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 var(--space-sm); color: var(--color-ink); }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, address { margin: 0 0 var(--space-sm); }
address { font-style: normal; }
a { color: var(--color-primary); text-underline-offset: 0.15em; }
a:hover { color: var(--color-primary-dark); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-sm); top: -4rem; z-index: 100;
  padding: var(--space-xs) var(--space-sm); background: var(--color-text); color: var(--color-bg);
}
.skip-link:focus { top: var(--space-xs); }

.icon { flex: none; }

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

.section { padding-block: var(--space-lg); }
.section--soft { background: var(--color-bg-soft); }
.section--tint { background: var(--color-tint); }
.section--tight { padding-block: var(--space-md); }
.section__intro { max-width: var(--width-text); }

.grid { display: grid; gap: var(--space-md); }
.text-block { max-width: var(--width-text); }

/* Lange tabellen (tarieven) scrollen in hun eigen vak; de pagina zelf nooit zijwaarts */
.table-wrap { overflow-x: auto; }

@media (min-width: 48em) {
  .section { padding-block: var(--space-xl); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 4. Knoppen ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.6rem 1.4rem; /* minstens 44 px hoog: vlot aan te tikken */
  border: 2px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button--primary { background: var(--color-button); color: var(--color-on-primary); }
.button--primary:hover { background: var(--color-button-hover); color: var(--color-on-primary); }
.button--outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.button--outline:hover { background: var(--color-tint); }
.button-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- 5. Header en navigatie ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
/* Geen overflow:hidden op de header: dat zou het uitklapmenu afknippen */

.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); }
.header__logo { display: inline-flex; align-items: center; flex: none; }
.header__logo-image { display: block; height: 2.5rem; width: auto; }
.header__calls { display: none; }

.header__menu-button {
  width: 3rem; height: 3rem; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.header__menu-icon, .header__menu-icon::before, .header__menu-icon::after {
  display: block; width: 1.5rem; height: 2px; background: var(--color-text); position: relative; transition: transform 0.2s, background 0.2s;
}
.header__menu-icon::before, .header__menu-icon::after { content: ""; position: absolute; left: 0; }
.header__menu-icon::before { top: -0.45rem; }
.header__menu-icon::after { top: 0.45rem; }
.header__menu-button[aria-expanded="true"] .header__menu-icon { background: transparent; }
.header__menu-button[aria-expanded="true"] .header__menu-icon::before { top: 0; transform: rotate(45deg); }
.header__menu-button[aria-expanded="true"] .header__menu-icon::after { top: 0; transform: rotate(-45deg); }

/* Mobiel: menu is een paneel onder de header. Zonder JS blijft het gewoon zichtbaar. */
.nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
.js .nav { display: none; }
.js .nav--open { display: block; }
.nav__list { list-style: none; margin: 0; padding: var(--space-xs) var(--space-sm) var(--space-sm); }
.nav__item { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--color-border); }
.nav__link { flex: 1; display: flex; align-items: center; min-height: 3rem; padding: 0.5rem 0; color: var(--color-text); font-weight: 600; text-decoration: none; }
.nav__link:hover, .nav__link--active { color: var(--color-primary); }
.nav__link--active { text-decoration: underline; text-underline-offset: 0.3em; }

.nav__sub-button {
  width: 3rem; min-height: 3rem; border: 0; background: transparent; cursor: pointer; position: relative;
}
.nav__sub-button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.55rem; height: 0.55rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translate(-50%, -70%) rotate(45deg); transition: transform 0.2s;
}
.nav__sub-button[aria-expanded="true"]::after { transform: translate(-50%, -30%) rotate(-135deg); }

.nav__sub { flex-basis: 100%; list-style: none; margin: 0; padding: 0 0 var(--space-xs) var(--space-sm); display: none; }
.nav__item--open > .nav__sub { display: block; }
.nav__sub-link { display: flex; align-items: center; min-height: 2.75rem; color: var(--color-text-soft); text-decoration: none; }
.nav__sub-link:hover { color: var(--color-primary); text-decoration: underline; }

/* Desktop: horizontaal menu met uitklapmenu.
   BELANGRIJK voor klikbare submenu's: geen marge tussen item en submenu (top: 100%),
   li strekt over de volledige headerhoogte, hoge z-index, geen overflow:hidden op de header. */
@media (min-width: 75em) {
  .header__menu-button, .nav__sub-button { display: none; }
  .header__calls { display: flex; align-self: center; gap: 0.5rem; }
  .header__call { padding: 0.4rem 0.9rem; min-height: 2.75rem; white-space: nowrap; }
  .header__call--single { display: inline-flex; }
  .header__inner { gap: var(--space-sm); align-items: stretch; }
  .header__logo { align-self: center; }

  .nav, .js .nav { position: static; display: block; flex: 1; border: 0; box-shadow: none; max-height: none; overflow: visible; background: transparent; }
  .nav__list { display: flex; justify-content: flex-end; align-items: stretch; height: 100%; padding: 0; }
  .nav__item { position: relative; border: 0; flex-wrap: nowrap; }
  .nav__link { padding: 0 0.4rem; min-height: var(--header-height); font-size: 0.86rem; white-space: nowrap; }

  .nav__sub {
    position: absolute; top: 100%; left: 0; z-index: 60; min-width: 15rem;
    padding: var(--space-xs) 0; background: var(--color-bg);
    border: 1px solid var(--color-border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  }
  .nav__item--has-sub:hover > .nav__sub,
  .nav__item--has-sub:focus-within > .nav__sub { display: block; }
  .nav__sub-link { padding: 0.4rem var(--space-sm); }
  .nav__sub-link:hover { background: var(--color-bg-soft); text-decoration: none; }

  .page--has-sticky-cta { padding-bottom: 0; }
}

/* ---------- 6. Hero ---------- */
.hero { padding-block: var(--space-lg); background: linear-gradient(180deg, var(--color-tint) 0%, var(--color-bg) 100%); }
.hero__lead { font-size: 1.15em; color: var(--color-text-soft); max-width: var(--width-text); }
.hero__cta-label { margin: var(--space-md) 0 var(--space-xs); font-weight: 600; color: var(--color-ink); }
@media (min-width: 48em) {
  .hero { padding-block: var(--space-xl); }
}

/* Hero met foto. Mobiel: foto bovenaan, tekst eronder op een lichte achtergrond (altijd leesbaar).
   Vanaf 48em: foto over de volle breedte met een donkere overlay en witte tekst. */
.hero--image { padding-block: 0; background: var(--color-tint); }
.hero--image .hero__media .image { display: block; }
.hero--image .hero__media .image,
.hero--image .hero__media .placeholder { width: 100%; border-radius: 0; }
.hero--image .hero__media .placeholder { border: 0; background: #9fb3a6; color: var(--color-on-primary); }
.hero--image .hero__inner { padding-block: var(--space-md) var(--space-lg); }
@media (min-width: 48em) {
  .hero--image { position: relative; display: flex; align-items: center; min-height: 32rem; background: var(--color-ink); }
  .hero--image .hero__media { position: absolute; inset: 0; }
  .hero--image .hero__media .image,
  .hero--image .hero__media .placeholder { height: 100%; aspect-ratio: auto !important; object-fit: cover; }
  /* Placeholdertekst rechtsonder, zodat ze de hero-tekst niet overlapt (verdwijnt met de echte foto) */
  .hero--image .hero__media .placeholder { align-items: flex-end; justify-content: flex-end; padding: var(--space-md); color: #fff; }
  .hero--image .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(33 41 52 / 0.85) 0%, rgb(33 41 52 / 0.65) 50%, rgb(33 41 52 / 0.2) 100%); }
  .hero--image .hero__inner { position: relative; z-index: 1; padding-block: var(--space-xl); }
  .hero--image .hero__text { max-width: 34rem; }
  .hero--image .hero__title,
  .hero--image .hero__lead,
  .hero--image .hero__cta-label { color: #fff; }
}

/* ---------- 7. Kaarten (diensten, regio's) ---------- */
.card { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-md); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); }
.card--link { text-decoration: none; }
.card__title { margin: 0; font-size: 1.2rem; }
.card__text { margin: 0; color: var(--color-text-soft); }
.card__link { margin-top: auto; font-weight: 600; }
.card__link::after { content: " →"; }

/* ---------- 8. Antwoordblok (GEO): korte, directe samenvatting bovenaan ---------- */
.answer { padding: var(--space-sm) var(--space-md); border-left: 4px solid var(--color-accent); background: var(--color-tint); border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--width-text); }
.answer__title { margin: 0 0 0.25rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-primary); }
.answer__text { margin: 0; }

/* ---------- 9. Getuigenissen ---------- */
.quote { margin: 0; padding: var(--space-md); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); }
.quote__text { margin: 0 0 var(--space-xs); }
.quote__author { margin: 0; font-weight: 600; color: var(--color-text-soft); }

/* ---------- 10. FAQ (details/summary, werkt zonder JS) ---------- */
.faq { max-width: var(--width-text); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__question { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 3rem; padding: 0.6rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--color-primary); }
.faq__item[open] > .faq__question::after { content: "–"; }
.faq__answer { padding-bottom: var(--space-xs); color: var(--color-text-soft); }

/* ---------- 11. Kruimelpad, openingsuren, placeholder ---------- */
.breadcrumbs { padding-block: var(--space-xs); font-size: var(--text-small); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs__item:not(:last-child)::after { content: "›"; margin-left: 0.5rem; color: var(--color-text-soft); }

.hours { list-style: none; margin: 0 0 var(--space-xs); padding: 0; }
.hours__days { font-weight: 600; }

.image { display: block; width: 100%; border-radius: var(--radius); }
.placeholder { display: flex; align-items: center; justify-content: center; width: 100%; padding: var(--space-sm); border: 2px dashed var(--color-border); border-radius: var(--radius); background: var(--color-bg-soft); color: var(--color-text-soft); text-align: center; font-size: var(--text-small); }

/* ---------- 12. Footer ---------- */
.footer { margin-top: 0; background: var(--color-ink); color: #e8efee; }
.footer__grid { display: grid; gap: var(--space-md); padding-block: var(--space-lg); }
.footer__title { font-size: 1.05rem; color: #fff; margin-bottom: var(--space-xs); }
.footer__list, .footer__legal-links { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.25rem; }
.footer__link { color: #e8efee; }
.footer__link:hover { color: #fff; }
.footer__link--button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.footer__note { font-size: var(--text-small); }
.footer__legal { display: flex; flex-direction: column; gap: var(--space-xs); padding-block: var(--space-sm); border-top: 1px solid rgb(255 255 255 / 0.2); font-size: var(--text-small); }
.footer__legal-text { margin: 0; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 0.25rem var(--space-sm); }
@media (min-width: 48em) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__legal { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
@media (min-width: 60em) {
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 13. Vaste knoppenbalk (enkel mobiel) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: var(--color-bg); border-top: 1px solid var(--color-border); box-shadow: 0 -2px 10px rgb(0 0 0 / 0.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta__link { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: var(--sticky-cta-height); color: var(--color-text); font-weight: 600; text-decoration: none; }
.sticky-cta__link--primary { background: var(--color-button); color: var(--color-on-primary); }
.sticky-cta__link--primary + .sticky-cta__link--primary { background: var(--color-button-hover); }
@media (min-width: 75em) { .sticky-cta { display: none; } }

/* ---------- 14. Voorkeuren van de bezoeker ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ---------- 15. Paginakop en inhoudspagina's ---------- */
.page-head { padding-block: var(--space-md) var(--space-sm); }
.page-head__title { margin-bottom: var(--space-xs); }
.page-head__meta { margin: 0 0 var(--space-sm); font-size: var(--text-small); }
.page-head__lead { font-size: 1.15em; max-width: var(--width-text); margin-bottom: var(--space-sm); }
.content { padding-block: var(--space-sm) var(--space-lg); }
.content__section { max-width: var(--width-text); margin-bottom: var(--space-lg); }
.content__section h2 { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3rem; }
.content li { margin-bottom: 0.4rem; }

/* Waarschuwingsblok voor medische voorzichtigheid (endometriose, IVF, oncologie, ...) */
.notice { max-width: var(--width-text); padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-lg); background: var(--color-warning-bg); border-left: 4px solid var(--color-warning-border); border-radius: 0 var(--radius-small) var(--radius-small) 0; }
.notice__title { margin: 0 0 0.25rem; font-size: 1rem; }
.notice p { margin: 0; color: var(--color-ink); }

/* Stappen (verloop van een sessie) */
.steps { counter-reset: stap; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: stap; position: relative; padding-left: 2.6rem; margin-bottom: var(--space-sm); }
.steps > li::before { content: counter(stap); position: absolute; left: 0; top: 0.05rem; width: 1.9rem; height: 1.9rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.95rem; }

/* Kaarten die volledig klikbaar aanvoelen */
.card__title a { color: var(--color-ink); text-decoration: none; }
.card__title a:hover { color: var(--color-primary); text-decoration: underline; }
.card-grid { display: grid; gap: var(--space-sm); }
@media (min-width: 40em) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Bekijk ook */
.related { max-width: var(--width-text); margin-block: var(--space-lg); }
.related__title { font-size: 1.2rem; }
.related__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.3rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg); color: var(--color-primary); text-decoration: none; font-weight: 600; }
.related__link:hover { background: var(--color-tint); }

/* Bel-blok onderaan elke pagina */
.call-block__title { margin-bottom: var(--space-xs); }
.call-card { box-shadow: var(--shadow); border-color: transparent; }
.call-card--current { outline: 2px solid var(--color-accent); }
.call-card .button { align-self: flex-start; }
.call-card .card__link { margin-top: var(--space-xs); }

/* Placeholders (Sofie levert nog aan) */
.placeholder-inline { padding: 0.05rem 0.4rem; background: #fff3a8; color: #3b3200; border-radius: 0.3rem; font-size: 0.92em; }
.placeholder-block { max-width: var(--width-text); }

/* Contactpagina */
.contact-grid { display: grid; gap: var(--space-md); }
.contact-card { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); }
.contact-card h2 { margin-bottom: 0; font-size: 1.4rem; }
.contact-card .button { align-self: flex-start; }
@media (min-width: 48em) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

/* Tabellen (tarieven) */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table th { color: var(--color-ink); background: var(--color-tint); }

/* Lokale intro op de homepage */
.usp { display: grid; gap: var(--space-md); }
@media (min-width: 48em) { .usp { grid-template-columns: repeat(3, 1fr); } }
.usp__item { padding-left: var(--space-sm); border-left: 4px solid var(--color-accent); }
.usp__item h3 { margin-bottom: 0.25rem; }
.usp__item p { margin: 0; }
.content .related__list { padding-left: 0; }
