/* Ridgeview Alumni Charitable Corporation — rvalumcc.org
   Calm, warm, trustworthy: brand green from the logo, cream paper, a sunrise accent. */

:root {
  --green: #008037;        /* sampled from the RACC logo */
  --green-dark: #006a2d;
  --forest: #123d28;
  --forest-2: #0c2c1c;
  --sage: #e7f0e8;
  --sage-2: #d3e4d6;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --ink: #1d2721;
  --muted: #56645b;
  --line: #e2ddd2;
  --sun: #f0a43a;
  --sun-soft: #fdf0dc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(18, 61, 40, .06), 0 8px 24px rgba(18, 61, 40, .08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .6rem;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- Draft banner (config.js DRAFT) ---------- */
.draft-banner {
  background: #fff3cd; color: #5c4400; border-bottom: 2px solid #e0b94f;
  padding: 10px 20px; text-align: center; font-size: .95rem; line-height: 1.45;
}
.draft-banner strong { color: #3d2d00; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1rem/1 var(--font-body);
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-sun { background: var(--sun); color: var(--forest-2); }
.btn-sun:hover { background: #e4952a; color: var(--forest-2); }
.btn-ghost { border-color: currentColor; color: var(--forest); background: transparent; }
.btn-ghost.on-dark { color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: .55em .9em; border-radius: 999px;
  text-decoration: none; font-weight: 700; color: var(--ink);
}
.main-nav a:hover { background: var(--sage); color: var(--forest); }
.main-nav a[aria-current="page"] { color: var(--green-dark); background: var(--sage); }
.main-nav .nav-donate a { background: var(--green); color: #fff; padding: .6em 1.3em; margin-left: 6px; }
.main-nav .nav-donate a:hover, .main-nav .nav-donate a[aria-current="page"] { background: var(--green-dark); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--forest);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px; }
  .main-nav a { padding: .8em 1em; border-radius: 10px; }
  .main-nav .nav-donate a { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .brand-name { font-size: .95rem; }
  .brand img { width: 44px; height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--forest-2);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,44,28,.92) 0%, rgba(12,44,28,.72) 45%, rgba(12,44,28,.25) 100%);
}
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(12,44,28,.86) 0%, rgba(12,44,28,.78) 100%); }
}
.hero-content { position: relative; z-index: 1; padding: clamp(80px, 13vw, 150px) 0 clamp(70px, 11vw, 130px); max-width: 640px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #bfe3c8; }
.hero p.lead { font-size: 1.25rem; color: #eaf3ec; margin-bottom: 1.8rem; }
.page-hero { background: var(--forest); color: #fff; padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d7e8db; font-size: 1.18rem; max-width: 640px; margin: 0; }
.page-hero .eyebrow { color: #a9d8b5; }
.page-hero::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  border-radius: 50%; border: 60px solid rgba(255,255,255,.04);
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tint { background: var(--sage); }
.section.paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }

/* Mission / vision cards */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cards-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sage); color: var(--green); margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }

/* Ways we help */
.help-item { text-align: left; }

/* About pull-quote */
.about-text p:first-of-type {
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1.35; color: var(--forest);
}

/* ---------- Impact stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--paper); border-radius: var(--radius-lg); padding: 28px 26px;
  border-top: 5px solid var(--green); box-shadow: var(--shadow);
}
.stat-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3rem); color: var(--forest); line-height: 1; }
.stat-label { margin-top: 10px; color: var(--muted); font-weight: 600; }
.stats-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.on-forest .stat { background: rgba(255,255,255,.06); box-shadow: none; border-top-color: var(--sun); }
.on-forest .stat-value { color: #fff; }
.on-forest .stat-label, .on-forest .stats-note { color: #c9dccd; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 380px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--paper); border-radius: var(--radius-lg); padding: 30px 28px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--font-display); font-size: 5rem; line-height: .7;
  color: var(--sage-2); position: absolute; top: 22px; right: 22px;
}
.quote .funded {
  align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-dark); background: var(--sage); padding: .4em .8em; border-radius: 999px; margin-bottom: 16px;
  max-width: calc(100% - 50px);
}
.quote blockquote { margin: 0 0 18px; flex: 1; }
.quote cite { font-style: normal; font-weight: 800; color: var(--forest); }
.quote cite span { font-weight: 600; color: var(--muted); margin-left: 6px; }

.essay {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--forest);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--forest); color: #fff; padding: clamp(56px, 8vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d0e3d5; font-size: 1.15rem; }
.cta-band::after {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,164,58,.22), transparent 70%);
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner > div { max-width: 640px; }

/* ---------- Events ---------- */
.event { padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); }
.event:last-of-type { border-bottom: 0; }
.event-meta {
  display: inline-flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 18px;
  padding: 14px 18px; background: var(--sun-soft); border-radius: var(--radius); font-weight: 700; color: var(--forest);
}
.event-meta .label { color: #9a5c0c; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; display: block; font-weight: 800; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gallery figcaption, .photo-credit { font-size: .85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:nth-child(3) { display: none; } }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.person {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; background: var(--sage); }
.person-body { padding: 18px 20px 20px; }
.person h3 { font-size: 1.2rem; margin: 0 0 4px; }
.person .role { font-size: .9rem; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.person details summary {
  cursor: pointer; font-weight: 800; color: var(--green-dark); list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.person details summary::-webkit-details-marker { display: none; }
.person details summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.person details[open] summary::after { content: "\2212"; }
.person details p { margin: 10px 0 0; font-size: .97rem; }
.committee + .committee { margin-top: 64px; }
@media (max-width: 560px) {
  .people { grid-template-columns: 1fr 1fr; gap: 14px; }
  .person-body { padding: 12px 14px 14px; }
  .person h3 { font-size: 1.02rem; }
  .person details summary { font-size: .92rem; }
}

/* ---------- Donate ---------- */
.donate-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.donate-layout > * { min-width: 0; }
@media (max-width: 900px) { .donate-layout { grid-template-columns: 1fr; } }
@media (max-width: 340px) { .chips { grid-template-columns: repeat(2, 1fr); } }
.donate-box {
  background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 2px 4px rgba(18,61,40,.06), 0 18px 48px rgba(18,61,40,.14);
  border: 1px solid var(--line); position: sticky; top: 100px;
}
@media (max-width: 900px) { .donate-box { position: static; } }
.donate-box h2 { font-size: 1.7rem; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 14px; }
.chip {
  font: 800 1.1rem/1 var(--font-body); padding: 16px 8px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--cream); color: var(--forest); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--green); }
.chip.active { border-color: var(--green); background: var(--sage); box-shadow: inset 0 0 0 1px var(--green); }
.custom-amount { margin-bottom: 14px; }
.custom-amount[hidden] { display: none; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); }
.money-input input { padding-left: 32px; font-size: 1.15rem; font-weight: 700; }
.amount-line { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--line); margin-top: 6px; }
.amount-line strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--forest); }
.donate-hint { font-size: .95rem; color: var(--muted); margin: 6px 0 12px; }
.donate-hint.error { color: #a2361c; font-weight: 700; }
#paypal-container { min-height: 10px; }
.tax-note { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-top: 10px; }
.secure-note svg { width: 16px; height: 16px; flex: none; }
.donate-success { display: none; text-align: center; padding: 12px 0; }
.donate-success.show { display: block; }
.donate-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: var(--green);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.uses { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.uses li { display: flex; gap: 14px; align-items: flex-start; }
.uses .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--sage); color: var(--green); display: grid; place-items: center; }
.uses .icon svg { width: 22px; height: 22px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; color: var(--forest); }
.field label .req { color: var(--green); }
.field label .opt { font-weight: 600; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 14px; border-radius: 10px; border: 1.5px solid #cfc9bc; background: #fff;
}
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,128,55,.18); }
textarea { min-height: 150px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: #a2361c; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--green); display: grid; place-items: center; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--forest); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-2); color: #b9cdbf; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: #e5f0e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand span { font-family: var(--font-display); color: #fff; font-size: 1.15rem; line-height: 1.2; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; }
.crisis {
  background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 14px 16px; margin-top: 18px; font-size: .92rem; color: #dce9df;
}
.crisis strong { color: #fff; }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip { transition: none; }
  .btn:hover { transform: none; }
}
