:root {
  color-scheme: light;
  --ink: #10231c;
  --muted: #5b6c62;
  --paper: #ffffff;
  --mist: #eff8f4;
  --leaf: #1f6f4a;
  --deep: #123628;
  --mangrove: #0d2920;
  --sun: #f5bd43;
  --clay: #cf6c37;
  --water: #2a8ea0;
  --line: rgba(31, 111, 74, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
}
a { color: inherit; }
img, video { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p { color: var(--muted); line-height: 1.65; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(239, 248, 244, 0.92);
  backdrop-filter: blur(16px);
}
.brand img { display: block; width: 176px; height: auto; }
nav { display: flex; justify-content: flex-end; gap: 18px; font-size: 14px; font-weight: 850; }
nav a, .nav-cta { text-decoration: none; }
nav a:hover { color: var(--leaf); }
.menu-toggle { display: none; }

.primary-button, .secondary-button, .ai-button, .nav-cta, .gallery-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}
.primary-button { color: white; background: var(--leaf); }
.secondary-button { color: var(--mangrove); background: var(--sun); }
.ai-button, .nav-cta { color: white; background: var(--clay); }
.gallery-toggle-button { color: white; background: var(--water); }

main > section, .site-footer {
  padding: 76px max(22px, calc((100vw - 1180px) / 2));
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: var(--mangrove);
}
.hero-video, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video { object-fit: cover; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 41, 32, 0.94), rgba(13, 41, 32, 0.42) 58%, rgba(13, 41, 32, 0.08)),
    linear-gradient(0deg, rgba(13, 41, 32, 0.82), transparent 58%);
}
.hero-content {
  position: relative;
  min-width: 0;
  width: min(100%, 850px);
  max-width: 850px;
  padding-bottom: 52px;
}
.eyebrow {
  margin: 0;
  color: var(--sun);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 8px 0 0; letter-spacing: 0; }
h1 { font-size: clamp(44px, 6vw, 82px); line-height: 0.96; max-width: 880px; }
h2 { font-size: clamp(30px, 4.3vw, 54px); line-height: 1.04; }
h3 { font-size: 23px; line-height: 1.15; }
.hero-content p:not(.eyebrow) {
  max-width: 690px;
  color: #f5f0dc;
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.quick-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 22px;
  background: #173126;
}
.quick-strip span {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 9px 13px;
  color: #f5e7c3;
  font-weight: 850;
}

.intro, .booking-section, .heritage-section, .contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: start;
  background: var(--paper);
}
.intro > p { margin-top: 10px; font-size: 18px; }
.tours-section, .packages-section { background: var(--mist); }
.birding-intro-section { background: var(--paper); }
.youtube-section { background: #f7fbf8; }
.pathways-section { background: #fffdf2; }
.ai-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  background: #eef6f8;
}
.section-heading { max-width: 820px; margin-bottom: 26px; }
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 28px;
  max-width: none;
  align-items: end;
}

.tour-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.tour-filter button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: white;
  font-weight: 850;
}
.tour-filter button.active {
  color: white;
  background: var(--leaf);
}
.tour-grid, .package-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tour-card, .package-layout article, .ai-panel, .booking-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(17, 48, 36, 0.07);
}
.tour-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
}
.tour-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.tour-card div { display: grid; gap: 12px; padding: 18px; }
.tour-card p { margin: 0; }
.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tour-meta span, .package-layout span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  background: var(--water);
  font-size: 12px;
  font-weight: 950;
}
.tour-card a { color: var(--leaf); font-weight: 950; text-decoration: none; }

.bird-gallery-section {
  background:
    linear-gradient(180deg, rgba(13, 41, 32, 0.94), rgba(18, 54, 40, 0.92)),
    url("assets/birds/bird-09.jpeg") center / cover;
  color: white;
}

.bird-gallery-section .section-heading p,
.bird-gallery-section .section-heading + p {
  color: #edf8ef;
}

