/* =========================================================================
   De Praktijk van Jacqueline — Pedicure Alkmaar Centrum
   Native CSS, mobile first. Alle kleuren zijn WCAG-doorgerekend:
   tekst >= 4.5:1, functionele UI/randen >= 3:1 (zie --border-ui).
   ========================================================================= */

/* ---------- Fonts (self-hosted variable woff2) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Kleur — afgeleid van het logo (#C98D90) */
  --bg: #fbf8f7;
  --surface: #f5eae8;
  --white: #ffffff;
  --ink: #2b2326;
  /* 14.49:1 op --bg */
  --ink-muted: #5f5257;
  /*  7.02:1 op --bg */
  --brand: #c98d90;
  /* decoratief: logo, accenten — nooit tekst */
  --brand-strong: #9a4b52;
  /*  5.67:1 op --bg — links, knopvlak */
  --brand-hover: #7c3a41;
  /*  7.83:1 op --bg */
  --rule: #e6d4d1;
  /* decoratieve hairline (kaart heeft eigen vulling) */
  --border-ui: #a66f73;
  /*  3.86:1 op --bg — functionele randen, tabelrules */
  --focus: #7c3a41;
  --scrim: #2b2326;

  /* Typografie */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --soft: "SOFT" 100;
  /* zachte terminals — de warme variant van Fraunces */

  /* Ritme */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --radius: 14px;
  --radius-sm: 8px;
  --measure: 100ch;
  --container: 1140px;

  --shadow: 0 1px 2px rgb(43 35 38 / 4%), 0 8px 24px -12px rgb(43 35 38 / 12%);
  --header-h: 64px;
}

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

* {
  margin: 0;
}

html {
  font-size: 106.25%;
  /* 17px */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 48em) {
  html {
    font-size: 112.5%;
  }

  /* 18px — leesbaarheid boven alles */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.05rem, 6.4vw, 3.5rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.25;
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin-block: 1em;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand-hover);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Skip link (op ELKE pagina) ---------- */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--brand-strong);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease-out;
}

.skip-link:focus {
  top: var(--space-2);
  color: var(--white);
}

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

.section {
  padding-block: var(--space-6);
}

.section--tight {
  padding-block: var(--space-5);
}

.section--surface {
  background: var(--surface);
}

.section__intro {
  max-width: var(--measure);
}

.section__intro>*+* {
  margin-top: var(--space-2);
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: var(--measure);
}

.prose>*+* {
  margin-top: var(--space-2);
}

.prose {
  max-width: var(--measure);
}

.prose h3 {
  margin-top: var(--space-4);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li+li {
  margin-top: 0.35rem;
}

/* Gemarkeerde lijst met het merkicoon als opsommingsteken */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-top: 0.5rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--brand-strong);
  mask: url("../img/logo.svg") center / contain no-repeat;
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
  background: var(--brand-strong);
  color: var(--white);
}

/* 6.00:1 */
.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--white);
}

/* 8.27:1 */

.btn--ghost {
  background: transparent;
  color: var(--brand-strong);
  border-color: var(--border-ui);
  /* 3.86:1 */
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn--on-dark {
  background: var(--white);
  color: var(--brand-hover);
  /* 8.27:1 */
  border-color: var(--white);
}

.btn--on-dark:hover {
  background: var(--surface);
  color: var(--brand-hover);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 248 247 / 92%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--bg);
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand__sub {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-2) var(--space-3) var(--space-3);
  box-shadow: var(--shadow);
}

.nav[data-open="true"] {
  display: block;
}

.nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__list li+li {
  border-top: 1px solid var(--rule);
}

.nav__link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--brand-hover);
}

.nav__link[aria-current="page"] {
  color: var(--brand-strong);
  font-weight: 600;
}

/* Mobiel: de belknop vult het menupaneel onderin. */
.header__tel {
  display: flex;
  width: 100%;
  margin-top: var(--space-3);
}

