/* ==========================================================================
   All Animal Rescue — Modern Design System Tokens & Global Styles
   ========================================================================== */

:root {
  /* Brand Palette: Warm, Compassionate, Trustworthy */
  --primary-900: #081c15;
  --primary-800: #1b4332;
  --primary-700: #2d6a4f;
  --primary-600: #40916c;
  --primary-500: #52b788;
  --primary-100: #d8f3dc;
  --primary-50:  #ebf7ee;

  --accent-terracotta: #e07a5f;
  --accent-gold:       #f4a261;
  --accent-warm-bg:    #fdf6ee;

  --status-available-bg: #e6f4ea;
  --status-available-txt: #137333;
  --status-adopted-bg:   #f3e8ff;
  --status-adopted-txt:  #6b21a8;
  --status-reserved-bg:  #fef3c7;
  --status-reserved-txt: #b45309;

  /* Surfaces & Neutrals */
  --bg-body:      #f6f8f5;
  --bg-surface:   #ffffff;
  --bg-subtle:    #edf2eb;
  --text-main:    #19241d;
  --text-muted:   #526056;
  --text-inverse: #ffffff;
  --border-color: #dbe4da;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(18, 48, 32, 0.08), 0 2px 6px -1px rgba(18, 48, 32, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(18, 48, 32, 0.12), 0 4px 12px -2px rgba(18, 48, 32, 0.06);
  --shadow-xl: 0 20px 38px -8px rgba(18, 48, 32, 0.18);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body:      #0d1410;
  --bg-surface:   #152019;
  --bg-subtle:    #1c2b22;
  --text-main:    #f0f4f1;
  --text-muted:   #97a89c;
  --border-color: #27392e;
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
}

/* ==========================================================================
   Dog Mode / Canine Dichromatic Vision System (April Fools & Educational)
   ========================================================================== */
body.dog-mode {
  /* Canine Dichromatic Color Spectrum: Blues, Golden Yellows, Slate & Biscuit */
  --primary-900: #0f1c2e; /* Deep midnight navy */
  --primary-800: #192d47; /* Rich navy */
  --primary-700: #224270; /* Slate blue */
  --primary-600: #2b5998; /* Classic blue (canine peak wavelength) */
  --primary-500: #e5b83b; /* Golden warm yellow (key canine chromatic peak!) */
  --primary-100: #fbf0cb; /* Soft straw yellow */
  --primary-50:  #fffbee; /* Warm biscuit cream */

  /* Greens and Reds shift to canine perceived tones: warm tan, mustard, slate */
  --accent-terracotta: #9a732a;
  --accent-gold:       #e5b83b;
  --accent-warm-bg:    #f6f0e2;

  --status-available-bg: #fdf3d0;
  --status-available-txt: #805b00;
  --status-adopted-bg:   #dbeafe;
  --status-adopted-txt:  #1e40af;
  --status-reserved-bg:  #fef3c7;
  --status-reserved-txt: #785312;

  /* Surfaces & Neutrals */
  --bg-body:      #f4f1ea;
  --bg-surface:   #ffffff;
  --bg-subtle:    #ece6d8;
  --text-main:    #181e24;
  --text-muted:   #545c66;
  --border-color: #dcd4c3;

  /* Playful paw cursor */
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23e5b83b" stroke="%23192d47" stroke-width="1.5"><circle cx="7" cy="8" r="2.5"/><circle cx="17" cy="8" r="2.5"/><circle cx="12" cy="5" r="2.5"/><path d="M12 10c-3 0-5 2-5 5.5 0 2.5 2 4.5 5 4.5s5-2 5-4.5c0-3.5-2-5.5-5-5.5z"/></svg>') 12 12, auto;
}

body.dog-mode[data-theme="dark"] {
  --bg-body:      #0d131a;
  --bg-surface:   #151d28;
  --bg-subtle:    #1c2635;
  --text-main:    #f0f4f8;
  --text-muted:   #92a0b2;
  --border-color: #273447;
  --primary-500:  #f3c448;
  --primary-600:  #4379c7;
}

