/* =========================================================
   Greenleaf LTD — how-it-works.css
   Pairs with includes/how-it-works.html.
   ========================================================= */

.how-it-works {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px;
}

.how-heading {
  max-width: 560px;
  margin-bottom: 56px;
}

.how-heading h2 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy-900);
}

.how-heading p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #3B4668;
}

/* --- Steps --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
}

.step h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-900);
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4A5478;
  max-width: 260px;
}

@media (max-width: 860px) {
  .steps {
    flex-direction: column;
    gap: 36px;
  }

  .steps::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .step { padding-left: 64px; }

  .step-num {
    position: absolute;
    left: 0;
    top: 0;
    margin-bottom: 0;
  }

  .step p { max-width: 100%; }
}
