/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #2d5a27;
  --green-mid:   #3d7a35;
  --green-light: #5a9e4e;
  --tan:         #f5f0e8;
  --tan-dark:    #e8dfc8;
  --brown:       #6b4c2a;
  --text:        #2a2a2a;
  --text-light:  #555;
  --white:       #ffffff;
  --accent:      #c8860a;
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--tan);
  line-height: 1.7;
}

/* ── Header / Hero ── */
header {
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.58) 100%),
    url("hero-bg.jpg") center center / cover no-repeat;
  /* Fallback if hero-bg.jpg is not present */
  background-color: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 2.75rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

header .inner {
  max-width: 620px;
  margin: 0 auto;
}

header::before {
  /* subtle bottom fade to blend into the page */
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(245,240,232,.55));
  pointer-events: none;
}

/* Compact hero used on interior pages (no photo, shorter) */
header.header-sub {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 3rem 1.5rem 3.5rem;
}

.logo-icon {
  font-size: 2.4rem;
  margin-bottom: .3rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

header.header-sub .logo-icon { font-size: 2.4rem; }

header h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  letter-spacing: .04em;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
  margin-bottom: .35rem;
}

header.header-sub h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }

.tagline {
  font-size: 1.05rem;
  color: var(--white);
  opacity: 1;
  font-weight: 600;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  margin-bottom: 1.4rem;
}

.badge-501c3 {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 99px;
  padding: .3rem 1.1rem;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.btn-donate {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2.4rem;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-donate:hover {
  background: #a86e08;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* ── Nav ── */
nav {
  background: var(--green-dark);
  text-align: center;
  padding: .55rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 1rem;
  transition: color .2s;
}

nav a:hover { color: var(--white); }

/* ── Sections ── */
section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section + section { border-top: 1px solid var(--tan-dark); }

h2 {
  font-size: 1.75rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .5rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 50px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

p { margin-bottom: 1rem; color: var(--text-light); }

/* ── Mission card ── */
.mission-card {
  background: var(--white);
  border-left: 5px solid var(--green-mid);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-top: 1rem;
}

.mission-card p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.mission-lead {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── Donate section ── */
#donate {
  background: var(--green-dark);
  max-width: 100%;
  padding: 3rem 1.5rem;
}

#donate .inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

#donate h2 {
  color: var(--white);
  text-align: center;
}

#donate h2::after { left: 50%; transform: translateX(-50%); }

#donate p {
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* ── About / What We Support ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.support-card {
  background: var(--white);
  border-radius: 6px;
  padding: 1.4rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  text-align: center;
  position: relative;
}

.support-card .icon { font-size: 2.2rem; margin-bottom: .6rem; display: block; }

.support-card .org-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto .6rem;
  display: block;
}
.support-card h3 { font-size: 1rem; color: var(--green-dark); margin-bottom: .4rem; }
.support-card p { font-size: .9rem; margin: 0; }

.support-card.featured {
  border: 2px solid var(--accent);
}

.featured-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .18rem .6rem;
  border-radius: 99px;
  margin-bottom: .5rem;
}

/* ── What We Do (services) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.service-item {
  background: var(--white);
  border-radius: 6px;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.service-item .icon { font-size: 1.6rem; margin-bottom: .4rem; display: block; }
.service-item h3 { font-size: .98rem; color: var(--green-dark); margin-bottom: .3rem; }
.service-item p { font-size: .88rem; margin: 0; }

/* ── Contact ── */
.contact-info {
  background: var(--white);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

.contact-info .item { display: flex; align-items: center; gap: .6rem; }
.contact-info .item .ci { font-size: 1.3rem; }
.contact-info .item a { color: var(--green-dark); text-decoration: none; }
.contact-info .item a:hover { text-decoration: underline; }
.contact-info .item span { color: var(--text-light); font-size: .95rem; }

/* ── IRS / Legal note ── */
.legal-box {
  background: var(--tan-dark);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--text-light);
}

.legal-box strong { color: var(--text); }

/* ── Prose (Privacy / Terms / SMS pages) ── */
.prose h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: .6rem;
}

.prose p { color: var(--text-light); }

.prose ul, .prose ol {
  margin: 0 0 1rem 1.4rem;
  color: var(--text-light);
}

.prose li { margin-bottom: .4rem; }

.prose .updated {
  font-family: Arial, sans-serif;
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.callout {
  background: var(--white);
  border-left: 5px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin: 1.25rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: .85rem;
  color: var(--green-dark);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.back-link:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
  background: #1e3d1a;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: Arial, sans-serif;
  font-size: .82rem;
}

footer a { color: rgba(255,255,255,.65); text-decoration: none; }
footer a:hover { color: var(--white); }

.footer-links { margin-top: .5rem; }
.footer-links a { margin: 0 .5rem; }
.footer-links span.sep { opacity: .4; }

/* ── Responsive ── */
@media (max-width: 520px) {
  nav a { margin: 0 .5rem; font-size: .78rem; }
  header { padding: 2rem 1rem 2.5rem; }
}
