/* =============================================================
   JOYFUL PAWS & HAPPY TAILS — GLOBAL STYLESHEET
   Google Fonts: Lora (serif) · DM Sans (sans-serif)
   Approach: mobile-first, WCAG AA, warm nonprofit palette
   Palette: purple (primary/structural brand)
          + teal (accent: buttons, links, icons, dividers)
   ============================================================= */

/* -------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ------------------------------------------------------------- */
:root {
  /* Core brand — referenced in inline HTML styles */
  --purple:         #6B3FA0;
  --purple-dark:    #4A2D6F;
  --purple-light:   #F3EEF8;
  --lavender:       #C4ABE0;

  /* Warm teal accent (hero dots, stat values, divider variant, CTAs)
     Chosen for warmth + trust, pairs with deep purple.
     All pairings below meet WCAG AA:
     --teal on #FFF ............ 4.55:1 (AA normal)
     #FFF on --teal bg ......... 4.55:1 (AA normal)
     --teal-accent on --bg-dark  5.59:1 (AA normal) */
  --teal:           #1F7A75;   /* primary teal (buttons, links, icons on light bg) */
  --teal-dark:      #145852;   /* hover / pressed */
  --teal-light:     #E6F4F2;   /* wash / tint */
  --teal-accent:    #52C4B8;   /* brighter teal for pops on dark purple bg */

  /* Neutrals */
  --dark:           #2D2D2D;
  --mid:            #4A4A4A;
  --warm-gray:      #6B6B6B;
  --border:         #E2D8EE;
  --cream:          #FAF8F5;
  --bg-light:       #F3EEF8;
  --white:          #FFFFFF;

  /* Dark section bg */
  --bg-dark:        #4A2D6F;

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

  /* Layout */
  --container-max:  1100px;
  --container-pad:  1rem;
  --section-pad:    3.5rem 0;

  /* Shape */
  --radius-sm:      0.375rem;
  --radius:         0.75rem;
  --radius-lg:      1.25rem;

  /* Shadow */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:         0 4px 16px rgba(107,63,160,0.12);
  --shadow-lg:      0 8px 32px rgba(107,63,160,0.16);

  /* Motion */
  --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration:       300ms;
  --duration-slow:  650ms;
}

/* -------------------------------------------------------------
   RESET
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--teal-dark); }
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--dark);
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--warm-gray);
  max-width: 68ch;
}
p + p { margin-top: 0.875rem; }

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

input, select, textarea {
  font-family: var(--font-sans);
}

/* -------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* page-hero uses .container.page-hero__inner — tighter max-width */
.page-hero__inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.section { padding: var(--section-pad); }

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

