:root {
  --ink: #1b2b28;
  --muted: #65736f;
  --paper: #fffaf2;
  --soft: #f3eadb;
  --leaf: #2f6b57;
  --leaf-dark: #194536;
  --gold: #c79a3c;
  --blue: #315b7c;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(27, 43, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid rgba(27, 43, 40, 0.08);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--leaf-dark);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(27, 43, 40, 0.2);
  background: var(--white);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 9px 12px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--leaf-dark);
  background: rgba(47, 107, 87, 0.1);
}

.nav-links .donate-link {
  color: var(--white);
  background: var(--leaf);
}

.nav-links .donate-link:hover,
.nav-links .donate-link[aria-current="page"] {
  color: var(--white);
  background: var(--leaf-dark);
}

.hero {
  min-height: 76vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(6, 20, 18, 0.2), rgba(6, 20, 18, 0.72)),
    url("assets/hero-redwoods.jpg") center / cover;
  color: var(--white);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero .lede {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--leaf);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.52);
}

.button.light {
  background: var(--white);
  color: var(--leaf-dark);
  border-color: rgba(27, 43, 40, 0.1);
}

.section {
  padding: 76px 0;
}

.section.soft {
  background: var(--soft);
}

.section.deep {
  color: var(--white);
  background: linear-gradient(135deg, var(--leaf-dark), #253d54);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.section p {
  margin: 0 0 16px;
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
}

.deep .lede,
.deep .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.text-flow p {
  font-size: 1.04rem;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 14px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-stack img:last-child {
  height: 260px;
  margin-bottom: -42px;
}

.service-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.project-card,
.person,
.donation-panel {
  background: var(--white);
  border: 1px solid rgba(27, 43, 40, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(27, 43, 40, 0.08);
  overflow: hidden;
}

.project-card {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  box-shadow: 0 18px 42px rgba(27, 43, 40, 0.14);
  transform: translateY(-3px);
}

.service-card img,
.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-card div,
.project-card div,
.person {
  padding: 18px;
}

.service-card h3,
.project-card h3,
.person h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.service-card p,
.project-card p,
.person p {
  margin: 0;
  color: var(--muted);
}

.donation-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.donation-panel {
  padding: 24px;
}

.donation-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}

.donation-detail strong {
  display: block;
  color: var(--leaf-dark);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donation-detail span {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
}

.codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.codes figure {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8f5ee;
  border: 1px solid rgba(27, 43, 40, 0.08);
}

.codes img {
  width: 100%;
  border-radius: 6px;
}

.codes figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.tax-note {
  color: var(--leaf-dark);
  font-weight: 800;
}

.page-hero {
  padding: 78px 0 58px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(25, 69, 54, 0.92), rgba(49, 91, 124, 0.88)),
    url("assets/hero-redwoods.jpg") center / cover;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.narrow {
  max-width: 860px;
}

.feature-image {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 30px 0;
}

.callout {
  padding: 24px;
  border-left: 5px solid var(--gold);
  background: rgba(199, 154, 60, 0.12);
  border-radius: 8px;
}

.list {
  padding-left: 22px;
}

.list li {
  margin-bottom: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.person p + p {
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(27, 43, 40, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.rtl {
  direction: rtl;
  text-align: right;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #142722;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--white);
}

@media (max-width: 980px) {
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .donation-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 68px;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid rgba(27, 43, 40, 0.1);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
    justify-items: stretch;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content,
  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .image-stack,
  .service-grid,
  .project-grid,
  .team-grid,
  .codes,
  .donation-detail {
    grid-template-columns: 1fr;
  }

  .image-stack img,
  .image-stack img:last-child {
    height: auto;
    margin: 0;
  }

  .mobile-hidden {
    display: none;
  }
}
