html { scroll-behavior: smooth; }
body { background: #FBFDF9; color: #23302A; overflow-x: hidden; }
.eyebrow { letter-spacing: 0.18em; }
.lockup { letter-spacing: 0.08em; }
.no-fouc { opacity: 0; }
section { position: relative; }
section[id] { scroll-margin-top: 96px; }
.branch-line { fill: none; stroke: #8DAD40; stroke-width: 3; stroke-linecap: round; }
.leaf-fill { fill: #8DAD40; }

/* ---- parallax media wraps ---- */
.parallax-wrap { position: relative; overflow: hidden; }
.parallax-layer { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }

/* ---- placeholders ---- */
.ph-photo {
  background: repeating-linear-gradient(135deg, rgba(31,107,61,0.07) 0 14px, rgba(31,107,61,0.02) 14px 28px), #E7F0E1;
  border: 2px dashed rgba(31,107,61,0.35);
}
.ph-video {
  background:
    radial-gradient(circle, rgba(141,173,64,0.18) 1px, transparent 1px) 0 0/22px 22px,
    linear-gradient(160deg, #27331E, #1F6B3D 140%);
}

.scroll-nav-btn { transition: background-color .2s ease, opacity .2s ease; }

/* ---- headline orphan control ---- */
h1, h2 { text-wrap: balance; }

/* ---- brand-tinted soft shadows (replaces generic black box-shadow) ---- */
.shadow-soft { box-shadow: 0 20px 40px -14px rgba(39, 51, 30, 0.28); }
.shadow-soft-lg { box-shadow: 0 28px 56px -16px rgba(39, 51, 30, 0.32); }
.logo-drop-shadow { filter: drop-shadow(0 10px 22px rgba(39, 51, 30, 0.35)); }

/* ---- keyboard focus ---- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #1F6B3D;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: #1F6B3D;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---- hero recent-events slider ---- */
.hero-slide { opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-overlay { transition: none; }
.hero-content-slide { opacity: 0; pointer-events: none; transition: opacity 1.1s ease; }
.hero-content-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-dot-btn { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-dot { width: 7px; height: 7px; border-radius: 9999px; background: rgba(255,255,255,0.4); transition: background-color .2s ease, transform .2s ease; }
.hero-dot.is-active { background: #fff; transform: scale(1.4); }

/* ---- nav active-page indicator ---- */
.nav-current { color: #1F6B3D; }

/* ---- gallery grid tiles ---- */
.gallery-tile { cursor: zoom-in; transition: transform .3s ease; }
.gallery-tile:hover, .gallery-tile:focus-visible { transform: scale(1.015); }

/* ---- lightbox ---- */
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(35, 48, 42, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#lightbox.is-open { opacity: 1; pointer-events: auto; }
#lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; width: auto; height: auto; border-radius: 8px; }

/* ---- video tiles + video lightbox ---- */
.video-tile { cursor: pointer; }
#video-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(35, 48, 42, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#video-lightbox.is-open { opacity: 1; pointer-events: auto; }
#video-lightbox video { max-width: min(92vw, 1100px); max-height: 82vh; width: auto; height: auto; border-radius: 8px; background: #000; }

/* ---- gallery category filter ---- */
.gallery-filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(31,107,61,0.25);
  color: #1F6B3D;
  background: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.gallery-filter-btn:hover { border-color: #1F6B3D; }
.gallery-filter-btn.is-active { background: #1F6B3D; color: #fff; border-color: #1F6B3D; }

/* ---- floating donate widget ---- */
[data-donate-widget] { z-index: 45; }
.donate-widget-panel { position: absolute; bottom: 100%; right: 0; margin-bottom: 0.75rem; }