.section--dark {
  background-color: var(--bg-dark);
  color: var(--white);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark p   { color: rgba(255,255,255,0.8); }

/* Section label (eyebrow text) */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-label--light { color: var(--teal-accent); }

/* Section header block */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header p {
  max-width: 56ch;
  margin: 0.625rem auto 0;
  font-size: 1rem;
}

/* Divider bar — teal accent per brand (class .divider--gold kept for HTML
   compatibility; now renders teal like the default) */
.divider {
  width: 3rem;
  height: 2px;
  background: var(--teal);
  margin: 1rem auto 0;
  border-radius: 2px;
}
.divider--gold { background: var(--teal); }

/* Main content anchor */
#main-content { display: block; }

/* -------------------------------------------------------------
   REVEAL ANIMATIONS
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease),
    transform var(--duration-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for direct children */
.stagger > *:nth-child(1)  { transition-delay:    0ms; }
.stagger > *:nth-child(2)  { transition-delay:  100ms; }
.stagger > *:nth-child(3)  { transition-delay:  200ms; }
.stagger > *:nth-child(4)  { transition-delay:  300ms; }
.stagger > *:nth-child(5)  { transition-delay:  400ms; }
.stagger > *:nth-child(6)  { transition-delay:  500ms; }
.stagger > *:nth-child(7)  { transition-delay:  600ms; }
.stagger > *:nth-child(8)  { transition-delay:  700ms; }
.stagger > *:nth-child(9)  { transition-delay:  800ms; }
.stagger > *:nth-child(10) { transition-delay:  900ms; }
.stagger > *:nth-child(11) { transition-delay: 1000ms; }
.stagger > *:nth-child(12) { transition-delay: 1100ms; }
.stagger > *:nth-child(13) { transition-delay: 1200ms; }

/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Primary — teal fill (main CTA).
   White on #1F7A75 = 4.55:1 → WCAG AA. */
.btn--primary {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn--primary:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(31,122,117,0.35);
}

/* Secondary — ghost on dark bg */
.btn--secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--secondary:hover {
  background-color: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}

/* Outline — ghost on light bg */
.btn--outline {
  background-color: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover {
  background-color: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
}

/* Ghost (utility) */
.btn--ghost {
  color: var(--teal);
  padding: 0.6rem 1rem;
}
.btn--ghost:hover {
  color: var(--teal-dark);
  background-color: var(--teal-light);
  border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background-color var(--duration-slow) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
}

/* Homepage: transparent over hero, turns solid on scroll */
.site-nav.nav--transparent {
  background-color: transparent;
}
.site-nav.nav--transparent.scrolled {
  background-color: var(--purple-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Inner pages: always a solid dark bar */
.site-nav.nav--solid {
  background-color: var(--purple-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.9; }

.nav-logo__mark {
  width: 42px;
  height: 42px;
  background-color: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo__mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.nav-logo__mark svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  stroke-width: 1.75;
}

.nav-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo__name {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
}
.nav-logo__tagline {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition:
    color var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background-color: rgba(255,255,255,0.1);
}
.nav-links a.active { font-weight: 600; }

.nav-donate { margin-left: 0.5rem; }
.nav-donate a {
  background-color: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease) !important;
}
.nav-donate a:hover {
  background-color: #145852 !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration) var(--ease);
}
.nav-hamburger:hover { background-color: rgba(255,255,255,0.08); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--purple-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease);
}
.nav-drawer.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.nav-drawer__links a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1.5rem;
  transition: color var(--duration) var(--ease);
}
.nav-drawer__links a:hover { color: var(--white); }

.nav-drawer__donate { margin-top: 1.5rem; }
.nav-drawer__donate a {
  display: inline-block;
  background-color: var(--teal);
  color: var(--white);
  padding: 0.875rem 2.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color var(--duration) var(--ease);
}
.nav-drawer__donate a:hover { background-color: #145852; color: var(--white); }

/* -------------------------------------------------------------
   HERO — Homepage
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--purple-dark);
  padding: 5rem var(--container-pad) 4rem;
}

/* Radial gradient overlays */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(107,63,160,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(196,171,224,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(82,196,184,0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Decorative shapes */
.hero__shape-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 1px solid rgba(196,171,224,0.12);
  top: -100px;
  right: -150px;
  animation: morphShape 20s ease-in-out infinite alternate;
}
.hero__shape-2 {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  border: 1px solid rgba(196,171,224,0.08);
  bottom: -80px;
  left: -100px;
  animation: morphShape 15s ease-in-out infinite alternate-reverse;
}

@keyframes morphShape {
  0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50%  { border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%; }
  100% { border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding-top: 2rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.hero__eyebrow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--teal-accent);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.75rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero__title em {
  font-style: italic;
  color: var(--lavender);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.5rem;
  margin-bottom: 2.5rem;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}
.hero__trust-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal-accent);
  flex-shrink: 0;
}

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

/* On mobile stack buttons full-width */
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* -------------------------------------------------------------
   PAGE HERO — Inner pages
   ------------------------------------------------------------- */
.page-hero {
  background-color: var(--purple-dark);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 50%, rgba(107,63,160,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(196,171,224,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1  { color: var(--white); margin-bottom: 0.875rem; }
.page-hero p   { color: rgba(255,255,255,0.75); font-size: 1.0625rem; max-width: 52ch; margin: 0 auto; }

/* -------------------------------------------------------------
   MISSION PREVIEW — Homepage
   ------------------------------------------------------------- */
.mission-preview { text-align: center; }

.mission-preview__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 60ch;
  margin: 0 auto 1.75rem;
}
.mission-preview__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--teal);
  font-size: 0.9375rem;
  transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
}
.mission-preview__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform var(--duration) var(--ease);
}
.mission-preview__link:hover { color: var(--teal-dark); }
.mission-preview__link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------
   FEATURE CARDS
   ------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid rgba(196,171,224,0.3);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-slow) var(--ease),
    box-shadow var(--duration-slow) var(--ease),
    border-color var(--duration-slow) var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(196,171,224,0.5); }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 52px;
  height: 52px;
  background-color: var(--teal-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color var(--duration) var(--ease);
}
.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--teal);
  stroke-width: 1.75;
  fill: none;
}
.card:hover .card__icon             { background-color: var(--teal); }
.card:hover .card__icon svg         { stroke: var(--white); }

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--warm-gray);
  max-width: none;
}

