/* ============================================================
   Sydney Bats – KBCS 2026 redesign
   Theme: Fruit bat / flying fox — warm amber, rust-terracotta,
   parchment, with botanical gum-leaf & bat-silhouette motifs.
   Colours drawn from the original site's own palette, updated
   for a modern 2026 small-NGO aesthetic.
   ============================================================ */

/* ── Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* ── Rust / terracotta (bat fur, original heading colour) ── */
  --rust:         #C94B1A;
  --rust-mid:     #DC6530;
  --rust-light:   #F08050;
  --rust-pale:    #FDEEE6;

  /* ── Warm amber / ochre (flying-fox shoulder cape) ─────── */
  --amber:        #B87C2A;
  --amber-mid:    #D49A40;
  --amber-pale:   #FDF3DC;

  /* ── Olive / eucalyptus (gum-leaf greens) ──────────────── */
  --olive:        #6B7A2F;
  --olive-mid:    #8A9A40;
  --olive-light:  #B4C474;
  --olive-pale:   #EEF2D8;

  /* ── Backgrounds ────────────────────────────────────────── */
  --cream:        #FFFEF9;   /* main body bg */
  --parchment:    #F8F0DF;   /* section alt bg – original site lightened */
  --sand:         #EDD9AA;   /* decorative band colour */
  --white:        #FFFFFF;

  /* ── Warm darks ─────────────────────────────────────────── */
  --bark:         #4A3220;   /* tree-bark brown, nav text on light */
  --dusk:         #231A0F;   /* footer, deepest dark – dusk sky */
  --body-text:    #2C2018;   /* main body text */
  --muted:        #7A6852;   /* secondary text */
  --rule:         #E6D5BB;   /* dividers */

  /* ── Typography ─────────────────────────────────────────── */
  --font-serif:   'Fraunces', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* ── Layout ─────────────────────────────────────────────── */
  --max-width:    1080px;
  --radius-sm:    6px;
  --radius-md:    14px;
  --radius-lg:    24px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--body-text);
  background: var(--cream);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--rust-mid); }
ul { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--bark);
}

/* ── Bat silhouette SVG used as decorative background ─────── */
/* These SVGs depict a simplified flying-fox in flight        */
.bat-bg {
  position: relative;
  overflow: hidden;
}
.bat-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Repeated tiling of a small bat silhouette */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg opacity='0.07' fill='%234A3220'%3E%3Cpath d='M60 36 C52 28 38 22 20 26 C28 30 34 36 36 42 C42 38 52 36 60 36Z'/%3E%3Cpath d='M60 36 C68 28 82 22 100 26 C92 30 86 36 84 42 C78 38 68 36 60 36Z'/%3E%3Cellipse cx='60' cy='40' rx='5' ry='7' /%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 100px;
}

/* Gum-leaf diagonal motif for parchment sections */
.leaf-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Cg opacity='0.09' fill='%236B7A2F'%3E%3Cellipse cx='40' cy='60' rx='9' ry='28' transform='rotate(-25 40 60)'/%3E%3Cline x1='40' y1='36' x2='38' y2='84' stroke='%236B7A2F' stroke-width='1.5' opacity='0.5'/%3E%3Cellipse cx='110' cy='150' rx='8' ry='24' transform='rotate(20 110 150)'/%3E%3Cline x1='110' y1='130' x2='108' y2='174' stroke='%236B7A2F' stroke-width='1.5' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ── Site header ──────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(44,32,24,0.07);
}

/* Single unified header row */
.top-bar {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
}

/* Logo */
.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-text .org-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: -0.01em;
}

.logo-text .org-sub {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 1px;
}

