/* ============================================================
   Pet Rescue Society — Global Stylesheet
   Sections:
   1. Design tokens & reset
   2. Typography & utilities
   3. Buttons & badges
   4. Header / navigation (sticky, dropdowns, mobile hamburger)
   5. Hero carousel
   6. Page hero (interior banner)
   7. Cards & grids (quick links, pets, news, staff, events)
   8. Forms & validation states
   9. Modal / lightbox
   10. Tabs & filters (adopt page)
   11. Footer
   12. Responsive breakpoints
   ============================================================ */

/* ---------- 1. Design tokens & reset ---------- */
:root {
  --navy: #0F2F53;
  --navy-dark: #0A2140;
  --navy-soft: #1C4470;
  --gold: #e8a33d;
  --gold-dark: #C9862A;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --ink: #22303F;
  --muted: #5A6B7C;
  --line: #E3DED6;
  --success: #2E7D4F;
  --error: #C0392B;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(15, 47, 83, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 47, 83, 0.18);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", Tahoma, sans-serif;
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Note: we deliberately do NOT set `scroll-behavior: smooth` here. Browsers
   apply it to mouse-wheel scrolling too, which makes the whole page feel
   floaty and laggy. Smooth scrolling for in-page links (#main, #register…)
   is done in js/main.js instead, so only those glide. */

/* Stop anchor targets landing underneath the sticky header. */
[id] { scroll-margin-top: 120px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; display: block; background: var(--line); }

/* ---------- 2. Typography & utilities ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-soft); }
a:hover { color: var(--gold-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--alt { background: var(--white); }
.section--navy { background: var(--navy); color: #E9EFF6; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: #C6D4E4; }
.text-center { text-align: center; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy-dark);
  padding: 0.6rem 1rem; z-index: 200; font-weight: 800;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Buttons & badges ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--navy-dark); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn--block { display: block; width: 100%; }

.badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.badge--gold { background: var(--gold); color: var(--navy-dark); }

/* ---------- 4. Header / navigation ---------- */
.utility-bar {
  background: var(--navy-dark);
  color: #B9C8DA;
  font-size: 0.82rem;
  padding: 0.35rem 0;
}
.utility-bar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.utility-bar a { color: #DCE6F1; text-decoration: none; }
.utility-bar a:hover { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(15, 47, 83, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Logo: paw mark + wordmark */
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--navy);
}
.logo svg, .logo .logo-img { width: 42px; height: 42px; flex: none; object-fit: contain; background: none; }
.logo-text { line-height: 1.1; }
.logo-text .logo-name { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; display: block; }
.logo-text .logo-tag { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button.nav-toggle {
  display: flex; align-items: center; gap: 0.3rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 0.9rem 0.68rem;
}
.nav-list > li > a:hover,
.nav-list > li > button.nav-toggle:hover,
.nav-list > li > a.active { color: var(--gold-dark); }
.nav-list > li > a.active { box-shadow: inset 0 -3px 0 var(--gold); }
.caret { font-size: 0.6rem; transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Dropdown panels */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  display: none;
}
li.open > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.dropdown a:hover { background: var(--cream); color: var(--navy); }

.nav-cta { margin-left: 0.5rem; }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.hamburger span {
  display: block; height: 3px; border-radius: 2px;
  background: var(--navy); margin: 4px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero carousel ---------- */
.carousel { position: relative; overflow: hidden; background: var(--navy-dark); }
.carousel-track { display: flex; transition: transform 0.55s ease; }
.slide {
  min-width: 100%;
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
}
.slide-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide::after {
  /* dark overlay so text stays readable over any photo */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 33, 64, 0.88) 20%, rgba(10, 33, 64, 0.35) 70%, rgba(10, 33, 64, 0.15));
}
.slide-content {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  color: var(--white);
}
.slide-content h2 { color: var(--white); font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 560px; }
.slide-content p { max-width: 480px; font-size: 1.1rem; color: #DBE5F0; }
.slide-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 0; border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.3rem; cursor: pointer;
  transition: background 0.2s;
}
.carousel-btn:hover { background: var(--gold); color: var(--navy-dark); }
.carousel-btn--prev { left: 1rem; }
.carousel-btn--next { right: 1rem; }

.carousel-dots {
  position: absolute; bottom: 1.1rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem; z-index: 5;
}
.carousel-dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--white); background: transparent; cursor: pointer; padding: 0;
}
.carousel-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }

