/* ══════════════════════════════════════════════════════════════════════════════
   Wolf IPTV — wolf-home-whyus.css (M1.4)
   ──────────────────────────────────────────────────────────────────────────────
   Why-Us section: 6 stat-cards with giant outline numbers as background art.

   Structure:
     1. Stat-card grid (3 columns desktop, 2 tablet, 1 phone)
     2. Stat-card base (surface + border + hover)
     3. Bignum (giant outline behind content)
     4. Card content (icon + title + text)
     5. Responsive @media queries

   Design tokens المستخدمة (كلهم من core/_variables.css):
     --surface, --border, --border-brand
     --brand, --brand-soft, --brand-tint
     --text, --text-soft
     --shadow-md
     --font-display
     --sp-2..--sp-6
     --r-md, --r-xl

   Note: الـ .section, .section__inner, .section-head{*} موجودين في
         wolf-home-trial.css من M1.3 (shared layer). مفيش duplication هنا.

   @since 2026-06-05 (M1.4)
   ══════════════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════════════
   1. WHY-US SECTION CONTAINER
   ══════════════════════════════════════════════════════════════════════════════ */

.why-us-section {
  /* No special background — inherits from .section */
}


/* ══════════════════════════════════════════════════════════════════════════════
   2. STAT-CARD GRID
   ══════════════════════════════════════════════════════════════════════════════ */

.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}


/* ══════════════════════════════════════════════════════════════════════════════
   3. STAT-CARD BASE
   ══════════════════════════════════════════════════════════════════════════════ */

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  overflow: hidden;
  min-height: 240px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}


/* ══════════════════════════════════════════════════════════════════════════════
   4. BIGNUM — Giant outline number behind content
   ══════════════════════════════════════════════════════════════════════════════
   Positioned absolutely in the bottom-left corner, rendered as outline-only
   (transparent fill + brand-tint stroke). Decorative purpose only —
   aria-hidden in the markup.
   ══════════════════════════════════════════════════════════════════════════════ */

.stat-card__bignum {
  position: absolute;
  bottom: -20px;
  inset-inline-start: -8px;
  font-family: var(--font-display);
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -6px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-tint);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* Smaller variant — used للـ 3+ char bignums (99.9, 6K+, 24/7, etc.) */
.stat-card__bignum--small {
  font-size: 96px;
  letter-spacing: -4px;
}


/* ══════════════════════════════════════════════════════════════════════════════
   5. CARD INNER CONTENT
   ══════════════════════════════════════════════════════════════════════════════ */

.stat-card__inner {
  position: relative;
  z-index: 1;
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  display: grid;
  place-items: center;
  color: var(--brand-soft);
  margin-bottom: var(--sp-4);
}

.stat-card__icon svg {
  width: 22px;
  height: 22px;
}

.stat-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-top: 0;
  margin-bottom: var(--sp-2);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.stat-card__text {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════════════════════
   6. RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */

/* Tablet: 2 columns */
@media (max-width: 960px) {
  .stat-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }
  .stat-card {
    min-height: 220px;
    padding: var(--sp-5);
  }
  .stat-card__bignum { font-size: 110px; }
  .stat-card__bignum--small { font-size: 84px; }
}

/* Phone: 1 column */
@media (max-width: 540px) {
  .stat-card-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .stat-card {
    min-height: 200px;
    padding: var(--sp-5) var(--sp-4);
  }
  .stat-card__bignum { font-size: 100px; }
  .stat-card__bignum--small { font-size: 78px; }
  .stat-card__title { font-size: 17px; }
  .stat-card__text { font-size: 13px; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   7. REDUCED-MOTION ACCESSIBILITY
   ══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .stat-card {
    transition: none;
  }
  .stat-card:hover {
    transform: none;
  }
}
