/* ============================================================
   Meri Kaftan for Plumas Lake Elementary School Board
   Identity: Navy #143560 / Gold #F2A83B / Cream #FBF8F1
   Type: Archivo Black + Archivo (display) / Source Sans 3 (body)
   ============================================================ */

:root {
  --navy: #143560;
  --navy-deep: #0e2544;
  --navy-soft: #1d4478;
  --gold: #f2a83b;
  --gold-deep: #d98e1d;
  --cream: #fbf8f1;
  --cream-2: #f4efe4;
  --white: #ffffff;
  --ink: #16223a;
  --ink-soft: #4a5670;
  --line: #e2dbcb;

  --font-display: "Archivo Black", "Archivo", "Helvetica Neue", sans-serif;
  --font-head: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Archivo", system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-hero: clamp(3.4rem, 9vw, 6.5rem);

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4.5rem, 9vw, 8rem);
  --radius: 3px;
}

*, *::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: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 0.75rem 1.25rem;
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-sm);
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.mark-house { fill: var(--cream); }
.mark-check { fill: var(--gold); }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: -0.02em; color: var(--cream);
  text-transform: uppercase;
}
.brand-office {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav > a {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; padding: 0.35rem 0;
  border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.nav > a:not(.btn):hover { border-bottom-color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 1.7rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.74rem; }
.btn-gold { background: var(--gold); color: #2b1a02; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(251,248,241,.45); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(251,248,241,.08); }
.btn-navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); }

/* ---------- DONATE ---------- */
.donate-head { max-width: 44em; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.donate-head .section-lede { color: var(--ink-soft); }

.donate-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4.5vw, 3.75rem); align-items: start;
}

.donate-btn { width: 100%; }
.donate-note { color: var(--ink-soft); margin: 0.85rem 0 0; }

.qr-card {
  margin: 2rem 0 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
  max-width: 260px;
}
.qr-card img { width: 100%; height: auto; }
.qr-card figcaption {
  margin-top: 0.9rem; font-size: var(--text-xs); line-height: 1.55;
  color: var(--ink-soft);
}

.donate-fineprint {
  margin: 2rem 0 0; color: var(--ink-soft);
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.donate-fineprint strong { color: var(--ink); }

.donate-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(0.5rem, 1.5vw, 1rem);
  overflow: hidden;
}
.donate-form iframe { display: block; width: 100%; min-height: 980px; border: 0; }

@media (max-width: 860px) {
  .donate-grid { grid-template-columns: 1fr; }
  .donate-side { order: 2; }
  .donate-form { order: 1; }
  .qr-card { margin-left: auto; margin-right: auto; }
}

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 0.5rem; width: 44px; height: 44px;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--cream);
  margin: 5px 0; transition: transform .25s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ---------------- Hero ---------------- */

.hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(242,168,59,.13), transparent 58%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad) clamp(4rem, 7vw, 6rem);
}

.eyebrow {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.4rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.9; letter-spacing: -0.035em;
  text-transform: uppercase; color: var(--white);
  margin: 0 0 0.7rem;
}

.hero-office {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.055em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.5rem;
}

.rule { width: 96px; height: 3px; background: var(--gold); margin: 0 0 1.4rem; }
.rule-center { margin-left: auto; margin-right: auto; }

.pillars-inline {
  list-style: none; margin: 0 0 1.6rem; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.55rem 1.1rem;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(0.9rem, 1.6vw, 1.06rem);
  letter-spacing: 0.02em; color: var(--white);
}
.pillars-inline li { display: flex; align-items: center; }
.pillars-inline li + li::before {
  content: ""; width: 6px; height: 6px; background: var(--gold);
  transform: rotate(45deg); margin-right: 1.1rem; flex: 0 0 auto;
}
.pillars-center { justify-content: center; }

.hero-lede {
  font-size: var(--text-lg); line-height: 1.6;
  color: rgba(251,248,241,.86); max-width: 34em; margin-bottom: 2.1rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-figure { margin: 0; }
.photo-frame {
  background: var(--cream);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: 0 26px 60px rgba(4,14,30,.42);
  position: relative;
}
.photo-frame::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 6px; background: var(--gold);
}
.photo-frame img { width: 100%; height: auto; border-radius: 1px; }
.hero-figure figcaption {
  margin-top: 0.95rem;
  font-size: var(--text-xs); line-height: 1.5;
  color: rgba(251,248,241,.62); max-width: 34ch;
}