/* Nav sits in the middle, takes remaining space */
.main-nav {
  flex: 1;
  background: transparent;
  border-top: none;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

/* CTA buttons on the right */
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Donate pushed to the far right with a small separator gap */
.btn-donate-far-right {
  margin-left: 0.5rem;
}

/* Donate — solid rust pill */
.btn-donate-cta {
  background: var(--rust);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-donate-cta:hover { background: var(--rust-mid); color: #fff; transform: translateY(-1px); }

/* Join Now — outline */
.btn-join-cta {
  background: transparent;
  color: var(--bark);
  border: 1.5px solid var(--rule);
  padding: 0.48rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-join-cta:hover { border-color: var(--rust); color: var(--rust); background: var(--rust-pale); }

/* Keep old .btn-outline for non-header uses */
.btn-outline {
  background: transparent;
  color: var(--bark);
  border: 1.5px solid var(--rule);
  padding: 0.48rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--rust); color: var(--rust); background: var(--rust-pale); }

/* Main nav — inline in the header */

.main-nav ul {
  display: flex;
  height: 100%;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: stretch;
}

/* Top-level nav items */
.main-nav > ul > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0.85rem;
  color: var(--bark);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* Dropdown parent labels are not links — restore pointer so hover still feels interactive */
.has-dropdown > a { cursor: pointer; }

/* Dropdown chevron */
.has-dropdown > a::after {
  content: '▾';
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

/* Dropdown panel */
.dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 1px); /* overlap by 1px to eliminate any gap that breaks hover */
  left: 0;
  background: #fff;
  background-color: #fff; /* explicit fallback — var(--white) can inherit transparency issues */
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rust);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(44,32,24,0.12);
  z-index: 200;
  list-style: none;
  padding: 0.4rem 0;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after {
  transform: rotate(-180deg);
}

.dropdown li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  color: var(--body-text);
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  border-bottom: none;
}
.dropdown li a:hover {
  background: var(--rust-pale);
  color: var(--rust);
}

/* Mobile-only nav items (Donate + Join Now) — hidden on desktop */
.mobile-only-nav { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bark);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  /* Warm dusk gradient – parchment fading to twilight */
  background: linear-gradient(165deg,
    #F2E0BE 0%,
    #EDD4A0 30%,
    #D9B87A 60%,
    #C4895A 80%,
    #B06040 100%
  );
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* Bat silhouettes scattered across hero — 6 bats in 3 sizes */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='56' viewBox='0 0 80 56'%3E%3Cg opacity='0.15' fill='%234A3220'%3E%3Cpath d='M40 26 C34 18 24 14 10 18 C17 22 22 28 23 34 C28 29 35 26 40 26Z'/%3E%3Cpath d='M40 26 C46 18 56 14 70 18 C63 22 58 28 57 34 C52 29 45 26 40 26Z'/%3E%3Cellipse cx='40' cy='29' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='36' viewBox='0 0 50 36'%3E%3Cg opacity='0.1' fill='%234A3220'%3E%3Cpath d='M25 16 C21 11 15 8 6 11 C11 14 14 18 15 22 C18 18 22 16 25 16Z'/%3E%3Cpath d='M25 16 C29 11 35 8 44 11 C39 14 36 18 35 22 C32 18 28 16 25 16Z'/%3E%3Cellipse cx='25' cy='18' rx='3' ry='4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='76' viewBox='0 0 110 76'%3E%3Cg opacity='0.08' fill='%234A3220'%3E%3Cpath d='M55 36 C47 26 33 20 14 25 C23 30 30 38 31 46 C38 40 48 36 55 36Z'/%3E%3Cpath d='M55 36 C63 26 77 20 96 25 C87 30 80 38 79 46 C72 40 62 36 55 36Z'/%3E%3Cellipse cx='55' cy='40' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='36' viewBox='0 0 50 36'%3E%3Cg opacity='0.12' fill='%234A3220'%3E%3Cpath d='M25 16 C21 11 15 8 6 11 C11 14 14 18 15 22 C18 18 22 16 25 16Z'/%3E%3Cpath d='M25 16 C29 11 35 8 44 11 C39 14 36 18 35 22 C32 18 28 16 25 16Z'/%3E%3Cellipse cx='25' cy='18' rx='3' ry='4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='56' viewBox='0 0 80 56'%3E%3Cg opacity='0.1' fill='%234A3220'%3E%3Cpath d='M40 26 C34 18 24 14 10 18 C17 22 22 28 23 34 C28 29 35 26 40 26Z'/%3E%3Cpath d='M40 26 C46 18 56 14 70 18 C63 22 58 28 57 34 C52 29 45 26 40 26Z'/%3E%3Cellipse cx='40' cy='29' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='76' viewBox='0 0 110 76'%3E%3Cg opacity='0.1' fill='%234A3220'%3E%3Cpath d='M55 36 C47 26 33 20 14 25 C23 30 30 38 31 46 C38 40 48 36 55 36Z'/%3E%3Cpath d='M55 36 C63 26 77 20 96 25 C87 30 80 38 79 46 C72 40 62 36 55 36Z'/%3E%3Cellipse cx='55' cy='40' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 12% 20%, 75% 62%, 48% 85%, 28% 45%, 62% 28%, 18% 72%;
  background-repeat: no-repeat;
}

