:root {
  --forest: #085041;
  --teal: #0F6E56;
  --amber: #EF9F27;
  --sand: #FAC775;
  --deep-forest: #04342C;
  --mid-teal: #1D9E75;
  --light-teal: #9FE1CB;
  --amber-deep: #BA7517;
  --off-white: #F1EFE8;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--deep-forest);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--sand); }
.nav-cta {
  background: var(--amber) !important;
  color: var(--deep-forest) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--sand) !important; }
/* Hamburger button — hidden on desktop, shown at the mobile breakpoint. */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Dimmed page behind the open mobile sidebar. Sits below the nav bar
   (z-index 100) so the bar and hamburger stay visible/clickable. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4,52,44,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
body.nav-locked { overflow: hidden; }

/* HERO — full-bleed photo background with a forest-green duotone hue over
   it, edge-to-edge behind the whole section on every screen size. The tint
   is what makes this forgiving of a square photo in a wide/tall section:
   it reads as a stylized, on-brand backdrop rather than a literal photo
   that needs a precise crop, and it guarantees contrast for the white
   headline no matter what part of the image ends up under the text. */
.hero {
  min-height: clamp(520px, 78vh, 760px);
  background: var(--forest);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 120px 48px 80px;
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 560px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239,159,39,0.15);
  border: 1px solid rgba(239,159,39,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  color: var(--sand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--sand); }
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--amber);
  color: var(--deep-forest);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center; /* keeps stacked full-width buttons (btn-group) aligned like btn-teal/btn-ghost */
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--sand); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(239,159,39,0.3); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-block;
}
.btn-outline:hover { border-color: var(--sand); color: var(--sand); }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Keeps the blend mode below contained to this layer instead of reaching
     through to the page behind it. */
  isolation: isolate;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  /* Desaturate + darken the source photo first so the color tint reads as
     an intentional duotone rather than a photo with a film over it. */
  filter: grayscale(45%) brightness(0.6) contrast(1.05);
}
/* The hue itself: forest-green multiplied over the photo. Multiply on a
   dark color always darkens, so this doubles as the contrast layer for the
   white headline — no separate dark scrim needed. */
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,110,86,0.9) 0%, rgba(8,80,65,0.88) 55%, rgba(4,52,44,0.92) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
}
/* A soft amber wash low-opacity on top keeps it from reading as flat green. */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(239,159,39,0.18) 0%, transparent 55%);
  z-index: 2;
}