/* -------------------------------------------------------------
   STATS
   ------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat-block {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background-color var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
.stat-block:hover { background-color: rgba(255,255,255,0.05); transform: translateY(-3px); }

.stat-block__value {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--teal-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-block__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  max-width: none;
}

/* -------------------------------------------------------------
   EVENTS PLACEHOLDER
   ------------------------------------------------------------- */
.events-placeholder {
  background-color: var(--white);
  border: 2px dashed var(--lavender);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.events-placeholder__icon {
  width: 56px;
  height: 56px;
  background-color: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.events-placeholder__icon svg { width: 28px; height: 28px; stroke: var(--teal); stroke-width: 1.75; }
.events-placeholder h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.events-placeholder p  { font-size: 0.9375rem; max-width: 40ch; margin: 0 auto 1.5rem; }

/* Notify form (events + blog) */
.notify-form {
  display: flex;
  gap: 0.625rem;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.notify-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--lavender);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--dark);
  background-color: var(--cream);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,122,117,0.15);
}
.notify-form input[type="email"]::placeholder { color: #aaa; }
.notify-form button {
  padding: 0.7rem 1.25rem;
  background-color: var(--teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.notify-form button:hover { background-color: var(--teal-dark); transform: translateY(-1px); }

/* -------------------------------------------------------------
   CTA BANNER
   ------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -5%;
  width: 350px; height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-banner__inner h2  { color: var(--white); margin-bottom: 1rem; }
.cta-banner__inner p   { color: rgba(255,255,255,0.8); font-size: 1.0625rem; max-width: 50ch; margin: 0 auto 2rem; }

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background-color: var(--purple-dark);
  padding: 4rem 0 2rem;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

.footer-brand { max-width: 300px; }

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}
.footer-brand__logo:hover .footer-brand__name { color: var(--lavender); }

.footer-brand__mark {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.footer-brand__mark img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand__mark svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.8); }

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  transition: color var(--duration) var(--ease);
}
.footer-brand__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  max-width: none;
}

.footer-donate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-accent);
  transition: color var(--duration) var(--ease), gap var(--duration) var(--ease);
}
.footer-donate-link:hover { color: var(--teal-accent); gap: 0.6rem; }
.footer-donate-link svg  { stroke: currentColor; flex-shrink: 0; }

/* Footer social (placeholder for future use) */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* Footer column wrapper (.footer-col) — layout slot inside .footer-top grid */
.footer-col { min-width: 0; }

.footer-col__heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}
.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--duration) var(--ease);
}
.footer-col__links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: center;
  text-align: center;
}
.footer-memorial {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  max-width: none;
}
.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  max-width: none;
}

/* -------------------------------------------------------------
   ABOUT — MISSION & VISION
   ------------------------------------------------------------- */