/* Apply canine dichromatic simulation matrix to images and media */
body.dog-mode img,
body.dog-mode .hero-media,
body.dog-mode .animal-card-img-wrap,
body.dog-mode .modal-pet-img {
  filter: url(#canine-vision-filter) contrast(1.05) saturate(0.95);
  transition: filter 0.35s ease;
}

/* Subtle bone/paw badge indicator in dog mode */
body.dog-mode .badge-status-dot {
  background: #e5b83b;
  box-shadow: 0 0 8px #e5b83b;
}

body.dog-mode .btn-primary {
  background: #2b5998;
  border-color: #2b5998;
  color: #ffffff;
}

body.dog-mode .btn-primary:hover {
  background: #192d47;
  border-color: #192d47;
  box-shadow: 0 4px 14px rgba(27, 45, 71, 0.35);
}

body.dog-mode .btn-secondary {
  background: #e5b83b;
  border-color: #e5b83b;
  color: #0f1c2e;
  font-weight: 700;
}

body.dog-mode .btn-secondary:hover {
  background: #d4a017;
  border-color: #d4a017;
  color: #0f1c2e;
}

/* ==========================================================================
   POC Sticky Simulator Bar
   ========================================================================== */
.poc-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111827;
  color: #f9fafb;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-family: var(--font-body);
  font-size: 13px;
}

.poc-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.poc-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poc-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.poc-sub {
  color: #9ca3af;
}

.poc-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poc-label {
  color: #9ca3af;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.poc-btn-group {
  display: inline-flex;
  background: #1f2937;
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.poc-btn {
  background: transparent;
  color: #d1d5db;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.poc-btn:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.poc-btn.active {
  background: var(--primary-600);
  color: #ffffff;
}

.poc-theme-toggle {
  background: #1f2937;
  border: 1px solid #374151;
}

.poc-dog-toggle {
  background: #1f2937;
  border: 1px solid #374151;
  transition: all 0.25s ease;
  cursor: pointer;
}

.poc-dog-toggle:hover {
  border-color: #e5b83b;
  color: #fef08a;
  background: rgba(229, 184, 59, 0.15);
}

.poc-dog-toggle.active {
  background: linear-gradient(135deg, #192d47 0%, #b48518 100%);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

/* April Fools Dog Mode Banner */
.dog-mode-banner {
  background: linear-gradient(135deg, #0f1c2e 0%, #192d47 45%, #b48518 110%);
  color: #ffffff;
  padding: 12px 20px;
  border-bottom: 3px solid #e5b83b;
  box-shadow: 0 4px 18px rgba(15, 28, 46, 0.35);
  animation: bannerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 850;
  font-family: var(--font-body);
}

.dog-mode-banner[hidden] {
  display: none !important;
}

@keyframes bannerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dog-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.dog-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.dog-banner-badge {
  background: #e5b83b;
  color: #0f1c2e;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dog-banner-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #f1f5f9;
}

.dog-banner-text strong {
  color: #ffffff;
}

.dog-banner-revert-btn {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.45);
  color: #ffffff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 13px;
  font-family: var(--font-body);
}

.dog-banner-revert-btn:hover {
  background: #ffffff;
  color: #0f1c2e;
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* In-header Dog Vision Pill Button */
.dog-vision-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  margin-left: 4px;
}

.dog-vision-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #e5b83b;
  color: #ffffff;
}

.dog-vision-pill.active {
  background: #e5b83b;
  color: #0f1c2e;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-weight: 700;
}

/* ==========================================================================
   Viewport Wrapper / Simulator Frames
   ========================================================================== */
.viewport-wrapper {
  background: #374151;
  min-height: calc(100vh - 50px);
  padding: 0;
  transition: all 0.4s ease;
  display: flex;
  justify-content: center;
}

.viewport-wrapper.view-desktop {
  background: transparent;
  padding: 0;
}

.viewport-wrapper.view-desktop .site-canvas {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.viewport-wrapper.view-tablet {
  padding: 30px 20px;
}

.viewport-wrapper.view-tablet .site-canvas {
  width: 768px;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  border: 10px solid #1f2937;
  overflow: hidden;
}

.viewport-wrapper.view-mobile {
  padding: 30px 20px;
}

.viewport-wrapper.view-mobile .site-canvas {
  width: 390px;
  max-width: 100%;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  border: 12px solid #111827;
  overflow: hidden;
  position: relative;
}

/* Site Canvas Shell */
.site-canvas {
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   Utility Bar: Official Charity Trust
   ========================================================================== */
.trust-bar {
  background: var(--primary-900);
  color: #d8f3dc;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.trust-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-link {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.trust-link:hover {
  opacity: 0.8;
}

.trust-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b7e4c7;
  flex-wrap: wrap;
}

.separator {
  opacity: 0.5;
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */
.main-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-text-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-paw-icon {
  font-size: 24px;
  line-height: 1;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.4px;
  color: var(--primary-800);
  line-height: 1.15;
}

[data-theme="dark"] .brand-title {
  color: var(--primary-500);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-logo-right {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.brand-logo-right:hover {
  transform: translateY(-1px);
}

.site-logo-img {
  height: 52px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  display: block;
}

/* In Dark Mode: Clean light pill plate so animal silhouettes & typography remain razor sharp with ZERO inversion wedge */
[data-theme="dark"] .brand-logo-right {
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .site-logo-img {
  filter: none; /* No inversion wedge! */
  height: 44px;
}

.donate-btn-header {
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 14.5px;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-700);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary-700);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--primary-700);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-800);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.25);
}

.btn-secondary {
  background: var(--accent-terracotta);
  color: #ffffff;
}

.btn-secondary:hover {
  background: #cb654b;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(224, 122, 95, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--primary-800);
  border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline {
  color: #ffffff;
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-600);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 70px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-800);
  margin-bottom: 20px;
}

[data-theme="dark"] .hero-pill {
  background: var(--bg-subtle);
  border-color: var(--border-color);
  color: var(--primary-500);
}

.pill-badge {
  background: var(--primary-700);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--primary-900);
  margin: 0 0 20px;
}

