/* ==========================================================================
   Service — Statistics, both variants (see single-service.php +
   inc/acf-fields.php `layout_statistics.statistics_variant`).
   ========================================================================== */

/* ==========================================================================
   Variant 1 — dark rounded panel over the same `stats-bg.png` wave graphic
   used by the homepage's Stats Orbit section (assets/css/main.css,
   `.stats-orbit-section`). Cards fade up via the sitewide
   `.scroll-reveal-group` system — no GSAP pin/scrub here.
   ========================================================================== */

.service-stats {
  position: relative;
  background: #04070d;
  padding: 80px 0;
}

.service-stats-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 56px 56px 48px;
  background:
    linear-gradient(180deg, rgba(4, 7, 13, 0.35) 0%, rgba(4, 7, 13, 0.6) 100%),
    url('../../images/stats-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-stats-head {
  position: relative;
  z-index: 1;
  margin-bottom: 44px;
  text-align: center;
}

.service-stats-heading {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 600;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto;
}

.service-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}

.service-stats-card {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-stats-value {
  display: block;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.service-stats-label {
  display: block;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.68);
}

@media (max-width: 900px) {
  .service-stats-panel {
    padding: 44px 36px 40px;
  }

  .service-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }
}

@media (max-width: 640px) {
  .service-stats {
    padding: 24px 0 80px;
  }

  .service-stats-panel {
    padding: 36px 24px 32px;
    border-radius: 24px;
  }

  .service-stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   Variant 2 — blue gradient banner with a white stat card overlapping its
   lower edge. Built from a reference screenshot the user shared. Cards ride
   the sitewide `.scroll-reveal-group` fade-up, same as Variant 1.
   ========================================================================== */

.service-stats2 {
  position: relative;
  padding: 64px 0 40px;
}

.service-stats2-banner {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 32px;
  padding: 48px 40px 0;
  background: linear-gradient(120deg, #1c3fac 0%, #3568f2 60%, #6fa8f5 100%);
  box-shadow: 0 40px 90px -30px rgba(28, 63, 172, 0.45);
}

.service-stats2-head {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.service-stats2-heading {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 600;
  color: #ffffff;
}

.service-stats2-banner-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 55%),
    radial-gradient(60% 80% at 90% 100%, rgba(255, 255, 255, 0.35) 0%, transparent 65%);
}

.service-stats2-card {
  position: relative;
  z-index: 1;
  margin: -110px 32px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 8px;
  box-shadow: 0 30px 70px -24px rgba(10, 20, 50, 0.35);
}

.service-stats2-item {
  padding: 0 32px;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
}

.service-stats2-item:first-child {
  border-left: none;
}

.service-stats2-value {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.service-stats2-label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #2f5fe6;
}

@media (max-width: 900px) {
  .service-stats2 {
    padding: 72px 0 32px;
  }

  .service-stats2-banner {
    min-height: 220px;
    padding: 40px 28px 0;
  }

  .service-stats2-card {
    margin: -90px 20px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 0;
    padding: 36px 8px;
  }

  .service-stats2-item {
    border-left: none;
    padding: 0 20px;
  }

  .service-stats2-item:nth-child(odd) {
    border-right: 1px solid rgba(15, 23, 42, 0.1);
  }

  .service-stats2-item:nth-child(n+3) {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding-top: 24px;
  }
}

@media (max-width: 560px) {
  .service-stats2-banner {
    border-radius: 24px;
    min-height: 180px;
    padding: 32px 24px 0;
  }

  .service-stats2-card {
    margin: -70px 12px 0;
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 8px 24px;
    gap: 0;
  }

  .service-stats2-item {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding: 24px 0 !important;
  }

  .service-stats2-item:first-child {
    border-top: none;
  }
}
