/* =====================================================================
 *  home-program-first.css — Living in Riverdale — program-first home (2026-06-30)
 *  Styles the re-sequenced / deep-cloned sections of home-one.html only.
 *  TOKEN-ONLY: every color and font references the brand tokens defined in
 *  tokens-brand-override.css. No new fonts, no new colors. FormWise layout
 *  rhythm (alternating bands, grouped card rows, step strip, dark CTA).
 * =================================================================== */

/* ---- section rhythm ---- */
.pf-section { padding-top: var(--_gap-size---section-gap-v1, 6.5rem); padding-bottom: var(--_gap-size---section-gap-v1, 6.5rem); }
.pf-section.pf-alt { background: var(--surface-alt); }
.pf-head { max-width: 56rem; margin: 0 auto clamp(2rem, 4vw, 3.5rem); text-align: center; }
.pf-head.pf-left { margin-left: 0; text-align: left; }
.pf-eyebrow { font-family: var(--font-accent); font-style: italic; font-weight: 600; color: var(--brand-primary); font-size: 1.15rem; margin-bottom: .6rem; }
.pf-h2 { font-family: var(--font-heading); color: var(--text-heading); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.pf-lead { font-family: var(--font-body); color: var(--text-body); font-size: 1.0625rem; line-height: 1.7; margin: 1rem auto 0; max-width: 60ch; }
.pf-head.pf-left .pf-lead { margin-left: 0; }

/* ---- card grids ---- */
.pf-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.pf-grid-4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.pf-grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.pf-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---- audience cards ---- */
.pf-aud-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.pf-aud-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,76,58,.12); }
.pf-aud-img { aspect-ratio: 4 / 3; overflow: hidden; }
.pf-aud-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pf-aud-card:hover .pf-aud-img img { transform: scale(1.045); }
.pf-aud-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pf-aud-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1875rem; color: var(--text-heading); }
.pf-aud-desc { font-family: var(--font-body); color: var(--text-body); font-size: .95rem; line-height: 1.55; flex: 1; }

/* ---- shared text link ---- */
.pf-link { font-family: var(--font-body); font-weight: 700; font-size: .9375rem; color: var(--brand-primary); text-decoration: none; align-self: flex-start; }
.pf-link:hover { color: var(--brand-green-deep); text-decoration: underline; }
.pf-link::after { content: " \2192"; }

/* ---- programs, grouped rows ---- */
.pf-prog-row + .pf-prog-row { margin-top: clamp(2.5rem, 4.5vw, 3.5rem); }
.pf-row-label { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .8rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.pf-row-label h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--text-heading); margin: 0; }
.pf-row-count { font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .02em; color: var(--text-muted); text-transform: uppercase; }

/* Elevated, image-topped program cards (2026-07-01). Fewer-per-row so each
 * photo thumbnail reads; mirrors the .pf-aud-card motion. Grid overrides are
 * scoped to .pf-prog-row so the audience cards are untouched. */
.pf-prog-row .pf-grid-4,
.pf-prog-row .pf-grid-3 { grid-template-columns: repeat(auto-fit, minmax(298px, 1fr)); }
.pf-prog-row .pf-grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.pf-prog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .3s ease; }
.pf-prog-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--brand-theme-green) 55%, var(--border)); box-shadow: 0 22px 48px rgba(15,76,58,.16); }
.pf-prog-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-alt); }
.pf-prog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pf-prog-card:hover .pf-prog-thumb img { transform: scale(1.05); }
.pf-prog-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.pf-prog-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem; line-height: 1.25; color: var(--text-heading); }
.pf-prog-promise { font-family: var(--font-body); color: var(--text-body); font-size: .92rem; line-height: 1.5; flex: 1; }
.pf-prog-cta { font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: .01em; color: var(--brand-primary); margin-top: .35rem; }
.pf-prog-cta::after { content: " \2192"; display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.pf-prog-card:hover .pf-prog-cta { color: var(--brand-green-deep); }
.pf-prog-card:hover .pf-prog-cta::after { transform: translateX(4px); }

/* ---- featured-program spotlights: reverse alternate (reuses rt-about-v5) ---- */
@media (min-width: 768px) {
  .pf-spot-reverse .rt-about-v5-wrapper { flex-direction: row-reverse; }
}

/* ---- 3-step strip ---- */
.pf-steps { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pf-step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.7rem 1.5rem 1.8rem; }
.pf-step-num { font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: 2.5rem; color: var(--brand-theme-green); line-height: 1; }
.pf-step-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--text-heading); margin: .65rem 0 .45rem; }
.pf-step-text { font-family: var(--font-body); color: var(--text-body); font-size: .95rem; line-height: 1.6; margin: 0; }

/* ---- dark contact CTA band ---- */
.pf-cta-band { padding-top: var(--_gap-size---section-gap-v1, 6.5rem); padding-bottom: var(--_gap-size---section-gap-v1, 6.5rem); }
.pf-cta { background: var(--brand-green-deep); border-radius: 18px; padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.5rem, 4vw, 3rem); text-align: center; }
.pf-cta .pf-eyebrow { color: var(--brand-accent-gold); }
.pf-cta-h { font-family: var(--font-heading); font-weight: 700; color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; margin: 0; }
.pf-cta-p { font-family: var(--font-body); color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.7; max-width: 56ch; margin: 1rem auto 1.9rem; }
.pf-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- hero: subhead + secondary ghost CTA ---- */
.pf-hero-sub { font-family: var(--font-body); color: rgba(255,255,255,.92); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 46ch; margin: 1rem 0 0; }
.rt-button.pf-ghost { background: transparent !important; border: 1.5px solid rgba(255,255,255,.75) !important; }
.rt-button.pf-ghost, .rt-button.pf-ghost * { color: #F2EFE7 !important; }
.rt-button.pf-ghost:hover { background: rgba(255,255,255,.14) !important; border-color: #fff !important; }

/* primary CTA — deep brand green with off-white (wolf-white) label, so the text is
 * both off-white AND legible (off-white on gold fails contrast, so gold is not used
 * as a button fill; the gold accent stays for dark-bg eyebrows). */
.rt-button.pf-gold { background: var(--brand-green-deep) !important; border-color: var(--brand-green-deep) !important; }
.rt-button.pf-gold, .rt-button.pf-gold * { color: #F2EFE7 !important; }
.rt-button.pf-gold:hover { background: var(--brand-theme-green) !important; border-color: var(--brand-theme-green) !important; }

/* ---- reveal-on-scroll for authored sections (Webflow IX2 not bound here) ---- */
@media (prefers-reduced-motion: no-preference) {
  .pf-reveal { opacity: 0; transform: translateY(26px); }
  .pf-reveal.pf-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
  .pf-reveal-stagger > * { opacity: 0; transform: translateY(22px); }
  .pf-reveal-stagger.pf-in > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
  .pf-reveal-stagger.pf-in > *:nth-child(2) { transition-delay: .07s; }
  .pf-reveal-stagger.pf-in > *:nth-child(3) { transition-delay: .14s; }
  .pf-reveal-stagger.pf-in > *:nth-child(4) { transition-delay: .21s; }
  .pf-reveal-stagger.pf-in > *:nth-child(5) { transition-delay: .28s; }
}