/* 3 more bat silhouettes on the right side — replacing gum leaf decoration */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='56' viewBox='0 0 80 56'%3E%3Cg opacity='0.12' fill='%234A3220'%3E%3Cpath d='M40 26 C34 18 24 14 10 18 C17 22 22 28 23 34 C28 29 35 26 40 26Z'/%3E%3Cpath d='M40 26 C46 18 56 14 70 18 C63 22 58 28 57 34 C52 29 45 26 40 26Z'/%3E%3Cellipse cx='40' cy='29' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='36' viewBox='0 0 50 36'%3E%3Cg opacity='0.09' fill='%234A3220'%3E%3Cpath d='M25 16 C21 11 15 8 6 11 C11 14 14 18 15 22 C18 18 22 16 25 16Z'/%3E%3Cpath d='M25 16 C29 11 35 8 44 11 C39 14 36 18 35 22 C32 18 28 16 25 16Z'/%3E%3Cellipse cx='25' cy='18' rx='3' ry='4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='76' viewBox='0 0 110 76'%3E%3Cg opacity='0.07' fill='%234A3220'%3E%3Cpath d='M55 36 C47 26 33 20 14 25 C23 30 30 38 31 46 C38 40 48 36 55 36Z'/%3E%3Cpath d='M55 36 C63 26 77 20 96 25 C87 30 80 38 79 46 C72 40 62 36 55 36Z'/%3E%3Cellipse cx='55' cy='40' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 88% 15%, 92% 60%, 80% 80%;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bark);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: var(--bark);
  max-width: 600px;
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero p {
  font-size: 1.05rem;
  color: var(--bark);
  opacity: 0.82;
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(201,75,26,0.35);
}
.btn-primary:hover { background: var(--rust-mid); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,75,26,0.4); }

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.5);
  color: var(--bark);
  border: 1.5px solid rgba(74,50,32,0.3);
  backdrop-filter: blur(4px);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.7); color: var(--rust); border-color: var(--rust); }

/* ── Page Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 1.5rem; }

.section-alt {
  background: var(--parchment);
  position: relative;
}

.section-warm {
  background: var(--rust-pale);
}

.section-bark {
  background: var(--dusk);
  color: #fff;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
  color: var(--bark);
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.75rem;
  max-width: 540px;
}

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rust);
  margin-bottom: 0.6rem;
}

/* ── Alert Banner ─────────────────────────────────────────── */
.alert-banner {
  background: linear-gradient(135deg, #8A1A05, var(--rust));
  color: #fff;
  padding: 1.4rem 1.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 2.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.alert-banner .alert-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.alert-banner h3 { color: #fff; margin-bottom: 0.35rem; font-size: 1rem; font-family: var(--font-serif); }
.alert-banner p { font-size: 0.88rem; opacity: 0.9; }
.alert-banner a { color: #ffe4cc; font-weight: 600; text-decoration: underline; }

/* ── Fact cards ───────────────────────────────────────────── */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--rule);
  transition: transform 0.22s, box-shadow 0.22s;
}
.fact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(44,32,24,0.1); }

.fact-card .fact-icon { font-size: 2.25rem; margin-bottom: 0.75rem; display: block; }

.fact-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
}

