/* ==========================================================================
   customer-stories.css — Customer Stories page-specific styles
   Depends on: tokens.css, global.css, components.css
   ========================================================================== */


/* ==========================================================================
   SUBPAGE HERO (.hero--subpage)
   Shorter hero for interior pages — overrides .hero defaults
   ========================================================================== */

.hero--subpage {
  min-height: 60vh;
  min-height: 60svh;
}

.hero--subpage .hero__content h1 {
  max-width: 20ch;
}

.hero--subpage .hero__scroll {
  display: none;
}


/* ==========================================================================
   STAT ROW — BLUE VARIANT (.cs-stats)
   Blue palette for data-stat sections per design-tokens.md
   ========================================================================== */

.cs-stats {
  background: linear-gradient(135deg, var(--color-blue-5) 0%, var(--color-blue-4) 100%);
}

.cs-stats .stat-row__number {
  color: var(--color-blue-1);
}

.cs-stats .stat-row__label {
  color: rgba(255, 255, 255, 0.7);
}

.cs-stats .stat-row__item + .stat-row__item::before {
  background-color: rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   CASE STUDY LISTING (.cs-listing)
   Responsive grid of case study cards
   ========================================================================== */

.cs-listing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .cs-listing__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .cs-listing__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* While the listing has only 2 real customer stories, constrain to a
   centred 2-up grid at desktop. Remove the modifier from the markup
   when a 3rd story lands. */
.cs-listing__grid--centered {
  max-width: 880px;
  margin-inline: auto;
}

@media (min-width: 1280px) {
  .cs-listing__grid--centered {
    grid-template-columns: 1fr 1fr;
  }
}


/* ==========================================================================
   WHY CHOOSE SECTION (.cs-why)
   Brief differentiator row — 3 items with icon + text
   ========================================================================== */

.cs-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .cs-why__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .cs-why__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.cs-why__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
}

.cs-why__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-light);
  color: var(--color-primary);
}

.cs-why__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-why__item h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-1);
}

.cs-why__item p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: 320px;
}
