/* Cascade Animal Team (C.A.T.)
   Layout: sticky evergreen menu bar, wide content column, soft "rain-washed" bands between sections. */
:root {
  --bg: #f6f8f5;          /* morning fog */
  --surface: #ffffff;
  --band: #e7efe9;        /* moss wash */
  --fg: #1d2a24;
  --muted: #55665d;
  --line: #cfdcd3;
  --evergreen: #1f4d3a;   /* menu bar, headings */
  --evergreen-fg: #f2f7f3;
  --accent: #d98e1f;      /* golden retriever amber */
  --accent-fg: #1d1406;
  --link: #1f6b50;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a16; --surface: #1a2520; --band: #18231e; --fg: #e6eee9; --muted: #a3b5ab;
    --line: #2c3c34; --evergreen: #163a2c; --evergreen-fg: #eef5f0; --accent: #f0a83a;
    --accent-fg: #1d1406; --link: #7fd1ad; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a16; --surface: #1a2520; --band: #18231e; --fg: #e6eee9; --muted: #a3b5ab;
  --line: #2c3c34; --evergreen: #163a2c; --evergreen-fg: #eef5f0; --accent: #f0a83a;
  --accent-fg: #1d1406; --link: #7fd1ad; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--evergreen);
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; color: var(--fg); margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Menu bar ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--evergreen); color: var(--evergreen-fg);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--evergreen-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; margin-right: auto;
}
.brand svg { flex: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }

.menu-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--evergreen-fg);
  border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav-link, .nav-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px;
  color: var(--evergreen-fg); text-decoration: none; font: inherit; font-weight: 700; font-size: 0.98rem;
  background: transparent; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: rgba(255,255,255,0.12); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-btn .chev { transition: transform .15s; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { background: var(--accent); color: var(--accent-fg); }
.nav-cta:hover { background: var(--accent); filter: brightness(1.08); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10, 30, 20, 0.18);
}
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 600; }
.dropdown a span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--band); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--evergreen); border-top: 1px solid rgba(255,255,255,0.15);
    padding-block: 8px 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav-link, .nav-btn { width: 100%; justify-content: space-between; padding: 12px; }
  .dropdown { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,0.06); margin: 2px 0 6px; }
  .dropdown a { color: var(--evergreen-fg); }
  .dropdown a span { color: var(--evergreen-fg); opacity: 0.75; }
  .dropdown a:hover { background: rgba(255,255,255,0.1); }
  .nav-cta { justify-content: center; margin-top: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--evergreen); color: var(--fg); }
.btn-ghost:hover { background: var(--band); }

/* ---------- Sections ---------- */
section { padding-block: clamp(48px, 7vw, 88px); }
.band { background: var(--band); }
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head > div { min-width: 0; max-width: 62ch; }
.section-head p { margin-top: 10px; color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-grid > div { min-width: 0; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--link); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.service-note {
  margin-top: 24px; font-size: 0.92rem; color: var(--muted);
}
.service-note b { color: var(--fg); }
.photo-slot {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: 200px 200px var(--radius) var(--radius);
  background: var(--band); border: 2px dashed var(--line);
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; font-size: 0.95rem;
}
.ridge { display: block; width: 100%; height: auto; margin-top: clamp(32px, 6vw, 64px); color: var(--band); }
.ridge:not(.ridge-mtn) path { fill: currentColor; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--evergreen); color: var(--evergreen-fg); font-family: var(--font-display); font-weight: 700; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin-top: 6px; }

/* Animal cards */
.animals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.animal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.animal .pic { aspect-ratio: 1 / 1; background: var(--band); display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
.animal .body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.animal .meta { color: var(--muted); font-size: 0.9rem; }
.tag { align-self: start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--band); color: var(--link); margin-bottom: 6px; }
.sample-note { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

/* Ways to help */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.help-grid a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.help-grid a:hover { border-color: var(--evergreen); }
.help-grid p { color: var(--muted); font-size: 0.95rem; }
.help-grid .go { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--link); }

/* Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split > div { min-width: 0; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 65ch; }
.callout {
  background: var(--surface); border: 2px solid var(--evergreen); border-radius: var(--radius); padding: 24px;
}
.callout h3 { margin-bottom: 8px; }
.callout ul { margin: 12px 0 0; padding-left: 20px; }

/* Lost animal banner */
.lost {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--evergreen); color: var(--evergreen-fg); border-radius: var(--radius); padding: 28px;
}
.lost h2 { color: var(--evergreen-fg); font-size: 1.5rem; }
.lost p { opacity: 0.85; margin-top: 6px; max-width: 60ch; }
.lost > div { min-width: 0; }

