/* =====================================================
   Peninsula Education Foundation — site styles
   Used by every page; loaded once and cached.
   ===================================================== */

:root {
  --ocean-deep: #003d5b;
  --ocean-mid: #00688b;
  --ocean-light: #4a9cb8;
  --sunset-gold: #f4a261;
  --sunset-coral: #e76f51;
  --sand: #faf3e7;
  --cliff: #264653;
  --leaf: #2a9d8f;
  --ink: #1a2a33;
  --mute: #546a75;
  --card: #ffffff;
  --ring: #ffb703;
  --shadow: 0 10px 30px rgba(0, 61, 91, 0.12);
  --shadow-hover: 0 18px 50px rgba(0, 61, 91, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Skip to main content for keyboard/screen reader users */
.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background: var(--ocean-deep);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   PARTIAL HYDRATION — reserve space so chrome doesn't pop in
   ===================================================== */
[data-include="header"] {
  display: block;
  min-height: 76px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 61, 91, 0.1);
}
[data-include="footer"] {
  display: block;
  min-height: 320px;
  background: var(--cliff);
}
@media (max-width: 600px) {
  [data-include="header"] { min-height: 66px; }
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(0, 61, 91, 0.1);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ocean-deep);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-logo {
  height: 46px;
  width: auto;
  max-width: min(60vw, 260px);
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .brand-logo { height: 38px; }
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
}
nav a:hover { background: rgba(0, 104, 139, 0.1); color: var(--ocean-deep); }

/* Current-page marker (set by include.js) */
nav a[aria-current="page"] {
  background: rgba(0, 104, 139, 0.12);
  color: var(--ocean-deep);
}
nav a[aria-current="page"].donate-btn {
  /* Donate stays styled the same even on /donate/ */
  background: linear-gradient(135deg, var(--sunset-coral), var(--sunset-gold));
  color: #fff;
}

.donate-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sunset-coral), var(--sunset-gold));
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
  transition: transform 0.2s, background 0.2s;
  animation: donate-breathe 2.8s ease-in-out infinite;
}
.donate-btn:hover,
.donate-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(231, 111, 81, 0.65), 0 0 30px 6px rgba(244, 162, 97, 0.55);
  background: linear-gradient(135deg, var(--sunset-coral), var(--sunset-gold)) !important;
  animation: none;
}

@keyframes donate-breathe {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.35),
                0 0 0 0 rgba(244, 162, 97, 0);
  }
  50% {
    box-shadow: 0 8px 28px rgba(231, 111, 81, 0.55),
                0 0 28px 6px rgba(244, 162, 97, 0.55);
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 90px 0 120px;
  background:
    radial-gradient(1200px 500px at 80% -100px, rgba(244, 162, 97, 0.35), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(42, 157, 143, 0.35), transparent 60%),
    linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0,40 C200,80 400,0 600,40 C800,80 1000,0 1200,40 L1200,80 L0,80 Z' fill='%23faf3e7'/></svg>") no-repeat center/cover;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--sunset-gold), #ffd166);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 30px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sunset-coral), var(--sunset-gold));
  color: #fff;
  box-shadow: 0 10px 30px rgba(231, 111, 81, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(231, 111, 81, 0.65); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* Hero stats card */
.stats-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stats-title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px;
  font-weight: 700;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.stat {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sunset-gold);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

/* ===== GENERIC SECTION ===== */
section { padding: 80px 0; }
section:focus { outline: none; }

.section-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-head .eyebrow-dark {
  display: inline-block;
  background: rgba(0, 104, 139, 0.1);
  color: var(--ocean-mid);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ocean-deep);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-head p {
  font-size: 1.1rem;
  color: var(--mute);
  margin: 0;
}

/* ===== IMPACT CATEGORIES ===== */
.tier {
  background: var(--card);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--ocean-mid);
  position: relative;
  overflow: hidden;
}
.tier.elementary { border-top-color: var(--leaf); }
.tier.intermediate { border-top-color: var(--ocean-mid); }
.tier.high { border-top-color: var(--sunset-coral); }
.tier.other { border-top-color: var(--sunset-gold); }

.tier-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tier-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  color: #fff;
  font-weight: 800;
}
.tier.elementary .tier-icon { background: linear-gradient(135deg, var(--leaf), #52b8ac); }
.tier.intermediate .tier-icon { background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light)); }
.tier.high .tier-icon { background: linear-gradient(135deg, var(--sunset-coral), #f08a70); }
.tier.other .tier-icon { background: linear-gradient(135deg, var(--sunset-gold), #ffd166); color: var(--cliff); }

.tier h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--ocean-deep);
  letter-spacing: -0.01em;
  font-weight: 800;
}
.tier-subtitle {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 0.98rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.program {
  background: #fbfcfd;
  border: 1px solid #e7eef2;
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.program:hover, .program:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.program-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(0, 104, 139, 0.08);
}
.tier.elementary .program-badge { background: rgba(42, 157, 143, 0.12); }
.tier.intermediate .program-badge { background: rgba(0, 104, 139, 0.1); }
.tier.high .program-badge { background: rgba(231, 111, 81, 0.12); }
.tier.other .program-badge { background: rgba(244, 162, 97, 0.18); }

.program-badge svg { width: 24px; height: 24px; }
.tier.elementary .program-badge svg { stroke: var(--leaf); }
.tier.intermediate .program-badge svg { stroke: var(--ocean-mid); }
.tier.high .program-badge svg { stroke: var(--sunset-coral); }
.tier.other .program-badge svg { stroke: #c77b3a; }

.program h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--ocean-deep);
  font-weight: 700;
}
.program p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.55;
}

/* ===== WHY GIVE SECTION ===== */
.why-give {
  background: linear-gradient(135deg, var(--ocean-deep), var(--cliff));
  color: #fff;
}
.why-give .section-head h2 { color: #fff; }
.why-give .section-head p { color: rgba(255, 255, 255, 0.85); }
.why-give .section-head .eyebrow-dark { background: rgba(255, 255, 255, 0.14); color: #fff; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.25s, background 0.25s;
}
.why-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.why-card .num {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--sunset-gold), #ffd166);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  line-height: 1;
}
.why-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.97rem;
}

