/* ==========================================================================
   Huwelijkscadeau Lesley & Sanja - style.css
   Tokens en maten: specs/DESIGN_SPECS.md (bindend)
   Beweging hero: specs/MOTION_SPEC.md
   Reveals en states: specs/INTERACTION_SPEC.md
   ========================================================================== */

:root {
  /* ===== Kleuren (DESIGN_SYSTEM.md sectie 1) ===== */
  --kleur-rood:           #D23B33;  /* primair, hero/felicitatie/footer */
  --kleur-rood-donker:    #B22A26;  /* diepte, gradients, knop-hover */
  --kleur-rood-licht:     #E0554A;  /* alleen decoratief, nooit onder tekst */
  --kleur-goud:           #C9A04C;  /* foliegoud, lijnen en ornamenten */
  --kleur-goud-licht:     #E6C887;  /* glans in goudfolie */
  --kleur-roze:           #F2B8B0;  /* roosjes, puur decoratief */
  --kleur-wit-warm:       #FFF8F0;  /* tekst op rood, kaartvlak */
  --kleur-inkt:           #3A2422;  /* tekst op licht */
  --kleur-creme:          #FBF3E7;  /* lichte sectieachtergrond */

  /* Afgeleide tinten (DESIGN_SPECS sectie 8) */
  --kleur-goud-titel:     #F0DCA4;  /* titelgoud op vlak rood, AA large */
  --kleur-goud-donker:    #8C6A28;  /* goud op creme/wit-warm, AA normaal */
  --kleur-scrim:          #5A100D;  /* alleen voor hero-overlay, nooit als vlak */

  /* ===== Typografie ===== */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Alegreya", Georgia, serif;
  --font-ui:      "Alegreya Sans", "Gill Sans", system-ui, sans-serif;
  --font-sc:      "Alegreya SC", "Alegreya", Georgia, serif;

  --tekst-display-xl: clamp(2.75rem, 1.5rem + 6.5vw, 5.5rem);   /* h1 hero */
  --tekst-display-lg: clamp(2rem, 1.55rem + 2.25vw, 2.75rem);   /* h2 felicitatie */
  --tekst-display-md: clamp(1.875rem, 1.5rem + 1.9vw, 2.5rem);  /* h2 cadeaukaarten */
  --tekst-subtitel:   clamp(1.25rem, 1.1rem + 1.2vw, 1.75rem);  /* datum hero */
  --tekst-tagline:    clamp(1.125rem, 1.05rem + 0.6vw, 1.375rem);
  --tekst-namen:      clamp(1.375rem, 1.25rem + 0.7vw, 1.625rem);
  --tekst-body:       clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --tekst-kicker:     0.9375rem;
  --tekst-knop:       1.0625rem;
  --tekst-hint:       0.9375rem;
  --tekst-datum-echo: clamp(1.5rem, 1.35rem + 0.8vw, 1.75rem);  /* footer */

  /* ===== Spacing-schaal (basis 8 px) ===== */
  --ruimte-1: 0.5rem;
  --ruimte-2: 1rem;
  --ruimte-3: 1.5rem;
  --ruimte-4: 2rem;
  --ruimte-5: 3rem;
  --ruimte-6: 4rem;
  --ruimte-7: 6rem;
  --ruimte-sectie: clamp(6rem, 4rem + 8vw, 10rem);

  /* ===== Vormen ===== */
  --radius-kaart: clamp(16px, 1rem + 0.6vw, 24px);
  --radius-knop:  999px;

  /* ===== Schaduwen (warm, nooit puur zwart) ===== */
  --schaduw-kaart: 0 12px 32px rgba(58, 36, 34, 0.12),
                   0 2px 8px rgba(58, 36, 34, 0.08);
  --schaduw-knop:       0 4px 14px rgba(178, 42, 38, 0.35);
  --schaduw-knop-hover: 0 6px 18px rgba(90, 16, 13, 0.40);

  /* ===== Layoutbreedtes ===== */
  --kolom-tekst:  42rem;
  --kolom-kaart:  44rem;
  --inzet-inline: clamp(1.25rem, 4vw, 2.5rem);

  /* ===== Interactie-tokens (INTERACTION_SPEC sectie 1) ===== */
  --anim-reveal-duur:  600ms;
  --anim-stagger:      90ms;
  --anim-micro:        160ms;
  --anim-pers:         70ms;
  --anim-fonkel:       240ms;

  --anim-ease-uit:     cubic-bezier(0.22, 1, 0.36, 1);
  --anim-ease-inuit:   cubic-bezier(0.45, 0, 0.55, 1);
  --anim-ease-fonkel:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --reveal-afstand:        16px;
  --reveal-afstand-kaart:  12px;
}