.hero-ticker {
  position: relative; z-index: 1;
  background: var(--gold);
  color: #2b1a02;
}
.ticker-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
  padding: 0.85rem var(--pad);
}
.ticker-flag {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--navy); color: var(--gold);
  padding: 0.3rem 0.7rem; border-radius: 2px;
}
.ticker-date {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em;
}
.ticker-note { font-size: var(--text-sm); color: #4a3208; }

/* ---------------- Sections ---------------- */

.section { padding: var(--space-section) 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--cream); }

.kicker {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy-soft); margin: 0 0 0.9rem;
}
.kicker-gold { color: var(--gold); }

.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, var(--text-3xl));
  line-height: 1.13; letter-spacing: -0.02em;
  color: var(--navy); margin: 0 0 1.1rem; max-width: 22em;
}
.section-title-light { color: var(--white); }

.section-lede {
  font-size: var(--text-lg); line-height: 1.62;
  color: var(--ink-soft); max-width: 44em; margin: 0 0 clamp(2.5rem, 5vw, 3.75rem);
}
.section-lede-light { color: rgba(251,248,241,.82); }

/* ---------------- Priority cards ---------------- */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: clamp(1.75rem, 2.6vw, 2.35rem);
  position: relative;
  border-radius: var(--radius);
}
.card-num {
  position: absolute; top: 1.15rem; right: 1.35rem;
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--cream-2); letter-spacing: -0.03em;
}
.card-icon {
  width: 42px; height: 42px; margin-bottom: 1.35rem;
  fill: none; stroke: var(--gold); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.card h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: var(--text-xl); letter-spacing: -0.015em;
  color: var(--navy); margin: 0 0 0.75rem;
}
.card p { color: var(--ink-soft); font-size: var(--text-base); }
.card-list {
  list-style: none; margin: 1.35rem 0 0; padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--ink);
}
.card-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; line-height: 1.5; }
.card-list li:last-child { margin-bottom: 0; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg);
}

/* ---------------- About ---------------- */

.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.about-figure { margin: 0; position: sticky; top: 110px; }
.about-figure img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 10px solid var(--cream);
  box-shadow: 0 14px 40px rgba(20,53,96,.14);
}
.about-copy p { color: var(--ink-soft); font-size: var(--text-base); max-width: 40em; }
.about-copy .section-title { margin-bottom: 1.5rem; }

.pull {
  margin: 2.2rem 0; padding: 1.1rem 0 1.1rem 1.75rem;
  border-left: 4px solid var(--gold);
}
.pull p {
  font-family: var(--font-head); font-weight: 600; font-style: normal;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.35;
  color: var(--navy); margin: 0; letter-spacing: -0.015em;
}

.fineprint-note {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-xs) !important; line-height: 1.6;
  color: #6b7690 !important;
}

/* ---------------- Stats ---------------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 1.9rem);
}
.stat {
  background: rgba(251,248,241,.055);
  border: 1px solid rgba(242,168,59,.28);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.035em; color: var(--gold); line-height: 1;
}
.stat-label {
  font-family: var(--font-head); font-weight: 600;
  font-size: var(--text-sm); line-height: 1.4; color: var(--cream);
}
.stat-src {
  margin-top: auto; padding-top: 0.85rem;
  font-size: var(--text-xs); color: rgba(251,248,241,.6);
  text-decoration: underline;
}
.stat-src:hover { color: var(--gold); }

/* ---------------- Steps ---------------- */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-size: 1rem;
  margin-bottom: 1.1rem;
}
.step h3 {
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-lg);
  color: var(--navy); margin: 0 0 0.6rem; letter-spacing: -0.01em;
}
.step p { color: var(--ink-soft); font-size: var(--text-sm); margin-bottom: 0.9rem; }
.link-gold {
  font-family: var(--font-head); font-weight: 700;
  font-size: var(--text-sm); color: var(--navy);
  text-decoration: none; border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.link-gold:hover { color: var(--gold-deep); }

/* ---------------- Involved ---------------- */

.involved-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.involved-copy p { color: var(--ink-soft); max-width: 34em; }
.involved-email { margin-top: 1.75rem; }
.involved-email a {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1rem, 1.9vw, 1.22rem);
  color: var(--navy); text-decoration: none;
  border-bottom: 3px solid var(--gold); padding-bottom: 3px;
  overflow-wrap: anywhere;
}
.involved-email a:hover { color: var(--gold-deep); }

