/* ============================================================================
   HOMEPAGE — bespoke premium experience (Phase 8 full rebuild). Home only.
   Custom `.ssrf-*` design built on the Phase-8 palette (defined in premium.css).
   Data comes from the CMS-driven builder; presentation is fully custom.
   ============================================================================ */

/* ---------- shared homepage primitives ---------- */
.ssrf-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ssrf-teal-700); }
.ssrf-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--ssrf-gold); }
.ssrf-eyebrow--ondark { color: #F3C77A; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); padding: 7px 16px; border-radius: 999px; letter-spacing: .14em; }
.ssrf-eyebrow--ondark::before { display: none; }
.ssrf-h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.025em; color: var(--ssrf-navy); line-height: 1.12; margin: 0; text-wrap: balance; }
.ssrf-lead { color: var(--ssrf-muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.7; }
.ssrf-head { text-align: center; max-width: 760px; margin: 0 auto clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ssrf-head .ssrf-eyebrow { justify-content: center; }
.ssrf-head__rule { width: 72px; height: 4px; border-radius: 4px; background: var(--ssrf-donate-grad); }
.ssrf-section { padding: clamp(2.25rem, 4vw, 3.75rem) 0; position: relative; }
.ssrf-section--tint { background: linear-gradient(180deg, #fff 0%, var(--ssrf-bg) 100%); }
/* Alternating section bands so the spacing reads as intentional rhythm */
.ssrf-dyn--alt { background: #FFF4E6; }
/* Head-less CTA sections (volunteer/newsletter/contact) need less vertical air */
.ssrf-dyn:not(:has(.ssrf-head)) { padding-block: clamp(1.5rem, 3vw, 2.5rem); }

/* icon tones */
/* Warm icon tints — all within the brand palette (soft bg + text-safe fg) */
.ssrf-tone--teal { background: #FBEFD6; color: #B45309; }
.ssrf-tone--orange { background: #FEE7D8; color: #D94A1E; }
.ssrf-tone--green { background: #E4F6EA; color: #167C3B; }
.ssrf-tone--blue { background: #FBE3E3; color: #C61F26; }
.ssrf-tone--red { background: #FBE3E3; color: #C61F26; }
.ssrf-tone--purple { background: #F6E9CF; color: #B45309; }

/* ================================================================== HERO */
.ssrf-hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; isolation: isolate; overflow: hidden; background: var(--ssrf-hero-grad); padding: clamp(3rem, 8vh, 6rem) 0 clamp(6rem, 12vh, 9rem); }
.ssrf-hero__bg { position: absolute; inset: 0; z-index: -2; }
.ssrf-hero__bg img, .ssrf-hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ssrf-hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(30,20,12, .95) 0%, rgba(52,32,20, .84) 36%, rgba(30,20,12, .38) 66%, rgba(30,20,12, .12) 100%); }
.ssrf-hero__inner { position: relative; max-width: 660px; }
.ssrf-hero__title { font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 16px 0 0; text-wrap: balance; }
.ssrf-hero__rotator { display: block; background: linear-gradient(120deg, #F4B400, #F59E0B 45%, #F05A28 75%, #D89B2D); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: heroGrad 5s linear infinite; }
/* Split-text hero: words rise + un-blur, staggered (delay set inline by home.js). */
.ssrf-hero__title .word { display: inline-block; opacity: 0; transform: translateY(28px); filter: blur(8px); animation: heroWordIn .8s var(--ssrf-ease) forwards; will-change: transform, opacity, filter; }
.ssrf-hero__title .ssrf-hero__rotator { display: block; }
.ssrf-hero__title .ssrf-hero__rotator.word { animation: heroWordIn .8s var(--ssrf-ease) forwards, heroGrad 5s linear infinite; }
@keyframes heroWordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes heroGrad { to { background-position: 220% center; } }
@media (prefers-reduced-motion: reduce) {
  .ssrf-hero__rotator { animation: none; }
  .ssrf-hero__title .word { animation: none; opacity: 1; transform: none; filter: none; }
}
.ssrf-hero__lead { margin: 18px 0 0; max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(255, 255, 255, .9); line-height: 1.6; }
.ssrf-hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.ssrf-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: var(--ssrf-bg); clip-path: ellipse(80% 100% at 50% 100%); z-index: -1; }

/* =========================================================== FLOATING STAT BAR */
.ssrf-statbar { position: relative; z-index: 5; margin-top: clamp(-96px, -9vh, -70px); background: #fff; border-radius: 24px; box-shadow: var(--ssrf-shadow); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.ssrf-stat { display: flex; align-items: center; gap: 15px; padding: 26px 26px; }
.ssrf-stat + .ssrf-stat { border-left: 1px solid var(--ssrf-line); }
.ssrf-stat__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.45rem; flex: 0 0 auto; }
.ssrf-stat__num { display: block; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 800; color: var(--ssrf-navy); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ssrf-stat__label { color: var(--ssrf-muted); font-size: .9rem; }

/* =========================================================== FEATURE BAND */
.ssrf-feature { background: var(--ssrf-navy); color: #fff; margin-top: clamp(40px, 6vw, 90px); }
.ssrf-feature__grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.ssrf-feature__left { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ssrf-feature__title { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; margin: 0; color: #fff; }
.ssrf-feature__cta { align-self: flex-start; }
.ssrf-feature__media { align-self: stretch; display: flex; justify-content: center; }
/* Image rises above the band into the section above, like the reference. */
.ssrf-feature__media img { width: 100%; max-width: 480px; height: auto; object-fit: contain; margin-top: clamp(-90px, -7vw, -40px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.ssrf-feature__right { align-self: center; }
.ssrf-feature__right p { color: rgba(255, 255, 255, .82); font-size: 1rem; line-height: 1.7; margin: 0 0 14px; }
.ssrf-feature__right p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .ssrf-feature__grid { grid-template-columns: 1fr; text-align: left; gap: 20px; }
  .ssrf-feature__media { order: -1; }
  .ssrf-feature__media img { margin-top: clamp(-70px, -12vw, -30px); max-width: 320px; }
}

/* ================================================================== FOCUS */
.ssrf-focus { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 22px; }
.ssrf-fcard { display: flex; flex-direction: column; gap: 12px; padding: 30px 26px; background: #fff; border: 1px solid var(--ssrf-line); border-radius: 24px; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 30, 54, .05); transition: transform .4s var(--ssrf-ease), box-shadow .4s var(--ssrf-ease), border-color .4s; }
.ssrf-fcard:hover { transform: translateY(-8px); box-shadow: var(--ssrf-shadow); border-color: transparent; }
.ssrf-fcard__icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 1.55rem; }
.ssrf-fcard__title { font-size: 1.22rem; font-weight: 800; color: var(--ssrf-navy); margin: 0; }
.ssrf-fcard__text { color: var(--ssrf-muted); margin: 0; font-size: .95rem; line-height: 1.55; flex: 1; }
.ssrf-fcard__more { color: var(--ssrf-blue); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s var(--ssrf-ease); }
.ssrf-fcard:hover .ssrf-fcard__more { gap: 11px; }

/* ================================================================== ABOUT */
.ssrf-about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.ssrf-about__media { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--ssrf-shadow-lg); aspect-ratio: 4 / 3; background: var(--ssrf-hero-grad); }
.ssrf-about__media img { width: 100%; height: 100%; object-fit: cover; }
.ssrf-about__badge { position: absolute; left: 22px; bottom: 22px; background: #fff; padding: 16px 20px; border-radius: 18px; box-shadow: var(--ssrf-shadow); }
.ssrf-about__badge b { display: block; font-size: 1.9rem; color: var(--ssrf-blue); font-weight: 800; line-height: 1; }
.ssrf-about__badge span { font-size: .82rem; color: var(--ssrf-muted); }
.ssrf-about__body .ssrf-h2 { text-align: left; margin-top: 12px; }
.ssrf-about__body .ssrf-lead { margin-top: 14px; }
.ssrf-pillars { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 16px; }
.ssrf-pillars li { display: flex; gap: 14px; align-items: flex-start; }
.ssrf-pillars li > span { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
.ssrf-pillars b { display: block; color: var(--ssrf-navy); font-size: 1.02rem; }
.ssrf-pillars div span { color: var(--ssrf-muted); font-size: .93rem; line-height: 1.5; }

/* ================================================= DYNAMIC (CMS) SECTIONS */
.ssrf-dyn .sds-l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
/* Force light premium surfaces regardless of SDS theme tokens */
.ssrf-dyn .sds-card, .ssrf-dyn .sds-stat, .ssrf-dyn .sds-card--interactive { background: #fff; color: var(--ssrf-ink); }
.ssrf-dyn .sds-card :is(.sds-card__title, h1, h2, h3, h4, strong, b) { color: var(--ssrf-navy); }
.ssrf-dyn .sds-card .sds-muted, .ssrf-dyn .sds-card .sds-caption { color: var(--ssrf-muted); }
.ssrf-dyn .sds-card { border-radius: 24px; border: 1px solid var(--ssrf-line); overflow: clip; box-shadow: 0 1px 2px rgba(16, 30, 54, .05); padding: 0; transition: transform .4s var(--ssrf-ease), box-shadow .4s var(--ssrf-ease), border-color .4s; }
.ssrf-dyn .sds-card:hover { transform: translateY(-8px); box-shadow: var(--ssrf-shadow); border-color: transparent; }
.ssrf-dyn .sds-card :is(img, .sds-card__media) { transition: transform .6s var(--ssrf-ease); }
.ssrf-dyn .sds-card:hover :is(img, .sds-card__media) { transform: scale(1.06); }
.ssrf-dyn .sds-card > :not(img):not(.sds-card__media) { padding-inline: 22px; }
.ssrf-dyn .sds-card > :not(img):not(.sds-card__media):first-child { padding-top: 20px; }
.ssrf-dyn .sds-card > :not(img):not(.sds-card__media):last-child { padding-bottom: 22px; }
.ssrf-dyn .sds-btn { border-radius: 999px; font-weight: 700; }
.ssrf-dyn .sds-btn--accent { background: var(--ssrf-donate-grad); color: #fff; }
.ssrf-dyn .sds-stat { text-align: center; border-radius: 22px; border: 1px solid var(--ssrf-line); padding: 30px 20px; }
.ssrf-dyn .sds-stat__value { background: var(--ssrf-hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.ssrf-dyn .sds-stat__label { justify-content: center; color: var(--ssrf-muted); }
/* CSR marquee */
.ssrf-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ssrf-marquee__track { display: flex; gap: 56px; width: max-content; align-items: center; animation: ssrf-marquee 34s linear infinite; }
.ssrf-marquee:hover .ssrf-marquee__track { animation-play-state: paused; }
.ssrf-marquee img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .62; transition: .3s; }
.ssrf-marquee img:hover { filter: none; opacity: 1; }
@keyframes ssrf-marquee { to { transform: translateX(-50%); } }

/* ---- Premium content card (activities/projects/campaigns/news/reports) ---- */
.ssrf-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--ssrf-line); border-radius: 24px; overflow: hidden; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 30, 54, .05); transition: transform .4s var(--ssrf-ease), box-shadow .4s var(--ssrf-ease), border-color .4s; }
.ssrf-card:hover { transform: translateY(-8px); box-shadow: var(--ssrf-shadow); border-color: transparent; }
.ssrf-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ssrf-hero-grad); }
.ssrf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ssrf-ease); }
.ssrf-card:hover .ssrf-card__media img { transform: scale(1.07); }
.ssrf-card__badge { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--ssrf-blue); font-size: .7rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.ssrf-card__body { display: flex; flex-direction: column; gap: 9px; padding: 20px 22px 22px; flex: 1; text-align: left; }
.ssrf-card__date { color: var(--ssrf-muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.ssrf-card__title { font-size: 1.2rem; font-weight: 800; color: var(--ssrf-navy); margin: 0; line-height: 1.25; letter-spacing: -.01em; }
.ssrf-card__text { color: var(--ssrf-muted); font-size: .93rem; line-height: 1.55; margin: 0; flex: 1; }
.ssrf-card__progress { height: 8px; border-radius: 999px; background: var(--ssrf-line); overflow: hidden; }
.ssrf-card__progress span { display: block; height: 100%; border-radius: 999px; background: var(--ssrf-donate-grad); }
.ssrf-card__progress-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ssrf-muted); }
.ssrf-card__progress-meta b { color: var(--ssrf-navy); }
.ssrf-card__more { margin-top: auto; color: var(--ssrf-blue); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s var(--ssrf-ease); }
.ssrf-card:hover .ssrf-card__more { gap: 11px; }

/* ---- Dynamic section layout: centred head, left-aligned grid, view-all ---- */
.ssrf-dyn { text-align: center; }
.ssrf-dyn .sds-l-grid { text-align: left; }
.ssrf-dyn .sds-btn--outline { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; border: 1.5px solid var(--ssrf-line); border-radius: 999px; padding: .8rem 1.7rem; color: var(--ssrf-blue); font-weight: 700; background: #fff; text-decoration: none; transition: transform .25s var(--ssrf-ease), box-shadow .25s, border-color .25s; }
.ssrf-dyn .sds-btn--outline:hover { border-color: var(--ssrf-blue); transform: translateY(-2px); box-shadow: var(--ssrf-shadow); }
.ssrf-dyn .sds-btn--accent { background: var(--ssrf-donate-grad); border-color: transparent; color: #fff; }

/* ---- Gallery preview (Pinterest-ish) ---- */
.ssrf-dyn .sds-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.ssrf-dyn .sds-gallery > *, .ssrf-dyn .sds-gallery a { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 1px 2px rgba(16, 30, 54, .08); }
.ssrf-dyn .sds-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ssrf-ease); }
.ssrf-dyn .sds-gallery a:hover img, .ssrf-dyn .sds-gallery > *:hover img { transform: scale(1.08); }

/* ---- Single CTA cards (volunteer / contact) — scoped so they don't hit grids ---- */
.ssrf-dyn .ssrf-shell > .sds-card { max-width: 980px; margin-inline: auto; text-align: center; padding: 42px 34px; border-radius: 26px; border: 1px solid var(--ssrf-line); background: linear-gradient(135deg, #EAF3FA, #fff) !important; box-shadow: 0 1px 2px rgba(16, 30, 54, .05); }
.ssrf-dyn .ssrf-shell > .sds-card.sds-row { text-align: left; padding: 26px 34px; align-items: center; }
.ssrf-dyn .ssrf-shell > .sds-card :is(.sds-h3, .sds-h4, h2, h3) { color: var(--ssrf-navy); font-weight: 800; margin: 0; }
.ssrf-dyn .ssrf-shell > .sds-card .sds-btn { margin-top: 16px; }
.ssrf-dyn .ssrf-shell > .sds-card.sds-row .sds-btn { margin-top: 0; }
/* CSR partner logo tiles are flat + compact (not big CTA cards) */
.ssrf-dyn .sds-card--flat, .ssrf-marquee .sds-card--flat { padding: 14px 22px !important; border-radius: 14px; background: #fff !important; min-height: 74px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(16, 30, 54, .06); }
.ssrf-marquee .sds-card--flat img { max-height: 46px; width: auto; }
.ssrf-dyn .sds-blockquote, .ssrf-dyn blockquote { border: 0; background: transparent; font-size: 1.05rem; color: var(--ssrf-ink); font-style: italic; }

/* ---- Newsletter ("Stay in the loop") ---- */
.ssrf-dyn .sds-l-newsletter { text-align: center; max-width: 640px; margin-inline: auto; }
.ssrf-dyn .sds-l-newsletter form { display: flex; gap: 10px; justify-content: center; max-width: 520px; margin: 18px auto 0; flex-wrap: wrap; }
.ssrf-dyn .sds-l-newsletter input { flex: 1; min-width: 220px; margin: 0; }

/* ---- Solid action buttons (Subscribe, Contact us) vs. outline view-all pills ---- */
.ssrf-dyn .sds-btn:not(.sds-btn--outline) { margin: 0; border: 0; border-radius: 999px; padding: .85rem 1.7rem; font-weight: 700; background: var(--ssrf-donate-grad); color: #fff; white-space: nowrap; box-shadow: 0 12px 26px -10px rgba(245, 130, 11, .5); transition: transform .25s var(--ssrf-ease), box-shadow .25s; }
.ssrf-dyn .sds-btn:not(.sds-btn--outline):hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(245, 130, 11, .65); color: #fff; }

/* ---- Inputs (newsletter etc.) ---- */
.ssrf-dyn input:not([type=checkbox]):not([type=radio]), .ssrf-dyn .sds-input { border-radius: 999px; border: 1px solid var(--ssrf-line); background: #fff; padding: .85rem 1.25rem; color: var(--ssrf-ink); }
.ssrf-dyn input:focus, .ssrf-dyn .sds-input:focus { border-color: var(--ssrf-blue); box-shadow: 0 0 0 3px rgba(30, 20, 12, .15); outline: none; }

/* ============================================================= DONATE BAND */
.ssrf-donate-band { position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(3.5rem, 7vw, 6rem) 0; color: #fff; overflow: hidden; isolation: isolate; background: var(--ssrf-hero-grad); }
.ssrf-donate-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 110% at 12% 0%, rgba(245, 158, 11, .28), transparent 55%); }
.ssrf-donate-band__inner { text-align: center; max-width: 780px; margin-inline: auto; }
.ssrf-donate-band h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.ssrf-donate-band p { margin: 14px auto 28px; color: rgba(255, 255, 255, .9); font-size: 1.15rem; max-width: 56ch; }
.ssrf-amounts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 28px; }
.ssrf-amount { padding: 12px 24px; border-radius: 999px; font-weight: 800; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .3); transition: all .25s var(--ssrf-ease); }
.ssrf-amount:hover, .ssrf-amount.is-active { background: #fff; color: var(--ssrf-blue); transform: translateY(-2px); }
.ssrf-donate-band__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =============================================================== REVEAL
   Fail-safe: content is visible by default; only hidden once <html> has the
   `.ssrf-anim` gate (set synchronously in <head>), and a JS failsafe reveals
   everything if home.js never initializes — content can never get stuck hidden. */
[data-reveal] { transition: opacity .7s var(--ssrf-ease), transform .7s var(--ssrf-ease); will-change: opacity, transform; }
.ssrf-anim [data-reveal] { opacity: 0; transform: translateY(30px); }
.ssrf-anim [data-reveal="right"] { transform: translateX(34px); }
[data-reveal].is-in { opacity: 1 !important; transform: none !important; }
[data-reveal-delay="1"] { transition-delay: .09s; } [data-reveal-delay="2"] { transition-delay: .18s; } [data-reveal-delay="3"] { transition-delay: .27s; }

/* =============================================================== RESPONSIVE */
@media (max-width: 900px) {
  .ssrf-statbar { grid-template-columns: repeat(2, 1fr); }
  .ssrf-stat { border-left: 0 !important; border-top: 1px solid var(--ssrf-line); }
  .ssrf-stat:nth-child(-n+2) { border-top: 0; }
  .ssrf-about { grid-template-columns: 1fr; }
  .ssrf-about__media { order: -1; }
}
@media (max-width: 540px) {
  .ssrf-hero { min-height: 82vh; }
  .ssrf-statbar { grid-template-columns: 1fr; }
  .ssrf-stat:nth-child(2) { border-top: 1px solid var(--ssrf-line); }
}

/* ---- Team / founders (About) ---- */
.ssrf-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.ssrf-member { text-align: center; }
.ssrf-member__photo { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; box-shadow: var(--ssrf-shadow); border: 4px solid #fff; background: var(--ssrf-hero-grad); }
.ssrf-member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ssrf-ease); }
.ssrf-member:hover .ssrf-member__photo img { transform: scale(1.06); }
.ssrf-member__name { font-size: 1.15rem; font-weight: 800; color: var(--ssrf-navy); margin: 0; }
.ssrf-member__role { color: var(--ssrf-teal-700); font-weight: 600; font-size: .9rem; margin: 4px 0 0; }

/* ---- Split CTA (donate / volunteer) ---- */
.ssrf-cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ssrf-cta-card { border-radius: 26px; padding: 42px 34px; text-align: center; border: 1px solid var(--ssrf-line); box-shadow: 0 1px 2px rgba(16, 30, 54, .05); }
.ssrf-cta-card--donate { background: var(--ssrf-hero-grad); color: #fff; border-color: transparent; box-shadow: var(--ssrf-shadow); }
.ssrf-cta-card--volunteer { background: #fff; }
.ssrf-cta-card__icon { width: 62px; height: 62px; border-radius: 18px; display: inline-grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.ssrf-cta-card--donate .ssrf-cta-card__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.ssrf-cta-card--volunteer .ssrf-cta-card__icon { background: #EAF3FA; color: var(--ssrf-blue); }
.ssrf-cta-card h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; }
.ssrf-cta-card--volunteer h3 { color: var(--ssrf-navy); }
.ssrf-cta-card p { margin: 0 0 22px; font-size: 1rem; line-height: 1.6; }
.ssrf-cta-card--donate p { color: rgba(255, 255, 255, .9); }
.ssrf-cta-card--volunteer p { color: var(--ssrf-muted); }
@media (max-width: 700px) { .ssrf-cta-split { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ssrf-marquee__track { animation: none; }
  .ssrf-hero__bg img, .ssrf-hero__bg video { transform: none !important; }
}

/* ================================================= CONTACT PAGE */
.contact-flash { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.contact-flash--ok { background: #E7F6EC; color: #166534; }
.contact-flash--err { background: #FDECEC; color: #9E222C; }
.contact-flash--info { background: #EAF3FA; color: var(--ssrf-blue); }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.contact-info__card { background: #fff; border: 1px solid var(--ssrf-line); border-radius: 22px; padding: 28px 24px; box-shadow: 0 1px 2px rgba(16,30,54,.05); transition: transform .4s var(--ssrf-ease), box-shadow .4s var(--ssrf-ease), border-color .4s; }
.contact-info__card:hover { transform: translateY(-6px); box-shadow: var(--ssrf-shadow); border-color: transparent; }
.contact-info__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.contact-info__card h3 { font-size: 1.1rem; font-weight: 800; color: var(--ssrf-navy); margin: 0 0 6px; }
.contact-info__card p, .contact-info__card a { color: var(--ssrf-muted); font-size: .92rem; line-height: 1.5; margin: 0; text-decoration: none; display: block; }
.contact-info__card a:hover { color: var(--ssrf-blue); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.contact-form-card { background: #fff; border: 1px solid var(--ssrf-line); border-radius: 26px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--ssrf-shadow); }
.contact-form-card h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--ssrf-navy); margin: 0; }
.contact-form-card__sub { color: var(--ssrf-muted); margin: 6px 0 22px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: .85rem; font-weight: 600; color: var(--ssrf-ink); }
.contact-field input, .contact-field textarea { border: 1.5px solid var(--ssrf-line); border-radius: 12px; padding: 12px 15px; font-size: .95rem; color: var(--ssrf-ink); background: #fff; font-family: inherit; }
.contact-field textarea { resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { outline: 0; border-color: var(--ssrf-blue); box-shadow: 0 0 0 3px rgba(198,31,38,.12); }
.contact-form .ssrf-btn { align-self: flex-start; margin-top: 4px; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-map { border-radius: 22px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--ssrf-shadow); }
.contact-map :is(iframe, img) { width: 100%; height: 100%; border: 0; }
.contact-cta { background: var(--ssrf-hero-grad); color: #fff; border-radius: 26px; padding: 32px 28px; box-shadow: var(--ssrf-shadow); }
.contact-cta__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255,255,255,.16); margin-bottom: 14px; }
.contact-cta h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.contact-cta p { color: rgba(255,255,255,.9); margin: 0 0 18px; }
.contact-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-help { background: #fff; border: 1px solid var(--ssrf-line); border-radius: 22px; padding: 10px; box-shadow: 0 1px 2px rgba(16,30,54,.05); }
.contact-help a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ssrf-ink); font-size: .95rem; transition: background .2s; }
.contact-help a:hover { background: #FBF3E8; }
.contact-help a > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.contact-help a b { flex: 1; font-weight: 700; }
.contact-help a > .bi-arrow-right { color: var(--ssrf-muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-row { grid-template-columns: 1fr; } }