/* ==========================================================================
   Basis
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* geen grijze tik-flits op iOS; focus-visible blijft */
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--kleur-rood); /* voorkomt witte flitsen bij overscroll */
  color: var(--kleur-wit-warm);
  font-family: var(--font-body);
  font-size: var(--tekst-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden; /* geen horizontaal scrollen, wat er ook gebeurt */
}

h1, h2, p, ul {
  margin: 0;
}

img {
  display: block;
  max-width: 100%; /* vangnet: een afbeelding loopt nooit buiten zijn kolom */
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Skip-link (DESIGN_SPECS 3.8): instant, geen transitie
   ========================================================================== */

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.skip-link:focus-visible {
  position: fixed;
  top: calc(var(--ruimte-2) + env(safe-area-inset-top, 0px));   /* onder Dynamic Island / notch */
  left: calc(var(--ruimte-2) + env(safe-area-inset-left, 0px));
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  z-index: 100;
  background: var(--kleur-creme);
  color: var(--kleur-inkt);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 2px solid var(--kleur-goud-donker);
  box-shadow: var(--schaduw-kaart);
  outline: 3px solid var(--kleur-goud-donker);
  outline-offset: 3px;
}

/* ==========================================================================
   Goudfolie-titelstijlen (DESIGN_SPECS 2)
   ========================================================================== */

/* Variant A: folie op donker (alleen h1 in de hero) */
.goudfolie {
  color: var(--kleur-goud-licht); /* fallback, 4.45:1 op de hero-scrim */
  text-shadow: 0 1px 2px rgba(90, 16, 13, 0.35); /* alleen bij de fallback */
  background-image: linear-gradient(
    105deg,
    #F4E3B2  0%,
    #E6C887 38%,
    #C9A04C 62%,
    #EFD9A0 88%,
    #F4E3B2 100%
  );
}

/* Variant B: folie op vlak rood (h2 felicitatie) */
.goudfolie-op-rood {
  color: var(--kleur-goud-titel); /* fallback #F0DCA4, 3.51:1 = AA large */
  background-image: linear-gradient(
    105deg,
    #F7E8C3  0%,
    #F0DCA4 45%,
    #EDD49C 70%,
    #F7E8C3 100%
  );
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .goudfolie,
  .goudfolie-op-rood {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}

/* ==========================================================================
   Hero (DESIGN_SPECS 3.1, MOTION_SPEC)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: max(100svh, 560px);
  background: var(--kleur-rood-donker);
}

.hero-carrousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--kleur-rood-donker);
  z-index: 1;
}

.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
}

/* Focuspunten (DESIGN_SPECS 5), mobiel portrait */
.hero-foto-1 { object-position: 42% 30%; } /* spec 66%, in stappen van 2% bijgesteld zodat beide gezichten op 375px volledig in beeld staan (DESIGN_SPECS 5 en 8.4) */
.hero-foto-2 { object-position: 50% 22%; }
.hero-foto-3 { object-position: 50% 26%; }
.hero-foto-4 { object-position: 50% 28%; }

@media (min-width: 768px) {
  .hero-foto-1 { object-position: 55% 32%; }
  .hero-foto-2 { object-position: 50% 26%; }
  .hero-foto-3 { object-position: 50% 28%; }
  .hero-foto-4 { object-position: 42% 30%; }
}

.hero-foto.is-active {
  opacity: 1;
  z-index: 2;
  transition: opacity 1500ms cubic-bezier(0.45, 0.05, 0.35, 0.95);
}

.hero-foto.is-prev {
  opacity: 1;               /* blijft staan onder de inkomende slide */
  z-index: 1;
  transition: none;
}

/* Ken Burns (MOTION_SPEC 2): loopt door over is-active EN is-prev */
.hero-foto-1 { transform-origin: 62% 35%; }
.hero-foto-2 { transform-origin: 50% 25%; }
.hero-foto-3 { transform-origin: 50% 30%; }
.hero-foto-4 { transform-origin: 50% 30%; }

@keyframes kb-1 {
  from { transform: scale(1.00); }
  to   { transform: scale(1.05); }
}
@keyframes kb-2 {
  from { transform: translate3d(0, -1.2%, 0) scale(1.045); }
  to   { transform: translate3d(0, 0, 0)     scale(1.045); }
}
@keyframes kb-3 {
  from { transform: scale(1.06); }
  to   { transform: scale(1.02); }
}
@keyframes kb-4 {
  from { transform: translate3d(-0.8%, 0, 0) scale(1.03); }
  to   { transform: translate3d(0.8%, 0, 0)  scale(1.06); }
}

.hero-foto.is-active,
.hero-foto.is-prev {
  animation-duration: 9000ms;
  animation-timing-function: cubic-bezier(0.33, 0, 0.67, 1);
  animation-fill-mode: forwards;
  will-change: opacity, transform;
}
.hero-foto-1.is-active, .hero-foto-1.is-prev { animation-name: kb-1; }
.hero-foto-2.is-active, .hero-foto-2.is-prev { animation-name: kb-2; }
.hero-foto-3.is-active, .hero-foto-3.is-prev { animation-name: kb-3; }
.hero-foto-4.is-active, .hero-foto-4.is-prev { animation-name: kb-4; }

/* Pauze bij verborgen tab (MOTION_SPEC 7) */
.hero-carrousel.is-paused .hero-foto {
  animation-play-state: paused;
}

/* Overlays: statisch, boven de foto's, onder de tekst */
.hero-overlay,
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay {
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(90, 16, 13, 0.50)  0%,
    rgba(90, 16, 13, 0.15) 16%,
    rgba(90, 16, 13, 0.00) 36%,
    rgba(90, 16, 13, 0.00) 52%,
    rgba(90, 16, 13, 0.45) 72%,
    rgba(90, 16, 13, 0.92) 100%
  );
}

.hero-scrim {
  z-index: 3;
  background: radial-gradient(
    ellipse 75% 62% at 50% 100%,
    rgba(90, 16, 13, 0.45) 0%,
    rgba(90, 16, 13, 0.00) 70%
  );
}

.slinger-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(120px, 16vw, 220px);
  z-index: 4;
  pointer-events: none;
}

