:root {
  /* Palette taken from the logo: navy + sky blue */
  --green: #0b3a6b;        /* primary (navy) */
  --green-dark: #082a4f;   /* headings */
  --accent: #38bfee;       /* sky blue */
  --cream: #fdfcf8;
  --sand: #f1f3f5;
  --mint: #e4f4fb;         /* light sky tint */
  --text: #2b2b2b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, nav, .btn, .brand { font-family: var(--sans); }
h1, h2, h3 { color: var(--green-dark); line-height: 1.15; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: 1.5rem; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.35rem; }
a { color: var(--green); }
.center { text-align: center; }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid #e4e2d9;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: block; line-height: 0; }
/* Scales smoothly: 64px on phones, up to 140px on wide screens */
.brand img { height: clamp(64px, 14vw, 140px); width: auto; }
nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
nav a { color: var(--green-dark); text-decoration: none; font-size: .95rem; }
nav a:hover { text-decoration: underline; }
nav a.btn { color: #fff; }
nav a.btn:hover { text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .8rem 1.75rem;
  border-radius: 999px;
  transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: #1d5a9a; }
.btn-small { padding: .45rem 1.1rem; font-size: .95rem; }

/* Hero */
.hero {
  position: relative;
  /* navy overlay keeps the white text readable; gradient shows if the photo fails to load */
  background:
    linear-gradient(90deg, rgba(8, 42, 79, .88) 0%, rgba(8, 42, 79, .7) 55%, rgba(8, 42, 79, .45) 100%),
    url("images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #082a4f 0%, #0b3a6b 55%, #1d6fa8 100%);
  color: #fff;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(4rem, 10vw, 7.5rem);
}
.hero-credit {
  position: absolute; right: 1rem; bottom: .5rem;
  font: .75rem var(--sans); color: rgba(255, 255, 255, .8);
}
@media (max-width: 759px) {
  .hero { background:
    linear-gradient(rgba(8, 42, 79, .82), rgba(8, 42, 79, .82)),
    url("images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #082a4f 0%, #0b3a6b 55%, #1d6fa8 100%); }
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.25rem); }
.hero p { max-width: 42rem; font-size: 1.15rem; margin: 0 0 1.75rem; }
.hero .btn { background: #fff; color: var(--green-dark); }
.hero .btn:hover { background: var(--mint); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--sand); }
.about-grid { display: grid; gap: 2rem; }
.about-grid img { width: 100%; height: auto; border-radius: 12px; }

/* Columns let the wide and tall photos pack together without big gaps */
.photos { column-gap: 1.5rem; margin-top: 2.5rem; }
.photos figure { margin: 0 0 1.5rem; break-inside: avoid; }
.photos img { width: 100%; height: auto; display: block; border-radius: 12px; }
.photos figcaption { margin-top: .6rem; font-size: .95rem; }
.credit { display: block; font-family: var(--sans); font-size: .8rem; color: #555; margin-top: .15rem; }

.video-section { padding-top: 0; }
.video-frame { max-width: 720px; margin: 1.5rem auto 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--sand); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.cards { display: grid; gap: 1.5rem; margin-top: 2rem; }
.card { background: var(--cream); border-radius: 16px; padding: 1.75rem; }
.card p { margin: 0 0 1rem; }
.stat { font-weight: 700; color: var(--green-dark); }

/* Income guidelines */
.income-grid { display: grid; gap: 2.5rem; }
table { width: 100%; max-width: 26rem; border-collapse: collapse; margin-top: 1rem; font-family: var(--sans); }
th, td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid #e4e2d9; }
thead th { background: var(--green); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: var(--sand); }
tfoot td { font-family: var(--serif); font-style: italic; border-bottom: 0; padding-left: 0; }
.trustees { list-style: none; margin: 0; padding: 0; }
.trustees li { padding: .6rem 0; border-bottom: 1px solid #e4e2d9; }

/* Donate */
.donate { background: var(--mint); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.donate-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.donate-inner > div { max-width: 40rem; }
.donate p { margin: 0; }
.amount-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.amount-buttons[hidden] { display: none; }
.freq { display: inline-flex; margin-bottom: 1rem; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--green); overflow: hidden; }
.freq button {
  font: 600 .95rem var(--sans); color: var(--green); background: transparent;
  border: 0; padding: .5rem 1.25rem; cursor: pointer;
}
.freq button[aria-selected="true"] { background: var(--green); color: #fff; }
.freq button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.btn-outline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--green); color: #fff; }
.tax-note { margin-top: 1rem !important; font-size: .9rem; color: #444; max-width: 24rem; }

/* Footer */
.site-footer { padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-name { font-family: var(--sans); color: var(--green-dark); }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
address { font-style: normal; }
.copyright { margin-top: 2rem; color: #666; font-size: .85rem; }

@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .photos { column-count: 2; }
  .income-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