.bird-gallery-section h2 {
  max-width: 860px;
}

.bird-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -4px 0 24px;
}

.gallery-reveal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: -4px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-reveal-panel span,
.gallery-reveal-panel strong {
  display: block;
}

.gallery-reveal-panel span {
  color: var(--sun);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.gallery-reveal-panel strong {
  margin-top: 4px;
  color: white;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.gallery-reveal-panel p {
  margin: 8px 0 0;
  color: #edf8ef;
}

.gallery-reveal-panel .gallery-toggle-button {
  min-width: 220px;
}

.youtube-reveal-panel {
  margin-top: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.youtube-reveal-panel strong {
  color: var(--deep);
}

.youtube-reveal-panel p {
  color: var(--muted);
}

.youtube-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.youtube-feature-card,
.youtube-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 50px rgba(17, 48, 36, 0.07);
}

.youtube-feature-card {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.youtube-thumb {
  position: relative;
  overflow: hidden;
  background: var(--deep);
}

.youtube-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.youtube-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 30, 22, 0.22), rgba(8, 30, 22, 0.02));
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 48px;
  border-radius: 8px;
  color: white !important;
  background: rgba(207, 108, 55, 0.94) !important;
  font-size: 0 !important;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid white;
}

.youtube-feature-card:hover .youtube-thumb img {
  transform: scale(1.04);
}

.youtube-feature-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.youtube-feature-card span,
.youtube-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  background: var(--clay);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.youtube-feature-card h3 {
  margin: 0;
}

.youtube-gallery-panel[hidden] {
  display: none;
}

.youtube-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.youtube-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-bottom: 14px;
  text-decoration: none;
}

.youtube-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--deep);
}

.youtube-card span,
.youtube-card strong {
  margin-left: 14px;
  margin-right: 14px;
}

.youtube-card strong {
  color: var(--deep);
  line-height: 1.25;
}

.youtube-card:hover strong {
  color: var(--leaf);
}

.youtube-channel-link {
  margin-top: 18px;
}

.bird-gallery-panel[hidden] {
  display: none;
}

.bird-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 12px;
}

.lester-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 242, 0.94), rgba(239, 248, 244, 0.95)),
    url("assets/hero-swamp.jpg") center / cover;
}

.lester-portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(17, 48, 36, 0.11);
}

.lester-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
}

.lester-portrait figcaption {
  padding: 14px 18px;
  color: var(--deep);
  font-weight: 950;
}

.lester-copy {
  display: grid;
  gap: 14px;
}

.lester-copy p {
  margin: 0;
}

.birding-intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.birding-intro-copy {
  max-width: 900px;
}

.birding-intro-copy p {
  margin: 16px 0 0;
  font-size: 18px;
}

.birding-intro-copy strong {
  color: var(--deep);
}

.birding-intro-actions {
  display: grid;
  gap: 12px;
  min-width: 240px;
}

.featured-package span,
.contact-highlight strong {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bird-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0;
  color: white;
  background: var(--deep);
  text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.bird-card:nth-child(3n + 1) {
  grid-row: span 2;
}

.bird-card:nth-child(4n + 2) {
  grid-column: span 2;
}

.bird-card:nth-child(7n) {
  grid-column: span 2;
  grid-row: span 2;
}

.bird-card.featured-bird {
  grid-column: span 2;
  grid-row: span 2;
}

.bird-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bird-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 30, 22, 0.82), rgba(8, 30, 22, 0.04) 62%);
}

.bird-card span,
.bird-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 14px;
  margin-right: 14px;
}

.bird-card span {
  width: fit-content;
  margin-top: auto;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--deep);
  background: var(--sun);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.bird-card strong {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.1;
}

.bird-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bird-card:hover img,
.bird-card:focus-visible img {
  transform: scale(1.06);
}

.bird-card:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 26px;
  background: rgba(7, 20, 16, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gallery-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
}