.hero-titelblok {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(4.5rem, 12vh, 7rem) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(92vw, 56rem);
  text-align: center;
  z-index: 5;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--tekst-display-xl);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-datum {
  margin-top: var(--ruimte-2);
  font-family: var(--font-display);
  font-size: var(--tekst-subtitel);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.3;
  color: var(--kleur-wit-warm);
}

.hero-tagline {
  margin-top: var(--ruimte-3);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--tekst-tagline);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--kleur-wit-warm);
}

/* Scroll-hint (DESIGN_SPECS 3.1, INTERACTION_SPEC 7) */
.scroll-hint {
  position: absolute;
  bottom: calc(var(--ruimte-3) + env(safe-area-inset-bottom, 0px)); /* boven de home-indicator */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem; /* touch-target ruim boven 44x44 px */
  font-family: var(--font-sc);
  font-size: var(--tekst-hint);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: lowercase;
  color: var(--kleur-wit-warm);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--anim-micro) ease;
}

.scroll-hint .chevron {
  margin-top: var(--ruimte-1);
  stroke: var(--kleur-goud-titel);
}

.scroll-hint:focus-visible {
  outline: 3px solid var(--kleur-goud-titel);
  outline-offset: 3px;
  text-decoration-color: var(--kleur-goud-titel);
}
.scroll-hint:focus-visible .chevron {
  stroke: var(--kleur-wit-warm);
  transition: stroke var(--anim-micro) ease;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hint-wenk {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
  }
  .scroll-hint .chevron {
    animation: hint-wenk 2.6s var(--anim-ease-inuit) infinite;
  }
}