@media (min-width: 84em) {
  .nav-toggle {
    display: none;
  }

  /* De header krijgt hier bewust meer ademruimte dan de standaard content-kolom
     (--container: 1140px). Vijf navigatie-items + logo + belknop passen niet
     ongewrapt binnen 1140px, zelfs niet op zeer brede schermen — 1140px is
     immers een vast plafond, geen functie van de viewport. Vandaar een eigen,
     ruimere max-width specifiek voor de header-balk. */
  .header__inner {
    max-width: 1320px;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: static;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .nav__list li+li {
    border-top: 0;
  }

  .nav__link {
    padding: 0.4rem 0;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .nav__link[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--brand-strong);
  }

  /* Desktop: gewoon een knop rechts in de balk. */
  .header__tel {
    width: auto;
    margin-top: 0;
  }

  .btn--sm {
    min-height: 42px;
    padding: 0.45rem 1rem;
    font-size: 0.9375rem;
  }
}

/* ---------- Hero met achtergrondvideo ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--space-6) var(--space-5);
  overflow: hidden;
  background: var(--scrim);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  opacity: 0;
  transition: opacity 0.9s ease-in;
}

.hero__video[data-playing="true"] {
  opacity: 1;
}

/* Scrim: garandeert 4.5:1 voor witte tekst over elk frame */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(43 35 38 / 88%) 0%, rgb(43 35 38 / 62%) 45%, rgb(43 35 38 / 40%) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 42rem;
}

.hero__content h1 {
  color: var(--white);
}

.hero__tag {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.92;
}

.hero__text {
  margin-top: var(--space-2);
  font-size: 1.125rem;
  color: var(--white);
  max-width: 34rem;
}

.hero__note {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--white);
  opacity: 0.85;
}

/* ---------- USP-strip ---------- */
.usps {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.usps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.usps__list li {
  padding: var(--space-3) 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.usps__list li+li {
  border-top: 1px solid var(--rule);
}

.usps__list strong {
  display: block;
  font-weight: 600;
}

.usps__list span {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.usps__icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.35rem;
  flex: none;
  background: var(--brand-strong);
  mask: url("../img/logo.svg") center / contain no-repeat;
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
}

@media (min-width: 48em) {
  .usps__list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-5);
  }

  .usps__list li:nth-child(2) {
    border-top: 0;
  }

  .brand__name {
    font-size: 1rem;
  }

  .brand__sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  .hero {
    min-height: min(78svh, 640px);
  }
}

@media (min-width: 72em) {
  .usps__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .usps__list li {
    border-top: 0 !important;
  }

  .hero {
    min-height: calc(100vh - var(--header-h));
  }
}

/* ---------- Kaartraster (diensten) ---------- */
.cards {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 48em) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  border-color: var(--border-ui);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.card__link {
  margin-top: auto;
  padding-top: var(--space-2);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.card__link::after {
  content: " \2192";
}

.card__link:hover {
  text-decoration: underline;
}

/* Hele kaart klikbaar, zonder de linkrol te overschrijven */
.card {
  position: relative;
}

.card__link::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Split (beeld + tekst) ---------- */
.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.split__media img {
  border-radius: var(--radius);
  width: 100%;
}

.split__body>*+* {
  margin-top: var(--space-2);
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .split--reverse .split__media {
    order: 2;
  }

  /* Bron is 756px breed: nooit groter tonen dan ~420px CSS (≈1.8x) */
  .split--portrait .split__media img {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* ---------- Tarieven: het signature-element ----------
   Een echte <table> die leest als een prijslijst aan de wand:
   naam + omschrijving links, bedrag rechts, stippellijn ertussen. */
.tarieven-wrap {
  margin-top: var(--space-4);
}

.tarieven {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tarieven caption {
  caption-side: top;
  text-align: left;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  padding-bottom: var(--space-2);
}

.tarieven thead th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-ui);
}

.tarieven thead th:last-child {
  text-align: right;
}

.tarieven tbody th,
.tarieven tbody td {
  padding: var(--space-3) 0;
  border-bottom: 1px dotted var(--border-ui);
  /* 3.86:1 */
  vertical-align: baseline;
}

.tarieven tbody th {
  font-weight: 400;
  padding-right: var(--space-3);
}

.tarief-naam {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.25;
  color: var(--ink);
}

.tarief-uitleg {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 100ch;
}

.tarief-prijs {
  text-align: right;
  white-space: nowrap;
  width: 1%;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-strong);
}

.tarieven-voet {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* ---------- FAQ (native details/summary) ---------- */
.faq {
  margin-top: var(--space-4);
  max-width: var(--measure);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--brand-hover);
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.4rem;
  border-right: 2px solid var(--border-ui);
  border-bottom: 2px solid var(--border-ui);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq__answer {
  padding-bottom: var(--space-3);
  color: var(--ink-muted);
}

.faq__answer>*+* {
  margin-top: var(--space-2);
}

/* ---------- CTA-band ---------- */
.cta-band {
  background: var(--scrim);
  color: var(--white);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: var(--white);
  opacity: 0.9;
  margin-top: var(--space-2);
  max-width: 46ch;
}

.cta-band__inner {
  padding-block: var(--space-5);
}

.cta-tel {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--white);
  text-decoration: none;
}

.cta-tel:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Contactblok ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 56em) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-6);
  }
}

