{%- import '../../css/variable/_variables.css' -%}

{# =============================================
   How It Works Section — RoamGuard Theme
   Node: 15695-1673
   Alternating image/text rows — 3 steps
   Mobile-first: base → mobilept → md → lg → xl
   ============================================= #}

{# ── Annotation-driven padding utilities ── #}
.py-lg-130   { padding-top: 80px; padding-bottom: 80px; }
.py-md-80    { padding-top: 80px; padding-bottom: 80px; }
.mobilemy-60 { padding-top: 60px; padding-bottom: 60px; }
.py-md-25    { padding-top: 20px; padding-bottom: 20px; }
.pt-10  { padding-top: 10px; }
.pt-25  { padding-top: 25px; }


{# ══════════════════════════════════════════════
   SECTION HEADING + INTRO
   ══════════════════════════════════════════════ #}
.hiw-section__heading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 48px;
}

.hiw-section__heading {
  width: 100%;
}

.hiw-section__heading h2 {
  color: ;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.hiw-section__intro {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hiw-section__intro p {
  color: #616161;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}


{# ══════════════════════════════════════════════
   STEPS WRAPPER
   ══════════════════════════════════════════════ #}
.hiw-section__steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}


{# ══════════════════════════════════════════════
   SINGLE STEP ROW
   annotation: .row .py-md-25
   annotation reversed: .direction-md-row-reverse
   ══════════════════════════════════════════════ #}
.hiw-section__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
}

{# ── Image column ── #}
.hiw-section__step-img-col {
  width: 100%;
  flex-shrink: 0;
}

.hiw-section__step-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  height: 260px;
}

.hiw-section__step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

{# ── Content column ── #}
.hiw-section__step-content-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

{# Step number — H6 semibold, dark green #}
.hiw-section__step-number {
  color: ;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
}

{# Step text block (heading + body) #}
.hiw-section__step-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

{# Step heading — H3, dark green, semibold #}
.hiw-section__step-heading {
  color: ;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

{# Step body #}
.hiw-section__step-body p {
  color: #616161;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

{# CTA — orange pill #}
.hiw-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: ;
  color: #ffffff;
  border-radius: 32px;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  padding: 8px 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.hiw-section__cta:hover {
  opacity: 0.88;
  color: #ffffff;
}


{# ═══════════════════════════════════════════════
   MOBILE  (max-width: 767px)
   ═══════════════════════════════════════════════ #}
@media (max-width: 767px) {
  .hiw-section__heading h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hiw-section__heading-container {
    margin-bottom: 32px;
  }

  .hiw-section__step {
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hiw-section__step-img-wrap {
    height: 220px;
    border-radius: 16px;
  }

  .hiw-section__step-heading {
    font-size: 22px;
  }
}


{# ═══════════════════════════════════════════════
   TABLET  (min-width: 768px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 768px) {
  .hiw-section__heading h2 {
    font-size: 36px;
  }

  .hiw-section__intro p {
    font-size: 17px;
  }

  .hiw-section__heading-container {
    margin-bottom: 48px;
  }

  {# Two-column row layout at tablet+ #}
  .hiw-section__step {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  {# Normal row: image left (col-md-6), content right (col-md-6) #}
  .hiw-section__step-img-col {
    width: 50%;
    flex-shrink: 0;
  }

  .hiw-section__step-img-wrap {
    height: 340px;
    border-radius: 24px;
  }

  .hiw-section__step-content-col {
    width: 50%;
    flex: 1;
  }

  {# Reversed row: content left, image right (direction-md-row-reverse) #}
  .hiw-section__step.direction-md-row-reverse {
    flex-direction: row-reverse;
  }

  .hiw-section__step-heading {
    font-size: 28px;
  }
}


{# ═══════════════════════════════════════════════
   LG  (min-width: 992px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 992px) {
  .py-lg-130 { padding-top: 130px; padding-bottom: 130px; }

  .hiw-section__heading h2 {
    font-size: 42px;
    line-height: 50px;
  }

  .hiw-section__intro p {
    font-size: 18px;
    line-height: 25px;
  }

  .hiw-section__step-img-wrap {
    height: 400px;
  }

  .hiw-section__step-heading {
    font-size: 34px;
    line-height: 44px;
  }

  .hiw-section__step {
    gap: 32px;
  }
}


{# ═══════════════════════════════════════════════
   XL  (min-width: 1200px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 1200px) {
  .hiw-section__steps-wrapper {
    gap: 0;
  }

  .hiw-section__step-img-col {
    max-width: 624px;
  }
}