/* Mobiel: titelblok en scroll-hint zijn los onderaan verankerd en botsten op
   smalle, hoge schermen. De hint blijft nu op een regel en het titelblok krijgt
   meer ruimte eronder, zodat tagline en hint elkaar niet meer raken. */
@media (max-width: 600px) {
  .hero-titelblok {
    bottom: calc(clamp(7.5rem, 18vh, 10rem) + env(safe-area-inset-bottom, 0px));
  }
  .scroll-hint {
    white-space: nowrap;
    letter-spacing: 0.1em;
  }
}

/* ==========================================================================
   Felicitatie (DESIGN_SPECS 3.2)
   ========================================================================== */

#felicitatie {
  position: relative; /* ankervlak voor roosjes en stipjes */
  background: var(--kleur-rood);
  padding-top: var(--ruimte-sectie);
  padding-bottom: 0;
  padding-inline: var(--inzet-inline);
  text-align: center;
}

#felicitatie:focus {
  outline: none; /* programmatic focusdoel van de scroll-hint (tabindex=-1) */
}

.felicitatie-inhoud {
  max-width: var(--kolom-tekst);
  margin-inline: auto;
}

#felicitatie h2 {
  font-family: var(--font-display);
  font-size: var(--tekst-display-lg);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.felicitatie-inhoud p {
  margin-top: var(--ruimte-3);
  color: var(--kleur-wit-warm);
}

.namen {
  margin-top: var(--ruimte-4);
  list-style: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--tekst-namen);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 2.0;
  color: var(--kleur-wit-warm);
}

.sparkle-cluster {
  margin-top: var(--ruimte-3);
  margin-inline: auto;
  width: 100px;
  height: auto;
}

@media (min-width: 480px) {
  .sparkle-cluster {
    width: 120px;
  }
}

/* Roosjes (DESIGN_SPECS 4.4) */
.roos {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 0.9;
  pointer-events: none;
}

.roos-1 {
  top: var(--ruimte-5);
  left: 6%;
}

.roos-2 {
  bottom: calc(var(--ruimte-5) + 120px);
  right: 6%;
  transform: scaleX(-1); /* gespiegeld */
}

@media (min-width: 480px) {
  .roos {
    width: 48px;
    height: 48px;
  }
}

/* Gouden strooi-stipjes (DESIGN_SPECS 3.2 en 4.3) */
.stip {
  position: absolute;
  opacity: 0.55;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.stip-1 { left: 8%;  top: 18%; }
.stip-2 { left: 90%; top: 12%; }
.stip-3 { left: 14%; top: 64%; }
.stip-4 { left: 86%; top: 58%; }
.stip-5 { left: 22%; top: 88%; }
.stip-6 { left: 78%; top: 90%; }

@media (max-width: 479px) {
  .stip-5,
  .stip-6 {
    display: none;
  }
}

/* Slinger-divider type B (DESIGN_SPECS 4.2) */
.slinger-divider {
  display: block;
  width: calc(100% + 2 * var(--inzet-inline));
  margin-inline: calc(-1 * var(--inzet-inline));
  margin-top: var(--ruimte-6);
  margin-bottom: 0;
  height: clamp(80px, 9vw, 120px);
  pointer-events: none;
}

/* Gloed-puls in de lichtslingers (INTERACTION_SPEC 6) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes gloed-puls {
    0%, 100% { opacity: 0.08; }
    50%      { opacity: 0.13; }
  }
  .bol-gloed {
    animation: gloed-puls 6s var(--anim-ease-inuit) infinite;
  }
  .bol-gloed.gloed-v1 { animation-delay: 0s; }
  .bol-gloed.gloed-v2 { animation-delay: -1.3s; }
  .bol-gloed.gloed-v3 { animation-delay: -2.1s; }
  .bol-gloed.gloed-v4 { animation-delay: -3.4s; }
  .bol-gloed.gloed-v5 { animation-delay: -4.7s; }
}

/* ==========================================================================
   Cadeaukaarten (DESIGN_SPECS 3.3 en 3.5)
   ========================================================================== */

#diner {
  background: var(--kleur-creme);
  padding-top: var(--ruimte-sectie);
  padding-bottom: var(--ruimte-6);
  padding-inline: var(--inzet-inline);
}