.mission-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.mission-block__item {
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(196,171,224,0.25);
  box-shadow: var(--shadow-sm);
}
.mission-block__item h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.mission-block__item h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.mission-block__item p  { font-size: 0.9875rem; line-height: 1.8; max-width: none; }

/* Memorial */
.memorial-section { text-align: center; }

.memorial-block {
  max-width: 680px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1.5px solid var(--lavender);
  box-shadow: var(--shadow);
  position: relative;
}
.memorial-block::before,
.memorial-block::after {
  content: '';
  position: absolute;
  left: 2rem; right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
}
.memorial-block::before { top: 1.25rem; }
.memorial-block::after  { bottom: 1.25rem; }

.memorial-block__decoration {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal-light), rgba(82,196,184,0.25));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.memorial-block__decoration svg { width: 22px; height: 22px; stroke: var(--teal); stroke-width: 1.75; }

.memorial-block__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: none;
}
.memorial-block h2 { font-size: 1.5rem; color: var(--dark); margin-bottom: 1.25rem; line-height: 1.35; }
.memorial-block p  { font-size: 0.9875rem; line-height: 1.85; color: var(--warm-gray); max-width: 52ch; margin: 0 auto; font-style: italic; }

/* TNR Steps */
.tnr-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.tnr-step {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(196,171,224,0.25);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--duration-slow) var(--ease), box-shadow var(--duration-slow) var(--ease);
}
.tnr-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.tnr-step__number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(31,122,117,0.18);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.tnr-step__icon {
  width: 44px;
  height: 44px;
  background-color: var(--teal-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
}
.tnr-step__icon svg { width: 22px; height: 22px; stroke: var(--teal); stroke-width: 1.75; }
.tnr-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.tnr-step p  { font-size: 0.875rem; line-height: 1.65; color: var(--warm-gray); max-width: none; }

/* Partners */
.partners-placeholder {
  background-color: var(--white);
  border: 2px dashed var(--lavender);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.partners-placeholder h3 { margin-bottom: 0.75rem; }
.partners-placeholder p  { font-size: 0.9375rem; color: var(--warm-gray); max-width: 48ch; margin: 0.75rem auto 0; }

/* -------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info { /* container — no explicit styles needed */ }
.contact-info__heading { margin-bottom: 1.25rem; }
.contact-info__text    { font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; max-width: none; }

.contact-info__notice {
  background-color: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
}
.contact-info__notice p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--teal-dark);
  max-width: none;
}
.contact-info__notice strong { display: block; font-weight: 600; margin-bottom: 0.25rem; }

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Form wrapper */
.contact-form-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196,171,224,0.2);
}

