*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light dark;
  --green-dark: #00481f;
  --green-mid: #1a7a3a;
  --green-light: #d1fae5;
  --orange: #e07318;
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --white: #fff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--green-dark); }

/* ── Header ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--green-dark);
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
  flex: 1;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { height: 68px; width: auto; }

.org-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.org-tagline {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* ── Navigation ── */
nav {
  background: var(--green-dark);
  display: flex;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
}

.nav-inner {
  padding: 0 12px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

nav a {
  color: rgba(255,255,255,.9);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: .02em;
  white-space: nowrap;
  border-radius: 4px;
  transition: background .15s;
}

nav a:hover,
nav a.active {
  background: var(--green-mid);
  color: #fff;
  text-decoration: none;
}

nav a.active {
  box-shadow: inset 0 -3px 0 var(--orange);
}

/* ── Main ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 52px 24px;
  text-align: center;
  margin-bottom: 48px;
}

.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { font-size: 1.05rem; opacity: .88; max-width: 580px; margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  border: 2px solid transparent;
}

.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: #c5630f; border-color: #c5630f; text-decoration: none; color: var(--white); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; text-decoration: none; color: var(--white); }

.btn-green { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn-green:hover { background: var(--green-mid); border-color: var(--green-mid); text-decoration: none; color: var(--white); }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h3 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 12px; }

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 32px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: 32px 0; }

/* ── Sections ── */
section { margin-bottom: 56px; }

section h2 {
  font-size: 1.65rem;
  color: var(--green-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
}

section h3 { font-size: 1.15rem; color: var(--green-mid); margin-bottom: 10px; margin-top: 20px; }

p { margin-bottom: 16px; }
ul, ol { margin: 12px 0 16px 24px; }
li { margin-bottom: 8px; }

/* ── Programs list ── */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.program-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-weight: 500;
}

.program-item::before {
  content: '✓';
  color: var(--green-mid);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Volunteer opportunities ── */
.vol-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-mid);
}

.vol-card h3 { margin-top: 0; }
.vol-card ul { margin-top: 10px; }

/* ── Donate highlight ── */
.donate-cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  margin: 40px 0;
}

.donate-cta h2 { color: var(--white); border-bottom: 2px solid rgba(255,255,255,.25); margin-bottom: 16px; }
.donate-cta p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 24px; }

/* ── Sponsor table ── */
.sponsor-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
.sponsor-table th { background: var(--green-dark); color: var(--white); padding: 11px 14px; text-align: left; }
.sponsor-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sponsor-table tr:nth-child(even) td { background: #f1f5f9; }
.sponsor-table tr:hover td { background: var(--green-light); }

/* ── Contact info ── */
.contact-list {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 24px 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child { border-bottom: none; }

.contact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--green-dark);
  min-width: 160px;
  font-size: 0.95rem;
}

.contact-icon { font-size: 1.3rem; }

/* legacy grid still used on volunteers page */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 24px 0; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.contact-item .contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { display: block; margin-bottom: 4px; color: var(--green-dark); }

/* ── Outcomes / needs list ── */
.highlight-list { list-style: none; padding: 0; margin: 12px 0; }
.highlight-list li {
  padding: 10px 16px 10px 42px;
  position: relative;
  margin-bottom: 8px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.highlight-list li::before {
  content: '→';
  position: absolute;
  left: 14px;
  color: var(--green-mid);
  font-weight: 700;
}

/* ── Info banner ── */
.info-banner {
  background: var(--green-light);
  border-left: 5px solid var(--green-dark);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

/* ── Footer ── */
footer { background: var(--green-dark); color: rgba(255,255,255,.82); margin-top: 60px; }

.footer-inner { max-width: 1100px; margin: 0 auto; padding: 48px 24px 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}

footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
footer p { margin-bottom: 8px; font-size: 0.9rem; }
footer a { color: rgba(255,255,255,.75); }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 20px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* ── Photos ── */
img { image-orientation: from-image; max-width: 100%; }

/* Card-top image */
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px 6px 0 0;
  display: block;
  margin: -28px -28px 20px -28px;
  width: calc(100% + 56px);
}

.photo-feature {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 10px;
  margin: 28px 0;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.photo-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.photo-grid-3 figure,
.photo-grid-2 figure { margin: 0; }

.photo-grid-3 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.photo-grid-2 img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.photo-inline-right {
  float: right;
  width: 340px;
  border-radius: 10px;
  margin: 0 0 20px 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  display: block;
}

.photo-inline-left {
  float: left;
  width: 320px;
  border-radius: 10px;
  margin: 0 28px 20px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  display: block;
}

.clearfix::after { content: ''; display: table; clear: both; }

figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.photo-banner {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 28px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ── Responsive: tablet ── */
@media (max-width: 900px) {
  .logo img { height: 54px; }
  .org-name { font-size: 1.2rem; }
  .org-tagline { font-size: 0.82rem; }
  nav a { padding: 0 11px; font-size: 0.88rem; }
  .hero h1 { font-size: 2.1rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .photo-inline-right { width: 260px; }
  .photo-inline-left { width: 240px; }
  .photo-feature { max-height: 360px; }
  .donate-cta { padding: 40px 28px; }
}

/* ── Hamburger toggle (hidden on desktop) ── */
.nav-cb { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px 16px;
  line-height: 1;
  margin-left: auto;
}

/* ── Responsive: small tablet / large phone ── */
@media (max-width: 700px) {
  header { flex-direction: column; }
  .header-inner { justify-content: center; padding: 12px 16px; }
  .logo { flex-direction: row; justify-content: center; }
  nav { width: 100%; position: relative; }
  .nav-toggle { display: block; }
  .nav-inner {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    z-index: 300;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    padding: 0;
  }
  .nav-cb:checked ~ .nav-inner { display: flex; }
  nav a {
    padding: 13px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-radius: 0;
    width: 100%;
    white-space: normal;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 640px) {
  .logo { flex-direction: column; gap: 6px; text-align: center; }
  .logo img { height: 52px; }
  .org-name { font-size: 1.1rem; }
  .hero { padding: 48px 16px; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .page-hero { padding: 36px 16px; margin-bottom: 32px; }
  .page-hero h1 { font-size: 1.55rem; }
  .page-hero p { font-size: 0.95rem; }
  main { padding: 24px 14px 48px; }
  section { margin-bottom: 40px; }
  section h2 { font-size: 1.4rem; }
  .donate-cta { padding: 28px 16px; }
  .photo-inline-right, .photo-inline-left { float: none; width: 100%; margin: 0 0 20px; }
  .photo-feature { max-height: 260px; margin: 16px 0; }
  .photo-banner { height: 200px; }
  .photo-grid-3 img { height: 180px; }
  .photo-grid-2 img { height: 200px; }
  .contact-row { flex-wrap: wrap; gap: 6px; padding: 14px 16px; }
  .contact-label { min-width: unset; width: 100%; }
  .sponsor-table { font-size: 0.82rem; }
  .sponsor-table th, .sponsor-table td { padding: 8px 10px; }
  .btn { padding: 11px 20px; font-size: 0.95rem; }
  .card { padding: 20px; }
  .card-img { margin: -20px -20px 16px -20px; width: calc(100% + 40px); }
}

