/* ========================================
   Hero Paws — Shared Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1A1A1A; background: #FFF8F0; -webkit-font-smoothing: antialiased; }

/* ========================================
   Test Banner
   ======================================== */
.test-banner {
  background: repeating-linear-gradient(45deg, #fbbf24, #fbbf24 10px, #f59e0b 10px, #f59e0b 20px);
  color: #1A1A1A;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}
.test-banner span {
  background: rgba(255,255,255,0.85);
  padding: 3px 12px;
  border-radius: 4px;
}

/* Push everything down for fixed test banner */
body { padding-top: 38px; }

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* Intersection observer reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up, .animate-fade-in { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========================================
   Navbar
   ======================================== */
.site-nav {
  position: fixed;
  top: 38px; /* below test banner */
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}
.site-nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-nav .nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-nav .nav-logo-text { font-size: 18px; font-weight: 700; transition: color 0.3s; }
.site-nav .nav-logo-sub { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a, .nav-links .nav-dropdown-trigger {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
}

/* Donate button */
.nav-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #E8611A;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(232,97,26,0.3);
  margin-left: 12px;
}
.nav-donate:hover { background: #C84F10; transform: translateY(-1px); }

/* Nav Themes */
/* Dark theme (for hero pages) */
.site-nav.theme-dark .nav-logo-text { color: #fff; }
.site-nav.theme-dark .nav-logo-sub { color: rgba(255,255,255,0.5); }
.site-nav.theme-dark .nav-links a,
.site-nav.theme-dark .nav-links .nav-dropdown-trigger { color: rgba(255,255,255,0.75); }
.site-nav.theme-dark .nav-links a:hover,
.site-nav.theme-dark .nav-links .nav-dropdown-trigger:hover { color: #fff; background: rgba(255,255,255,0.1); }
.site-nav.theme-dark .nav-dropdown-menu { background: #2D2D2D; border: 1px solid rgba(255,255,255,0.1); }
.site-nav.theme-dark .nav-dropdown-menu a { color: rgba(255,255,255,0.7); }
.site-nav.theme-dark .nav-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Light theme (for inner pages) — always has background since inner pages have dark headers */
.site-nav.theme-light {
  background: rgba(255, 248, 240, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-nav.theme-light .nav-logo-text { color: #1A1A1A; }
.site-nav.theme-light .nav-logo-sub { color: #999; }
.site-nav.theme-light .nav-links a,
.site-nav.theme-light .nav-links .nav-dropdown-trigger { color: #555; }
.site-nav.theme-light .nav-links a:hover,
.site-nav.theme-light .nav-links .nav-dropdown-trigger:hover { color: #1A1A1A; background: rgba(0,0,0,0.05); }
.site-nav.theme-light .nav-dropdown-menu { background: #fff; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.site-nav.theme-light .nav-dropdown-menu a { color: #555; }
.site-nav.theme-light .nav-dropdown-menu a:hover { color: #E8611A; background: #FFF8F0; }

/* Scrolled state (always light) */
.site-nav.scrolled {
  background: rgba(255, 248, 240, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-nav.scrolled .nav-logo-text { color: #1A1A1A !important; }
.site-nav.scrolled .nav-logo-sub { color: #999 !important; }
.site-nav.scrolled .nav-links a,
.site-nav.scrolled .nav-links .nav-dropdown-trigger { color: #555 !important; }
.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links .nav-dropdown-trigger:hover { color: #1A1A1A !important; background: rgba(0,0,0,0.05) !important; }
.site-nav.scrolled .nav-dropdown-menu { background: #fff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important; }
.site-nav.scrolled .nav-dropdown-menu a { color: #555 !important; }
.site-nav.scrolled .nav-dropdown-menu a:hover { color: #E8611A !important; background: #FFF8F0 !important; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-toggle svg { width: 24px; height: 24px; }
.site-nav.theme-dark .mobile-toggle svg { stroke: #fff; }
.site-nav.theme-light .mobile-toggle svg { stroke: #1A1A1A; }
.site-nav.scrolled .mobile-toggle svg { stroke: #1A1A1A !important; }

/* Mobile menu */
.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(255, 248, 240, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mobile-menu.open { max-height: 600px; }
.mobile-menu a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.15s;
}
.mobile-menu a:hover { color: #E8611A; background: #FFF8F0; }
.mobile-menu .mobile-sub { padding-left: 40px; font-size: 13px; color: #777; }
.mobile-menu .mobile-donate {
  display: block;
  margin: 16px 24px;
  padding: 14px;
  background: #E8611A;
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  border-radius: 999px;
  border-bottom: none;
}
.mobile-menu .mobile-donate:hover { background: #C84F10; }

/* When menu is open, ensure nav always has solid background */
.site-nav.menu-open {
  background: rgba(255, 248, 240, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
.site-nav.menu-open .nav-logo-text { color: #1A1A1A !important; }
.site-nav.menu-open .nav-logo-sub { color: #999 !important; }
.site-nav.menu-open .mobile-toggle svg { stroke: #1A1A1A !important; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-donate.desktop-only { display: none; }
  .mobile-toggle { display: block; }
  .mobile-menu { display: block; }
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,97,26,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}
.page-header h1 span { color: #E8611A; }
.page-header p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  position: relative;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.page-header .breadcrumb a:hover { color: #E8611A; }
.page-header .breadcrumb span { color: rgba(255,255,255,0.25); }
.page-header .breadcrumb .current { color: rgba(255,255,255,0.7); }

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.5);
  padding: 80px 24px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand-name { color: #fff; font-weight: 700; font-size: 18px; }
.footer-brand-sub { display: block; font-size: 11px; color: rgba(255,255,255,0.35); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: #E8611A; }
.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 12px; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-social a:hover { color: #E8611A; }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #E8611A; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========================================
   Utility / Content Styles
   ======================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px; }
.section-sm { padding: 64px 24px; }

/* Card grid */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: #666; font-size: 0.95rem; line-height: 1.7; }

/* Tag/badge */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-orange { background: rgba(232,97,26,0.1); color: #E8611A; }
.tag-green { background: rgba(16,185,129,0.1); color: #10b981; }
.tag-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }

/* Section label */
.section-label {
  display: inline-block;
  color: #E8611A;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #E8611A; color: #fff; box-shadow: 0 4px 16px rgba(232,97,26,0.3); }
.btn-primary:hover { background: #C84F10; }
.btn-dark { background: #1A1A1A; color: #fff; }
.btn-dark:hover { background: #2D2D2D; }
.btn-outline { background: transparent; color: #1A1A1A; border: 2px solid rgba(0,0,0,0.15); }
.btn-outline:hover { border-color: #E8611A; color: #E8611A; }
.btn-white { background: #fff; color: #E8611A; }
.btn-white:hover { background: #FFF8F0; }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn svg { width: 18px; height: 18px; }

/* CTA Banner */
.cta-banner {
  padding: 96px 24px;
  background: linear-gradient(135deg, #E8611A 0%, #C84F10 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-banner p { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 32px; position: relative; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Dog story card */
.story-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.story-card-img {
  height: 220px;
  background: linear-gradient(135deg, #E8611A22, #1A1A1A11);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.story-card-img .paw-icon {
  width: 64px;
  height: 64px;
  background: rgba(232,97,26,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-card-img .paw-icon svg { width: 32px; height: 32px; color: #E8611A; }
.story-card-body { padding: 28px; }
.story-card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.story-card-body .story-subtitle { font-size: 13px; color: #E8611A; font-weight: 600; margin-bottom: 14px; }
.story-card-body p { color: #666; font-size: 0.9rem; line-height: 1.7; }
.story-card-body .support-list { margin-top: 16px; }
.story-card-body .support-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  color: #555;
  list-style: none;
}
.story-card-body .support-list li::before {
  content: '✓';
  color: #E8611A;
  font-weight: 700;
  font-size: 14px;
}

/* Form styles */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #E8611A;
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Two col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, rgba(232,97,26,0.08), rgba(232,97,26,0.03));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px solid rgba(232,97,26,0.1);
}
.img-placeholder svg { width: 48px; height: 48px; color: rgba(232,97,26,0.3); }

/* Blockquote */
.blockquote {
  padding-left: 24px;
  border-left: 4px solid #E8611A;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(26,26,26,0.7);
  margin: 32px 0;
  line-height: 1.6;
}

/* Prose content */
.prose { max-width: 720px; }
.prose p { color: #555; font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; }
.prose strong { color: #1A1A1A; font-weight: 600; }
.prose h2 { font-size: 1.8rem; font-weight: 700; margin: 48px 0 16px; color: #1A1A1A; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: #1A1A1A; }
.prose ul { padding-left: 24px; margin-bottom: 20px; }
.prose li { color: #555; font-size: 1rem; line-height: 1.8; margin-bottom: 8px; }