/* ===== CTA BAND ===== */
.cta-band {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--sunset-coral), var(--sunset-gold));
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin: 0 0 14px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cta-band p {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.95);
}
.cta-band .btn-white {
  display: inline-block;
  background: #fff;
  color: var(--ocean-deep);
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28); }

/* ===== FOOTER ===== */
footer {
  background: var(--cliff);
  color: rgba(255, 255, 255, 0.82);
  padding: 50px 0 30px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
footer h3 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
footer p { margin: 0 0 10px; line-height: 1.6; }
footer address { font-style: normal; }
footer address p { margin-bottom: 14px; }
footer strong { color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
footer a:hover { border-bottom-color: var(--sunset-gold); color: var(--sunset-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { padding: 60px 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 60px 0; }
  .tier { padding: 28px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  nav ul { gap: 2px; }
  nav a:not(.donate-btn) { padding: 6px 8px; font-size: 0.88rem; }
  .donate-btn { padding: 8px 14px !important; font-size: 0.88rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tier h3 { font-size: 1.35rem; }
  .program { padding: 18px; }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 400px) {
  nav a:not(.donate-btn) { display: none; }
}

/* High-contrast preference support */
@media (prefers-contrast: more) {
  .program, .tier { border: 2px solid var(--ocean-deep); }
  nav a { color: var(--ocean-deep); }
}

/* Print styles — make the info-sheet printable for donors */
@media print {
  header, .hero-ctas, .cta-band, footer, .donate-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .tier, .program { box-shadow: none; border: 1px solid #999; page-break-inside: avoid; }
  .hero { background: #fff; color: #000; padding: 20px 0; }
  .hero h1, .section-head h2 { color: #000; }
  .hero::after { display: none; }
}

/* =====================================================
   HOMEPAGE COMPONENTS
   New blocks used by index.html (the conversion homepage)
   ===================================================== */

/* ---- Thermometer (in hero stats card) ---- */
.thermometer-block { display: flex; flex-direction: column; gap: 10px; }
.thermometer-amounts {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.thermometer-amounts strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sunset-gold);
  line-height: 1;
}
.thermometer-amounts span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.thermometer {
  position: relative;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.thermometer-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--sunset-coral), var(--sunset-gold));
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(244, 162, 97, 0.6);
  transition: width 0.6s ease;
}
.thermometer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---- Donate amount tiles ---- */
.amount-tiles-section {
  background: var(--card);
  padding: 80px 0;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.amount-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: var(--sand);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 28px 18px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 130px;
}
.amount-tile:hover,
.amount-tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--sunset-coral);
  box-shadow: var(--shadow-hover);
}
.amount-tile .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ocean-deep);
  line-height: 1;
}
.amount-tile .impact {
  font-size: 0.9rem;
  color: var(--mute);
  line-height: 1.4;
}
.amount-tile.amount-tile-custom {
  background: linear-gradient(135deg, var(--sunset-coral), var(--sunset-gold));
}
.amount-tile.amount-tile-custom .amount,
.amount-tile.amount-tile-custom .impact { color: #fff; }
.amount-tile.amount-tile-custom:hover {
  border-color: #fff;
  box-shadow: 0 14px 40px rgba(231, 111, 81, 0.45);
}
.amount-footnote {
  text-align: center;
  font-size: 0.9rem;
  color: var(--mute);
  margin: 0;
}
.amount-footnote strong { color: var(--ocean-deep); }

/* ---- Programs preview (compact tier cards on homepage) ---- */
.programs-preview { padding: 80px 0; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.preview-card {
  display: block;
  background: var(--card);
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-top-width 0.2s;
  border-top: 5px solid var(--ocean-mid);
}
.preview-card:hover, .preview-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.preview-card.elementary { border-top-color: var(--leaf); }
.preview-card.intermediate { border-top-color: var(--ocean-mid); }
.preview-card.high { border-top-color: var(--sunset-coral); }
.preview-card.other { border-top-color: var(--sunset-gold); }
.preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.preview-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.preview-card.elementary .preview-icon { background: rgba(42, 157, 143, 0.12); color: var(--leaf); }
.preview-card.intermediate .preview-icon { background: rgba(0, 104, 139, 0.10); color: var(--ocean-mid); }
.preview-card.high .preview-icon { background: rgba(231, 111, 81, 0.12); color: var(--sunset-coral); }
.preview-card.other .preview-icon { background: rgba(244, 162, 97, 0.18); color: #c77b3a; }
.preview-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ocean-deep);
  letter-spacing: -0.01em;
}
.preview-card .preview-meta {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.preview-card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.55;
}
.preview-cta { text-align: center; }
.btn-link {
  display: inline-block;
  color: var(--ocean-mid);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--ocean-mid);
  padding: 4px 0;
  transition: color 0.2s, border-color 0.2s;
}
.btn-link:hover, .btn-link:focus-visible {
  color: var(--sunset-coral);
  border-bottom-color: var(--sunset-coral);
}

/* ---- Trust band ---- */
.trust-band {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 36px 0;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  text-align: center;
}
.trust-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-list strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sunset-gold);
  letter-spacing: -0.01em;
  line-height: 1;
}
.trust-list span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---- Quote / testimonial card placeholder ---- */
.quote-section { padding: 60px 0; }
.quote-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 22px;
  padding: 40px 44px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--sunset-coral);
}
.quote-card blockquote {
  margin: 0 0 18px;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ocean-deep);
  font-weight: 500;
  font-style: italic;
}
.quote-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--mute);
  font-size: 0.95rem;
}

