/*
 * InspireSphere Theme — What We Do Section (Benefits / Programs)
 *
 * Background: dark navy (#061C3D), full-width.
 * Inner layout: 1320px container, 60px padding.
 *
 * Top row: h2 "What We Do" (left) + description + "View All" button (right).
 * Cards grid: 2 columns × 2 rows. 4 cards total.
 *   Card: white, 10px radius, image + number + h4 title + p description + arrow icon btn.
 *   Card number: 60px Bold (#B3D634 for card 01, #034083 for others).
 */

/* Padding-inline is NOT set here — .container inside handles it. */
.section--what-we-do {
  background: var(--color-dark-navy);
  padding-block: 82px;
}

.what-we-do__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ── Header row ──────────────────────────────────────────────────── */
.what-we-do__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.what-we-do__header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.what-we-do__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: 1;
}

.what-we-do__desc {
  font-size: var(--font-size-body-md);
  color: var(--color-white);
  line-height: 1.6;
}

/* ── Cards grid: 2 columns ───────────────────────────────────────── */
.what-we-do__grid {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.what-we-do__row {
  display: flex;
  gap: 20px;
}

/* ── Card ────────────────────────────────────────────────────────── */
.what-we-do__card {
  flex: 1;
  background: var(--color-white);
  border-radius: 10px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-end;
}

/* aspect-ratio scales the image height fluidly with card width on all breakpoints */
.what-we-do__card-image {
  width: 100%;
  aspect-ratio: 7 / 3;
  /* border-radius: var(--radius-md); */
  overflow: hidden;
  flex-shrink: 0;
}

.what-we-do__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.what-we-do__card-body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
}

/* Decorative display numeral (60px Bold) — aria-hidden in PHP */
.what-we-do__card-number {
  font-family: var(--font-body);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  flex-shrink: 0;
  color: var(--color-blue);
}

/* Card 01 — green number */
.what-we-do__card--featured .what-we-do__card-number {
  color: var(--color-green);
}

.what-we-do__card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.what-we-do__card-title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-blue);
  line-height: 1.2;
}

.what-we-do__card-desc {
  font-size: var(--font-size-body-md);
  color: var(--color-grey);
  line-height: 1.5;
}

/* Card arrow link button */
.what-we-do__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.what-we-do__card-btn:hover {
  border-color: var(--color-blue);
}

.what-we-do__card-btn img {
  width: 26px;
  height: 26px;
  display: block;
}


/* ── Mobile (≤ 768px) ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section--what-we-do {
    padding-block: 48px;
  }

  /* Header stacks vertically */
  .what-we-do__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .what-we-do__header-text {
    gap: 16px;
  }

  /* h2 → 24px Bold on mobile */
  .what-we-do__heading {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
  }

  /* Cards single column */
  .what-we-do__row {
    flex-direction: column;
    gap: 32px;
  }

  .what-we-do__card {
    padding: 32px 16px;
  }

  .what-we-do__card-body {
    flex-direction: column;
    gap: 32px;
  }

  /* No card-image height override — aspect-ratio 7/3 scales correctly on mobile */
}