/* Page header for inner pages */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head .lede { margin-top: 14px; }
.coming {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface);
}
.coming ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--evergreen); color: var(--evergreen-fg); padding-block: 48px 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid > div { min-width: 0; }
.site-footer h3 { color: var(--evergreen-fg); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--evergreen-fg); opacity: 0.85; }
.site-footer p { opacity: 0.85; font-size: 0.95rem; }
.fineprint { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 32px; padding-top: 20px; font-size: 0.85rem; opacity: 0.75; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .photo-slot { max-width: 420px; aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .animals, .help-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .animals, .help-grid { grid-template-columns: 1fr; }
}

/* ---------- Video hero (home page only) ---------- */
.hero-video-wrap {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(56px, 9vw, 110px) clamp(90px, 10vw, 140px);
  background: #1f4d3a; /* shows while the video loads */
}
.hero-video, .hero-tint { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-video { object-fit: cover; }
.hero-tint {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 28, 20, 0.78) 0%, rgba(10, 28, 20, 0.5) 55%, rgba(10, 28, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(10, 28, 20, 0.45), rgba(10, 28, 20, 0) 40%);
}
.hero-content { width: 100%; }
.hero-content > * { max-width: 640px; }
.hero-video-wrap h1, .hero-video-wrap .lede, .hero-video-wrap .service-note, .hero-video-wrap .service-note b { color: #f6faf7; }
.hero-video-wrap .lede { opacity: 0.92; }
.hero-video-wrap .eyebrow { color: #f3c271; }
.hero-video-wrap h1 em { color: #f3c271; }
.hero-video-wrap .service-note { opacity: 0.9; }
.btn-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, 0.14); }
.hero-video-wrap .ridge { position: absolute; left: 0; right: 0; bottom: -1px; margin: 0; }
@media (max-width: 900px) {
  .hero-tint { background: linear-gradient(0deg, rgba(10, 28, 20, 0.85) 0%, rgba(10, 28, 20, 0.55) 60%, rgba(10, 28, 20, 0.35) 100%); }
}
.prose h2 + p { margin-top: 0.6em; }

/* ---------- Adoption application ---------- */
.pick-title { font-size: 1.3rem; margin-bottom: 14px; }
.picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pick {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--line); color: var(--fg); text-decoration: none; min-width: 0;
}
.pick b { font-family: var(--font-display); font-size: 1.05rem; }
.pick span { color: var(--muted); font-size: 0.88rem; }
.pick:hover { border-color: var(--evergreen); }
.pick.on { border-color: var(--accent); background: var(--band); box-shadow: inset 0 0 0 1px var(--accent); }
.pick-help { margin-top: 18px; color: var(--muted); }
.app-form { margin-top: 28px; display: grid; gap: 20px; }
.form-for { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin: 0; }
.form-sec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px 22px 24px; margin: 0; min-width: 0; }
.form-sec > legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; }
.form-sec > legend span { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.form-sec > legend + * { clear: both; }
.sec-intro { color: var(--muted); margin: 0 0 6px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 10px; clear: both; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, .agree.full, .sub.full { grid-column: 1 / -1; }
.field label, .group legend { font-weight: 700; font-size: 0.97rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.88rem; margin-top: -2px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; }
.field input:not([type="radio"]):not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--evergreen); }
.group { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 6px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; }
.choice input { width: 18px; height: 18px; flex: none; accent-color: var(--evergreen); margin: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--evergreen); flex: none; }
.sub { margin: 6px 0 -4px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.tried .field input:invalid, .tried .field select:invalid, .tried .field textarea:invalid { border-color: #c0392b; }
.tried .agree input:invalid { outline: 2px solid #c0392b; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.form-msg { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) { .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pick:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Adoptable animals hub ---------- */
.branch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.branch-card {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px 20px; padding: 24px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; min-width: 0;
}
.branch-card:hover { border-color: var(--evergreen); }
.branch-card svg { width: 96px; height: 120px; color: var(--evergreen); grid-row: span 2; }
.branch-card b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.branch-card small { display: block; color: var(--muted); font-size: 0.98rem; margin-top: 4px; }
.branch-card .go { font-weight: 800; color: var(--link); }
.fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fee-card, .fee-included { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.fee-card h3, .fee-included h3 { margin-bottom: 10px; }
.fees { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fees td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.fees tr:first-child td { border-top: 0; }
.fees .fee { text-align: right; font-weight: 800; white-space: nowrap; padding-left: 12px; }
.tbd { font-weight: 600; color: var(--muted); font-style: italic; }
.fee-included { margin-top: 20px; }
.fee-included ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.animal .bio { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.animal .apply { margin-top: 10px; font-weight: 800; color: var(--link); }
.animals:has(> article:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .branch, .fee-grid { grid-template-columns: 1fr; }
  .animals:has(> article:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .branch-card { grid-template-columns: 64px 1fr; padding: 18px; }
  .branch-card svg { width: 64px; height: 80px; }
  .fee-included ul { columns: 1; }
  .animals:has(> article:nth-child(3):last-child) { grid-template-columns: 1fr; }
}

/* ---------- Real animal cards ---------- */
.animal .pic { overflow: hidden; }
.animal .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.animal .status { display: inline-block; align-self: start; margin-top: 6px; font-weight: 800; font-size: 0.85rem; color: var(--accent-fg); background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.animal .good { margin-top: 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--link); }
.animal .incl { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.animals:has(> article:only-child) { grid-template-columns: minmax(0, 360px); }

/* ---------- Dark blue top menu bar ---------- */
:root { --bar: #17395c; --bar-fg: #ffffff; --bar-hover: rgba(255, 255, 255, 0.12); --bar-line: rgba(255, 255, 255, 0.22); --donate: #f7c531; --donate-fg: #1b2430; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bar: #12304d; --bar-fg: #ffffff; --bar-hover: rgba(255, 255, 255, 0.12); --bar-line: rgba(255, 255, 255, 0.22); } }
:root[data-theme="dark"] { --bar: #12304d; --bar-fg: #ffffff; --bar-hover: rgba(255, 255, 255, 0.12); --bar-line: rgba(255, 255, 255, 0.22); }
.site-header { background: var(--bar); color: var(--bar-fg); box-shadow: 0 1px 0 var(--bar-line); }
body::before { background: var(--bar); }
.brand, .nav-link, .nav-btn { color: var(--bar-fg); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--donate); }
.nav-link:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--bar-hover); }
.nav-link.nav-cta { color: var(--donate-fg); background: var(--donate); }
.nav-link.nav-cta:hover { background: var(--donate); filter: brightness(1.06); }
.menu-toggle { color: var(--bar-fg); border-color: var(--bar-line); }
@media (max-width: 900px) {
  .nav { background: var(--bar); border-top-color: var(--bar-line); }
  .dropdown { background: var(--bar-hover); }
  .dropdown a, .dropdown a span { color: var(--bar-fg); }
  .dropdown a:hover { background: var(--bar-hover); }
}

/* ---------- Site-wide navy + yellow palette (overrides the earlier green/orange tokens) ---------- */
:root {
  --bg: #f5f8fb; --surface: #ffffff; --band: #e5edf6; --fg: #17212d; --muted: #536274; --line: #d0dbe7;
  --evergreen: #17395c; --evergreen-fg: #ffffff;
  --accent: #f7c531; --accent-fg: #1b2430; --link: #1d5c96;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1722; --surface: #172231; --band: #142030; --fg: #e8eef5; --muted: #a2b1c2; --line: #29384a;
  --evergreen: #12304d; --evergreen-fg: #ffffff; --accent: #f7c531; --accent-fg: #1b2430; --link: #8cc4f5; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1722; --surface: #172231; --band: #142030; --fg: #e8eef5; --muted: #a2b1c2; --line: #29384a;
  --evergreen: #12304d; --evergreen-fg: #ffffff; --accent: #f7c531; --accent-fg: #1b2430; --link: #8cc4f5; color-scheme: dark; }
.hero-video-wrap { background: #111; }
.hero-tint {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.05) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 40%);
}
@media (max-width: 900px) {
  .hero-tint { background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%); }
}
.hero-video-wrap .eyebrow, .hero-video-wrap h1 em { color: #f7c531; }
.dropdown { box-shadow: 0 12px 30px rgba(10, 24, 42, 0.2); }

/* Hover bridge: lets the mouse travel from a menu item down into its dropdown without it closing */
@media (min-width: 901px) {
  .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
}


/* Homepage snowy Cascades edge with a walking dog and cat (same size as the original pointy edge) */
.hero-video-wrap .ridge-mtn { height: clamp(64px, 8.34vw, 120px); width: 100%; }
.ridge-mtn .ground { fill: var(--band); }

/* Spay/neuter clinics by county */
.counties { display: grid; gap: 20px; margin-top: 22px; }
.county { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.county h3 { margin-bottom: 10px; }
.clinic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px 24px; }
.clinic-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.clinic-list b { font-weight: 700; }
.clinic-list .c-city { color: var(--muted); font-size: 0.92rem; }
.clinic-list .c-contact { font-size: 0.95rem; overflow-wrap: anywhere; }
.clinic-list .muted { color: var(--muted); }

/* Rescue stories */
.stories { display: grid; gap: 24px; }
.story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.story-pics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.story-ph { margin: 0; position: relative; }
.story-ph img, .story-ph .ph-empty { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.story-ph .ph-empty { display: grid; place-items: center; background: var(--band); color: var(--muted); border: 2px dashed var(--line); font-weight: 700; }
.story-ph figcaption { position: absolute; left: 10px; top: 10px; background: var(--evergreen); color: #fff; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.story-ph:last-child figcaption { background: var(--accent); color: var(--accent-fg); }
.story-body h3 { margin: 8px 0 8px; }
.story-year { display: block; font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

/* Mom's Last Litter application */
.mll-form .agree.urgent { background: #fff4d6; border: 1px solid #f7c531; border-radius: 10px; padding: 12px 14px; color: #1b2430; }