#vaartocht {
  background: var(--kleur-creme);
  padding-top: var(--ruimte-6);
  padding-bottom: var(--ruimte-sectie);
  padding-inline: var(--inzet-inline);
}

.cadeau-kaart {
  max-width: var(--kolom-kaart);
  margin-inline: auto;
  background: var(--kleur-wit-warm);
  border-radius: var(--radius-kaart);
  border: 1px solid rgba(201, 160, 76, 0.4);
  box-shadow: var(--schaduw-kaart);
  padding: clamp(2rem, 1.25rem + 3.5vw, 3.5rem);
  text-align: center;
}

.kaart-icoon {
  width: 48px;
  height: 48px;
  margin-inline: auto;
}

@media (min-width: 480px) {
  .kaart-icoon {
    width: 56px;
    height: 56px;
  }
}

.kicker {
  margin-top: var(--ruimte-3);
  font-family: var(--font-sc);
  font-size: var(--tekst-kicker);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: lowercase; /* Alegreya SC zet zelf klein-kapitaal */
  color: var(--kleur-goud-donker);
}

.cadeau-kaart h2 {
  margin-top: var(--ruimte-1);
  font-family: var(--font-display);
  font-size: var(--tekst-display-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--kleur-inkt);
}

.kaart-intro {
  margin-top: var(--ruimte-3);
  color: var(--kleur-inkt);
}

/* Videoframe in de vaartocht-kaart (in stijl van het kaartvlak) */
.kaart-video {
  margin: var(--ruimte-4) 0 0;
  text-align: center;
}

.kaart-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(12px, 0.75rem + 0.3vw, 16px);
  border: 1px solid rgba(201, 160, 76, 0.4);
  box-shadow: 0 8px 24px rgba(58, 36, 34, 0.14);
  background: var(--kleur-inkt); /* voorkomt een lichte flits voor de poster laadt */
}

.video-bijschrift,
.kaart-beeld figcaption {
  margin-top: var(--ruimte-2);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--kleur-goud-donker);
}

/* Restaurantlogo als merkmerk in het diner-blok (getint naar de inktkleur) */
.restaurant-logo {
  display: block;
  width: clamp(160px, 52%, 240px);
  max-width: 100%;
  height: auto;
  margin: var(--ruimte-4) auto 0;
}

/* Gerechtfoto in een afgerond frame, in dezelfde stijl als de vaartocht-video */
.kaart-beeld {
  margin: var(--ruimte-3) 0 0;
  text-align: center;
}

.kaart-beeld picture {
  display: block;
  width: 100%;
}

.kaart-beeld img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(12px, 0.75rem + 0.3vw, 16px);
  border: 1px solid rgba(201, 160, 76, 0.4);
  box-shadow: 0 8px 24px rgba(58, 36, 34, 0.14);
  background: var(--kleur-inkt);
}

.kaart-lijst {
  margin-top: var(--ruimte-4);
  display: inline-block;
  text-align: left;
  max-width: 34rem;
  list-style: none;
  padding: 0;
  line-height: 1.6;
  color: var(--kleur-inkt);
}

