/* AnimalHospitals USA — design tokens & components */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #efece4;
  --ink: #14211c;
  --ink-2: #4a5a53;
  --ink-3: #7d8a84;
  --line: #e3dfd5;
  --brand: #0f5c4a;
  --brand-ink: #ffffff;
  --brand-soft: #dcefe7;
  --accent: #ff6a3d;
  --accent-soft: #ffe6dc;
  --danger: #d6342a;
  --danger-soft: #fde8e6;
  --gold: #f5b83d;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 28, .04), 0 8px 24px -12px rgba(20, 33, 28, .14);
  --shadow-lg: 0 2px 4px rgba(20, 33, 28, .04), 0 24px 48px -20px rgba(20, 33, 28, .28);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1513; --surface: #151f1c; --surface-2: #1c2825; --ink: #eef3f0; --ink-2: #b2c0ba;
    --ink-3: #82918b; --line: #26332f; --brand: #4fc9a4; --brand-ink: #062019; --brand-soft: #173a31;
    --accent: #ff8a63; --accent-soft: #3a2219; --danger: #ff6b61; --danger-soft: #3a1a18;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 48px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1513; --surface: #151f1c; --surface-2: #1c2825; --ink: #eef3f0; --ink-2: #b2c0ba;
  --ink-3: #82918b; --line: #26332f; --brand: #4fc9a4; --brand-ink: #062019; --brand-soft: #173a31;
  --accent: #ff8a63; --accent-soft: #3a2219; --danger: #ff6b61; --danger-soft: #3a1a18;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 48px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-sm { padding: 40px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.head-row h2 { margin: 0; }

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.06); }
.logo b { color: var(--brand); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-links a.nav-er { color: var(--danger); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons & chips ─────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -8px var(--brand); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--accent); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .2s var(--ease); font-family: inherit;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .count { font-size: .75rem; opacity: .6; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.badge-er { background: var(--danger-soft); color: var(--danger); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-er .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Search ─────────────────────────────── */
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .3s; position: relative;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-lg); }
.search svg.i { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.05rem var(--font); color: var(--ink); padding: 10px 0; }
.search input::placeholder { color: var(--ink-3); }
.search-tools { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; font: 600 .9rem var(--font); color: var(--brand); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn svg { width: 16px; height: 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .25s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--danger); }
.switch input:checked::after { transform: translateX(16px); }
.input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 1rem var(--font); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ── Hero ───────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em; background: var(--accent); opacity: .35; border-radius: 4px; z-index: -1; transform-origin: left; animation: underline 1s .4s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero .lead { margin-bottom: 32px; }
.hero-quick { margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-3); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 420px; height: 420px; background: var(--brand-soft); top: -120px; right: -80px; }
.blob.b2 { width: 320px; height: 320px; background: var(--accent-soft); bottom: -100px; left: 30%; animation-delay: -6s; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.1); } }

.collage { position: relative; aspect-ratio: 1 / 1.05; max-width: 480px; margin-left: auto; width: 100%; }
.collage .ph { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.collage .ph:hover img { transform: scale(1.06); }
.collage .p1 { inset: 0 28% 30% 0; border-radius: 32px 32px 32px 120px; animation: float 7s ease-in-out infinite; }
.collage .p2 { width: 52%; aspect-ratio: 1; right: 0; top: 14%; border-radius: 50%; animation: float 8s -2s ease-in-out infinite; }
.collage .p3 { width: 50%; aspect-ratio: 4/3; left: 18%; bottom: 0; border-radius: 28px; animation: float 9s -4s ease-in-out infinite; }
.collage .float-card { position: absolute; background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: .85rem; z-index: 2; border: 1px solid var(--line); }
.collage .float-card strong { display: block; font-family: var(--display); font-size: 1.15rem; line-height: 1.1; }
.collage .fc1 { left: -24px; bottom: 30%; animation: float 6s -1s ease-in-out infinite; }
.collage .fc2 { right: -8px; bottom: 6%; animation: float 7s -3s ease-in-out infinite; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Stats strip ────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 28px 24px; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; }
.stat span { color: var(--ink-3); font-size: .9rem; }

/* ── Cards ──────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.cat-card { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; min-height: 170px; }
.cat-card .emoji { font-size: 2rem; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); transition: transform .4s var(--ease); }
.cat-card:hover .emoji { transform: rotate(-8deg) scale(1.1); }
.cat-card h3 { margin: 6px 0 0; }
.cat-card p { color: var(--ink-3); font-size: .9rem; margin: 0; }
.cat-card .arrow { position: absolute; top: 24px; right: 24px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: all .3s var(--ease); }
.cat-card:hover .arrow { background: var(--brand); color: var(--brand-ink); transform: rotate(-45deg); }
.arrow svg { width: 16px; height: 16px; }

.pet-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pet-card .img { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); position: relative; }
.pet-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pet-card:hover .img img { transform: scale(1.07); }
.pet-card .img .badge { position: absolute; top: 12px; left: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(6px); }
.pet-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pet-card h3 { margin: 0; font-size: 1.1rem; }
.pet-card .tag { color: var(--ink-3); font-size: .88rem; margin: 0; flex: 1; }
.pet-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ink-3); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 4px; }
.dots { display: inline-flex; gap: 3px; align-items: center; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent); }

/* ── Directory ──────────────────────────── */
.dir-hero { padding: clamp(40px, 6vw, 72px) 0 40px; position: relative; overflow: hidden; }
.dir-hero h1 { max-width: 16ch; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.state-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: all .25s var(--ease); }
.state-tile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.state-tile .abbr { font-family: var(--display); font-weight: 700; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: .9rem; flex: none; transition: all .25s; }
.state-tile:hover .abbr { background: var(--brand); color: var(--brand-ink); }
.state-tile .nm { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.state-tile .ct { font-size: .78rem; color: var(--ink-3); }

.city-list { columns: 4 200px; column-gap: 24px; }
.city-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; break-inside: avoid; font-size: .94rem; transition: background .2s, color .2s; }
.city-list a:hover { background: var(--surface); color: var(--brand); }
.city-list a span { color: var(--ink-3); font-size: .82rem; }
.letter { font-family: var(--display); font-weight: 700; color: var(--accent); padding: 14px 10px 4px; break-after: avoid; }

.hosp-list { display: grid; gap: 12px; }
.hosp { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; padding: 20px 22px; }
.hosp h3 { margin: 0 0 6px; font-size: 1.08rem; }
.hosp h3 a:hover { color: var(--brand); }
.hosp .addr { color: var(--ink-2); font-size: .92rem; margin: 0; }
.hosp .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hosp .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hosp .dist { font-size: .8rem; color: var(--brand); font-weight: 600; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all .2s var(--ease); }
.icon-btn:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }

