/* ==========================================================================
   SMCF — About-family page styles.
   Covers: about-overview.php, our-purpose.php, our-role.php, our-future.php,
   our-team.php. Linked after /style.css so it can extend the shared
   section/container/button/eyebrow/rule vocabulary rather than replace it.

   New patterns introduced here that style.css didn't already have:
   - .smcf-media-row: image + text two-column block (the "About Us" /
     "Our Purpose" / "Our Role" / "Our Future" hero-ish intro sections).
   - .smcf-people-grid / .smcf-person-card: board + staff photo grid on
     our-team.php.
   - .smcf-contributor: alternating photo + bio block used for the "Our
     Crowd" contributor profiles on our-team.php.
   ========================================================================== */

/* ---- Small utility -------------------------------------------------------
   Used for the repeated "Turning Generosity Into Lasting Impact" closing
   CTA banner that appears at the bottom of every About-family page (same
   content block already established on public/index.php, just centered
   here since it has no eyebrow/testimonials alongside it).
   ---------------------------------------------------------------------- */
.smcf-centered {
  text-align: center;
}

.smcf-centered h3 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.smcf-centered .smcf-rule {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Media row (image + text) ------------------------------------------- */
.smcf-media-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.smcf-media-row--reverse {
  flex-direction: row-reverse;
}

.smcf-media-row__media {
  flex: 1 1 360px;
}

.smcf-media-row__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.smcf-media-row__body {
  flex: 1 1 420px;
}

.smcf-media-row__body h4 {
  font-family: var(--smcf-font-accent);
  text-transform: none;
  font-size: 1.05rem;
  color: var(--smcf-rust);
  margin-bottom: 16px;
}

.smcf-media-row__body h5 {
  font-family: var(--smcf-font-accent);
  text-transform: none;
  font-size: 0.95rem;
  color: var(--smcf-rust);
  margin: 0 0 16px;
}

/* ---- "Our Path" quick-link row ------------------------------------------ */
.smcf-path-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* ---- People / board / staff grid ----------------------------------------- */
.smcf-people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.smcf-person-card {
  text-align: center;
}

.smcf-person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
}

.smcf-person-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.smcf-person-card a {
  font-family: var(--smcf-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Contributor bios ("Our Crowd") -------------------------------------- */
.smcf-contributor {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--smcf-gray-light);
}

.smcf-contributor:first-of-type {
  border-top: 0;
}

.smcf-contributor--reverse {
  flex-direction: row-reverse;
}

.smcf-contributor__media {
  flex: 1 1 280px;
}

.smcf-contributor__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.smcf-contributor__body {
  flex: 2 1 480px;
}

.smcf-contributor__body h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.smcf-contributor__links {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.smcf-contributor__links a {
  font-family: var(--smcf-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

@media (max-width: 700px) {
  .smcf-media-row,
  .smcf-media-row--reverse,
  .smcf-contributor,
  .smcf-contributor--reverse {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .smcf-people-grid {
    grid-template-columns: 1fr 1fr;
  }
}
