:root {
  --background: #f3faff;
  --foreground: #12364a;
  --border: #c8e7f6;
  --card: #ffffff;
  --primary: #03A9F4;
  --primary-dark: #0288d1;
  --secondary: #dff4fe;
  --secondary-foreground: #0c4f73;
  --muted: #edf8fe;
  --muted-foreground: #4d7488;
  --shadow-soft: 0 2px 12px rgba(3, 169, 244, 0.10);
  --shadow-cta: 0 8px 24px rgba(3, 169, 244, 0.28);
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --radius-pill: 999px;
  --container: 900px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Georgia, serif;
  line-height: 1.65;
}
img, video { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--primary) !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(243, 250, 255, 0.97);
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(3, 169, 244, 0.12);
}
.nav-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand, h1, h2, h3 {
  font-family: "Bowlby One SC", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.brand {
  color: var(--primary);
  text-decoration: none;
  font-size: 2rem !important;
  white-space: nowrap;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.desktop-nav a, .mobile-nav a { color: var(--foreground); text-decoration: none; }
.desktop-nav > a:not(.nav-cta) {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font: 600 0.92rem/1.2 Inter, Arial, sans-serif;
  transition: background 0.15s ease, color 0.15s ease;
}
.desktop-nav > a:not(.nav-cta):hover,
.desktop-nav > a:not(.nav-cta):focus-visible {
  background: var(--secondary);
  color: var(--primary);
}
.nav-cta, .cta-btn, .mobile-cta {
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: white;
  font: 700 0.95rem/1.2 Inter, Arial, sans-serif;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta { margin-left: 0.35rem; padding: 0.5rem 1rem; }
.nav-cta:hover, .cta-btn:hover, .mobile-cta:hover,
.nav-cta:focus-visible, .cta-btn:focus-visible, .mobile-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--foreground);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(243, 250, 255, 0.98);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  font: 600 1rem/1.2 Inter, Arial, sans-serif;
}
.mobile-nav a:not(.mobile-cta):hover,
.mobile-nav a:not(.mobile-cta):focus-visible {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-cta { margin-top: 0.35rem; text-align: center; }
.site-main { padding: 1rem 0 3.75rem; }
.hero { padding: 3rem 0 1.5rem; text-align: center; }
.hero-paw { margin-bottom: 0.5rem; font-size: 2.8rem; animation: float 3s ease-in-out infinite; }
h1 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted-foreground);
  font: italic clamp(1rem, 2.2vw, 1.18rem)/1.5 Georgia, serif;
}
.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font: 500 0.9rem/1.2 Inter, Arial, sans-serif;
}
.card {
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.gallery-card { padding: 1.5rem; }
.gallery-stage {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--muted);
  aspect-ratio: 4 / 3;
}
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.thumb {
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
  aspect-ratio: 1;
}
.thumb:hover, .thumb:focus-visible { transform: translateY(-2px); }
.thumb.is-active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
h2 { margin: 0 0 1rem; color: var(--primary); font-size: 1.65rem; }
h3 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.card p + p { margin-top: 1rem; }
.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 1rem;
  border: 1.5px solid rgba(3, 169, 244, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(3, 169, 244, 0.12);
  color: var(--primary-dark);
  font: italic 600 1rem/1.2 Georgia, serif;
}
.traits { display: grid; }
.trait-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.trait-item:last-child { border-bottom: 0; }
.trait-item p { margin: 0; color: var(--muted-foreground); font-size: 0.96rem; }
.trait-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--secondary);
  font-size: 1.1rem;
}
.caution-card { background: #fff; }
.caution-card h2 { color: var(--foreground); font-size: 1.45rem; }
.care-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.care-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.care-list span { flex: 0 0 auto; font-size: 1.3rem; line-height: 1; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.video-card {
  margin: 0;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #000;
}
.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}
.video-card figcaption {
  padding: 0.75rem 0.9rem;
  background: var(--card);
  color: var(--muted-foreground);
  font: 600 0.92rem/1.2 Inter, Arial, sans-serif;
}
.quote-block {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: white;
  text-align: center;
}
.quote-block p { margin: 0; font-size: 1.18rem; font-style: italic; line-height: 1.7; }
.quote-block strong {
  display: block;
  margin-top: 1rem;
  opacity: 0.88;
  font: 700 1rem/1.2 Inter, Arial, sans-serif;
}
.adopt-card { padding: 2.5rem 2rem; text-align: center; }
.adopt-icon { margin-bottom: 1rem; font-size: 2.5rem; }
.adopt-card h2 { margin-bottom: 0.75rem; color: var(--foreground); font-size: 1.85rem; }
.adopt-card > p {
  max-width: 480px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted-foreground);
}
.fee {
  margin: 1rem auto 0.5rem;
  color: var(--foreground) !important;
  font: 700 1.1rem/1.3 Inter, Arial, sans-serif;
}
.adopt-note { margin-bottom: 1.5rem; font-size: 0.95rem; }
.cta-btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  box-shadow: var(--shadow-cta);
}
.site-footer {
  padding: 0 1rem 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font: 500 0.88rem/1.4 Inter, Arial, sans-serif;
}
.is-missing {
  min-height: 100%;
  background: linear-gradient(135deg, rgba(179, 232, 255, 0.8), rgba(243, 250, 255, 0.98));
  color: var(--primary-dark);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 640px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .site-main { padding-top: 0.5rem; }
  .card, .quote-block, .adopt-card { padding: 1.4rem; }
  .thumb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
  .adopt-card h2 { font-size: 1.55rem; }
}
@media (max-width: 480px) {
  .container { width: min(calc(100% - 1rem), var(--container)); }
  .hero { padding-top: 2.4rem; }
  .tag-list { gap: 0.5rem; }
  .tag { font-size: 0.82rem; }
  h2 { font-size: 1.45rem; }
}
