/* =====================================================================
   Ontwerp & beweging
   Laag over site.css: strakkere vormen, eigen kopjes en het terugkerende
   thema "glinstering van de steentjes uit het logo".
   Alle beweging staat uit bij "minder beweging" (prefers-reduced-motion).
   ===================================================================== */
:root {
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hair: rgba(59, 35, 48, .14);
}

/* ---------- Kopjes: label in kleine hoofdletters met fijn lijntje ---------- */
.eyebrow, .overline {
  font-family: var(--body); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rose); display: inline-flex; align-items: center; gap: 12px; line-height: 1.2; margin: 0 0 4px;
}
.eyebrow::before, .overline::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }
h2, .section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -.005em; }
.section-head { gap: 14px; margin-bottom: 48px; }
.section-head p { font-size: 1.04rem; max-width: 52ch; }

/* ---------- Knoppen: strakker, met een glans bij aanwijzen ---------- */
.btn { border-radius: var(--radius); position: relative; overflow: hidden; isolation: isolate; letter-spacing: .01em;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s, color .3s; }
.btn--primary { box-shadow: none; }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -16px rgba(176, 58, 110, .65); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; border: 1px solid var(--hair); color: var(--ink); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.text-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.text-link:hover { background-size: 100% 1px; }

/* ---------- Menu: compacter met schaduw zodra je scrolt ---------- */
.nav { border-bottom-color: transparent; transition: box-shadow .35s, border-color .35s, background .35s; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 12px 30px -24px rgba(59, 35, 48, .45); background: rgba(255, 255, 255, .97); }
.nav-links a { border-bottom: 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--rose);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero-copy h1 .overline { display: flex; width: fit-content; margin: 0 0 18px; }
.hero { position: relative; overflow: hidden; }
.hero-copy { gap: 20px; }
.rating { background: none; padding: 0; border-radius: 0; gap: 10px; color: var(--muted); }
.rating strong { font-size: 1.5rem; }
.rating:hover span:last-child { color: var(--ink); }

/* Logo met glans: de lichtstreep valt alleen over de letters (masker = het logo zelf) */
.logo-shine { position: relative; width: 100%; }
.logo-shine img { position: relative; width: 100%; }
.glint { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 44%, rgba(255, 255, 255, .55) 47.5%, #fff 50%, rgba(255, 255, 255, .55) 52.5%, transparent 56% 100%);
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: url(/img/logo.webp) center / 100% 100% no-repeat; mask: url(/img/logo.webp) center / 100% 100% no-repeat;
  opacity: .9; }
/* Fonkelingen: vierpuntige sterretjes die kort oplichten boven de steentjes */
.twinkle { position: absolute; left: var(--x); top: var(--y); width: clamp(16px, 3vw, 28px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(236, 157, 192, .95)) drop-shadow(0 0 14px rgba(176, 58, 110, .45)); }
.twinkle::before { content: ""; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }

/* ---------- Doorlopende band met pluspunten ---------- */
.usp { overflow: hidden; }
.marquee { display: flex; width: max-content; }
.usp .marquee-track { list-style: none; margin: 0; padding: 17px 0; display: flex; flex-direction: row; align-items: baseline;
  justify-content: flex-start; gap: 34px; padding-right: 34px; flex-shrink: 0; text-align: left; }
.marquee-track li { display: flex; gap: 10px; align-items: baseline; white-space: nowrap; flex-wrap: nowrap; }
.marquee-track .sep { width: 7px; height: 7px; align-self: center; background: var(--rose-dark); opacity: .55; transform: rotate(45deg); border-radius: 1px; }

/* ---------- Prijslijst: tabs met glijdend streepje ---------- */
.tabs { position: relative; gap: 4px 30px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hair); margin-bottom: 36px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { background: none; border: 0; border-radius: 0; padding: 12px 0; color: var(--muted); font-size: 1rem; white-space: nowrap; flex-shrink: 0; }
.tabs .tab:hover { color: var(--ink); }
.tabs .tab[aria-selected="true"] { background: none; color: var(--ink); }
.tab-indicator { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--rose); pointer-events: none;
  transition: transform .5s var(--ease), width .5s var(--ease); }
.gallery-filters .tab { border-radius: var(--radius); }
.menu-card { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--line); }
.menu-list li { position: relative; isolation: isolate; }
.menu-list li::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; border-radius: 8px; background: var(--blush);
  opacity: 0; transform: scaleX(.96); transition: opacity .3s, transform .4s var(--ease); }
.menu-list li:hover::before { opacity: 1; transform: none; }
.item-name { transition: color .3s; }
.menu-list li:hover .item-name { color: var(--rose-dark); }
.pill { border-radius: 4px; }

