/* =========================
   HOW IT WORKS
========================= */

.how-section {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px clamp(24px, 5vw, 72px) 100px;
}

.how-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.how-container .section-title {
  margin: 0 0 30px;
  font-family: "Hammersmith One", sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  color: #184e83;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.2px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  position: relative;
  min-height: 156px;
  padding: 28px 20px 24px;
  border-radius: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(24, 78, 131, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(24, 78, 131, 0.16);
}

.step-card::before {
  content: "";
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 185, 212, 0.18), rgba(47, 157, 222, 0.22));
  color: #184e83;
  font-family: "Hammersmith One", sans-serif;
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(47, 157, 222, 0.08);
}

.step-card:nth-child(1)::before { content: "1"; }
.step-card:nth-child(2)::before { content: "2"; }
.step-card:nth-child(3)::before { content: "3"; }
.step-card:nth-child(4)::before { content: "4"; }

.step-card h3 {
  margin: 0 0 10px;
  font-family: "Hammersmith One", sans-serif;
  font-size: 24px;
  color: #184e83;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: #2f5d92;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .how-section {
    padding: 62px 18px 74px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    min-height: 128px;
  }
}

/* accessibility / performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}