.fact-card p { font-size: 0.82rem; color: var(--muted); }

/* ── News / blog cards ────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(44,32,24,0.12);
}

.news-card-img {
  height: 180px;
  background: linear-gradient(140deg, var(--parchment), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: var(--amber-mid); opacity: 0.5; }

.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.news-card-meta .cat-badge {
  background: var(--olive-pale);
  color: var(--olive);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.68rem;
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--bark);
  margin-bottom: 0.55rem;
}

.news-card p { font-size: 0.87rem; color: var(--muted); flex: 1; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rust);
  transition: gap 0.2s;
}
.read-more:hover { gap: 8px; color: var(--rust-mid); }

/* news-card read-more shares the same base styles above */
.news-card .read-more { margin-top: 1rem; }

/* ── Mission / two-col layout ────────────────────────────── */
.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.mission-aims { list-style: none; }

.mission-aims li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--body-text);
}

.mission-aims li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--olive-mid);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Video cards ─────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.video-thumb {
  height: 150px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
}
.video-play:hover { background: var(--rust); border-color: var(--rust); }

.video-card-body { padding: 1rem; }
.video-card h4 { font-size: 0.9rem; margin-bottom: 0.35rem; color: rgba(255,255,255,0.9); font-family: var(--font-serif); }
.video-card p { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ── Page-level hero ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(150deg, #EDD9AA 0%, #DCC480 40%, #CBAA66 100%);
  padding: 3.5rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Bat silhouettes on inner page heroes — consistent with main hero */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='56' viewBox='0 0 80 56'%3E%3Cg opacity='0.12' fill='%234A3220'%3E%3Cpath d='M40 26 C34 18 24 14 10 18 C17 22 22 28 23 34 C28 29 35 26 40 26Z'/%3E%3Cpath d='M40 26 C46 18 56 14 70 18 C63 22 58 28 57 34 C52 29 45 26 40 26Z'/%3E%3Cellipse cx='40' cy='29' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='36' viewBox='0 0 50 36'%3E%3Cg opacity='0.1' fill='%234A3220'%3E%3Cpath d='M25 16 C21 11 15 8 6 11 C11 14 14 18 15 22 C18 18 22 16 25 16Z'/%3E%3Cpath d='M25 16 C29 11 35 8 44 11 C39 14 36 18 35 22 C32 18 28 16 25 16Z'/%3E%3Cellipse cx='25' cy='18' rx='3' ry='4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='76' viewBox='0 0 110 76'%3E%3Cg opacity='0.07' fill='%234A3220'%3E%3Cpath d='M55 36 C47 26 33 20 14 25 C23 30 30 38 31 46 C38 40 48 36 55 36Z'/%3E%3Cpath d='M55 36 C63 26 77 20 96 25 C87 30 80 38 79 46 C72 40 62 36 55 36Z'/%3E%3Cellipse cx='55' cy='40' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 82% 25%, 93% 72%, 70% 82%;
  background-repeat: no-repeat;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--bark);
  margin-bottom: 0.6rem;
}

.page-hero p { color: var(--bark); opacity: 0.75; font-size: 1rem; max-width: 500px; }

.breadcrumb {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--bark); opacity: 0.7; }
.breadcrumb span { margin: 0 5px; }

/* ── Full-page content wrapper — aligns to the same 1080px grid as the header ── */
.page-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

/* ── Sidebar + content layout ────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.sidebar { position: sticky; top: 90px; }

.sidebar-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.sidebar-nav { list-style: none; border-left: 2px solid var(--sand); }

.sidebar-nav li a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
  color: var(--body-text);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.2s;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--rust);
  border-left-color: var(--rust);
  background: var(--rust-pale);
}

/* ── Content typography ───────────────────────────────────── */
.content h2 {
  font-size: 1.5rem;
  color: var(--rust);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--sand);
}

/* Avoid double-spacing when h2 is the very first element in a content block */
.content > h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 1.12rem;
  color: var(--bark);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.content p { margin-bottom: 1rem; font-size: 0.94rem; }

