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

{# =============================================
   Impact Section — RoamGuard Theme
   Node: 15695-1561
   Mobile-first: base → mobilept → md → lg → xl
   ============================================= #}

{# ── Annotation-driven padding utilities ── #}
.pt-lg-130  { padding-top: 80px; }
.pb-lg-65   { padding-bottom: 40px; }
.pt-md-80   { padding-top: 80px; }
.pb-md-40   { padding-bottom: 40px; }
.mobilept-60 { padding-top: 60px; }
.mobilepb-30 { padding-bottom: 30px; }
.pt-30  { padding-top: 30px; }
.pt-35  { padding-top: 35px; }
.pt-10  { padding-top: 10px; }
.pt-5   { padding-top: 5px; }
.pl-15  { padding-left: 15px; }


{# ══════════════════════════════════════════
   1. HEADING CONTAINER
   ══════════════════════════════════════════ #}
.impact-section__heading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.impact-section__heading {
  width: 100%;
}

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

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

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


{# ══════════════════════════════════════════
   2. IMPACT CARDS
   ══════════════════════════════════════════ #}

{# Cards row — uses boilerplate .row grid #}
.impact-section__cards-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
}

{# Column wrapper — grid gutter via padding #}
.impact-section__card-col {
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
  box-sizing: border-box;
}

{# Card shell — stacking context for image + overlay + content #}
.impact-section__card-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

{# Image container fills the card shell #}
.impact-section__card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.impact-section__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

{# Gradient overlay: transparent at top → solid black at bottom #}
.impact-section__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 1) 70%
  );
}

{# Card body — above overlay, bottom-aligned #}
.impact-section__card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.impact-section__card-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.impact-section__card-heading-wrap {
  width: 100%;
}

.impact-section__card-heading {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.impact-section__card-text p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

.impact-section__card-link-wrap {
  display: flex;
}

.impact-section__card-link {
  color: ;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.impact-section__card-link:hover {
  opacity: 0.8;
  color: ;
}


{# ══════════════════════════════════════════
   3. STATISTICS BAR
   ══════════════════════════════════════════ #}
.impact-section__stats-bar {
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}

{# Individual stat — uses .col-lg-4 .col-md-6 for width #}
.impact-section__stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
}

{# Icon: outer semi-transparent ring #}
.impact-section__stat-icon-outer {
  flex-shrink: 0;
  background-color: rgba(211, 212, 217, 0.2);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

{# Icon: inner ring #}
.impact-section__stat-icon-inner {
  background-color: rgba(211, 212, 217, 0.1);
  border-radius: 999px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-section__stat-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.impact-section__stat-icon-placeholder {
  display: block;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

{# Stat text #}
.impact-section__stat-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.impact-section__stat-value-wrap { line-height: 1; }

.impact-section__stat-value {
  color: #D1F812;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.impact-section__stat-label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

{# Vertical divider between stat items #}
.impact-section__stat-divider {
  flex-shrink: 0;
  background-color: rgba(211, 212, 217, 0.1);
  display: none;
}


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

  .impact-section__cards-row {
    margin-left: 0;
    margin-right: 0;
  }

  .impact-section__card-col {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .impact-section__card-shell {
    height: 420px;
    border-radius: 16px;
  }

  .impact-section__stats-bar {
    flex-direction: column;
    gap: 0;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .impact-section__stat {
    width: 100%;
    padding: 12px 0;
  }

  .impact-section__stat-divider {
    display: block;
    width: 100%;
    height: 1px;
  }

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

  .impact-section__stat-icon-inner {
    width: 64px;
    height: 64px;
  }
}


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

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

  {# 2-col cards #}
  .impact-section__card-col {
    width: 50%;
  }

  .impact-section__card-shell {
    height: 520px;
  }

  {# Stats: row layout #}
  .impact-section__stats-bar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .impact-section__stat {
    flex: 1;
    min-width: 0;
    padding: 16px;
  }

  .impact-section__stat-divider {
    display: block;
    width: 1px;
    height: auto;
    align-self: stretch;
  }

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


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

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

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

  {# 3-col cards #}
  .impact-section__card-col {
    width: 33.333%;
  }

  .impact-section__card-shell {
    height: 600px;
    border-radius: 24px;
  }

  .impact-section__card-heading {
    font-size: 26px;
  }

  {# Stats: 3 equal columns #}
  .impact-section__stat {
    width: auto;
    flex: 1;
    padding: 16px 24px;
  }

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


{# ═══════════════════════════════════════════════
   XL  (min-width: 1200px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 1200px) {
  .impact-section__stats-bar {
    padding: 32px;
  }
}