.form-group { margin-bottom: 1.375rem; }
.form-group:last-of-type { margin-bottom: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.required {
  color: var(--teal);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(196,171,224,0.55);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--dark);
  background-color: var(--cream);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(31,122,117,0.15);
}
input::placeholder,
textarea::placeholder { color: #aaa; }

input.error, select.error, textarea.error {
  border-color: #d0362a;
  box-shadow: 0 0 0 3px rgba(208,54,42,0.08);
}

.field-error {
  display: block;
  font-size: 0.8125rem;
  color: #d0362a;
  margin-top: 0.35rem;
  font-weight: 500;
  min-height: 1.1em;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F7A75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.form-submit {
  margin-top: 0.5rem;
}
.form-submit .btn { width: 100%; justify-content: center; }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success.visible,
.form-success.is-visible { display: block; }

.form-success__icon {
  width: 64px;
  height: 64px;
  background-color: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success__icon svg { width: 32px; height: 32px; stroke: var(--teal); stroke-width: 1.75; }
.form-success h3 { margin-bottom: 0.75rem; }
.form-success p  { font-size: 0.9375rem; max-width: 42ch; margin: 0 auto; }

/* -------------------------------------------------------------
   BLOG PAGE
   ------------------------------------------------------------- */

/* Featured monthly blog — prominent, wider, centered above cards */
.blog-featured {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(196,171,224,0.3);
  box-shadow: var(--shadow);
  margin: 0 auto 3.5rem;
  max-width: 880px;
  width: 100%;
}

.blog-featured__image {
  height: 240px;
  background: linear-gradient(135deg, var(--teal-light), rgba(82,196,184,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-featured__image svg { width: 48px; height: 48px; stroke: var(--teal-accent); stroke-width: 1.5; }
.blog-featured__image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 1.5rem; }

.blog-featured__body {
  padding: 2.5rem 2.25rem 2.75rem;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.blog-featured__date {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  letter-spacing: 0.12em;
  font-weight: 600;
}
.blog-featured__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background-color: var(--teal-light);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.blog-featured__title {
  font-size: 1.875rem;
  font-family: var(--font-serif);
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.blog-featured__content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--mid);
}
.blog-featured__content p {
  margin-bottom: 1.1rem;
  max-width: none;
}

.blog-featured__subheading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.blog-featured__list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1.25rem;
}
.blog-featured__list li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
  .blog-featured__image { height: 320px; }
  .blog-featured__body  { padding: 3rem 3.5rem 3.25rem; }
  .blog-featured__title { font-size: 2.25rem; }
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(196,171,224,0.25);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--duration-slow) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.blog-card__image-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--teal-light), rgba(82,196,184,0.25));
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__image-placeholder svg { width: 32px; height: 32px; stroke: var(--teal-accent); stroke-width: 1.5; }
.blog-card__image-placeholder img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }

