/* =============================================
   Cookie's Cuddle Farm & Rescue
   Stylesheet — WCAG 2.1 AA compliant
   ============================================= */

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Light mode (default) ── */
:root {
  --blue-dark:    #2d3a7c;
  --blue:         #4a5bbf;
  --blue-light:   #eef0fb;
  --purple:       #7b4fb5;
  --purple-light: #f0eaf9;
  --error:        #5c3494;

  --bg-page:      #f3effd;
  --bg-card:      #ffffff;
  --bg-tint:      #eef0fb;
  --bg-tint-alt:  #f0eaf9;

  --text-dark:    #1a1c35;
  --text-mid:     #3b3f6e;
  --text-muted:   #5c5e78;
  --border:       #e2e4f0;

  --header-bg:    #f3effd;
  --footer-bg:    #1a1c35;
  --footer-text:  #d0d4f0;
  --footer-link:  #a594e8;

  --btn-primary-bg:   #2d3a7c;
  --btn-primary-text: #ffffff;
  --btn-primary-hover:#4a5bbf;

  --btn-secondary-bg:   #14194a;
  --btn-secondary-text: #ffffff;
  --btn-secondary-hover:#1e2560;

  --shadow-sm:  0 2px 8px rgba(30,30,80,.10);
  --shadow-md:  0 4px 20px rgba(30,30,80,.15);
  --radius:       10px;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Nunito', 'Segoe UI', sans-serif;
  --transition:   0.25s ease;
  --max-width:    1160px;
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --blue-dark:    #8fa3f5;   /* lighter so it pops on dark bg */
    --blue:         #6b80e8;
    --blue-light:   #1e2045;
    --purple:       #b389e8;
    --purple-light: #1f1535;
    --error:        #d4a8ff;

    --bg-page:      #0f1020;
    --bg-card:      #181a38;
    --bg-tint:      #1e2045;
    --bg-tint-alt:  #1f1535;

    --text-dark:    #e8eaff;
    --text-mid:     #b0b8e8;
    --text-muted:   #7b83b0;
    --border:       #2c2f60;

    --header-bg:    #12142a;
    --footer-bg:    #0a0b18;
    --footer-text:  #9098c8;
    --footer-link:  #b389e8;

    --btn-primary-bg:   #5068d8;
    --btn-primary-text: #ffffff;
    --btn-primary-hover:#6b80e8;

    --btn-secondary-bg:   #8b5ec8;
    --btn-secondary-text: #ffffff;
    --btn-secondary-hover:#a374e0;

    --shadow-sm:  0 2px 8px rgba(0,0,0,.35);
    --shadow-md:  0 4px 20px rgba(0,0,0,.50);
  }
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover, a:focus-visible {
  color: var(--purple);
}

/* ── Focus styles — visible for keyboard users ── */
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue-dark);
  color: #ffffff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ── Screen-reader only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Container ── */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* ── Section spacing ── */
.section {
  padding: 5rem 0;
}

.bg-light {
  background: var(--bg-tint);
}

/* ── Section header block ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .6rem; }

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: .5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-bg);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--btn-secondary-hover);
  border-color: var(--btn-secondary-hover);
  color: var(--btn-secondary-text);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--blue-dark);
  color: #ffffff;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text-dark);
}

.logo img {
  width: 58px;
  height: 56px;
  border-radius: 0;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-sub {
  display: block;
  font-size: .85rem;
  font-weight: 400;
  color: var(--blue);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.primary-nav a {
  padding: .4rem .75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--bg-tint);
  color: var(--blue-dark);
}

.primary-nav .nav-cta {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: .45rem 1.1rem;
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
  color: var(--text-dark);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger { position: relative; }

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after  { top:  8px; }

/* Open state */
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(5.5px, 5.5px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(155,110,210,.82), rgba(155,110,210,.82)),
    url('../images/hero.jpg') center/cover no-repeat;
  color: #ffffff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(45,58,124,.30) 0%, rgba(90,30,140,.20) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.35));
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,.95), 0 1px 4px rgba(0,0,0,1), 0 4px 24px rgba(0,0,0,.8);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto 2rem;
  opacity: .93;
  text-shadow: 0 1px 6px rgba(0,0,0,.85), 0 2px 12px rgba(0,0,0,.6);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.6);
}

/* =============================================
   MISSION BANNER
   ============================================= */
.mission-banner {
  background: var(--blue-dark);
  color: #ffffff;
  padding: 2rem 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.9);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.mission-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .95rem;
}

.mission-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 3px rgba(255,255,255,.7));
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--border);
}

.about-text .section-label { margin-bottom: .4rem; font-size: 1.6rem; text-transform: none; letter-spacing: 0; }
.about-text p { color: var(--text-mid); margin-bottom: 1rem; font-size: 1.15rem; }
.about-text { margin-left: -.5in; }

.story-photo-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.story-photo-stack img {
  width: 50%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.about-text .btn { margin-top: .5rem; }

/* =============================================
   ANIMALS
   ============================================= */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
  list-style: none;
  padding-left: 0;
}

