@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Dancing+Script:wght@600;700&display=swap');

:root {
  --cream: #FBF7F2;
  --sand: #F3E9DD;
  --sand-2: #EADFD2;
  --espresso: #3B2918;
  --espresso-2: #2A1C10;
  --ink: #2B1E13;
  --muted: #6B5B4D;
  --caramel: #CEA37E;
  --rose: #D28D7E;
  --clay: #A65A4C;
  --sage: #5F7050;
  --sage-tint: #E9EEE3;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(59, 41, 24, .06), 0 8px 24px rgba(59, 41, 24, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--clay); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.script { font-family: 'Dancing Script', cursive; color: var(--clay); font-weight: 700; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-2); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); }
.logo-link img { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.logo-link span { font-family: 'Dancing Script', cursive; font-size: 26px; font-weight: 700; line-height: 1; }
.logo-link span em { color: var(--rose); font-style: normal; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--espresso); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--sand); }
.nav a.cta { background: var(--espresso); color: #fff; }
.nav a.cta:hover { background: var(--espresso-2); }
@media (max-width: 720px) { .nav a:not(.cta) { display: none; } .logo-link span { font-size: 22px; } }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.02em; color: var(--espresso); font-weight: 800; }
.hero h1 .script { display: block; font-size: 1.05em; font-weight: 700; letter-spacing: 0; margin-top: 4px; }
.hero p.lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 520px; }
.hero .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; justify-self: center; }
.hero-art img { width: min(380px, 80vw); border-radius: 50%; box-shadow: var(--shadow); background: #fff; }
.hero-art::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed var(--caramel); opacity: .6; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art img { width: 220px; } .hero { padding-top: 32px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--espresso); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--espresso-2); }
.btn.ghost { background: transparent; color: var(--espresso); border: 1.5px solid var(--espresso); }
.btn.ghost:hover { background: var(--sand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* stats strip */
.strip { background: var(--espresso); color: var(--cream); }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.strip b { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.strip span { font-size: 14px; color: var(--caramel); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--sand); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--espresso); letter-spacing: -.01em; }
.sec-head h2 .script { font-size: 1.15em; }
.sec-head p { color: var(--muted); max-width: 560px; }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-btn { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--sand-2); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--espresso); }
.chip-btn[aria-pressed='true'] { background: var(--espresso); border-color: var(--espresso); color: #fff; }

/* animal cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card .ph { aspect-ratio: 4 / 3.4; background: var(--sand); position: relative; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph .noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Dancing Script', cursive; font-size: 56px; color: var(--caramel); }
.card .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--espresso); font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 22px; color: var(--espresso); }
.card .meta { font-size: 14px; color: var(--muted); }
.card .bio { font-size: 15px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .go { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--clay); }
.goods { display: flex; gap: 6px; flex-wrap: wrap; }
.good { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sage-tint); color: var(--sage); }
.good.no { background: #F6E6E2; color: #8A4537; }

.empty { background: #fff; border-radius: var(--radius); padding: 36px 24px; text-align: center; color: var(--muted); box-shadow: var(--shadow); }
.empty b { display: block; color: var(--espresso); font-size: 20px; margin-bottom: 6px; }

/* happy tails */
.tails { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tail { text-align: center; }
.tail img, .tail .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--cream); }
.tail .noimg { display: flex; align-items: center; justify-content: center; font-family: 'Dancing Script', cursive; font-size: 44px; color: var(--caramel); }
.tail b { display: block; margin-top: 10px; color: var(--espresso); font-size: 17px; }
.tail span { font-size: 13px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: flex; width: 38px; height: 38px; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 18px; color: var(--espresso); margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* split + overseas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel h3 { font-size: 22px; color: var(--espresso); margin-bottom: 10px; }
.panel p + p { margin-top: 10px; }
.panel ul { margin: 10px 0 0; padding-left: 20px; }
.panel li { margin: 6px 0; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--sand-2); background: #fff; padding: 0 14px; font-size: 16px; }
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--espresso); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }
.msg { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.msg.ok { background: var(--sage-tint); color: var(--sage); }
.msg.err { background: #F6E6E2; color: #8A4537; }
.small { font-size: 13px; color: var(--muted); }

/* animal page */
.crumb { padding: 22px 0 0; }
.crumb a { text-decoration: none; font-weight: 600; color: var(--muted); }
.animal { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; padding: 18px 0 64px; align-items: start; }
@media (max-width: 860px) { .animal { grid-template-columns: 1fr; } }
.gallery .main { aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: var(--sand); }
.thumbs button[aria-pressed='true'] { border-color: var(--espresso); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: clamp(40px, 5vw, 56px); color: var(--espresso); letter-spacing: -.02em; line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.fact { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.fact b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact span { font-weight: 700; color: var(--espresso); }
.story { margin-top: 18px; white-space: pre-line; }
.story h2 { font-size: 20px; color: var(--espresso); margin-bottom: 6px; }

/* before / now */
.bn { margin-top: 28px; }
.bn h2 { font-size: 26px; color: var(--espresso); margin-bottom: 12px; }
.bn-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: none; background: var(--sand); }
.bn-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-frame .before { clip-path: inset(0 50% 0 0); }
.bn-frame .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.bn-frame .handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--espresso); font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.bn-frame .lab { position: absolute; bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.92); color: var(--espresso); padding: 5px 10px; border-radius: 999px; }
.bn-frame .lab.l { left: 12px; } .bn-frame .lab.r { right: 12px; }
.bn input[type=range] { width: 100%; margin-top: 10px; accent-color: var(--espresso); }

/* footer */
.foot { background: var(--espresso); color: var(--sand); padding: 44px 0; margin-top: 0; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot .logo-link { color: #fff; }
.foot a { color: var(--caramel); }
.foot small { color: var(--caramel); }

.skel { background: linear-gradient(90deg, var(--sand) 0%, #fff 50%, var(--sand) 100%); background-size: 200% 100%; animation: sh 1.4s infinite; border-radius: var(--radius); height: 340px; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .card { transition: none; } html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
