/* JM Logic – animatie-CSS (hoort bij animaties.js).
   Regel: alles hieronder werkt ALLEEN als animaties.js een klasse op <html> heeft gezet.
   Zonder JavaScript, bij een fout of bij "beweging verminderen" verandert er dus niets aan de site.
   Klassen op <html> (gezet door animaties.js):
     js-anim     animaties draaien
     anim-glans  effect 6: glans over het gouden label
     anim-licht  effect 9: bewegend licht achter de hero
     anim-lijnen effect 4: gouden lijnen tekenen zich
     anim-lift   effect 8: kaarten tillen op bij hover */

/* ---------- Algemeen ---------- */
html.lenis { scroll-behavior: auto; } /* Lenis doet het vloeiend scrollen, dan niet ook nog de browser */
html.js-anim .plan { transition: border-color var(--ease); } /* geen CSS-transitie op transform: GSAP doet die */
html.anim-lift .plan:not(.plan-featured):hover { transform: none; }

/* ---------- 2. Wisselend woord in de hero ---------- */
.hero-kanalen { margin: 0 0 var(--s3); }
.hero-kanalen .wissel { color: var(--gold-text); }
.wissel-anim { display: inline-block; overflow: clip; vertical-align: bottom; white-space: nowrap; padding-bottom: .15em; }
.wissel-woord { display: inline-block; border-bottom: 1px solid var(--gold); }

/* ---------- 4. Gouden haarlijnen ---------- */
html.anim-lijnen .eyebrow::before,
html.anim-lijnen .plan h3::after { transform: scaleX(var(--lijn, 1)); transform-origin: left center; }

/* ---------- 5. Voorbeeldgesprek: typ-indicator ---------- */
html.js-anim .hero-card { position: relative; }
.mini-typing { position: absolute; margin: 0; opacity: 0; pointer-events: none; }

/* ---------- 6. Glans (CSS-only, "Shiny Text") ---------- */
html.anim-glans { --glans: #a07c3e; }
@media not all /* donker uit (2026-11-18): site altijd licht */ { html.anim-glans { --glans: #f6e7c4; } }
html.anim-glans .plan-tag { position: relative; overflow: hidden; }
html.anim-glans .plan-tag::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  transform: translateX(-110%); animation: anim-glans 7s ease-in-out 2s infinite;
}
html.anim-glans .hero .eyebrow {
  background: linear-gradient(100deg, var(--gold-text) 42%, var(--glans) 50%, var(--gold-text) 58%) 100% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: anim-glans-tekst 7s ease-in-out 2.5s infinite;
}
@keyframes anim-glans { 0% { transform: translateX(-110%); } 25%, 100% { transform: translateX(110%); } }
@keyframes anim-glans-tekst { 0% { background-position: 100% 0; } 25%, 100% { background-position: 0 0; } }
@media (forced-colors: active) { html.anim-glans .hero .eyebrow { background: none; color: CanvasText; } }

/* ---------- 9. Bewegend licht achter de hero (pauzeert buiten beeld) ---------- */
html.anim-licht .hero { position: relative; isolation: isolate; overflow: clip; }
html.anim-licht .hero::before {
  content: ""; position: absolute; inset: -25% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34rem 24rem at 22% 30%, rgba(176, 141, 85, .09), transparent 70%),
    radial-gradient(28rem 20rem at 78% 70%, rgba(176, 141, 85, .07), transparent 70%);
  animation: anim-licht 26s ease-in-out infinite alternate;
}
html.anim-licht .hero.is-stil::before { animation-play-state: paused; }
@keyframes anim-licht {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.08); }
}

/* ---------- Veiligheid ---------- */
/* Afdrukken: nooit iets onzichtbaar laten door een animatie die nog niet gestart is. */
@media print {
  html.js-anim [data-reveal], html.js-anim [data-reveal-groep] > *, html.js-anim .hero-copy > *,
  html.js-anim .hero-card, html.js-anim .mini-chat li {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .mini-typing { display: none; }
}
/* Beweging verminderen: animaties.js start dan niet, dit is een extra vangnet voor de CSS-effecten. */
@media (prefers-reduced-motion: reduce) {
  html.anim-glans .plan-tag::after, html.anim-licht .hero::before { animation: none; display: none; }
  html.anim-glans .hero .eyebrow { animation: none; background: none; color: var(--gold-text); }
}
