/* =========================================================================
   Roosevelt Academy — shared stylesheet
   Visual identity: confident, plain, warm. Cool blues, soft whites, gentle greens.
   Type: Lora (classic serif, headings) + Nunito Sans (clean body).
   ========================================================================= */

/* ---- Design tokens ---- */
:root {
  /* Core palette */
  --harbor-blue:    #3f7ca6;   /* primary — calm, trustworthy */
  --harbor-blue-dk: #2e5e80;   /* hover / depth */
  --harbor-blue-lt: #e8f2f9;   /* soft wash background */
  --sage:           #6fa988;   /* gentle green — growth, reassurance */
  --sage-dk:        #4f8568;
  --sage-lt:        #eaf3ee;
  --apricot:        #c8303a;   /* school red — from the Roosevelt logo */
  --apricot-dk:     #a82530;
  --apricot-lt:     #fce8e9;

  /* Neutrals — cool white, never warm/orange */
  --cream:          #f5f9fc;   /* page background — slight blue tint */
  --cream-2:        #edf3f9;   /* alt section background */
  --white:          #ffffff;
  --ink:            #34434d;   /* body text — soft charcoal, not black */
  --ink-soft:       #5d6b73;   /* secondary text */
  --line:           #d4e2ec;   /* hairlines / borders */

  /* Type */
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(46, 94, 128, 0.06);
  --shadow:    0 12px 32px rgba(46, 94, 128, 0.10);
  --shadow-lg: 0 24px 60px rgba(46, 94, 128, 0.14);

  --maxw: 1140px;
  --gap:  clamp(1.5rem, 4vw, 3rem);
}

/* ---- Reset & base ---- */
*, *::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.075rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--harbor-blue-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { margin: 0 0 1.1em; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint  { background: var(--cream-2); }
.section--blue  { background: var(--harbor-blue-lt); }
.section--sage  { background: var(--sage-lt); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dk);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }

.center  { text-align: center; }
.measure { max-width: 62ch; }
.measure.center { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--harbor-blue); outline-offset: 3px; }

.btn--primary { background: var(--harbor-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--harbor-blue-dk); box-shadow: var(--shadow); }

.btn--warm { background: var(--apricot); color: #fff; box-shadow: var(--shadow-sm); }
.btn--warm:hover { background: var(--apricot-dk); color: #fff; box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--harbor-blue-dk); border-color: var(--harbor-blue); }
.btn--ghost:hover { background: var(--harbor-blue); color: #fff; }

.btn--lg { padding: 1.1rem 2rem; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 249, 252, 0.90);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 auto; }

/* Logo placeholder */
.brand__logo-slot {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--harbor-blue);
  border-radius: 12px;
  background: var(--harbor-blue-lt);
  color: var(--harbor-blue-dk);
  font-family: var(--font-body);
  font-weight: 800; font-size: 0.52rem; letter-spacing: 0.06em; line-height: 1.1;
}
.footer__brand .brand__logo-slot {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  color: #cfe3f0;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1.05;
}
.brand__name span { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-dk); }

.nav__links { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}
.nav__links a:hover { background: var(--harbor-blue-lt); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--harbor-blue-dk); background: transparent; border-bottom: 2px solid var(--harbor-blue); border-radius: 0; padding-bottom: calc(0.5rem - 2px); }
.nav__cta { margin-left: 0.4rem; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle svg { display: block; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 78% -8%, var(--sage-lt) 0%, transparent 60%),
    radial-gradient(900px 480px at 8% 6%, var(--harbor-blue-lt) 0%, transparent 55%),
    var(--cream);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { margin-bottom: 0.4rem; }
.hero__mission {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.3rem; justify-content: center; }
.hero__assure {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; color: var(--ink-soft); font-weight: 700;
}
.hero__assure svg { color: var(--sage-dk); flex: 0 0 auto; }

/* Hero illustration card */
.hero__art {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(160deg, #fff, var(--harbor-blue-lt));
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  aspect-ratio: 4 / 3.4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art svg { width: 100%; height: auto; }

/* ---- Generic cards & grids ---- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--harbor-blue-lt); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 44px; height: 44px;
  border-radius: 0;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  background: transparent;
}
.icon-badge--blue { color: var(--harbor-blue); }
.icon-badge--sage { color: var(--sage-dk); }
.icon-badge--apricot { color: var(--apricot-dk); }

/* ---- Stats row ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--harbor-blue-dk); line-height: 1; }
.stat__label { font-weight: 700; color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Phased-approach timeline ---- */
.timeline { position: relative; margin-top: 2.5rem; padding-left: 2.25rem; max-width: 68ch; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.timeline__item { position: relative; padding-bottom: 2.6rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -2.25rem; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--harbor-blue);
  box-shadow: 0 0 0 4px var(--harbor-blue-lt);
}
.timeline__item--future::before {
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-lt);
}
.timeline__tag {
  display: inline-block; font-family: var(--font-body); font-weight: 800;
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--harbor-blue-dk); margin-bottom: 0.35rem;
}
.timeline__item--future .timeline__tag { color: var(--sage-dk); }
.timeline__item h3 { margin: 0 0 0.5rem; }
.timeline__item p:last-child { margin-bottom: 0; }

/* ---- Feature split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

/* Quote / pull */
.quote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
  border-left: 4px solid var(--harbor-blue);
  padding-left: 1.5rem;
  margin-left: 0;
}
.quote::before { content: ""; }
.quote::after  { content: ""; }