[data-theme="dark"] .hero-title {
  color: #ffffff;
}

.highlight {
  color: var(--primary-700);
  position: relative;
}

[data-theme="dark"] .highlight {
  color: var(--primary-500);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-800);
  line-height: 1.1;
}

[data-theme="dark"] .stat-num {
  color: var(--primary-500);
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* Hero Media Stack */
.hero-card-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrap.main-img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 4.8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-img-wrap.main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-img-wrap.main-img:hover img {
  transform: scale(1.04);
}

.img-badge-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.hero-floating-card {
  position: absolute;
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-color);
  max-width: 250px;
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.hero-floating-card.top-right {
  top: -16px;
  right: -20px;
}

.hero-floating-card.bottom-left {
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

.floating-avatar {
  font-size: 26px;
}

.floating-text {
  display: flex;
  flex-direction: column;
}

.floating-text strong {
  font-size: 13px;
  color: var(--text-main);
}

.floating-text span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   Featured Animals Section
   ========================================================================== */
.animals-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-header.center {
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-700);
  margin-bottom: 8px;
}

.section-eyebrow.light {
  color: #b7e4c7;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0;
}

/* Demo tip card for Sarah */
.demo-tip-card {
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #713f12;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  max-width: 380px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.demo-tip-card .tip-icon {
  font-size: 20px;
}

.demo-tip-card p {
  margin: 4px 0 0;
  color: #854d0e;
  line-height: 1.4;
}

/* Filter Pills */
.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 36px;
  scrollbar-width: thin;
}

.filter-pill {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1.5px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--primary-600);
  color: var(--primary-700);
}

.filter-pill.active {
  background: var(--primary-800);
  color: #ffffff;
  border-color: var(--primary-800);
  box-shadow: 0 3px 10px rgba(27, 67, 50, 0.2);
}

/* Animal Grid */
.animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.animal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.animal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #e5e7eb;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.animal-card:hover .card-media img {
  transform: scale(1.05);
}

.species-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.status-ribbon.available {
  background: var(--status-available-bg);
  color: var(--status-available-txt);
  border: 1px solid #b7e4c7;
}

.status-ribbon.adopted {
  background: var(--status-adopted-bg);
  color: var(--status-adopted-txt);
  border: 1px solid #d8b4fe;
}

/* Adopted card visual treatment */
.animal-card.adopted-state {
  border-color: #d8b4fe;
}

.animal-card.adopted-state .card-media img {
  filter: saturate(0.9);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.animal-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.animal-age {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.animal-snippet {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.trait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.trait-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.trait-tag.positive {
  background: var(--primary-50);
  color: var(--primary-700);
}

[data-theme="dark"] .trait-tag.positive {
  background: var(--bg-subtle);
  color: var(--primary-500);
}

.trait-tag.neutral {
  background: #f3f4f6;
  color: #4b5563;
}

[data-theme="dark"] .trait-tag.neutral {
  background: #263229;
  color: #9ca3af;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.status-toggle-btn {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fbcfe8;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.status-toggle-btn:hover {
  background: #fce7f3;
  transform: scale(1.03);
}

/* ==========================================================================
   Donate & Gift Aid Impact Section
   ========================================================================== */
.donate-section {
  padding: 80px 0;
  background: var(--primary-900);
  color: #ffffff;
}

.donate-card-wrapper {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.donate-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 10px 0 16px;
  color: #ffffff;
}

.donate-subtitle {
  font-size: 16px;
  color: #d8f3dc;
  line-height: 1.6;
  margin: 0 0 36px;
}

.impact-selector {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: left;
  backdrop-filter: blur(10px);
}

.impact-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #b7e4c7;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.tier-btn {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: #ffffff;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tier-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: #ffffff;
}

.tier-btn.active {
  background: var(--accent-gold);
  color: #111827;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 18px rgba(244, 162, 97, 0.4);
}

.impact-result-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent-gold);
}