.animal-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.animal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.animal-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--border);
}

.animal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.animal-card:hover .animal-img-wrap img {
  transform: scale(1.04);
}

.animal-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.animal-card-body h3 { color: var(--blue-dark); }
.animal-card-body p  { font-size: .93rem; color: var(--text-mid); }

/* Instagram teaser */
.instagram-teaser {
  text-align: center;
  padding: 2rem;
  background: var(--bg-tint-alt);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.instagram-teaser p {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-mid);
}

/* =============================================
   VISIT
   ============================================= */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.visit-text .section-label { margin-bottom: .4rem; }
.visit-text p { color: var(--text-mid); margin-bottom: 1.25rem; }

.visit-details {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.visit-details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .5rem;
  font-size: .95rem;
  color: var(--text-mid);
}

.visit-details strong { color: var(--text-dark); }

.visit-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: contain;
  background: var(--border);
}

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  background: var(--bg-tint-alt);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
}

.stat-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-mid);
}

/* =============================================
   GET INVOLVED
   ============================================= */
.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.involved-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.involved-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.involved-icon { font-size: 2.5rem; }

.involved-card h3 { color: var(--blue-dark); }
.involved-card p  { color: var(--text-mid); font-size: .95rem; flex: 1; }
.involved-card .btn { align-self: center; margin-top: auto; }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .section-label { margin-bottom: .4rem; }
.contact-info p { color: var(--text-mid); margin-bottom: 1.25rem; }

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  font-size: .95rem;
}

.contact-details strong { color: var(--text-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.contact-details a { color: var(--blue-dark); font-weight: 600; }

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: .6rem .85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-page);
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,91,191,.2);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  font-size: .83rem;
  color: var(--error);
  font-weight: 600;
  min-height: 1rem;
}

/* Honeypot — visually hidden but not sr-only so bots see it */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-success {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--bg-tint);
  color: var(--blue-dark);
  border-radius: 6px;
  font-weight: 600;
}

.contact-form .btn { width: 100%; justify-content: center; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-block: 3rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-logo span { color: var(--footer-link); }

.footer-tagline {
  color: var(--footer-text);
  font-size: .9rem;
  margin-top: .35rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-nav a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: .93rem;
  transition: color var(--transition);
}

.footer-nav a:hover, .footer-nav a:focus-visible {
  color: var(--footer-link);
}

.footer-social p {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--footer-text);
  margin-bottom: .5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  color: var(--footer-text);
  transition: color var(--transition);
}

.social-link:hover, .social-link:focus-visible {
  color: var(--footer-link);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.25rem;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .83rem;
  color: var(--footer-text);
}

.footer-bottom a {
  color: var(--footer-link);
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--blue-dark);
  color: #ffffff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.page-hero .section-label {
  color: rgba(255,255,255,.75);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: .75rem;
}

.page-hero p {
  max-width: 640px;
  margin-inline: auto;
  opacity: .88;
  font-size: 1.05rem;
}

@media (prefers-color-scheme: dark) {
  .page-hero {
    background: #1a1f4a;
  }
  .page-hero .container {
    background: rgba(0,0,0,.45);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
  }
}

/* =============================================
   TEASER GRID (home page)
   ============================================= */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.teaser-card:hover,
.teaser-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  color: inherit;
}

.teaser-card--highlight {
  background: var(--bg-tint-alt);
  border-color: var(--purple);
}

.teaser-icon {
  font-size: 2.2rem;
}

.teaser-card h3 {
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.teaser-card p {
  color: var(--text-mid);
  font-size: .93rem;
  flex: 1;
}

.teaser-link {
  font-weight: 700;
  color: var(--blue);
  font-size: .9rem;
  margin-top: .25rem;
}

/* =============================================
   VALUES GRID (about page)
   ============================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.value-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.value-card h3 { color: var(--blue-dark); }
.value-card p  { color: var(--text-mid); font-size: .93rem; }

/* =============================================
   CTA BAND (reusable bottom CTA section)
   ============================================= */
.cta-band {
  background: var(--bg-tint);
}

/* =============================================
   DONATE OPTIONS
   ============================================= */
.donate-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.donate-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.donate-option-card:hover,
.donate-option-card:focus-visible {
  border-color: var(--purple);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.donate-option-card h3 { color: var(--blue-dark); }
.donate-option-card p  { color: var(--text-mid); font-size: .93rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-text { margin-left: 0; }
  .about-image { order: 2; }
  .about-text  { order: 1; }
  .story-photo-stack img { width: 85%; }

  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .visit-image { order: -1; }

  .mission-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .involved-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  /* Mobile nav */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 210;
  }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--header-bg);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 30px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 205;
    overflow-y: auto;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }

  .primary-nav a {
    font-size: 1.1rem;
    padding: .65rem .75rem;
    width: 100%;
  }

  .primary-nav .nav-cta { margin-top: 1rem; }

  /* Sections */
  .section { padding: 3.5rem 0; }

  .hero { min-height: 80vh; }

  .hero-logo { width: 160px; height: 160px; }

  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .involved-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .visit-details li {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
