/*
 * Why Us + Stats — Slice 7.
 * Why Us: 4 pillars on white.
 * Stats: 4 animated counters on charcoal.
 */

.why-us {
  background: var(--color-white);
  padding-block: var(--space-section);
}
.why-us__header { max-width: 720px; margin-bottom: var(--space-7); }
.why-us__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-3);
}
.why-us__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  color: var(--color-charcoal);
  margin: 0;
}
.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
@media (min-width: 640px) { .why-us__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-us__grid { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  background: var(--color-white);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 350ms cubic-bezier(0.4, 0, 0.2, 1),
              background 350ms ease, border-color 350ms ease;
}
/* Red accent bar grows across the bottom on hover. */
.pillar::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  background: var(--color-red);
  transition: width 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(17, 17, 17, 0.16);
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
}
.pillar:hover::after { width: 100%; }

/* Big ghost number — ties into the 01-04 motif used across the site. */
.pillar__num {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(17, 17, 17, 0.06);
  transition: color 350ms ease;
}
.pillar:hover .pillar__num { color: rgba(255, 255, 255, 0.1); }

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 8px;
  background: rgba(185, 51, 56, 0.1);
  color: var(--color-red);
  margin-bottom: var(--space-4);
  transition: background 350ms ease;
}
.pillar:hover .pillar__icon { background: rgba(185, 51, 56, 0.22); }

.pillar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: var(--tracking-snug);
  color: var(--color-charcoal);
  margin: 0 0 var(--space-2);
  transition: color 350ms ease;
}
.pillar:hover .pillar__title { color: var(--color-white); }

.pillar__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.68);
  margin: 0;
  transition: color 350ms ease;
}
.pillar:hover .pillar__desc { color: rgba(255, 255, 255, 0.75); }

/* Stats — dark section */
.stats {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
}
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

.stat { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.stat__icon {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(185, 51, 56, 0.22);
  color: #ff5860;            /* lighter red for clear contrast on charcoal */
  margin-bottom: var(--space-2);
  box-shadow: 0 0 0 1px rgba(185, 51, 56, 0.3),
              0 6px 18px rgba(185, 51, 56, 0.18);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--color-white);
}
.stat__suffix { color: var(--color-red); }
.stat__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Touch devices (no hover): the hover flip never fires, so give each pillar a
   permanent accent — red left border, subtle lift shadow and a more visible
   number — so the section reads as rich cards, not a flat white list. */
@media (hover: none) {
  .pillar {
    border-color: rgba(17, 17, 17, 0.12);
    border-left: 3px solid var(--color-red);
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.07);
  }
  .pillar__num { color: rgba(17, 17, 17, 0.13); }
  .pillar__icon { background: rgba(185, 51, 56, 0.16); }
}

@media (prefers-reduced-motion: reduce) {
  .pillar { transition: background 200ms ease; }
  .pillar:hover { transform: none; box-shadow: none; }
  .pillar::after { transition: none; }
}