.gallery-lightbox img {
  max-width: min(100%, 980px);
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.gallery-lightbox figcaption {
  color: #fff8df;
  font-weight: 850;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.lightbox-nav {
  width: 52px;
  height: 52px;
  font-size: 36px;
}

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

.pathway-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
    var(--paper);
  box-shadow: 0 18px 50px rgba(17, 48, 36, 0.07);
}

.pathway-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  color: white;
  background: var(--water);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pathway-card h3 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.pathway-card p {
  margin: 0;
  font-size: 17px;
}

.pathway-card ul,
.theme-columns ul,
.learning-cta ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.pathway-card a {
  align-self: end;
  justify-self: start;
  margin-top: 8px;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fact-strip article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(17, 48, 36, 0.05);
}

.fact-strip strong {
  color: var(--leaf);
  font-size: 20px;
  line-height: 1.1;
}

.fact-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list h4 {
  margin: 0;
  color: var(--deep);
  font-size: 15px;
  text-transform: uppercase;
}

.note {
  border-left: 4px solid var(--sun);
  padding-left: 12px;
  font-size: 15px !important;
}

.ecosystem-story,
.theme-columns article,
.learning-cta,
.ai-question-bank {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(17, 48, 36, 0.07);
}

.ecosystem-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
  padding: clamp(22px, 3vw, 30px);
}

.ecosystem-story h3,
.theme-columns h3,
.learning-cta h3,
.ai-question-bank h3 {
  font-size: clamp(26px, 3vw, 40px);
}

.ecosystem-story p,
.theme-columns p,
.learning-cta p {
  margin: 0;
}

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

.theme-columns article {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
}

.theme-columns ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.theme-columns li strong,
.theme-columns li span {
  display: block;
}

.theme-columns li strong {
  color: var(--deep);
}

.learning-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(22px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(18, 54, 40, 0.94), rgba(31, 111, 74, 0.9)),
    url("assets/hero-swamp.jpg") center / cover;
  color: white;
}

.learning-cta p,
.learning-cta li {
  color: #edf8ef;
}

.learning-cta .eyebrow {
  color: var(--sun);
}

.learning-cta a {
  white-space: nowrap;
}

.ai-question-bank {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
  padding: clamp(22px, 3vw, 30px);
  background: #eef6f8;
}

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

.question-grid button {
  border: 1px solid rgba(42, 142, 160, 0.24);
  border-radius: 7px;
  padding: 12px;
  color: var(--deep);
  background: white;
  font-weight: 850;
  text-align: left;
}

.question-grid button:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

.kids-path {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,248,230,0.92)),
    url("assets/group-trip.jpg") center / cover;
}

.research-path {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(239,248,244,0.94)),
    url("assets/scarlet-ibis.jpg") center / cover;
}

.ai-copy {
  align-self: center;
  max-width: 760px;
}
.ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}
.ai-prompts button {
  border: 1px solid rgba(42, 142, 160, 0.25);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--deep);
  background: white;
  font-weight: 850;
}
.ai-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
}
.ai-panel img {
  width: min(260px, 100%);
  border-radius: 8px;
  background: white;
}
.ai-panel p { margin-bottom: 0; }

.package-layout article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}
.package-layout p { margin: 0; }

.featured-package {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 189, 67, 0.4);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  color: white;
  background:
    linear-gradient(135deg, rgba(13, 41, 32, 0.95), rgba(31, 111, 74, 0.82)),
    url("assets/birds/bird-15.jpeg") center / cover;
  box-shadow: 0 18px 50px rgba(17, 48, 36, 0.14);
}

.featured-package p,
.featured-package li {
  color: #edf8ef;
}

.featured-package ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.45;
}

.featured-package a {
  white-space: nowrap;
}