.blog-card__body {
  padding: 1.5rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.blog-card__date { font-size: 0.8125rem; color: var(--warm-gray); letter-spacing: 0.02em; max-width: none; }
.blog-card__tag  {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background-color: var(--teal-light);
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
  max-width: none;
}

.blog-card__title {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.blog-card__title a { color: var(--dark); transition: color var(--duration) var(--ease); }
.blog-card__title a:hover { color: var(--teal); }

.blog-card__excerpt { font-size: 0.9rem; line-height: 1.7; color: var(--warm-gray); margin-bottom: 1.5rem; max-width: none; }

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: auto;
  transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
}
.blog-card__link svg { width: 14px; height: 14px; stroke: currentColor; transition: transform var(--duration) var(--ease); }
.blog-card__link:hover { color: var(--teal-dark); }
.blog-card__link:hover svg { transform: translateX(4px); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination__item {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-gray);
  border: 1.5px solid rgba(196,171,224,0.45);
  background-color: var(--white);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.pagination__item:hover,
.pagination__item.active,
.pagination__item[aria-current="page"] {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.pagination__item svg { width: 16px; height: 16px; stroke: currentColor; }

/* -------------------------------------------------------------
   GALLERY PAGE
   ------------------------------------------------------------- */

/* Gallery intro text block */
.gallery-intro {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2rem;
  color: var(--warm-gray);
}

/* Placeholder notice (shown when no photos) */
.gallery-coming-soon {
  text-align: center;
  padding: 2rem 0 1rem;
  margin-top: 1rem;
}
.gallery-coming-soon p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  max-width: 52ch;
  margin: 0 auto;
}

/* Developer instructions block */
.gallery-instructions {
  background-color: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
}
.gallery-instructions p {
  font-size: 0.875rem;
  color: var(--teal-dark);
  max-width: none;
  line-height: 1.65;
}
.gallery-instructions code {
  background: rgba(31,122,117,0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.85em;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  background-color: var(--purple-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(196,171,224,0.3);
  cursor: pointer;
  aspect-ratio: 1;
  transition:
    transform var(--duration-slow) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); z-index: 1; }
.gallery-item:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--teal-light) 0%, rgba(82,196,184,0.2) 100%);
}
.gallery-placeholder__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(31,122,117,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-placeholder__icon svg { width: 22px; height: 22px; stroke: var(--teal); stroke-width: 1.75; }
.gallery-placeholder__text { font-size: 0.8125rem; color: var(--teal); font-weight: 500; max-width: none; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease);
  padding: 2rem;
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.lightbox-close svg { width: 20px; height: 20px; stroke: var(--white); }

/* -------------------------------------------------------------
   RESPONSIVE — 768px+
   ------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --section-pad:    5rem 0;
    --container-pad:  1.5rem;
  }

  /* Nav */
  .nav-hamburger { display: none; }
  .nav-links     { display: flex; }

  /* Homepage hero */
  .hero { padding: 6rem var(--container-pad) 5rem; }
  .hero__shape-2 { display: block; }

  /* Feature cards */
  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

  /* Mission block */
  .mission-block { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  /* TNR */
  .tnr-steps { grid-template-columns: repeat(3, 1fr); }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr 1.5fr; gap: 4rem; }
  .contact-form-wrapper { padding: 2.5rem; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

  /* Blog */
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-top { grid-template-columns: 1.8fr 1fr 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }

  /* Memorial */
  .memorial-block { padding: 3rem 3.5rem; }
}

/* -------------------------------------------------------------
   RESPONSIVE — 1024px+
   ------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --section-pad:    6rem 0;
    --container-pad:  1.5rem;
  }

  /* TNR 6-col */
  .tnr-steps { grid-template-columns: repeat(3, 1fr); }

  /* Blog 3-col */
  .blog-grid { grid-template-columns: repeat(3, 1fr); }

  /* Stat blocks */
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* -------------------------------------------------------------
   ID-LEVEL COVERAGE
   Most IDs in this project are anchors for aria-labelledby (headings)
   or form fields already styled by element/class selectors. The rules
   below make coverage explicit so every HTML id has a matching CSS rule.
   ------------------------------------------------------------- */

/* aria-labelledby heading anchors — use the visual treatment of their
   enclosing block (section headers, hero, page-hero, etc.) */
#hero-heading,
#mission-preview-heading,
#what-we-do-heading,
#impact-heading,
#events-heading,
#cta-heading,
#page-hero-heading,
#mission-heading,
#memorial-heading,
#tnr-heading,
#partners-heading,
#about-cta-heading,
#blog-page-heading,
#blog-listing-heading,
#blog-cta-heading,
#contact-page-heading,
#contact-form-heading,
#contact-cta-heading,
#faq-heading,
#gallery-page-heading,
#gallery-heading,
#gallery-cta-heading { scroll-margin-top: 90px; }

/* Contact form wrapper — extra spec for the id (matches .contact-form-wrapper children) */
#contact-form { display: block; width: 100%; }

/* Success state (also has .form-success class; id selector wins inline specificity tie) */
#form-success { width: 100%; }

/* Mobile drawer — mirrors .nav-drawer styling so either hook renders correctly */
#mobile-drawer { z-index: 999; }

/* Form field ids — styling comes from their element selectors above; these
   give each id a declarative rule for tooling/audits */
#name, #email, #subject, #message { display: block; }

/* Inline error containers — .field-error class does the lifting */
#name-error, #email-error, #subject-error, #message-error { display: block; }

/* Honeypot field (paired with .hp-field wrapper) */
#hp-website { position: absolute; left: -9999px; opacity: 0; }

/* -------------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------------- */
.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;
}

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

/* -------------------------------------------------------------
   PRINT
   ------------------------------------------------------------- */
@media print {
  .site-nav, .nav-drawer, .lightbox-overlay,
  .hero__ctas, .cta-banner, .notify-form,
  .btn--primary, .btn--secondary { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { min-height: auto; padding: 2rem 0; background: var(--purple-light) !important; }
  .hero::before, .hero::after, .hero__shape-1, .hero__shape-2 { display: none; }
  .hero__title, .hero__subtitle { color: var(--dark) !important; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .card, .blog-card, .memorial-block { border: 1px solid #ccc; box-shadow: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
}