/* SECTION BASE */
section { padding: 100px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* ABOUT */
.about { background: var(--deep-forest); }
.about .label { color: var(--mid-teal); }
.about .section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-left h2 { color: var(--white); }
.about-accent { width: 48px; height: 3px; background: var(--amber); border-radius: 2px; margin-bottom: 28px; }
.about-right p { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 20px; }

/* WHAT WE DO */
.what { background: var(--off-white); }
.what h2 { color: var(--deep-forest); }
.what .label { color: var(--teal); }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
/* Each "what we do" card is a link to the section it describes, so it needs
   to reset anchor styling and stretch to a uniform height with its CTA pinned
   to the bottom. */
.card {
  background: var(--white);
  border: 1px solid rgba(8,80,65,0.12);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.card:hover { background: var(--white); transform: translateY(-4px); border-color: rgba(239,159,39,0.5); box-shadow: 0 8px 24px rgba(8,80,65,0.10); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 44px; height: 44px;
  background: rgba(239,159,39,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.card h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--deep-forest); margin-bottom: 12px; }
.card p { font-size: 14px; line-height: 1.7; color: #2a4a40; }
.card-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-deep);
  transition: transform 0.3s;
}
.card:hover .card-link { color: var(--teal); }
.card:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* EVENTS PREVIEW (home) + EVENTS PAGE */
.events { background: var(--off-white); }
.events h2 { color: var(--deep-forest); }
.events-intro { font-size: 17px; line-height: 1.7; color: #2a4a40; max-width: 600px; margin-bottom: 48px; }
.events-empty {
  border: 2px dashed rgba(8,80,65,0.2);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  background: rgba(8,80,65,0.03);
  margin-bottom: 40px;
}
.events-empty strong { display: block; font-size: 18px; font-family: 'Playfair Display', serif; color: var(--teal); margin-bottom: 8px; }
.events-empty p { color: rgba(8,80,65,0.5); font-size: 15px; }

.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 16px; }
.events-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.list-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.event-card, .report-card {
  background: white;
  border: 1px solid rgba(8,80,65,0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--deep-forest);
  display: flex;
  flex-direction: column;
}
.event-card:hover, .report-card:hover { border-color: var(--teal); box-shadow: 0 10px 28px rgba(8,80,65,0.1); transform: translateY(-3px); }
.event-card img, .report-card img { width: 100%; height: 170px; object-fit: cover; background: var(--off-white); }
/* Event posters are usually portrait (Instagram-story ratio) — show them whole and larger */
.event-card img {
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
  background: var(--off-white);
  border-bottom: 1px solid rgba(8,80,65,0.08);
}
.card-body { padding: 20px 22px 24px; }
.card-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.event-card h3, .report-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 8px; line-height: 1.3; }
.event-meta { font-size: 13px; color: rgba(8,80,65,0.6); margin-bottom: 10px; }
.card-desc { font-size: 14px; line-height: 1.6; color: #2a4a40; }
.card-cta { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--amber-deep); }

/* SUPPORT */
.support { background: var(--forest); }
.support h2 { color: var(--white); }
.support .label { color: var(--light-teal); }
.support-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.support-body { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.support-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 20px;
  text-align: center;
}
.support-visual img { width: 200px; height: 200px; object-fit: contain; margin: 0 auto 20px; }
.support-visual h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 22px; margin-bottom: 12px; }
.support-visual p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }

