/* ── Timeline / How It Works ─────────────────────────────── */

.sh-timeline {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.sh-timeline-container {
  width: 100%;
  max-width: 1360px;
  background: #f7f7f7;
  border-radius: 50px 50px 10px 10px;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sh-timeline-heading {
  font-family: var(--font-nexa-heavy), sans-serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  color: #231f20;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0 0 48px;
}

/* ── Progress dots row ──────────────────────────────────── */

.sh-timeline-progress {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
}

.sh-timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ddd;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-nexa-heavy), sans-serif;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sh-timeline-dot--active {
  background: linear-gradient(135deg, #009b8c, #00b686);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 155, 140, 0.3);
  transform: scale(1.05);
}

.sh-timeline-segment {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #ddd;
  position: relative;
  overflow: hidden;
}

.sh-timeline-segment::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #009b8c, #00b686, #82c566);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sh-timeline-segment--active::after {
  transform: scaleX(1);
}

/* ── Step cards grid ────────────────────────────────────── */

.sh-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.sh-timeline-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(52px) scale(0.96);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.sh-timeline-card--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sh-timeline-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ── Card image ─────────────────────────────────────────── */

.sh-timeline-card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #eef8f7 0%, #f5faf9 50%, #f0f0f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.sh-timeline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sh-timeline-card:hover .sh-timeline-card-img img {
  transform: scale(1.06);
}

/* ── Card body ──────────────────────────────────────────── */

.sh-timeline-card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sh-timeline-card-title {
  font-family: var(--font-nexa-heavy), sans-serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: #231f20;
  text-transform: uppercase;
  margin: 0;
}

.sh-timeline-card-desc {
  font-family: var(--font-deuterium), sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #666;
  margin: 0;
}

/* ── CTA button ─────────────────────────────────────────── */

.sh-timeline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border: 1px solid #231f20;
  border-radius: 50px;
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
  margin-top: 48px;
  transition: background-color 0.25s, color 0.25s;
}

.sh-timeline-cta:hover {
  background-color: #231f20;
}

.sh-timeline-cta:hover .sh-timeline-cta-text {
  color: #fff;
}

.sh-timeline-cta-text {
  font-family: var(--font-deuterium), sans-serif;
  font-size: 16px;
  line-height: 16px;
  color: #231f20;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.25s;
}

.sh-timeline-footnote {
  font-family: var(--font-inter), sans-serif;
  font-size: 13px;
  color: #999;
  margin-top: 16px;
  text-align: center;
}

/* ── Responsive: Tablet ─────────────────────────────────── */

@media (max-width: 1200px) {
  .sh-timeline-container {
    padding: 64px 40px;
  }

  .sh-timeline-heading {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .sh-timeline-progress {
    margin-bottom: 32px;
  }

  .sh-timeline-dot {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .sh-timeline-grid {
    gap: 16px;
  }

  .sh-timeline-card {
    border-radius: 16px;
  }

  .sh-timeline-card-img {
    padding: 20px;
  }

  .sh-timeline-card-body {
    padding: 16px 16px 20px;
  }

  .sh-timeline-card-desc {
    font-size: 13px;
  }
}

/* ── Responsive: Mobile ─────────────────────────────────── */

@media (max-width: 809px) {
  .sh-timeline {
    padding: 0 16px;
  }

  .sh-timeline-container {
    border-radius: 30px 30px 10px 10px;
    padding: 48px 20px;
  }

  .sh-timeline-heading {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .sh-timeline-progress {
    margin-bottom: 24px;
  }

  .sh-timeline-dot {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .sh-timeline-segment {
    height: 2px;
  }

  .sh-timeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .sh-timeline-card {
    border-radius: 16px;
  }

  .sh-timeline-card-img {
    padding: 16px;
    aspect-ratio: 1;
  }

  .sh-timeline-card-body {
    padding: 14px 14px 18px;
    gap: 6px;
  }

  .sh-timeline-card-title {
    font-size: 14px;
  }

  .sh-timeline-card-desc {
    font-size: 12px;
  }

  .sh-timeline-cta {
    padding: 14px 36px;
    margin-top: 32px;
  }

  .sh-timeline-cta-text {
    font-size: 15px;
  }
}