.results-meta { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 14px; color: var(--ink-3); font-size: .9rem; gap: 12px; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .em { font-size: 2.4rem; margin-bottom: 8px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span::before { content: '/'; margin-right: 6px; opacity: .5; }

.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.sticky { position: sticky; top: 90px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 18px; height: 18px; }
.info-list small { display: block; color: var(--ink-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.info-list a { word-break: break-word; }
.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: 0; }
.map { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius); background: var(--surface-2); display: block; }

/* ── Pet detail ─────────────────────────── */
.pet-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 32px 0 56px; }
.pet-hero .photo { border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg); position: relative; background: var(--surface-2); }
.pet-hero .photo img { width: 100%; height: 100%; object-fit: cover; animation: zoomin 1.4s var(--ease) both; }
@keyframes zoomin { from { transform: scale(1.12); opacity: 0; } }
.pet-hero .credit { font-size: .72rem; color: var(--ink-3); margin-top: 10px; }
.pet-hero .credit a { text-decoration: underline; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.quick div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.quick small { display: block; color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 2px; }
.quick strong { font-size: .98rem; }

.tabs { display: flex; gap: 6px; padding: 6px; background: var(--surface-2); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font: 600 .9rem var(--font); color: var(--ink-2); cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.panel { display: none; animation: fadeup .4s var(--ease); }
.panel.on { display: block; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
.panel p { font-size: 1.05rem; color: var(--ink-2); margin: 0; }

.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { display: flex; gap: 12px; align-items: flex-start; }
.check li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5c4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.alert-card { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); border-radius: var(--radius); padding: 24px; }
.alert-card h3 { color: var(--danger); display: flex; align-items: center; gap: 10px; }
.alert-card ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.alert-card li { display: flex; gap: 10px; align-items: flex-start; }
.alert-card li::before { content: '!'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 800; font-size: .78rem; display: grid; place-items: center; margin-top: 1px; }
.fact { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.fact::after { content: '🐾'; position: absolute; right: -10px; bottom: -20px; font-size: 7rem; opacity: .08; transform: rotate(-20deg); }
.fact small { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.fact p { font-family: var(--display); font-size: 1.3rem; line-height: 1.35; margin: 8px 0 0; }

/* ── Emergency ──────────────────────────── */
.er-band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.er-band h2 { color: var(--bg); }
.er-band p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.er-band .ring { position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid var(--danger); opacity: .15; animation: ring 4s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.1); opacity: .25; } }
.phone-card { background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); border-radius: 18px; padding: 18px 20px; display: block; transition: background .2s, transform .2s var(--ease); }
.phone-card:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); transform: translateX(4px); }
.phone-card small { opacity: .65; font-size: .8rem; display: block; }
.phone-card strong { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.01em; }
.toxic { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.toxic div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.toxic strong { display: block; margin-bottom: 2px; }
.toxic span { font-size: .88rem; color: var(--ink-3); }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps > div { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.steps > div::before { content: counter(s); width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; }
.steps h3 { margin: 4px 0 4px; }
.steps p { color: var(--ink-2); margin: 0; }

/* ── Footer ─────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 40px; font-size: .9rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-grid h4 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--brand); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-3); }
.foot-bottom a { text-decoration: underline; }

/* ── Motion ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.fade-in { animation: fadeup .6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); gap: 2px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 8px; }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .hero-grid, .pet-hero, .er-band { grid-template-columns: 1fr; }
  .collage { max-width: 400px; margin: 8px auto 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-pets { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-pets .pet-card .body { padding: 12px 14px 14px; }
  .grid-pets .pet-card .tag { display: none; }
  .hosp { grid-template-columns: 1fr; }
  .hosp .actions { justify-content: flex-start; }
  .search { padding-left: 16px; }
  .search .btn span { display: none; }
  .collage .fc1 { left: -4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: 1fr 1fr; }
}

/* fixes */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { background: var(--brand); color: var(--brand-ink); }
.check.card { padding: 22px 24px; }
.cat-card.inverse .arrow { background: rgba(255,255,255,.18); color: inherit; }
.cat-card.inverse:hover .arrow { background: var(--brand-ink); color: var(--brand); }
.detail-grid > *, .pet-hero > * { min-width: 0; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
