:root {
  --moss: #3B5D38;
  --moss-dark: #2A4228;
  --moss-light: #4E7A4A;
  --bark: #5C4033;
  --sand: #D4C5A9;
  --sand-light: #EDE6D6;
  --cream: #F7F4EE;
  --gold: #C8A84E;
  --gold-light: #DFCB82;
  --charcoal: #2C2C2C;
  --white: #FFFFFF;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(43, 66, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.nav-logo svg {
  width: 44px;
  height: 44px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.15;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--gold);
}

.nav-links {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  list-style: none;
  align-items: center;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--sand-light);
  font-size: 11px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-donate {
  background: var(--gold) !important;
  color: var(--charcoal) !important;
  padding: 6px 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  font-size: 11px !important;
  border: none;
  cursor: pointer;
}
.nav-donate:hover {
  background: var(--gold-light) !important;
}
.nav-donate::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--moss-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(43,66,40,0.3) 0%, rgba(43,66,40,0.6) 50%, rgba(43,66,40,0.95) 100%),
    url('https://images.unsplash.com/photo-1757137911040-c9d81879b212?w=1600&fit=crop&auto=format&q=80');
  background-size: cover;
  background-position: center;
}

/* Animated tree line silhouette */
.hero-treeline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 24px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero h1 .highlight {
  color: var(--gold);
  display: block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--sand-light);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200,168,78,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--moss-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--moss);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--moss-light);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease infinite;
}
.scroll-hint svg { width: 28px; height: 28px; opacity: 0.5; }

/* ─── STATS ─── */
.stats {
  background: var(--moss-dark);
  padding: 4rem 2rem;
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--moss-light), var(--gold));
}

.stats-label {
  font-family: var(--font-display);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,168,78,0.15);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gold);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--sand);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.stat-sublabel {
  font-size: 0.75rem;
  color: rgba(212,197,169,0.5);
  margin-top: 0.25rem;
}

/* ─── SECTION GENERAL ─── */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--charcoal);
  line-height: 1.1;
}

.section-title.light { color: var(--white); }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.25rem auto 0;
}

/* ─── MISSION ─── */
.mission {
  background: var(--cream);
}

.mission-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.mission-text p strong {
  color: var(--moss-dark);
  font-weight: 600;
}

.mission-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mission-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.mission-card:hover {
  transform: translateY(-4px);
}

.mission-card svg {
  width: 42px;
  height: 42px;
  color: var(--moss);
  margin-bottom: 1rem;
}

.mission-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.mission-card p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

/* ─── WHO WE SERVE ─── */
.serve {
  background:
    linear-gradient(180deg, rgba(42,66,40,0.88) 0%, rgba(42,66,40,0.92) 100%),
    url('https://images.unsplash.com/photo-1760479099643-b37a52e7c094?w=1600&fit=crop&auto=format&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.serve::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.serve .section-tag { color: var(--gold); }

.serve-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.serve-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.serve-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold);
}

.serve-item svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  flex-shrink: 0;
}

.serve-item span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sand-light);
  font-weight: 500;
}

.serve-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: rgba(212,197,169,0.5);
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ─── FIRST RESPONDER FLAG ─── */
.flag-section {
  background: linear-gradient(rgba(15, 15, 15, 0.82), rgba(15, 15, 15, 0.88)), url('../images/forest-bg.jpg') center/cover no-repeat;
  padding: 5rem 2rem 3rem;
  text-align: center;
  scroll-margin-top: 72px;
}

.flag-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.responder-flag {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
}

.flag-tribute {
  max-width: 680px;
  margin: 1.25rem auto 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c2b8a3;
  text-align: center;
  letter-spacing: 0.3px;
}

.flag-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
  opacity: 0.5;
}

.flag-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sand);
}

.legend-color {
  width: 16px;
  height: 10px;
  display: inline-block;
}

/* ─── UPCOMING TRIPS ─── */
.trips {
  background: var(--cream);
}

.trips-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trip-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.trip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.trip-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.trip-img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.trip-card:hover .trip-img-bg {
  transform: scale(1.05);
}

.trip-img .trip-date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
}

.trip-body {
  padding: 1.5rem;
}

.trip-type {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.5rem;
}

.trip-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.trip-body p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.trip-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--bark);
}

.trip-meta svg {
  width: 14px;
  height: 14px;
}

.trips-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ─── NEWSLETTER ─── */
.newsletter {
  background:
    linear-gradient(135deg, rgba(42,66,40,0.9) 0%, rgba(59,93,56,0.92) 100%),
    url('https://images.unsplash.com/photo-1762085337173-cca26f2265bf?w=1600&fit=crop&auto=format&q=80');
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter .section-tag { color: var(--gold); }

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter p {
  color: var(--sand);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
}

.newsletter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── PARTNERS ─── */
.partners {
  background: var(--cream);
  text-align: center;
}

.partners-text {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #888;
}

.partners-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.partner-logo {
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.25rem 1rem 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  transition: all 0.3s;
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.partner-name {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--charcoal);
  text-align: center;
  line-height: 1.3;
}

.partner-logo:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.partners-cta {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--moss);
}

.partners-cta a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}

/* ─── FOOTER ─── */
.footer {
  background: #1a1a1a;
  padding: 4rem 2rem 2rem;
  color: var(--sand);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(212,197,169,0.6);
  margin-top: 1rem;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0; }

.footer-links a {
  color: rgba(212,197,169,0.6);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.footer-links a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200,168,78,0.3);
  color: var(--gold);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.footer-bottom a:hover { color: var(--gold); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
/* The hamburger breakpoint used to be 1440px, which put every common laptop
   (1280, 1366, 1440) behind a mobile menu even though the full nav fits. The
   widest nav is the homepage's ten items, which sits flush against the logo at
   around 950px, so hand over to the menu below 1100 and keep real breathing
   room on every width that shows the links. */
@media (max-width: 1100px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }

  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(43,66,40,0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 2px solid var(--gold);
  }

  .nav-links.open a {
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
  }
}

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .serve-list { grid-template-columns: 1fr; }
  .trips-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .hero-content { padding: 7rem 1.5rem 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