.infolist {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}

.infolist li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
}

.infolist li:first-child {
  border-top: 1px solid var(--rule);
}

.infolist dt,
.infolist .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.infolist .value {
  font-size: 1.0625rem;
}

.hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--rule);
}

.hours li:last-child {
  border-bottom: 0;
}

.hours .dag {
  color: var(--ink-muted);
}

.hours .tijd {
  font-variant-numeric: tabular-nums;
}

/* ---------- Waarschuwingsblok (risicovoet / huisarts) ---------- */
.note {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--surface);
  border-left: 4px solid var(--border-ui);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: var(--measure);
}

.note h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.note p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.note p+p {
  margin-top: var(--space-1);
}

/* ---------- Kruimelpad ---------- */
.breadcrumb {
  padding-top: var(--space-3);
  font-size: 0.875rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--brand-hover);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

/* ---------- Paginakop (subpagina's) ---------- */
.pagehead {
  background: var(--surface);
  padding-bottom: var(--space-5);
}

.pagehead h1 {
  margin-top: var(--space-3);
}

.pagehead .lead {
  margin-top: var(--space-3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding-block: var(--space-5) var(--space-3);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 48em) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-5);
  }
}

.footer h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}

.footer address {
  font-style: normal;
  color: var(--ink-muted);
}

.footer address a {
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li+li {
  margin-top: 0.45rem;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

.footer__provoet {
  margin-top: var(--space-3);
}

.footer__provoet img {
  width: 140px;
  height: auto;
}

.footer__legal {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.footer__legal p {
  margin: 0;
}

.footer__credit a {
  color: var(--ink-muted);
  text-decoration: underline;
}

.footer__credit a:hover {
  color: var(--brand-hover);
}

@media (min-width: 48em) {
  .footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__credit {
    text-align: right;
  }
}

/* ---------- 404 ---------- */
.error-page {
  padding-block: var(--space-7);
  text-align: center;
}

.error-page .btn-row {
  justify-content: center;
}

/* ---------- Reduced motion ---------- */
@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;
  }

  .hero__video {
    display: none;
  }
}

/* ---------- Utilities (vervangen inline styles, zodat de CSP
              geen 'unsafe-inline' voor style-src nodig heeft) ---------- */
.mt-4 {
  margin-top: var(--space-3);
}

.mt-5 {
  margin-top: var(--space-4);
}

.fineprint {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* Ghost-knop op de donkere hero */
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--ghost-light:hover {
  background: var(--white);
  color: var(--brand-hover);
  /* 8.27:1 */
  border-color: var(--white);
}
/* ---------- Hero-slideshow (alleen mobiel) ----------
   Op mobiel laadt de video bewust niet: video-decoding kost daar te veel
   main thread. Deze slideshow draait volledig op de compositor (alleen
   opacity), wat vrijwel niets kost.

   5 slides x 5 s = cyclus van 25 s. Wil je een ander aantal slides:
   cyclus = aantal x 5s, elke slide 5s meer vertraging, en pas de
   percentages in @keyframes aan volgens de formule onderaan. */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  animation: heroFade 25s infinite;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* gecentreerde uitsnede */
}

.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 5s; }
.hero__slide:nth-child(3) { animation-delay: 10s; }
.hero__slide:nth-child(4) { animation-delay: 15s; }
.hero__slide:nth-child(5) { animation-delay: 20s; }

/* 25 s cyclus: 0,8 s infaden - 5 s zichtbaar - 0,8 s uitfaden.
   3,2% = 0,8/25 | 20% = 5/25 | 23,2% = 5,8/25 */
@keyframes heroFade {
  0%     { opacity: 0; }
  3.2%   { opacity: 1; }
  20%    { opacity: 1; }
  23.2%  { opacity: 0; }
  100%   { opacity: 0; }
}

/* Desktop: de video neemt het over, slideshow niet nodig. */
@media (min-width: 48em) {
  .hero__slideshow { display: none; }
}

/* Geen beweging gewenst: toon alleen de eerste slide, statisch. */
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; }
  .hero__slide:nth-child(1) { opacity: 1; }
}