.booking-section { background: #fff8e6; }
.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}
label { display: grid; gap: 8px; color: var(--ink); font-weight: 850; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  color: var(--ink);
  background: white;
}
.full { grid-column: 1 / -1; }
.form-status { margin: 0; font-weight: 850; }

.heritage-section {
  align-items: center;
  background: var(--deep);
  color: white;
}
.heritage-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}
.heritage-section p { color: #d9eadf; }

.contact-section {
  align-items: center;
  background: #f6fbff;
}
.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-highlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  margin-top: 18px;
  border: 1px solid rgba(42, 142, 160, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.contact-highlight a {
  min-width: 0;
  color: var(--deep);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.floating-ai {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 4px solid var(--sun);
  border-radius: 50%;
  color: white;
  background: var(--clay);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(22, 44, 35, 0.28);
}
.floating-ai span { font-size: 13px; font-weight: 950; }
.floating-ai strong { margin-top: -14px; font-size: 26px; line-height: 1; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  background: #10231c;
}
.site-footer img { width: 160px; filter: brightness(1.08); }
.site-footer p { color: #d7e5dc; }
.site-footer a { color: var(--sun); font-weight: 900; text-decoration: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    color: var(--ink);
    background: white;
    font-weight: 900;
  }
  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .site-header nav.open { display: flex; }
  .nav-cta { display: none; }
  .intro, .booking-section, .heritage-section, .contact-section, .ai-section, .split-heading, .lester-section, .birding-intro-section {
    grid-template-columns: 1fr;
  }
  .pathway-grid {
    grid-template-columns: 1fr;
  }
  .fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecosystem-story,
  .theme-columns,
  .learning-cta,
  .ai-question-bank,
  .gallery-reveal-panel,
  .featured-package {
    grid-template-columns: 1fr;
  }
  .learning-cta a,
  .featured-package a {
    white-space: normal;
  }
  .tour-grid, .package-layout, .youtube-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .youtube-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bird-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .bird-card,
  .bird-card:nth-child(3n + 1),
  .bird-card:nth-child(4n + 2),
  .bird-card:nth-child(7n),
  .bird-card.featured-bird {
    grid-column: span 1;
    grid-row: span 2;
  }
}

@media (max-width: 640px) {
  main > section, .site-footer { padding: 48px 20px; }
  .hero-content {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }
  h1 {
    width: min(100%, 10.5ch);
    max-width: 10.5ch;
    min-width: 0;
    font-size: 32px;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }
  .brand img { width: 140px; }
  .hero { min-height: 78vh; }
  .hero-content p:not(.eyebrow) {
    width: min(100%, 34ch);
    max-width: 34ch;
    font-size: 16px;
  }
  .hero-actions {
    width: min(100%, 350px);
    max-width: 350px;
  }
  .quick-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-right: 80px;
  }
  .quick-strip span { flex: 0 0 auto; }
  .tour-grid, .package-layout, .booking-form, .contact-actions, .youtube-featured-grid, .youtube-gallery-grid {
    grid-template-columns: 1fr;
  }
  .bird-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 132px;
  }
  .bird-card,
  .bird-card:nth-child(3n + 1),
  .bird-card:nth-child(4n + 2),
  .bird-card:nth-child(7n),
  .bird-card.featured-bird {
    grid-column: span 1;
    grid-row: span 2;
  }
  .pathway-card {
    min-height: 0;
  }
  .pathway-card a {
    width: 100%;
  }
  .birding-intro-actions {
    min-width: 0;
  }
  .fact-strip,
  .question-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-story,
  .theme-columns article,
  .learning-cta,
  .ai-question-bank,
  .featured-package {
    padding: 20px;
  }
  .primary-button, .secondary-button, .ai-button, .gallery-toggle-button { width: 100%; }
  .gallery-lightbox {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .lightbox-nav.previous { left: 12px; }
  .lightbox-nav.next { right: 12px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .floating-ai { right: 14px; bottom: 14px; width: 72px; height: 72px; }
}