/* ---- Trust strip ---- */
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.trust-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.trust-list svg { color: var(--sage-dk); flex: 0 0 auto; margin-top: 3px; }

/* ---- Team cards ---- */
.team-card { text-align: center; }
.team-card .avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 600; font-size: 2rem; color: #fff;
}
.team-card .role { font-weight: 800; color: var(--harbor-blue-dk); font-size: 0.92rem; letter-spacing: 0.02em; }
.team-card .bio { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Program list ---- */
.program {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--harbor-blue);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.program:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.program:nth-child(3n+2) { border-left-color: var(--sage); }
.program:nth-child(3n+3) { border-left-color: var(--apricot); }
.program__icon { width: 44px; height: 44px; border-radius: 0; display: grid; place-items: center; color: var(--harbor-blue); background: transparent; }
.program:nth-child(3n+2) .program__icon { color: var(--sage-dk); background: transparent; }
.program:nth-child(3n+3) .program__icon { color: var(--apricot-dk); background: transparent; }
.program__who {
  display: inline-block;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--sage-dk);
  background: var(--sage-lt);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}
.program h3 { margin-bottom: 0.5rem; }
.program p:last-child { margin-bottom: 0; }

/* ---- Donation page ---- */
.goal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.goal__row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.goal__raised { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: var(--sage-dk); }
.goal__target { color: var(--ink-soft); font-weight: 700; }
.progress {
  height: 18px; background: var(--cream-2);
  border-radius: var(--radius-pill); overflow: hidden;
  border: 1px solid var(--line);
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sage), var(--harbor-blue));
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}
.goal__meta { margin-top: 0.7rem; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }

.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--harbor-blue); }
.tier__amt { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--harbor-blue-dk); }
.tier__funds { font-weight: 800; color: var(--ink); }
.tier__desc { color: var(--ink-soft); font-size: 0.97rem; }

.amount-picker { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }
.amount-picker button {
  font-family: var(--font-body); font-weight: 800; font-size: 1.05rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  background: var(--white); color: var(--ink);
  cursor: pointer; transition: all 0.15s ease;
}
.amount-picker button:hover { border-color: var(--harbor-blue); }
.amount-picker button.is-active { background: var(--harbor-blue); border-color: var(--harbor-blue); color: #fff; }

.zelle-copy {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1.02rem;
  color: var(--harbor-blue-dk);
  background: var(--harbor-blue-lt);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.zelle-copy:hover, .zelle-copy:focus-visible { border-color: var(--harbor-blue); }
.zelle-copy svg { flex: 0 0 auto; }

.privacy-note {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: var(--sage-lt);
  border: 1px solid #d6e7dc;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: var(--ink);
  font-size: 0.97rem;
}
.privacy-note svg { color: var(--sage-dk); flex: 0 0 auto; margin-top: 2px; }
.privacy-note strong { color: var(--sage-dk); }

/* ---- Page hero (interior pages) ---- */
.page-hero {
  background:
    radial-gradient(800px 360px at 85% -20%, var(--sage-lt) 0%, transparent 60%),
    radial-gradient(700px 340px at 0% 0%, var(--harbor-blue-lt) 0%, transparent 55%),
    var(--cream);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero .wrap { max-width: 1000px; }
.page-hero h1 { margin-bottom: 0.6rem; max-width: 28ch; margin-left: auto; margin-right: auto; }
.page-hero p { max-width: min(60ch, 82%); margin-left: auto; margin-right: auto; }
.page-hero__logo { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.page-hero__logo img { width: clamp(180px, 30vw, 255px); height: clamp(180px, 30vw, 255px); border-radius: 50%; object-fit: contain; box-shadow: var(--shadow); }

/* ---- CTA band ---- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8d1d6; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---- Footer ---- */
.site-footer {
  background: #2b3a43;
  color: #d6dde1;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
}
.site-footer a { color: #cfe3f0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(2rem, 4vw, 3rem); }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand img { height: 100px !important; width: 100px !important; }
.footer__brand p { color: #aeb9bf; font-size: 0.96rem; max-width: 32ch; }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer ul a { font-weight: 600; }
.footer li, .footer ul a { overflow-wrap: anywhere; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem; padding-top: 1.3rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  color: #9aa6ad; font-size: 0.9rem;
}

/* ---- Utilities ---- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

@media (max-width: 680px) {
  body { font-size: 1.02rem; }
  .lead { max-width: min(60ch, 85%); margin-left: auto; margin-right: auto; }
  .section-head { max-width: min(60ch, 88%); }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.2rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.7rem 0.9rem; }
  .nav__cta { margin-left: 0; }
  .nav__toggle { display: inline-flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .program { grid-template-columns: 1fr; }
  .program__icon { width: 50px; height: 50px; }
}

@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
}

@media (hover: none) {
  .card:hover,
  .program:hover,
  .tier:hover { transform: none; box-shadow: var(--shadow-sm); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
