/* ═══════════════════════════════════════════════════════════
   charities.css  —  Page-specific styles for charities.html
   All shared tokens and base styles live in global.css.
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   HERO COMPACT VARIANT
   Consistent with all inner page heroes.
───────────────────────────────────────── */
.hero-compact {
  min-height: unset;
}

.hero-content-compact {
  padding: var(--space-4xl) var(--space-lg) var(--space-3xl);
  gap: var(--space-lg);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(189, 212, 240, 0.80);
  max-width: 520px;
  line-height: 1.6;
}

/* Active nav link highlight */
.main-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ─────────────────────────────────────────
   MISSION STAT STRIP
───────────────────────────────────────── */
.mission-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4xl);
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-4xl);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin: 0 auto;
}

.mission-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.mission-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-stat-icon svg {
  width: 20px;
  height: 20px;
}

.mission-stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1;
}

.mission-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}

/* Vertical rule between stats */
.mission-divider {
  width: 1px;
  height: 60px;
  background: #e5e7eb;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   CHARITY PARTNER CARDS
───────────────────────────────────────── */
.charity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.charity-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.charity-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Card top colour bar ── */
.charity-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid #f3f4f6;
}

.charity-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.charity-icon svg {
  width: 26px;
  height: 26px;
}

/* Blue variant — Special Olympics */
.charity-icon-blue {
  background: var(--blue-50);
  color: var(--blue-700);
}

/* Amber variant — Friends for Animals */
.charity-icon-amber {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber-400);
}

.charity-badge {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px var(--space-md);
  border-radius: var(--radius-full);
}

.charity-badge-blue {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
}

.charity-badge-amber {
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
  border: 1px solid rgba(251, 191, 36, 0.30);
}

/* ── Card body ── */
.charity-body {
  flex: 1;
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.charity-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.25;
}

.charity-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── Card footer ── */
.charity-footer {
  padding: var(--space-xl) var(--space-2xl);
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.charity-detail-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.charity-detail-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.charity-detail-icon svg {
  width: 14px;
  height: 14px;
}

.charity-detail-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}

.charity-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
  transition: color 0.2s, gap 0.2s, text-decoration-style 0.2s;
}

.charity-link:hover {
  color: var(--blue-950);
  gap: var(--space-md);
  text-decoration-style: solid;
}

.charity-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   HOW TO DONATE CARDS
───────────────────────────────────────── */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.donate-card {
  position: relative;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.donate-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Step number — top-right badge */
.donate-step-num {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donate-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donate-icon svg {
  width: 24px;
  height: 24px;
}

.donate-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  /* leave room for the step badge */
  padding-right: var(--space-3xl);
}

.donate-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   FUNDRAISING CTA — dark section
───────────────────────────────────────── */
.charity-cta-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-4xl);
  flex-wrap: wrap;
}

.charity-cta-left {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  flex: 1;
  min-width: 240px;
}

.charity-cta-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-2xl);
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.charity-cta-icon svg {
  width: 26px;
  height: 26px;
}

.charity-cta-title {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.charity-cta-desc {
  font-size: 0.9rem;
  color: rgba(189, 212, 240, 0.75);
  line-height: 1.7;
}

.charity-cta-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-shrink: 0;
  align-self: center;
}

.charity-cta-btn {
  white-space: nowrap;
  justify-content: center;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .mission-strip {
    gap: var(--space-2xl);
    padding: var(--space-2xl);
  }

  .mission-divider {
    width: 60px;
    height: 1px;
  }

  .charity-grid {
    grid-template-columns: 1fr;
  }

  .donate-grid {
    grid-template-columns: 1fr;
  }

  .charity-cta-card {
    flex-direction: column;
    padding: var(--space-2xl);
    gap: var(--space-xl);
  }

  .charity-cta-left {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .charity-cta-links {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .charity-cta-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .mission-strip {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .mission-divider {
    display: none;
  }

  .charity-cta-links {
    flex-direction: column;
  }

  .charity-cta-btn {
    width: 100%;
  }
}