/* Responsive tweaks for new components */
@media (max-width: 600px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-card { padding: 28px; }
  .quote-card blockquote { font-size: 1.1rem; }
  .trust-list { gap: 18px 28px; }
  .trust-list strong { font-size: 1.1rem; }
}
@media (max-width: 400px) {
  .amount-grid { grid-template-columns: 1fr; }
}

/* Print: hide donate-only blocks on print */
@media print {
  .amount-tiles-section, .trust-band, .quote-section { display: none !important; }
}

/* =====================================================
   WAYS-TO-GIVE PAGE
   ===================================================== */

/* Compact hero variant */
.hero-compact { padding: 70px 0 90px; }
.hero-compact .hero-inner {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-compact h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero-compact .lede { margin-left: auto; margin-right: auto; }

/* Sticky chip-style sub-nav for in-page sections */
.page-nav {
  position: sticky;
  top: 76px; /* sits below the main sticky header */
  z-index: 50;
  background: rgba(250, 243, 231, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(0, 61, 91, 0.1);
}
@media (max-width: 600px) {
  .page-nav { top: 66px; }
}
.page-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.page-nav li { flex-shrink: 0; }
.page-nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 104, 139, 0.08);
  color: var(--ocean-deep);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.page-nav a:hover,
.page-nav a:focus-visible {
  background: var(--ocean-mid);
  color: #fff;
}

/* Method sections */
.method-section { padding: 70px 0; }
.method-section.alt { background: var(--card); }
.method-section + .method-section { border-top: 1px solid rgba(0, 61, 91, 0.06); }

.method-inner {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}
.method-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light));
  color: #fff;
  box-shadow: var(--shadow);
}
.method-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.method-icon.icon-online { background: linear-gradient(135deg, var(--sunset-coral), var(--sunset-gold)); }
.method-icon.icon-check { background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light)); }
.method-icon.icon-stock { background: linear-gradient(135deg, var(--leaf), #52b8ac); }
.method-icon.icon-daf { background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid)); }
.method-icon.icon-ira { background: linear-gradient(135deg, #4a6fa5, var(--ocean-mid)); }
.method-icon.icon-match { background: linear-gradient(135deg, var(--sunset-gold), #ffd166); color: var(--cliff); }
.method-icon.icon-pledge { background: linear-gradient(135deg, var(--cliff), var(--ocean-deep)); }
.method-icon.icon-bequest { background: linear-gradient(135deg, var(--leaf), var(--ocean-mid)); }

.method-tagline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean-mid);
  background: rgba(0, 104, 139, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.method-content h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: var(--ocean-deep);
  letter-spacing: -0.01em;
  font-weight: 800;
  line-height: 1.2;
}
.method-content > p {
  font-size: 1.05rem;
  color: var(--mute);
  margin: 0 0 20px;
  line-height: 1.65;
}

.method-info {
  background: var(--sand);
  border: 1px solid rgba(0, 61, 91, 0.08);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 0 22px;
}
.method-section.alt .method-info {
  background: #fff;
  border-color: rgba(0, 61, 91, 0.1);
  box-shadow: var(--shadow);
}
.method-info dl { margin: 0; }
.method-info dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-mid);
  margin-bottom: 4px;
}
.method-info dd {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.55;
}
.method-info dd:last-child { margin-bottom: 0; }
.method-info dd strong { color: var(--ocean-deep); }
.method-info dd code {
  display: inline-block;
  background: rgba(0, 104, 139, 0.08);
  color: var(--ocean-deep);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}
.method-info blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--ocean-mid);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.method-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--ocean-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid var(--ocean-mid);
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--ocean-mid);
  color: #fff;
}

