/* Home page How It Works section. Scoped to .how-section. */
.how-section {
  --teal: #0B3937;
  --gold: #E6BD7A;
  --mint: #A5DDD4;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  font-family: var(--font-body);
  background: var(--teal); color: #fff;
  padding: 80px 0;
}
.how-section *, .how-section *::before, .how-section *::after { box-sizing: border-box; }
.how-section .container { max-width: 1240px; padding: 0 28px; }

.how-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.how-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em;
  margin: 0 0 12px;
}
.how-head p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 1.05rem; }

.how-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
/* connecting line behind the numbers */
.how-steps::before { content: ""; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, rgba(165, 221, 212, .45) 0 8px, transparent 8px 16px); }

.how-step { position: relative; text-align: center; padding: 0 8px; }
.how-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--gold); color: var(--teal);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 0 8px var(--teal);
}
.how-step h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -.01em; }
.how-step p { margin: 0; font-size: .92rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }

.how-cta { text-align: center; margin-top: 48px; }
.how-cta .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  background: var(--gold); color: var(--teal);
  font: 700 1rem/1 var(--font-body); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.how-cta .btn:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.how-cta .btn:active { transform: translateY(1px); }
.how-cta .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.how-section :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 800px) {
  .how-section { padding: 56px 0; }
  .how-section .container { padding: 0 16px; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .how-steps::before { display: none; }
  .how-step h3 { font-size: 1.05rem; }
  .how-step p { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) { .how-cta .btn { transition: none; } }

.how-steps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-steps.cols-3::before { left: 16.6%; right: 16.6%; }
@media (max-width: 1000px) { .how-steps.cols-3 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