.kaart-lijst li {
  position: relative;
  padding-left: 1.5rem;
}

.kaart-lijst li + li {
  margin-top: var(--ruimte-2);
}

.kaart-lijst li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--kleur-goud-donker);
  transform: rotate(45deg);
}

/* Knop (DESIGN_SPECS 3.6, INTERACTION_SPEC 4.1) */
.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: var(--ruimte-5);
  min-height: 48px;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-knop);
  background: var(--kleur-rood);
  color: var(--kleur-wit-warm);
  font-family: var(--font-ui);
  font-size: var(--tekst-knop);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--schaduw-knop);
  transition: background-color var(--anim-micro) ease,
              box-shadow var(--anim-micro) ease,
              transform var(--anim-micro) ease;
}

.knop svg {
  flex: none;
}

.knop:focus-visible {
  outline: 3px solid var(--kleur-goud-donker);
  outline-offset: 3px;
}

.knop:active {
  background: var(--kleur-rood-donker);
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(90, 16, 13, 0.35);
  transition-duration: var(--anim-pers);
}

/* Meerregelige knop bij 200% tekstzoom blijft leesbaar */
@media (max-width: 479px) {
  .knop {
    line-height: 1.3;
  }
}

/* Icoon-twinkle basis (INTERACTION_SPEC 5.2) */
.icoon-fonkel {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--anim-fonkel) var(--anim-ease-fonkel);
  transition-delay: 0ms; /* terugkeer altijd direct */
}

/* ==========================================================================
   Molen-divider (DESIGN_SPECS 3.4)
   ========================================================================== */

.molen-divider {
  background: var(--kleur-creme);
  padding-block: var(--ruimte-6);
  padding-inline: var(--inzet-inline);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-3);
}

.haarlijn {
  height: 1px;
  width: clamp(48px, 10vw, 96px);
  background: var(--kleur-goud);
}

.molen {
  height: 56px;
  width: auto;
}

@media (min-width: 768px) {
  .molen {
    height: 72px;
  }
}

/* ==========================================================================
   Footer (DESIGN_SPECS 3.7)
   ========================================================================== */

footer {
  background: linear-gradient(180deg, #D23B33 0%, #B22A26 100%);
  padding-block: var(--ruimte-7) var(--ruimte-6);
  padding-inline: var(--inzet-inline);
  text-align: center;
}

.footer-inhoud {
  max-width: 38rem;
  margin-inline: auto;
}

.footer-inhoud p + p {
  margin-top: var(--ruimte-2);
}

.kaart-echo {
  margin-top: var(--ruimte-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 2.5rem);
}

.footer-datum {
  font-family: var(--font-display);
  font-size: var(--tekst-datum-echo);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.3;
  color: var(--kleur-goud-titel); /* 4.76:1 op #B22A26, AA large */
}

.ringen {
  width: 56px;
  height: auto;
}

.auto {
  width: 72px;
  height: auto;
}

/* Verstopte verrassing: het autootje is een link, ziet er identiek uit */
.easter-egg {
  display: inline-flex;
  line-height: 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.easter-egg:focus-visible {
  outline: 3px solid var(--kleur-goud-titel);
  outline-offset: 4px;
}

/* Het autootje wiebelt af en toe even, zodat het net iets meer opvalt.
   Rust tussen de wiebels in, sneller bij hover/focus, uit bij reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes auto-wiebel {
    0%, 68%, 100% { transform: rotate(0deg); }
    72%           { transform: rotate(-4deg); }
    76%           { transform: rotate(3.2deg); }
    80%           { transform: rotate(-2.4deg); }
    85%           { transform: rotate(1.6deg); }
    90%           { transform: rotate(-0.9deg); }
    95%           { transform: rotate(0.4deg); }
  }
  .easter-egg .auto {
    transform-box: border-box;
    transform-origin: 50% 88%;   /* rockt op de wieltjes, niet om het midden */
    animation: auto-wiebel 5s var(--anim-ease-inuit) infinite;
  }
  .easter-egg:hover .auto,
  .easter-egg:focus-visible .auto {
    animation-duration: 1.6s;    /* levendiger zodra je hem aanraakt of focust */
  }
}

