/* ==========================================================================
   SMCF — causes hub + cause-detail pages stylesheet.
   Shared across public/causes.php and the 6 public/causes-*.php detail
   pages (Health & Well-Being, Local Enterprise, Arts & Culture,
   Food & Nutrition, Education & Youth, Ecological Sustainability).
   Linked after /style.css on those 7 pages only. Does not modify style.css
   or any file owned by other in-progress conversion work.

   New patterns introduced here that style.css doesn't already cover:
   a static-image page hero (style.css's .smcf-hero is video-only, built
   for the homepage), a two-column intro/partner-spotlight layout, a
   counter-style stats grid (the "2025 impact numbers" blocks that appear
   on 4 of the 6 detail pages), a grant-recipient card grid, and a bulleted
   fact list (style.css resets <ul> to list-style:none sitewide for nav
   use). See MIGRATION_NOTES.md for the content-source notes on these
   pages.
   ========================================================================== */

/* ---- Cause hero (static image, not video) ------------------------------- */
.smcf-cause-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--smcf-charcoal);
}

.smcf-cause-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.smcf-cause-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 74, 74, 0.55);
  z-index: 1;
}

.smcf-cause-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--smcf-max-width);
  margin: 0 auto;
  padding: 64px 20px;
  color: var(--smcf-white);
}

.smcf-cause-hero__content h1 {
  color: var(--smcf-white);
  max-width: 640px;
  margin: 0;
}

/* ---- Two-column intro / spotlight layout -------------------------------- */
.smcf-cause-intro,
.smcf-partner-spotlight {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: center;
}

.smcf-partner-spotlight {
  align-items: start;
}

.smcf-cause-intro__image img,
.smcf-partner-spotlight__image img {
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.smcf-partner-spotlight__image .smcf-button {
  margin-top: 16px;
}

.smcf-cause-intro__body :last-child,
.smcf-partner-spotlight__body :last-child {
  margin-bottom: 0;
}

/* ---- Bulleted fact list (style.css resets ul to list-style:none) ------- */
.smcf-fact-list {
  margin-top: 8px;
}

.smcf-fact-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}

.smcf-fact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--smcf-gold);
  border-radius: 50%;
}

/* ---- Stats / impact-numbers grid ---------------------------------------- */
.smcf-cause-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.smcf-cause-stat {
  text-align: center;
  padding: 28px 12px;
  background: var(--smcf-white);
  border-bottom: 3px solid var(--smcf-gold);
}

.smcf-cause-stat__value {
  display: block;
  font-family: var(--smcf-font-heading);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--smcf-rust);
  line-height: 1;
  margin-bottom: 10px;
}

.smcf-cause-stat__label {
  display: block;
  font-family: var(--smcf-font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* ---- Grant recipients grid ----------------------------------------------- */
.smcf-grant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.smcf-grant-card {
  background: var(--smcf-white);
  border-left: 3px solid var(--smcf-gold);
  padding: 24px;
}

.smcf-grant-card h4 {
  font-family: var(--smcf-font-body);
  font-size: 0.95rem;
  text-transform: none;
  margin-bottom: 4px;
}

.smcf-grant-card__category {
  display: block;
  font-family: var(--smcf-font-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--smcf-gold);
  margin-bottom: 12px;
}

.smcf-grant-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.smcf-grant-group + .smcf-grant-group {
  margin-top: 40px;
}

.smcf-grant-group h3 {
  font-size: 1.1rem;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .smcf-cause-intro,
  .smcf-partner-spotlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .smcf-cause-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
