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

{# =============================================
   About Section — RoamGuard Theme
   Node: 15695-1696
   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; }
.pt-10  { padding-top: 10px; }
.pt-15  { padding-top: 15px; }
.pt-30  { padding-top: 30px; }


{# ══════════════════════════════════════════════
   TOP ROW — text left / image right
   annotation: .row
   ══════════════════════════════════════════════ #}
.about-section__top-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

{# ── Text column (left) — annotation: col-md-6 ── #}
.about-section__text-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-section__heading-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-section__heading-wrap h2 {
  color: ;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.about-section__body p {
  color: #616161;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.about-section__body p:last-child {
  margin-bottom: 0;
}

{# Button row — annotation: pt-15 #}
.about-section__btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.about-section__btn-primary-wrap,
.about-section__btn-secondary-wrap {
  display: inline-flex;
}

{# Primary button inherits existing .cta-btn.btn1 styles #}

{# Secondary — dark green pill #}
.cta-btn.btn-secondary-dark,
.about-section__btn-secondary {
  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;
}

.cta-btn.btn-secondary-dark:hover,
.about-section__btn-secondary:hover {
  opacity: 0.88;
  color: #ffffff;
}

{# ── Image column (right) — annotation: col-md-6 ── #}
.about-section__img-col {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  align-self: stretch;
}

.about-section__img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}


{# ══════════════════════════════════════════════════════════════
   STATISTICS BAR
   annotation: pt-30 row
   Figma detail: cards stack left-to-right with:
   - rounded top corners only (24px)
   - border-top + border-right (+ border-left on first card)
   - negative right margin (-24px) creating a cascade/fan effect
   - z-index decreasing left-to-right
   ══════════════════════════════════════════════════════════════ #}
.about-section__stats-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

{# Each stat cell — annotation: col-lg-4 col-md-6 #}
.about-section__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #ffffff;
  border-top: 1px solid #D3D4D9;
  border-right: 1px solid #D3D4D9;
  border-radius: 24px 24px 0 0;
  position: relative;
  box-sizing: border-box;
  text-align: center;
  gap: 0;
}

{# First card also gets left border #}
.about-section__stat--first {
  border-left: 1px solid #D3D4D9;
}

{# Stat value — H1 bold, dark green #}
.about-section__stat-value {
  color: ;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

{# Stat label — body M, gray #}
.about-section__stat-label {
  color: #616161;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
}


{# ═══════════════════════════════════════════════
   MOBILE  (max-width: 767px)
   ═══════════════════════════════════════════════ #}
@media (max-width: 767px) {
  .about-section__top-row {
    gap: 24px;
  }

  .about-section__heading-wrap h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .about-section__btn-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .about-section__btn-primary-wrap,
  .about-section__btn-secondary-wrap {
    width: 100%;
  }

  .about-section__btn-primary-wrap .cta-btn,
  .about-section__btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .about-section__img {
    min-height: 220px;
  }

  .about-section__stats-bar {
    flex-direction: column;
    gap: 12px;
  }

  .about-section__stat {
    width: 100%;
    border: 1px solid #D3D4D9;
    border-radius: 16px;
    margin-right: 0 !important;
  }

  .about-section__stat-value {
    font-size: 38px;
  }
}


{# ═══════════════════════════════════════════════
   TABLET  (min-width: 768px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 768px) {
  .about-section__top-row {
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
  }

  .about-section__text-col {
    width: 50%;
    flex: 1;
  }

  .about-section__img-col {
    width: 50%;
    flex: 1;
  }

  .about-section__heading-wrap h2 {
    font-size: 36px;
  }

  .about-section__body p {
    font-size: 17px;
  }

  .about-section__btn-row {
    flex-direction: row;
    gap: 0;
    flex-wrap: wrap;
  }

  .about-section__img {
    min-height: 340px;
  }

  {# 2-column stats at tablet #}
  .about-section__stats-bar {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .about-section__stat {
    width: 50%;
    flex: 0 0 50%;
    margin-right: 0;
  }

  .about-section__stat-value {
    font-size: 50px;
  }
}


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

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

  .about-section__body p {
    font-size: 18px;
    line-height: 25px;
  }

  .about-section__img {
    min-height: 410px;
  }

  {# Desktop: 4-column cascading stat bar with negative right margin #}
  .about-section__stats-bar {
    flex-wrap: nowrap;
    padding-right: 24px;
  }

  .about-section__stat {
    flex: 1;
    width: auto;
    margin-right: -24px;
    border-radius: 24px 24px 0 0;
  }

  .about-section__stat--last {
    margin-right: 0;
  }

  .about-section__stat-value {
    font-size: 60px;
    line-height: 72px;
  }
}


{# ═══════════════════════════════════════════════
   XL  (min-width: 1200px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 1200px) {
  .about-section__top-row {
    gap: 32px;
  }
}

{# ── Cascading z-index via nth-child (no inline styles) ── #}
{# Supports up to 10 stats; z-index decreases left-to-right
   so earlier cards visually sit on top of later ones #}
.about-section__stat:nth-child(1)  { z-index: 10; }
.about-section__stat:nth-child(2)  { z-index: 9; }
.about-section__stat:nth-child(3)  { z-index: 8; }
.about-section__stat:nth-child(4)  { z-index: 7; }
.about-section__stat:nth-child(5)  { z-index: 6; }
.about-section__stat:nth-child(6)  { z-index: 5; }
.about-section__stat:nth-child(7)  { z-index: 4; }
.about-section__stat:nth-child(8)  { z-index: 3; }
.about-section__stat:nth-child(9)  { z-index: 2; }
.about-section__stat:nth-child(10) { z-index: 1; }