.auto-tekst {
  font-family: var(--font-body);
  font-style: italic;
}

@media (min-width: 768px) {
  .ringen { width: 72px; }
  .auto   { width: 96px; }
}

/* ==========================================================================
   Sectie-reveals (INTERACTION_SPEC 3)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* Beginstaat: alleen met JS aanwezig */
  html.js [data-reveal] [data-reveal-item] {
    opacity: 0;
    transform: translateY(var(--reveal-afstand));
  }

  /* Cadeaukaarten: het kaartvlak fadet als geheel, zonder transform */
  html.js [data-reveal] .cadeau-kaart {
    opacity: 0;
  }
  html.js [data-reveal] .cadeau-kaart [data-reveal-item] {
    transform: translateY(var(--reveal-afstand-kaart));
  }

  /* Eindstaat plus transitie */
  html.js [data-reveal].is-zichtbaar [data-reveal-item] {
    opacity: 1;
    transform: none;
    transition:
      opacity   var(--anim-reveal-duur) var(--anim-ease-uit),
      transform var(--anim-reveal-duur) var(--anim-ease-uit);
    transition-delay: calc(var(--rv, 0) * var(--anim-stagger));
  }
  html.js [data-reveal].is-zichtbaar .cadeau-kaart {
    opacity: 1;
    transition: opacity 500ms var(--anim-ease-uit);
  }

  /* Binnen een kaart: basisvertraging 120 ms na het kaartvlak */
  html.js [data-reveal].is-zichtbaar .cadeau-kaart [data-reveal-item] {
    transition-delay: calc(120ms + var(--rv, 0) * var(--anim-stagger));
  }
}

/* ==========================================================================
   Hover-states (alleen op hover-apparaten, INTERACTION_SPEC 8)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  .knop:hover {
    background: var(--kleur-rood-donker); /* 6.13:1 */
    box-shadow: var(--schaduw-knop-hover);
    transform: translateY(-1px);
  }

  .scroll-hint:hover {
    text-decoration-color: var(--kleur-goud-titel);
  }
  .scroll-hint:hover .chevron {
    stroke: var(--kleur-wit-warm);
    transition: stroke var(--anim-micro) ease;
  }

  .cadeau-kaart {
    transition: border-color var(--anim-fonkel) ease;
  }
  .cadeau-kaart:hover {
    border-color: rgba(201, 160, 76, 0.65); /* haarlijn licht op vanaf 0.4 */
  }

  @media (prefers-reduced-motion: no-preference) {
    .cadeau-kaart:hover .icoon-fonkel                 { transform: scale(1.15); }
    .cadeau-kaart:hover .icoon-fonkel:nth-of-type(2)  { transition-delay: 40ms; }
    .cadeau-kaart:hover .icoon-fonkel:nth-of-type(3)  { transition-delay: 80ms; }
  }
}

/* ==========================================================================
   prefers-reduced-motion: reduce (MOTION_SPEC 6, INTERACTION_SPEC 9.2)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  /* Statische hero: IMG_0612, niets beweegt */
  .hero-foto,
  .hero-foto.is-active,
  .hero-foto.is-prev {
    animation: none;
    transition: none;
    transform: none;
    will-change: auto;
    opacity: 0;
  }
  .hero-foto.hero-foto-4 {
    opacity: 1;
    z-index: 2;
  }

  /* Knop: kleur en schaduw mogen, beweging niet */
  .knop,
  .knop:hover,
  .knop:active {
    transform: none;
  }
}

/* ==========================================================================
   Print: reveals kennen geen scroll, dus alle content direct zichtbaar
   ========================================================================== */

@media print {
  html.js [data-reveal] [data-reveal-item],
  html.js [data-reveal] .cadeau-kaart {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