/* ---------- Links naar behandelingspagina's ---------- */
.treatment-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hair); }
.treatment-links > span { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.treatment-links a { font-family: var(--display); font-size: 1.15rem; color: var(--ink); text-decoration: none; transition: color .3s; }
.treatment-links a span { display: inline-block; color: var(--rose); transition: transform .35s var(--ease); }
.treatment-links a:hover { color: var(--rose-dark); }
.treatment-links a:hover span { transform: translateX(4px); }
.more-treatments { font-size: .95rem; }

/* ---------- Over Elise ---------- */
.about-photo { border-radius: var(--radius); }
.about-photo img { transition: transform 1.2s var(--ease); }
.about-photo:hover img { transform: scale(1.03); }

/* ---------- Galerij ---------- */
.gallery--teaser { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.gallery figure { border-radius: var(--radius); }
.gallery img { transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:has(figcaption)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(transparent 55%, rgba(59, 35, 48, .55)); }
.gallery figcaption { z-index: 1; left: 16px; bottom: 14px; }
.gallery figcaption span { background: none; padding: 0; color: #fff; font-family: var(--display); font-size: 1.05rem; }
@media (max-width: 760px) { .gallery--teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Reviews: grote quote + doorlopende rij ---------- */
.review, .faq details, .card, .review-form, .rules, .tip, .steps li, .benefits li, .rules-page div { border-radius: var(--radius); }
.review-lead { margin: 0 0 44px; max-width: 920px; display: grid; gap: 18px; }
.review-lead blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.38; color: var(--ink); white-space: normal; max-width: 34em; }
.review-lead blockquote::before { content: "\201C"; display: block; font-size: 3.2em; line-height: .8; height: .42em; color: var(--fill-hover); }
.review-lead figcaption { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.review-lead figcaption b { color: var(--ink); font-weight: 600; }
.review-rail { display: flex; overflow: hidden; padding-block: 4px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.review-track { display: flex; gap: 20px; padding-right: 20px; flex-shrink: 0; }
.review--rail { width: 320px; flex-shrink: 0; margin: 0; align-content: space-between; }
.review--rail blockquote::before { display: none; }
.review--rail blockquote { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Vragen, kaarten ---------- */
.faq details { transition: border-color .3s, box-shadow .3s; }
.faq summary { transition: color .3s; }
.faq summary:hover { color: var(--rose-dark); }

/* =====================================================================
   Beweging (alleen als de bezoeker geen "minder beweging" heeft ingesteld)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Binnenkomst bovenaan: regels schuiven één voor één omhoog */
  .hero-copy > *, .hero-line, .page-head .wrap > * { animation: rise .9s var(--ease) both; }
  .hero-copy h1 .overline { animation: rise .9s var(--ease) .05s both; }
  .hero-line:nth-child(1) { animation-delay: .15s; }
  .hero-line:nth-child(2) { animation-delay: .3s; }
  .hero-copy > p { animation-delay: .45s; }
  .hero-copy > .hero-actions { animation-delay: .58s; }
  .hero-copy > .rating { animation-delay: .7s; }
  .hero-copy > h1 { animation: none; }
  .page-head .wrap > :nth-child(2) { animation-delay: .1s; }
  .page-head .wrap > :nth-child(3) { animation-delay: .2s; }
  .page-head .wrap > :nth-child(4) { animation-delay: .3s; }
  .logo-shine { animation: logo-in 1.4s var(--ease) .1s both; }
  .hero-art::before { animation: breathe 9s ease-in-out infinite alternate; }

  /* Glans over het logo en fonkelende steentjes */
  .glint { animation: glint 7s var(--ease) 1.4s infinite; }
  .twinkle { animation: twinkle 5s ease-in-out var(--d) infinite; }

  /* Doorlopende band en reviewrij; stil bij aanwijzen */
  .marquee { animation: marquee 42s linear infinite; }
  .usp:hover .marquee { animation-play-state: paused; }
  .review-track { animation: rail 80s linear infinite; }
  .review-rail:hover .review-track, .review-rail:focus-within .review-track { animation-play-state: paused; }

  /* Wisselen van categorie in de prijslijst */
  .panel:not([hidden]) .menu-list li { animation: rise .55s var(--ease) both; }
  .panel:not([hidden]) .menu-list li:nth-child(2) { animation-delay: .05s; }
  .panel:not([hidden]) .menu-list li:nth-child(3) { animation-delay: .1s; }
  .panel:not([hidden]) .menu-list li:nth-child(4) { animation-delay: .15s; }
  .panel:not([hidden]) .menu-list li:nth-child(5) { animation-delay: .2s; }
  .panel:not([hidden]) .menu-list li:nth-child(n+6) { animation-delay: .25s; }

  /* Inschuiven bij scrollen (alleen met JavaScript, zie site.js) */
  html.js [data-reveal] { opacity: 0; transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Zonder beweging: band en reviewrij gewoon netjes stil */
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; justify-content: center; }
  .usp .marquee-track { flex-wrap: wrap; justify-content: center; padding-inline: 20px; row-gap: 8px; }
  .marquee-track[aria-hidden="true"], .review-track[aria-hidden="true"] { display: none; }
  .review-rail { overflow-x: auto; -webkit-mask: none; mask: none; }
  .twinkle, .glint { display: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes logo-in { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes breathe { from { transform: scale(1); opacity: .85; } to { transform: scale(1.08); opacity: 1; } }
@keyframes glint { 0% { background-position: 150% 0; } 30%, 100% { background-position: -50% 0; } }
@keyframes twinkle {
  0%, 72%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  82% { transform: translate(-50%, -50%) scale(1) rotate(45deg); opacity: 1; }
  92% { transform: translate(-50%, -50%) scale(.35) rotate(90deg); opacity: .5; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rail { to { transform: translateX(-100%); } }