.impact-icon {
  font-size: 36px;
}

.impact-text h4 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--accent-gold);
}

.impact-text p {
  margin: 0;
  font-size: 14.5px;
  color: #ffffff;
  line-height: 1.4;
}

/* Gift Aid */
.gift-aid-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.gift-aid-label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}

.gift-aid-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-gold);
  margin-top: 3px;
}

.gift-aid-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gift-aid-copy strong {
  font-size: 15px;
  color: #ffffff;
}

.gift-aid-copy span {
  font-size: 13px;
  color: #b7e4c7;
}

.gift-aid-summary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: #e5e7eb;
}

.boosted-val {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 17px;
}

/* Payment actions */
.digital-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: all var(--transition-fast);
}

.pay-btn.apple-pay {
  background: #ffffff;
  color: #111827;
}

.pay-btn.apple-pay:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.pay-btn.sumup-card {
  background: var(--accent-terracotta);
  color: #ffffff;
}

.pay-btn.sumup-card:hover {
  background: #cb654b;
  transform: translateY(-2px);
}

.bank-details-toggle {
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.text-link {
  background: none;
  border: none;
  color: var(--accent-gold);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.bank-details-panel {
  margin-top: 16px;
  background: rgba(0,0,0,0.3);
  padding: 16px;
  border-radius: var(--radius-md);
}

.bank-details-panel.hidden {
  display: none;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 13.5px;
}

/* ==========================================================================
   Rehoming & Intake Section
   ========================================================================== */
.rehoming-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.rehoming-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.rehoming-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 500;
}

.rehoming-cta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.subtext {
  font-size: 12.5px;
  color: var(--text-muted);
}

.card-quote {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
}

[data-theme="dark"] .card-quote {
  background: var(--bg-subtle);
  border-color: var(--border-color);
}

.card-quote p {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.5;
  color: var(--primary-900);
  font-style: italic;
  margin: 0 0 20px;
}

[data-theme="dark"] .card-quote p {
  color: #ffffff;
}

.quotee {
  display: flex;
  flex-direction: column;
}

.quotee strong {
  font-size: 15px;
  color: var(--primary-800);
}

[data-theme="dark"] .quotee strong {
  color: var(--primary-500);
}

.quotee span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Success Stories Section
   ========================================================================== */
.success-section {
  padding: 80px 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}

.story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.story-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.story-body {
  padding: 24px;
}

.story-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.story-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 10px;
}

.story-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0d1410;
  color: #d1d5db;
  padding: 60px 0 20px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  display: block;
  filter: none;
}

.footer-charity-info {
  line-height: 1.6;
  color: #9ca3af;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 16px;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #6b7280;
}

.footer-security-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
}

/* ==========================================================================
   Modals (<dialog>)
   ========================================================================== */
.app-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  max-width: 720px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.app-modal::backdrop {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.1);
  color: var(--text-main);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.2);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-media {
  position: relative;
  background: #e5e7eb;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--status-available-bg);
  color: var(--status-available-txt);
}

.modal-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.modal-species {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-700);
}

.modal-info h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 4px 0 6px;
}

.modal-age {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.modal-bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
  background: var(--bg-body);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* Intake Form Modal Specifics */
.modal-card.intake-card {
  padding: 36px;
}

.intake-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.intake-form-demo {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, .form-group select {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
}

.field-hint {
  font-size: 12px;
  color: var(--primary-700);
  font-weight: 500;
}

.file-input-styled {
  padding: 8px 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 36px;
  }
  .rehoming-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tier-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .trust-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu {
    display: none; /* In final version, animated drawer */
  }
  .site-logo-img {
    height: 38px;
    max-width: 180px;
  }
  .brand-sub {
    display: none;
  }
  .donate-btn-header {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .digital-wallets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-logo-img {
    height: 32px;
    max-width: 135px;
  }
  .brand-title {
    font-size: 15px;
  }
  .brand-paw-icon {
    font-size: 20px;
  }
}