/* Match-widget placeholder slot */
.match-widget-slot {
  background: rgba(244, 162, 97, 0.1);
  border: 2px dashed rgba(244, 162, 97, 0.5);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: var(--mute);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.match-widget-slot strong { color: var(--cliff); }

@media (max-width: 700px) {
  .method-inner { grid-template-columns: 1fr; gap: 18px; }
  .method-icon { width: 56px; height: 56px; }
  .method-icon svg { width: 26px; height: 26px; }
  .method-content h2 { font-size: 1.35rem; }
}

/* Print: clean ways-to-give for printing */
@media print {
  .page-nav, .method-actions { display: none !important; }
  .method-section { page-break-inside: avoid; padding: 20px 0; }
  .method-icon { display: none; }
  .method-inner { grid-template-columns: 1fr; }
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */

.about-section { padding: 80px 0; }
.about-section.alt { background: var(--card); }
.about-section + .about-section { border-top: 1px solid rgba(0, 61, 91, 0.06); }

.about-intro {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.7;
}

/* ---- Mission belief grid ---- */
.belief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.belief-card {
  background: var(--sand);
  border-radius: 16px;
  padding: 26px;
  border-left: 4px solid var(--ocean-mid);
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-section.alt .belief-card { background: #fff; box-shadow: var(--shadow); }
.belief-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.belief-card:nth-child(2) { border-left-color: var(--leaf); }
.belief-card:nth-child(3) { border-left-color: var(--sunset-coral); }
.belief-card:nth-child(4) { border-left-color: var(--sunset-gold); }
.belief-card strong {
  display: block;
  color: var(--ocean-deep);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.belief-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.6;
}

/* ---- Board grid ---- */
.board-grid {
  list-style: none;
  margin: 0 auto 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  max-width: 1100px;
}
.board-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.about-section.alt .board-card { background: var(--sand); box-shadow: none; border: 1px solid rgba(0, 61, 91, 0.08); }
.board-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(0, 104, 139, 0.18), rgba(42, 157, 143, 0.15));
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 61, 91, 0.12);
}
/* Stack svg + img in the same grid cell so img overlays the silhouette.
   img has onerror="this.remove()" so missing files fall back to the SVG. */
.board-photo > * { grid-area: 1 / 1; }
.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.board-photo svg {
  width: 48px;
  height: 48px;
  stroke: var(--ocean-mid);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sub-section heading inside the Board section (Officers / Trustees / Staff) */
.board-subhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 26px;
  max-width: 640px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean-mid);
}
.board-subhead::before,
.board-subhead::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 104, 139, 0.28), transparent);
}
.board-subhead:not(.first-subhead) { margin-top: 10px; }
.board-subhead + .board-grid { margin-bottom: 50px; }
.board-role {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean-mid);
  margin-bottom: 4px;
}
.board-name {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ocean-deep);
  font-weight: 700;
}
.board-note {
  text-align: center;
  color: var(--mute);
  font-size: 0.95rem;
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.board-note a { color: var(--ocean-mid); font-weight: 600; }

/* ---- Trust badges ---- */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.trust-badge {
  background: linear-gradient(135deg, var(--ocean-deep), var(--cliff));
  color: #fff;
  padding: 24px 22px;
  border-radius: 14px;
  text-align: center;
}
.trust-badge strong {
  display: block;
  color: var(--sunset-gold);
  font-size: 1.1rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.trust-badge span {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Downloads list ---- */
.downloads { max-width: 720px; margin: 0 auto; }
.downloads h3 {
  font-size: 1.15rem;
  color: var(--ocean-deep);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.downloads h3:not(:first-child) { margin-top: 32px; }
.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.download-list li { margin-bottom: 10px; }
.download-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ocean-deep);
  border: 1px solid rgba(0, 61, 91, 0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.about-section.alt .download-list a { background: var(--sand); }
.download-list a:hover,
.download-list a:focus-visible {
  background: rgba(0, 104, 139, 0.06);
  border-color: var(--ocean-mid);
  transform: translateX(4px);
}
.download-name { font-weight: 700; flex: 1; }
.download-meta {
  font-size: 0.85rem;
  color: var(--mute);
  font-weight: 500;
}
.download-list a::after {
  content: "↓";
  color: var(--ocean-mid);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- Contact grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ocean-mid), var(--leaf));
  color: #fff;
}
.contact-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ocean-deep);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.contact-card a {
  color: var(--ocean-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.contact-card a:hover { color: var(--sunset-coral); border-bottom-color: var(--sunset-coral); }
.contact-card address {
  font-style: normal;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* About-page print */
@media print {
  .belief-grid, .board-grid, .trust-badges, .contact-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .about-section { padding: 20px 0; }
  .download-list a::after { content: ""; }
}

/* =====================================================
   404 PAGE
   ===================================================== */

.hero-404 .hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: block;
}
.hero-404 .hero-ctas { justify-content: center; }
.error-code {
  display: inline-block;
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--sunset-gold), var(--sunset-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.hero-404 h1 { margin-bottom: 14px; }
.redirect-suggestion {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 16px 22px;
  margin: 0 auto 26px;
  max-width: 580px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.55;
}
.redirect-suggestion strong { color: var(--sunset-gold); }
.redirect-suggestion a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sunset-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.redirect-suggestion a:hover {
  color: var(--sunset-gold);
}

.quick-links { padding: 70px 0; background: var(--card); }
.quick-links h2 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--ocean-deep);
  margin: 0 0 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.quick-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 820px;
}
.quick-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--sand);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ocean-deep);
  font-weight: 700;
  border: 1px solid rgba(0, 61, 91, 0.08);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.quick-grid a:hover,
.quick-grid a:focus-visible {
  background: rgba(0, 104, 139, 0.08);
  border-color: var(--ocean-mid);
  transform: translateX(4px);
}
.quick-grid a::after {
  content: "→";
  color: var(--ocean-mid);
  font-weight: 800;
  font-size: 1.1rem;
  margin-left: 12px;
}