.involved-actions {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 2vw, 1.35rem);
}
.action-card {
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem; text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.action-card:hover {
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20,53,96,.12);
}
.action-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-lg);
  color: var(--navy); margin: 0 0 0.5rem; letter-spacing: -0.01em;
}
.action-card p { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: 1.15rem; }
.action-go {
  margin-top: auto;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------------- Banner ---------------- */

.banner {
  background: var(--navy);
  border-top: 6px solid var(--gold);
  border-bottom: 6px solid var(--gold);
  color: var(--cream);
}
.banner-inner {
  padding: clamp(3.25rem, 6vw, 5rem) var(--pad);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.banner-mark { width: 62px; height: 62px; margin-bottom: 1.4rem; }
.banner-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 0.95;
  letter-spacing: -0.035em; text-transform: uppercase;
  color: var(--white); margin: 0 0 0.55rem;
}
.banner-office {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(0.82rem, 1.8vw, 1.15rem);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.3rem;
}

/* ---------------- Footer ---------------- */

.site-footer { background: var(--navy-deep); color: rgba(251,248,241,.8); }
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(3rem, 5vw, 4rem) var(--pad) 2.5rem;
}
.footer-head {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.footer-col p { font-size: var(--text-sm); margin: 0 0 0.5rem; }
.footer-col a { color: var(--cream); text-decoration: underline; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--gold); }
.muted { color: rgba(251,248,241,.55); }
.small { font-size: var(--text-xs) !important; line-height: 1.6; }

.footer-disclosure { border-left: 3px solid var(--gold); padding-left: clamp(1.1rem, 2vw, 1.75rem); }
.paidfor {
  font-family: var(--font-head); font-weight: 700;
  font-size: var(--text-sm) !important; line-height: 1.45;
  color: var(--white); margin-bottom: 0.85rem !important;
  letter-spacing: 0.005em;
}

.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding: 1.35rem var(--pad);
  border-top: 1px solid rgba(251,248,241,.14);
}
.footer-base p { margin: 0; font-size: var(--text-xs); color: rgba(251,248,241,.5); }

/* ---------------- Motion ---------------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1040px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child, .steps .step:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-disclosure { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: block; max-height: 0; overflow: hidden;
    background: var(--navy-deep);
    transition: max-height .32s ease;
  }
  .mobile-nav.open { max-height: 420px; }
  .mobile-nav > a {
    display: block; padding: 0.95rem var(--pad);
    font-family: var(--font-head); font-weight: 600;
    font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--cream); text-decoration: none;
    border-bottom: 1px solid rgba(251,248,241,.12);
  }
  .mobile-nav > a:first-child { border-top: 1px solid rgba(251,248,241,.12); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 300px; }
  .hero-figure figcaption { max-width: none; }
  .about-grid, .involved-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: 340px; }
}

@media (max-width: 620px) {
  .cards, .steps, .involved-actions { grid-template-columns: 1fr; }
  .cards .card:last-child, .steps .step:last-child { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.02rem; }
  .brand-office { font-size: 0.53rem; letter-spacing: 0.1em; }
  .brand-mark { width: 32px; height: 32px; }
  .hero-actions .btn { width: 100%; }
  .pull { padding-left: 1.25rem; }
  .hero-grid { padding-top: 2.25rem; gap: 2.25rem; }
  .hero-figure { max-width: 232px; }
  .hero-figure figcaption { font-size: 0.75rem; }
  .photo-frame { padding: 9px; }
  .photo-frame::after { left: 9px; right: 9px; bottom: 9px; height: 5px; }
  .eyebrow { margin-bottom: 1rem; font-size: 0.64rem; letter-spacing: 0.14em; }
  .ticker-inner { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}
