/*
 * Steps section ("Your Four-Step Path") — production styles. Literal
 * values only (this section's own needs), not the full design-token
 * contract. Values sourced from booth-repo 04-docs/wordpress/
 * home-page-figma-build-and-migration/Uk-site-design-tokens.md,
 * cross-checked against live Elementor JSON (post 2086, container
 * 46e8cf3d).
 *
 * The card-overlap effect is pure CSS `position: sticky` — no JS. Each
 * card shares the same sticky offset (110px) in normal flow, so each one
 * slides up and covers the previous as the page scrolls. Desktop only
 * (min-width: 1025px) — matches live `sticky_on: ["desktop"]`.
 */

#steps.steps { box-sizing: border-box; }
#steps.steps *,
#steps.steps *::before,
#steps.steps *::after { box-sizing: border-box; }

#steps.steps {
  background: #dce5ea; /* --color-wash */
  padding: 100px 120px; /* --header-pad */
  font-family: "Poppins", sans-serif;
  color: #222222; /* --color-ink */
}

#steps .steps-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

/* --- intro column --- */

#steps .steps-intro {
  flex: 0 0 40%;
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 210px; /* live: sticky_offset 210, desktop only */
}

#steps .steps-intro__title {
  margin: 0;
  max-width: 328px; /* live _element_custom_width */
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 38px;
  letter-spacing: -1px;
  color: #006bce; /* --color-blue */
}

#steps .steps-intro__body {
  margin: 0;
  max-width: 558px; /* live _element_custom_width */
  font-size: 16px;
  line-height: 27px;
}

#steps .steps-intro__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 30px;
  border-radius: 100px; /* radius/pill */
  background: #006bce; /* --color-blue */
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 27px;
  text-decoration: none;
  white-space: nowrap;
  width: fit-content;
}
#steps .steps-intro__cta:hover { background: #0051b5; } /* --color-blue-hover */

/* --- card stack --- */

#steps .steps-grid {
  flex: 1 1 60%;
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 30px; /* live desktop value */
}

#steps .step-card {
  position: sticky;
  top: 110px; /* live: sticky_offset 110, desktop only */
  min-height: 355px; /* live: all 4 cards render at a fixed 355px regardless of copy length — without this, shorter copy leaves the previous card peeking during the sticky release */
  padding: 36px 48px;
  border-radius: 20px 20px 40px 20px; /* radius/card-cut */
  background: linear-gradient(160deg, #006bce 0%, #006bce 33%, #222222 100%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* live alpha 0.5 */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#steps .step-card__number-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#steps .step-card__num {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 38px;
}
#steps .step-card__rule {
  width: 54px;
  height: 2px;
  background: #ffffff;
}

#steps .step-card__title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
}

#steps .step-card__body {
  margin: 0;
  font-size: 16px;
  line-height: 27px;
  color: rgba(255, 255, 255, 0.85); /* live #FFFFFFD9 */
}

/* Tablet / mobile: up to 1024, one breakpoint covers both (site convention) */

@media (max-width: 1024px) {
  #steps.steps { padding: 70px 20px; }

  #steps .steps-layout {
    flex-direction: column;
    gap: 20px;
  }

  #steps .steps-intro,
  #steps .step-card {
    position: static; /* sticky is desktop-only on live */
  }

  #steps .steps-intro,
  #steps .steps-grid {
    width: 100%;
    flex: 1 1 auto;
  }

  #steps .steps-grid { gap: 20px; } /* live tablet/mobile value */
}