/* GET INVOLVED */
.get-involved { background: var(--off-white); }
.get-involved h2 { color: var(--deep-forest); }
.involved-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.involved-simple { max-width: 720px; margin-top: 32px; }
.involved-simple p { font-size: 16px; line-height: 1.8; color: #2a4a40; margin-bottom: 20px; }
.involved-simple .btn-group { margin-top: 32px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
/* Uniform size + centered text so the three buttons line up as a neat row. */
.involved-simple .btn-group a { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 13px 24px; font-size: 15px; }
.involved-box { border-radius: 16px; padding: 44px; }
.involved-box.rescuers { background: var(--deep-forest); color: white; }
.involved-box.public { background: white; border: 1px solid rgba(8,80,65,0.12); box-shadow: 0 4px 32px rgba(8,80,65,0.07); }
.involved-box h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 16px; }
.rescuers h3 { color: var(--sand); }
.public h3 { color: var(--deep-forest); }
.involved-box p { font-size: 15px; line-height: 1.75; margin-bottom: 24px; }
.rescuers p { color: rgba(255,255,255,0.7); }
.public p { color: #2a4a40; }
.option-list { list-style: none; margin-bottom: 28px; }
.option-list li { font-size: 14px; line-height: 1.6; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; gap: 12px; align-items: flex-start; }
.public .option-list li { border-color: rgba(8,80,65,0.1); }
.option-num {
  width: 22px; height: 22px;
  background: var(--amber);
  color: var(--deep-forest);
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.rescuers .option-list li { color: rgba(255,255,255,0.75); }
.public .option-list li { color: #2a4a40; }
.btn-group { display: flex; flex-direction: column; gap: 10px; }
.btn-ghost {
  background: rgba(255,255,255,0.1); color: var(--white);
  padding: 11px 20px; border-radius: 7px; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.2s; display: inline-block; text-align: center;
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-teal {
  background: var(--teal); color: var(--white);
  padding: 11px 20px; border-radius: 7px; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.2s; display: inline-block; text-align: center;
}
.btn-teal:hover { background: var(--mid-teal); }

/* PAGE HERO (Directory / Events / Reports landing headers) */
.page-hero { background: var(--forest); padding: 140px 48px 60px; }
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(36px, 4vw, 52px); color: var(--white); letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.92); font-weight: 500; max-width: 600px; line-height: 1.7; }
/* Small disclaimer under the hero copy (directory landing). */
.hero-note { font-size: 13px !important; font-weight: 400 !important; color: rgba(255,255,255,0.65) !important; margin-top: 14px; max-width: 600px; line-height: 1.6 !important; }
.hero-note a { color: var(--sand); }

/* Global search bar (directory landing + events + reports) */
.search-bar { margin-top: 32px; max-width: 480px; position: relative; }
.search-bar input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.5); }
.search-bar input:focus { outline: 2px solid var(--sand); background: rgba(255,255,255,0.18); }
.search-bar::before {
  content: '\1F50D';
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: 0.7;
}

/* DIRECTORY LANDING */
.zone { padding: 72px 48px; }
.zone.alt { background: white; }
.zone-inner { max-width: 1100px; margin: 0 auto; }
.zone-intro { font-size: 16px; color: #2a4a40; line-height: 1.7; max-width: 600px; margin-bottom: 44px; }
/* Flex instead of a fixed 5-column grid: rows wrap at 4 across and leftover
   cards on the last row stay centered, so 5, 6, or 7 categories all look right. */
.dir-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.dir-card {
  flex: 0 1 calc(25% - 12px);
  min-width: 200px;
  background: var(--white);
  border: 1px solid rgba(8,80,65,0.15);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--deep-forest);
  transition: all 0.25s;
  cursor: pointer;
  display: block;
  box-shadow: 0 2px 10px rgba(8,80,65,0.06);
}
.dir-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(8,80,65,0.14); }
.dir-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.dir-card h3 { font-family: 'Playfair Display', serif; font-size: 16px; margin-bottom: 6px; color: var(--deep-forest); }
.dir-card p { font-size: 13px; color: #2a4a40; line-height: 1.5; }
.dir-card .dir-count { font-size: 11px; color: var(--amber-deep); font-weight: 600; margin-top: 8px; display: block; }

/* Sitewide directory search results (name/description match across all categories) */
.dir-search-results { margin-top: 40px; display: none; }
.dir-search-results.active { display: block; }
.dir-search-results .list-grid { grid-template-columns: repeat(3, 1fr); }

/* CATEGORY PAGE: filter sidebar + result cards */
.category-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
/* Categories without filter flags have no sidebar — without this override the
   content lands in the narrow 260px column and the page looks squeezed. */
.category-layout.no-filters {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.filter-panel {
  background: white;
  border: 1px solid rgba(8,80,65,0.1);
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: 92px;
}
.filter-panel h4 { font-family: 'Playfair Display', serif; font-size: 15px; margin-bottom: 16px; color: var(--deep-forest); }
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
/* flex-start + fixed-size checkbox/emoji keeps everything on the first text
   line even when a long filter name wraps to two lines. */
.filter-group label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.45; color: #2a4a40; padding: 6px 0; cursor: pointer;
}
.filter-group input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.filter-emoji { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; line-height: 1.35; }
.filter-clear { font-size: 12px; color: var(--amber-deep); font-weight: 600; text-decoration: underline; cursor: pointer; margin-top: 16px; display: inline-block; background: none; border: none; padding: 0; font-family: inherit; }

.result-count { font-size: 13px; color: rgba(8,80,65,0.6); margin-bottom: 18px; }

.entry-card {
  background: white;
  border: 1px solid rgba(8,80,65,0.1);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.entry-card:hover { border-color: var(--teal); box-shadow: 0 6px 20px rgba(8,80,65,0.08); }
.entry-top { display: flex; gap: 18px; align-items: flex-start; }
.entry-photo { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--off-white); flex-shrink: 0; }
.entry-name { font-family: 'Playfair Display', serif; font-size: 19px; margin-bottom: 4px; }
.entry-area { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.entry-desc { font-size: 14px; line-height: 1.6; color: #2a4a40; margin-bottom: 12px; }
.entry-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(239,159,39,0.15);
  border: 1px solid rgba(239,159,39,0.3);
  border-radius: 100px;
  width: 32px; height: 32px;
  font-size: 15px;
  position: relative;
  cursor: default;
}
.badge[data-label]:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: 120%; left: 50%; transform: translateX(-50%);
  background: var(--deep-forest);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.entry-contacts { display: flex; gap: 10px; flex-wrap: wrap; }
.entry-contacts a {
  font-size: 13px; font-weight: 600; color: var(--amber-deep);
  text-decoration: none; border-bottom: 1px solid rgba(186,117,23,0.35);
}
.entry-contacts a:hover { color: var(--forest); border-color: var(--forest); }
.no-results { text-align: center; padding: 60px 20px; color: rgba(8,80,65,0.55); font-size: 15px; }

/* REPORTS type tabs */
.type-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.type-tab {
  background: white; border: 1px solid rgba(8,80,65,0.15); border-radius: 100px;
  padding: 9px 18px; font-size: 13px; font-weight: 600; color: var(--deep-forest);
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.type-tab:hover { border-color: var(--teal); }
.type-tab.active { background: var(--teal); border-color: var(--teal); color: white; }

/* EVENTS upcoming/past sub-tabs */
.subtabs { display: flex; gap: 4px; background: rgba(8,80,65,0.06); border-radius: 100px; padding: 4px; width: fit-content; margin-bottom: 32px; }
.subtab { border: none; background: none; padding: 9px 20px; border-radius: 100px; font-family: inherit; font-size: 13px; font-weight: 600; color: rgba(8,80,65,0.55); cursor: pointer; }
.subtab.active { background: var(--deep-forest); color: white; }

.zone-inner .search-bar input { background: white; border: 1px solid rgba(8,80,65,0.15); color: var(--deep-forest); }
.zone-inner .search-bar input::placeholder { color: rgba(8,80,65,0.4); }
.zone-inner .search-bar input:focus { outline: 2px solid var(--teal); }

/* FOOTER */
footer { background: var(--forest); padding: 60px 48px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom p:last-child { text-align: right; max-width: 420px; }
@media (max-width: 900px) {
  .footer-bottom p:last-child { text-align: left; max-width: none; }
}

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up-2 { animation-delay: 0.15s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.45s; opacity: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-toggle { display: block; }
  /* Slide-in sidebar menu. Fixed to the right edge, slides in when .open
     is toggled by the hamburger button (see layout.js). */
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(78vw, 300px);
    background: var(--deep-forest);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 96px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -12px 0 32px rgba(0,0,0,0.25);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; padding: 10px 0; width: 100%; }
  .nav-links .nav-cta { text-align: center; margin-top: 10px; padding: 11px 20px; }
  section { padding: 72px 24px; }

  /* The background covers the section on every size already (position:
     absolute; inset:0 on .hero-media), so mobile just needs a shorter
     section and full-width text — no reordering or repositioning tricks
     needed now that it's a background, not a side panel. */
  .hero { min-height: 460px; padding: 0; }
  .hero-inner { padding: 96px 24px 56px; }
  .hero-content { max-width: none; }

  .about .section-inner { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .list-grid, .list-grid.cols-2, .events-grid { grid-template-columns: 1fr; }
  .event-card img { max-height: 560px; }
  .support-inner { grid-template-columns: 1fr; gap: 48px; }
  .involved-grid { grid-template-columns: 1fr; }
  .dir-card { flex-basis: calc(50% - 8px); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .zone, .page-hero { padding-left: 24px; padding-right: 24px; }

  .category-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .entry-top { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .dir-card { flex-basis: 100%; }
}