/* ==========================================================================
   "Hoe werkt Phil" - losse componentstijl voor de draft-pagina.
   Bouwt volledig voort op de design tokens uit styles.css (kleuren, fonts,
   knoppen, kaart-radius). Bedoeld om later 1-op-1 overgezet te worden naar
   de homepage: alles staat hieronder in dit eigen bestand, niets hiervan
   raakt de bestaande site-stijl.
   ========================================================================== */

.draft-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.draft-banner strong {
  color: #ffd166;
}

.hiw-section {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
}

.hiw-intro {
  max-width: 640px;
  margin: 0 auto 88px;
  text-align: center;
}

.hiw-intro h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.hiw-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.hiw-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-border) 4%,
    var(--color-border) 96%,
    transparent 100%
  );
  z-index: 0;
}

.hiw-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-blue), var(--color-whatsapp));
  transition: height 0.2s ease-out;
}

.hiw-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hiw-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hiw-step:last-child {
  margin-bottom: 0;
}

.hiw-step-media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hiw-step-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hiw-step-card {
  position: relative;
  background: var(--color-navy-2);
  color: var(--color-white);
  border-radius: var(--radius-l);
  padding: 40px;
}

.hiw-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.hiw-step-card h3 {
  color: var(--color-white);
  text-transform: none;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.hiw-step-card p {
  color: #c7d4da;
  margin-bottom: 0;
}

/* Dot on the center line, aligned with each step */
.hiw-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-blue);
  z-index: 2;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.hiw-step.is-visible::before {
  border-color: var(--color-whatsapp);
  transform: translate(-50%, -50%) scale(1.15);
}

/* Alternate sides: odd steps = card left / media right, even = reversed */
.hiw-step:nth-child(even) .hiw-step-card {
  order: 2;
}

.hiw-step:nth-child(even) .hiw-step-media {
  order: 1;
}

.hiw-final {
  text-align: center;
  margin-top: 80px;
}

.hiw-final .btn {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .hiw-line {
    left: 24px;
    transform: none;
  }

  .hiw-step {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 56px;
  }

  .hiw-step:nth-child(even) .hiw-step-card,
  .hiw-step:nth-child(even) .hiw-step-media {
    order: initial;
  }

  .hiw-step::before {
    left: 24px;
    top: 46px;
  }

  .hiw-step-card {
    padding: 28px;
  }

  .hiw-step-media img {
    height: 220px;
  }
}
