/* =========================================================
   ZO WERKT HET: kaarten die bij het scrollen naar voren draaien
   Zonder JavaScript of met "minder beweging" (.is-static): vier
   gewone kaarten. how-steps.js haalt .is-static weg.
   ========================================================= */

.how-steps { position: relative; height: 420vh; }
.how-steps__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.how-steps__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 30px; flex-wrap: wrap; margin-bottom: 28px; }
.how-steps__head h2 { font-size: 34px; color: #1F2328; margin-top: 12px; }
.how-steps__head p { max-width: 420px; margin: 0; color: #444B54; line-height: 1.65; }
.how-steps__stage { position: relative; height: min(52vh, 400px); perspective: 1400px; }

.how-step {
  position: absolute; left: 50%; top: 0; width: min(380px, 78vw); height: 100%; margin-left: calc(min(380px, 78vw) / -2);
  display: flex; flex-direction: column; padding: 26px; border: 1px solid #DADCE0; border-radius: 22px; background: #ffffff;
  box-shadow: 0 18px 50px rgba(16, 35, 70, 0.10); transform-style: preserve-3d; will-change: transform, opacity;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.how-step.is-active { border-color: #1055C8; box-shadow: 0 22px 60px rgba(16, 85, 200, 0.20); }
.how-step__top { display: flex; justify-content: space-between; align-items: flex-start; }
.how-step__num::before { content: attr(data-num); font-family: "Space Grotesk", sans-serif; font-size: 64px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.6px rgba(16, 85, 200, 0.55); }
/* Kaarten opzij worden vager met een witte laag eroverheen, niet met doorzichtige tekst. */
.how-step::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: #ffffff; opacity: var(--how-fade, 0); pointer-events: none; }
.how-step__icon { width: 46px; height: 46px; color: #1055C8; }
.how-step__body { margin-top: auto; }
.how-step__label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #1055C8; }
.how-step h3 { font-size: 22px; color: #1F2328; margin-top: 8px; }
.how-step p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: #444B54; }

.how-steps__timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; padding-top: 4px; }
.how-steps__track, .how-steps__fill { position: absolute; top: 11px; left: 12.5%; height: 3px; border-radius: 3px; }
.how-steps__track { right: 12.5%; background: #E3E8EF; }
.how-steps__fill { width: 0; background: #1055C8; }
.how-steps__dot { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #5F6368; text-align: center; }
.how-steps__dot i { position: relative; width: 17px; height: 17px; border-radius: 50%; background: #ffffff; border: 3px solid #C9D2DE; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.how-steps__dot.is-done { color: #1F2328; }
.how-steps__dot.is-done i { background: #1055C8; border-color: #1055C8; }
.how-steps__dot.is-active i { transform: scale(1.25); }

.how-steps.is-static { height: auto; padding: 96px 0; }
.how-steps.is-static .how-steps__sticky { position: static; height: auto; overflow: visible; }
.how-steps.is-static .how-steps__stage { height: auto; perspective: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.how-steps.is-static .how-step { position: relative; left: auto; top: auto; width: auto; height: auto; min-height: 260px; margin: 0; transform: none !important; opacity: 1 !important; }
.how-steps.is-static .how-steps__timeline { display: none; }

@media (max-width: 960px) {
  .how-steps.is-static .how-steps__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  /* Ruimte voor de mobiele balk onderin (Bellen, WhatsApp, Reserveren). */
  .how-steps__sticky { padding-top: 12px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .how-steps__head { margin-bottom: 16px; }
  .how-steps__head p { display: none; }
  .how-steps.is-static .how-steps__head p { display: block; }
  .how-steps__timeline { margin-top: 22px; }
  .how-steps__head h2 { font-size: 28px; }
  .how-steps__head p { font-size: 14.5px; }
  .how-steps__stage { height: min(46vh, 340px); }
  .how-step { padding: 22px; }
  .how-step__num::before { font-size: 52px; }
  .how-step h3 { font-size: 20px; }
  .how-step p { font-size: 14.5px; }
  .how-steps__dot { font-size: 11px; }
  .how-steps.is-static { padding: 64px 0; }
  .how-steps.is-static .how-steps__sticky { padding: 0; }
  .how-steps.is-static .how-steps__stage { grid-template-columns: 1fr; }
  .how-steps.is-static .how-step { min-height: 0; }
  .how-steps.is-static .how-step__body { margin-top: 24px; }
}
