:root {
  --green: #274e13;
  --green-dark: #1b3a0d;
  --cream: #f5edd9;
  --ink: #212121;
  --ink-light: #4a4a4a;
  --border: #e2d9bf;
  --max: 980px;
  --ease: 0.18s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--green); transition: color var(--ease); }
a:hover { color: var(--green-dark); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* Header / Nav */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 1.25rem;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.nav-toggle:hover { background: var(--green); color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
}

.site-nav a.nav-donate {
  background: var(--green);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  border-bottom: none;
  line-height: 1.2;
  transition: background var(--ease), transform var(--ease);
}

.site-nav a.nav-donate:hover { background: var(--green-dark); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-wrap { flex-wrap: wrap; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    gap: 1.1rem;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-8px);
    border-top: 1px solid transparent;
    transition: max-height 0.32s ease, opacity 0.24s ease, transform 0.24s ease,
                padding 0.32s ease, margin-top 0.32s ease, border-color 0.32s ease;
  }
  .site-nav.open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    padding: 1.5rem 0 1.5rem;
    margin-top: 1rem;
    border-top-color: var(--border);
  }
}

/* Main content */
main { display: block; }

section {
  padding: 3rem 0;
}

.page-title {
  padding: 2.5rem 0 0.5rem;
}

.page-title h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--green);
  margin: 0 0 0.75rem;
}

.hero-mark { margin: 0 0 1rem; }
.hero-mark img { height: 210px; width: auto; display: block; }

.page-title.centered { text-align: center; }
.page-title.centered .hero-mark img,
.page-title.centered .lede,
.page-title.centered .btn-img { margin-left: auto; margin-right: auto; }
.page-title.centered .btn-img { margin-top: 0.5rem; }

.page-title p {
  font-size: 1.1rem;
  color: var(--ink-light);
  max-width: 640px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-light);
  max-width: 720px;
}

h2 {
  font-size: 1.6rem;
  color: var(--green);
  margin-top: 0;
}

/* Alternating photo/text blocks, like the original site's flow */
.story-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.story-block.reverse { flex-direction: row-reverse; }

.story-photo { flex: 1 1 320px; }
.story-text { flex: 1 1 320px; }

.photo {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* Pillars (What We Are About) */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pillar h3 {
  color: var(--green);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.pillar p { margin: 0; color: var(--ink-light); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  transition: background var(--ease), transform var(--ease);
}

.btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }

.btn-img { display: inline-block; transition: transform var(--ease); }
.btn-img img { display: block; height: 68px; width: auto; }
.btn-img:hover { transform: translateY(-1px); }

.join-badge { display: inline-block; margin-top: 0.75rem; transition: transform var(--ease); }
.join-badge img { display: block; height: 52px; width: auto; }
.join-badge:hover { transform: translateY(-1px); }

/* Units */
.unit-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.unit-block:last-child { border-bottom: none; }

.unit-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.unit-photo { flex: 0 0 auto; }

.unit-photo .photo {
  width: 150px;
  border-radius: 0;
}

.unit-text {
  flex: 1 1 280px;
  text-align: center;
}

.unit-text p { margin: 0 0 0.5rem; }
.unit-text p:last-child { margin-bottom: 0; }

.unit-cta {
  flex: 0 0 auto;
  margin: 0 auto;
}

.unit-cta .join-badge { margin-top: 0; }

@media (max-width: 720px) {
  .unit-row { flex-direction: column; text-align: center; gap: 1.25rem; }
  .unit-text, .unit-photo, .unit-cta { flex: none; }
}

/* Donation tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}

.tier .amount {
  font-weight: 900;
  color: var(--green);
  font-size: 1.2rem;
  margin: 0.75rem 0 0.35rem;
}

.tier p:last-child { margin: 0; color: var(--ink-light); }

.stewardship-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.stewardship-list li {
  padding-left: 1.75rem;
  position: relative;
}

.stewardship-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

/* Contact form */
.form-embed {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.form-embed iframe {
  width: 100%;
  min-height: 900px;
  border: 0;
  display: block;
}

.contact-fallback { margin-top: 1rem; }

@media (max-width: 640px) {
  .story-block, .story-block.reverse { flex-direction: column; }
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #d9e3d0;
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-org { color: #fff; font-weight: 700; margin-bottom: 0.25rem; }
.footer-links a { color: #d9e3d0; }
.footer-links a:hover { color: #fff; }
.footer-copyright { margin-top: 1rem; color: #a9bb9c; }
