/* ==========================================================================
   /results page — hero (CMS-editable header + description overlaid on a
   plain admin-uploaded banner image), impact stats row, then the shared
   PatientHopeWall grid + donate banner.
   ========================================================================== */

/* ----- Hero ----- */
/* Breadcrumb sits on top of the banner, whose faded top edge slides up underneath it. */
.results-breadcrumb {
  position: relative;
  z-index: 3;
}

.results-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * clamp(32px, 4vw, 56px));
}

.results-hero__bg {
  display: block;
  width: 100%;
  height: auto;
}

/* Soft white blend at the edges so the photo doesn't end on a hard rectangle. */
.results-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* bottom fade kept narrow: the default banner has text close to its lower edge */
  background: linear-gradient(180deg, transparent 94%, var(--paper) 100%),
    linear-gradient(180deg, var(--paper) 0, rgba(255, 250, 241, 0) clamp(40px, 5vw, 72px)),
    linear-gradient(90deg, var(--paper) 0%, transparent 8%, transparent 92%, var(--paper) 100%);
}

/* Text overlay on the banner's empty middle band (≈31%–66.5% of its width, between the family
   collage and the founder's portrait). The banner keeps its ratio, so sizes scale with the
   viewport to stay inside the band. */
.results-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vw 33.5% 1vw 31%;
}

.results-hero__copy {
  position: relative;
  width: 100%;
  text-align: center;
}

/* Soft white fade behind the copy so it reads cleanly over the banner's light streaks. */
.results-hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% -16%;
  background: radial-gradient(closest-side, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.85) 60%, rgba(255, 253, 248, 0) 100%);
  pointer-events: none;
}

.results-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 16px rgba(255, 255, 255, 0.85);
}

/* Default three-line title: big numerals, the third line in gold. */
.results-hero__title--lines {
  display: grid;
  justify-items: center;
  font-size: 3.1vw;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.results-hero__title--lines b {
  font-size: 1.62em;
  font-weight: 700;
  line-height: 1;
  vertical-align: -0.04em;
}

.results-hero__hope {
  margin-top: 0.15em;
  font-size: 0.7em;
  white-space: nowrap;
  color: var(--gold-heritage);
}

.results-hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.6vw auto 1.3vw;
  color: var(--gold-warm);
}

.results-hero__divider span {
  width: min(160px, 11vw);
  height: 1px;
  background: currentColor;
}

.results-hero__desc {
  font-size: clamp(13px, 1.32vw, 22px);
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink-navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 12px rgba(255, 255, 255, 0.85);
}

/* Narrow screens: the band is too small for readable text, so the copy drops below the banner. */
@media (max-width: 760px) {
  /* edge fades cover the banner only, not the copy below it */
  .results-hero::after {
    inset: 0 0 auto;
    aspect-ratio: 1894 / 830;
  }

  .results-hero__inner {
    position: static;
    padding: 4px 20px 8px;
  }

  .results-hero__copy::before {
    display: none;
  }

  .results-hero__title--lines {
    font-size: clamp(22px, 6.4vw, 34px);
  }

  .results-hero__divider {
    margin: 14px auto 12px;
  }

  .results-hero__divider span {
    width: 72px;
  }

  .results-hero__desc {
    font-size: 15px;
  }
}

/* ----- Impact stats row ----- */
.results-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-block: 32px;
  padding: 28px 12px;
  border: 1px solid var(--border-color-light);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.results-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 12px;
  text-align: center;
}

.results-stat-card:not(:first-child) {
  border-left: 1px solid var(--border-color-light);
}

.results-stat-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  transform: scale(1);
  opacity: 1;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s var(--ease-out-quart);
  transition-delay: calc(min(var(--motion-index, 0), 8) * 54ms + 80ms);
}

.results-stats[data-visible="false"] .results-stat-card__icon {
  transform: scale(0.4);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .results-stat-card__icon,
  .results-stats[data-visible="false"] .results-stat-card__icon {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.results-stat-card__value {
  font-family: var(--font-alt);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-navy);
}

.results-stat-card__label {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold-dark);
}

.results-stat-card__desc {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted-foreground);
}

@media (max-width: 640px) {
  .results-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }

  .results-stat-card:nth-child(2n + 1) {
    border-left: none;
  }

  .results-stat-card:not(:nth-child(1)):not(:nth-child(2)) {
    padding-top: 16px;
  }
}