.content ul { list-style: none; margin: 0.75rem 0 1.25rem 0; }

.content ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.35rem 0;
  font-size: 0.93rem;
}

.content ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--amber-mid);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.content a { color: var(--rust); font-weight: 500; }
.content a:hover { color: var(--rust-mid); text-decoration: underline; }
.content strong { color: var(--bark); }

/* ── Callout boxes ────────────────────────────────────────── */
.callout {
  background: var(--rust-pale);
  border-left: 4px solid var(--rust);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.callout-amber {
  background: var(--amber-pale);
  border-left-color: var(--amber-mid);
}

.callout-olive,
.callout-green {
  background: var(--olive-pale);
  border-left-color: var(--olive-mid);
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber-mid), var(--olive-light));
}

.timeline-item { position: relative; margin-bottom: 2.25rem; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--rust);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.timeline-item h4 { font-size: 0.98rem; color: var(--bark); margin-bottom: 0.3rem; font-family: var(--font-serif); }
.timeline-item p { font-size: 0.88rem; color: var(--muted); }

/* ── Bushcare banner ──────────────────────────────────────── */
.bushcare-banner {
  background: linear-gradient(130deg, var(--olive), var(--olive-mid));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bushcare-banner h3 { color: rgba(255,255,255,0.9); margin-bottom: 0.25rem; font-size: 1rem; }
.bushcare-banner p { font-size: 0.87rem; color: rgba(255,255,255,0.75); }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--olive);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.84rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.btn-white:hover { background: var(--parchment); color: var(--bark); transform: translateY(-1px); }

/* ── Audio block ──────────────────────────────────────────── */
.audio-block {
  background: var(--parchment);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--sand);
}

.audio-block h3 { margin-bottom: 0.4rem; color: var(--bark); font-size: 1rem; }
.audio-block p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.audio-block audio { width: 100%; margin-bottom: 0.75rem; }

/* ── Species cards ────────────────────────────────────────── */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.species-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: transform 0.2s, box-shadow 0.2s;
}
.species-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(44,32,24,0.1); }

.species-card-img {
  height: 160px;
  background: linear-gradient(140deg, var(--parchment), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--amber-mid);
  opacity: 0.6;
}

.species-card-body { padding: 1.2rem; }
.species-card h3 { font-size: 1rem; color: var(--rust); margin-bottom: 0.2rem; }
.species-card .sci-name { font-style: italic; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.7rem; }
.species-card p { font-size: 0.84rem; color: var(--muted); }

/* ── Blog list ────────────────────────────────────────────── */
.blog-list { display: flex; flex-direction: column; gap: 2rem; }

.blog-item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  display: flex;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-item:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(44,32,24,0.1); }

.blog-item-img {
  width: 200px;
  flex-shrink: 0;
  background: linear-gradient(140deg, var(--parchment), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--amber-mid);
  opacity: 0.6;
}

.blog-item-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-item-body { padding: 1.5rem 1.75rem; flex: 1; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.blog-item-body h2 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--bark);
  margin-bottom: 0.55rem;
  margin-top: 0;
  border: none;
  padding: 0;
}

.blog-item-body p { font-size: 0.87rem; color: var(--muted); margin-bottom: 0.75rem; }

/* ── Contact form ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.address-block {
  background: var(--parchment);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--sand);
}

.address-block h3 { color: var(--rust); margin-bottom: 1rem; font-size: 1rem; }

.address-lines {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.9;
}

.contact-form label {
  display: block;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 0.3rem;
  margin-top: 1.1rem;
}
.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--body-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(201,75,26,0.12);
}

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

.btn-submit {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  padding: 0.8rem 2.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(201,75,26,0.3);
}
.btn-submit:hover { background: var(--rust-mid); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(201,75,26,0.38); }

/* ── Decorative dusk divider ──────────────────────────────── */
.dusk-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--amber), var(--rust), var(--amber-mid), var(--olive-mid));
}