/* ---------- 6. Page hero (interior banner) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--navy-dark), var(--navy-soft));
  color: var(--white);
  padding: 4rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 620px; color: #C9D7E6; font-size: 1.1rem; margin-bottom: 0; }
.page-hero::after {
  /* oversized decorative paw print */
  content: "🐾";
  position: absolute; right: -20px; bottom: -45px;
  font-size: 13rem; opacity: 0.08; transform: rotate(-18deg);
}

.breadcrumb { font-size: 0.82rem; margin-bottom: 0.8rem; color: #9FB4CB; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ---------- 7. Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.35rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link { font-weight: 800; text-decoration: none; color: var(--navy); }
.card-link:hover { color: var(--gold-dark); }

/* Quick-link tiles on the homepage */
.quick-links { margin-top: -3.2rem; position: relative; z-index: 10; }
.quick-tile {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  border-bottom: 4px solid var(--gold);
}
.quick-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tile-icon { font-size: 2.1rem; display: block; margin-bottom: 0.5rem; line-height: 1; }
.quick-tile h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.quick-tile p { color: var(--muted); font-size: 0.87rem; margin: 0; }

/* Pet cards (adopt page + home preview) */
.pet-card { cursor: pointer; transition: transform 0.18s, box-shadow 0.18s; }
.pet-card:hover, .pet-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pet-card .card-img { height: 230px; }

/* "Adopted!" ribbon — shown for pets with adopted: true in pets-data.js */
.pet-photo { position: relative; }
.pet-ribbon {
  position: absolute; top: 14px; right: -34px;
  background: var(--gold); color: var(--navy-dark);
  font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 2.6rem;
  transform: rotate(38deg);
  box-shadow: 0 2px 8px rgba(15, 47, 83, 0.3);
}
.pet-card.is-adopted .card-img { filter: saturate(0.75); }
.btn--adopted {
  background: #EAF6EE; color: var(--success);
  border-color: var(--success); cursor: default;
}
.pet-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.8rem; }
.pet-meta span {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
  padding: 0.12rem 0.65rem;
  color: var(--muted);
}
.pet-card .btn { margin-top: auto; }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--gold); display: block; }
.stat-label { text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.12em; color: #BFCEDF; }

/* Event rows */
.event-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 1.3rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
}
.event-date {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  text-align: center;
  padding: 0.55rem 0.3rem;
}
.event-date .month { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); font-weight: 800; }
.event-date .day { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.event-row h3 { margin-bottom: 0.15rem; }
.event-row p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Staff directory */
.staff-card { text-align: center; }
.staff-card .card-img { height: 240px; object-fit: cover; }
.staff-role { color: var(--gold-dark); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* News cards */
.news-card .card-img { height: 190px; }
.news-date { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* Two-column feature blocks */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 380px; object-fit: cover; }
.feature--rev .feature-media { order: 2; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: 0.55rem; }
.checklist li::before { content: "🐾"; position: absolute; left: 0; font-size: 0.9rem; }

/* Info boxes (hours, contact, laws) */
.info-box {
  background: var(--white);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
}
.info-box h3 { margin-bottom: 0.6rem; }
.info-box table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.info-box td { padding: 0.3rem 0; border-bottom: 1px dashed var(--line); }
.info-box td:last-child { text-align: right; font-weight: 700; }

/* FAQ accordion via <details> */
.faq details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
  padding: 0 1.4rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  padding: 1.1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; font-size: 1.4rem; color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* Article pages (news stories & Happy Tails) */
.article { max-width: 760px; margin: 0 auto; }
.article-meta {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  font-size: 0.85rem; color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem; margin-bottom: 1.8rem;
}
.article-hero {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}
.article > p { font-size: 1.06rem; }
.article > p:first-of-type { font-size: 1.2rem; color: var(--navy-soft); font-weight: 600; }
.article h2 { margin-top: 2rem; }
.article blockquote {
  margin: 2rem 0; padding: 1.2rem 1.6rem;
  border-left: 5px solid var(--gold);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-size: 1.15rem; color: var(--navy);
  box-shadow: var(--shadow);
}
.article blockquote cite {
  display: block; margin-top: 0.6rem;
  font-family: var(--font-body); font-size: 0.85rem;
  font-style: normal; color: var(--muted); font-weight: 700;
}
.article-end {
  margin-top: 2.5rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center;
}

/* Map placeholder */
.map-placeholder {
  height: 340px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(15, 47, 83, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 47, 83, 0.06) 1px, transparent 1px),
    linear-gradient(140deg, #DCE8DF, #CBD9E5);
  background-size: 34px 34px, 34px 34px, cover;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.4rem;
  color: var(--navy);
  border: 1px solid var(--line);
}
.map-pin { font-size: 2.6rem; }

/* ---------- 8. Forms & validation ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--navy); }
.req { color: var(--error); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(28, 68, 112, 0.15);
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: var(--error); background: #FDF3F1; }
.error-msg { color: var(--error); font-size: 0.8rem; margin-top: 0.25rem; min-height: 1em; }

.form-note { font-size: 0.82rem; color: var(--muted); }

/* Success state shown after fake submission */
.form-success {
  display: none;
  background: #EAF6EE;
  border: 1.5px solid var(--success);
  color: var(--success);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-weight: 700;
}
.form-success.visible { display: block; }

/* Inline newsletter form (footer + home) */
.inline-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.inline-form input {
  flex: 1; min-width: 210px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 0.95rem;
}
.inline-form input:focus { outline: 2px solid var(--gold); }

/* Donation amount picker */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.amount-btn {
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-weight: 800; font-size: 1.05rem;
  border-radius: 10px;
  padding: 0.8rem 0.3rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.amount-btn.selected, .amount-btn:hover { background: var(--navy); color: var(--white); }
.freq-toggle { display: flex; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; margin-bottom: 1.2rem; }
.freq-toggle button {
  flex: 1; border: 0; background: var(--white); color: var(--navy);
  font-weight: 800; padding: 0.7rem; cursor: pointer; font-family: var(--font-body);
}
.freq-toggle button.selected { background: var(--gold); color: var(--navy-dark); }
.hidden-block { display: none; }
.hidden-block.visible { display: block; }

/* ---------- 9. Modal / lightbox ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 33, 64, 0.72);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300;
  padding: 1.2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 780px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  background: var(--navy); color: var(--white);
  border: 0; border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.1rem; cursor: pointer; z-index: 2;
}
.modal-close:hover { background: var(--gold); color: var(--navy-dark); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-body img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.modal-info { padding: 2rem; }
.modal-fee { font-size: 1.15rem; font-weight: 800; color: var(--gold-dark); margin: 0.6rem 0 1rem; }

/* ---------- 10. Tabs & filters ---------- */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.6rem; }
.tab-btn {
  border: 2px solid var(--navy);
  background: var(--white); color: var(--navy);
  font-family: var(--font-body); font-weight: 800;
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  cursor: pointer;
}
.tab-btn[aria-selected="true"] { background: var(--navy); color: var(--white); }

.filter-bar {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
}
.filter-bar select, .filter-bar input {
  font-family: var(--font-body); font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--cream);
}
.filter-bar input { flex: 1; min-width: 170px; }
.results-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.no-results {
  text-align: center; padding: 3rem 1rem; color: var(--muted);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--navy-dark); color: #B9C8DA; margin-top: 4rem; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #B9C8DA; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; color: var(--white); font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 0.8rem; }
.footer-logo svg, .footer-logo .logo-img { width: 34px; height: 34px; object-fit: contain; background: none; }

.social-links { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social-links a:hover { background: var(--gold); }
.social-links svg { width: 18px; height: 18px; fill: var(--white); }
.social-links a:hover svg { fill: var(--navy-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 0;
  font-size: 0.8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ---------- 12. Responsive breakpoints ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .nav-list > li > a, .nav-list > li > button.nav-toggle { padding: 0.9rem 0.45rem; font-size: 0.86rem; }
}

@media (max-width: 860px) {
  /* Hamburger navigation takes over */
  .hamburger { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    padding: 4.6rem 0 2rem;
    z-index: 90;
  }
  .nav-open .main-nav { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .nav-list > li > button.nav-toggle {
    width: 100%; justify-content: space-between;
    padding: 0.95rem 1.4rem; font-size: 1rem;
  }
  .nav-list > li > a.active { box-shadow: inset 4px 0 0 var(--gold); }
  .dropdown { position: static; box-shadow: none; background: var(--cream); border-radius: 0; }
  .nav-cta { margin: 1.2rem 1.4rem 0; }
  .hamburger { position: relative; z-index: 95; }

  .feature, .feature--rev { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature--rev .feature-media { order: 0; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-body img { min-height: 220px; max-height: 300px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 72px 1fr; }
  .event-row .btn { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 1.8rem; }
  .section { padding: 2.8rem 0; }
  .slide { min-height: 480px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { margin-top: 1.5rem; }
  .carousel-btn { display: none; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
  .main-nav { transition: none; }
}