/* Footer logo colour overrides since footer is dark */
.site-footer .logo-text .org-name { color: var(--amber-mid); }
.site-footer .logo-text .org-sub  { color: rgba(255,255,255,0.35); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dusk);
  color: rgba(255,255,255,0.65);
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Bat silhouettes in footer */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='70' viewBox='0 0 100 70'%3E%3Cg opacity='0.08' fill='%23EDD9AA'%3E%3Cpath d='M50 32 C43 24 31 18 16 22 C24 27 29 34 30 40 C36 35 44 32 50 32Z'/%3E%3Cpath d='M50 32 C57 24 69 18 84 22 C76 27 71 34 70 40 C64 35 56 32 50 32Z'/%3E%3Cellipse cx='50' cy='35' rx='4' ry='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 100px;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.8rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-mid);
  margin-bottom: 1rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.84rem;
  display: block;
  padding: 0.22rem 0;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--amber-mid); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Responsive ───────────────────────────────────────────── */
/* ── Tablet / narrow desktop: content layout ─────────────── */
@media (max-width: 920px) {
  .mission-block { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero::after { display: none; }

  /* ── Mobile nav: hamburger replaces inline nav at this width ── */

  /* Compact top bar */
  .top-bar {
    flex-wrap: nowrap;
    padding: 0 1rem;
    height: 58px;
    gap: 0;
  }

  /* Logo compact */
  .logo-text .org-sub { display: none; }
  .logo-text .org-name { font-size: 1.05rem; }
  .logo-mark { margin-right: 0; }
  .logo-icon { width: 34px; height: 34px; }

  /* Hide CTA buttons — Donate & Join Now accessible via mobile nav */
  .top-actions .btn-donate-cta,
  .top-actions .btn-join-cta { display: none; }

  /* Show hamburger */
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }

  /* Nav slides down below the sticky header */
  .main-nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--sand);
    box-shadow: 0 8px 24px rgba(44,32,24,0.1);
    z-index: 99;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s var(--ease);
  }
  .main-nav.open {
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Hamburger → X when menu is open (uses :has() — supported in all modern browsers) */
  .top-bar:has(.main-nav.open) .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .top-bar:has(.main-nav.open) .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .top-bar:has(.main-nav.open) .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0.5rem 0 1rem;
  }

  .main-nav > ul > li { display: block; }

  /* Stacked nav links with left-border active indicator */
  .main-nav > ul > li > a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    white-space: normal;
  }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > a.active {
    border-left-color: var(--rust);
    background: var(--rust-pale);
    border-bottom-color: transparent;
  }

  /* Dropdowns always expanded inline on mobile */
  .dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0;
    background: var(--parchment);
    transition: none;
  }
  .dropdown li a {
    padding: 0.6rem 1.25rem 0.6rem 2.25rem;
    font-size: 0.86rem;
    color: var(--muted);
  }
  .dropdown li a:hover { color: var(--rust); background: var(--rust-pale); }

  /* No chevron needed on mobile */
  .has-dropdown > a::after { display: none; }

  /* Donate + Join Now pinned at the bottom of the mobile nav */
  .mobile-only-nav {
    display: block;
    border-top: 1px solid var(--rule);
    margin-top: 6px;
  }
  .mobile-only-nav a {
    color: var(--rust) !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.25rem;
    display: block;
    font-size: 0.92rem;
  }
}

/* ── Small phones: content layout adjustments ────────────── */
@media (max-width: 660px) {
  .hero { padding: 3.5rem 1rem 3rem; min-height: 360px; }
  .hero-ctas { flex-direction: column; }
  .blog-item { flex-direction: column; }
  .blog-item-img { width: 100%; height: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .species-grid { grid-template-columns: 1fr; }
}

/* ── Extra-small phones ───────────────────────────────────── */
@media (max-width: 380px) {
  .logo-text .org-name { font-size: 0.95rem; }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-rust { color: var(--rust); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--muted); }
.text-bark { color: var(--bark); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }
.fw-600 { font-weight: 600; }
