/* ==========================================================================
   Baibao Rescue & Adoption Society — global styles
   Fonts: Fraunces (headings) + Figtree (body)
   Palette: warm caramel + cream, with the logo's periwinkle as an accent
   ========================================================================== */

:root {
  /* Colour tokens */
  --cream: #FBF8F3;
  --sand: #F3ECE1;
  --sand-deep: #E9DECD;
  --line: #E4D8C6;
  --caramel-300: #D9B184;
  --caramel-400: #C08A4D;
  --caramel-500: #A8733A;
  --caramel-600: #8A5A26;   /* buttons + links: 5.9:1 on white */
  --caramel-700: #6E4619;
  --blue-500: #5B63D6;      /* from the logo */
  --blue-100: #E8E9FB;
  --ink: #231B14;
  --ink-soft: #4A3F35;
  --muted: #6B5E52;         /* 5.6:1 on cream */
  --white: #FFFFFF;
  --success: #2F7A4D;
  --danger: #B3261E;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8pt rhythm) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Radius + elevation */
  --r-sm: 12px; --r-md: 20px; --r-lg: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(35, 27, 20, .06), 0 2px 8px rgba(35, 27, 20, .04);
  --shadow-md: 0 8px 24px rgba(35, 27, 20, .08);
  --shadow-lg: 0 24px 60px rgba(35, 27, 20, .14);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms; --t-med: 280ms; --t-slow: 600ms;

  --container: 1200px;
  --header-h: 76px;

  /* z-index scale */
  --z-header: 40; --z-menu: 50; --z-modal: 100; --z-toast: 1000;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Anything marked hidden stays hidden, even if a class gives it display:grid/flex
   (e.g. the application's .app-step sections use .form, which is display:grid) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--caramel-600); text-underline-offset: 3px; }
a:hover { color: var(--caramel-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--caramel-300); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.5vw + .5rem, 4.75rem); }
h2 { font-size: clamp(2rem, 3vw + .75rem, 3.25rem); }
h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); font-variation-settings: "SOFT" 100, "opsz" 36; }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; color: var(--caramel-500); font-weight: 400; }
p { margin: 0 0 var(--s-4); }
.lead { font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-toast);
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--caramel-600); margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: var(--s-3) 0 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--caramel-600); --btn-fg: var(--white); --btn-bd: var(--caramel-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 6px 8px 6px 22px;
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
  touch-action: manipulation; white-space: nowrap;
}
.btn .btn-dot {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--btn-fg); color: var(--btn-bg);
  transition: transform var(--t-med) var(--ease-out);
}
.btn .btn-dot .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.btn:hover { --btn-bg: var(--caramel-700); --btn-bd: var(--caramel-700); color: var(--btn-fg); box-shadow: var(--shadow-md); }
.btn:hover .btn-dot { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--plain { padding: 6px 22px; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline .btn-dot { background: var(--ink); color: var(--cream); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink); }
.btn--outline:hover .btn-dot { background: var(--cream); color: var(--ink); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--light .btn-dot { background: var(--ink); color: var(--white); }
.btn--light:hover { --btn-bg: var(--sand); --btn-bd: var(--sand); --btn-fg: var(--ink); }
.btn--blue { --btn-bg: var(--blue-500); --btn-bd: var(--blue-500); }
.btn--blue:hover { --btn-bg: #444CC0; --btn-bd: #444CC0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform var(--t-fast) var(--ease-out); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251, 248, 243, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(35,27,20,.05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; font-variation-settings: "SOFT" 100, "opsz" 36; }
.brand-name span { color: var(--blue-500); font-style: italic; font-weight: 500; }
.brand-sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a, .nav-more-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-pill); border: 0; background: none;
  color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a:hover, .nav-more-btn:hover { background: var(--sand); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--caramel-600); background: var(--sand); }
.nav-more { position: relative; }
.nav-more-btn .icon { width: 14px; height: 14px; transition: transform var(--t-fast); }
.nav-more-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out), visibility var(--t-fast);
}
.nav-more.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown a { width: 100%; border-radius: var(--r-sm); }
.header-cta { flex: none; }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white); place-items: center;
}
.menu-toggle .icon { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--cream); padding: 16px clamp(16px, 4vw, 40px) 32px;
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out), visibility var(--t-med);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); margin-top: -16px; }
.mobile-menu nav ul { list-style: none; margin: 16px 0 24px; padding: 0; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); text-decoration: none;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.mobile-menu nav a[aria-current="page"] { color: var(--caramel-600); font-style: italic; }
.mobile-menu nav a .icon { color: var(--caramel-500); }

@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
}
body.menu-open { overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: var(--s-4); }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-left: auto; margin-right: auto; }
.page-hero .paw-deco { position: absolute; right: -40px; top: 20px; width: 260px; color: var(--sand-deep); pointer-events: none; z-index: -1; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: var(--s-4); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Home hero ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero .container > * { animation: rise var(--t-slow) var(--ease-out) both; }
.hero .container > :nth-child(2) { animation-delay: 60ms; }
.hero .container > :nth-child(3) { animation-delay: 120ms; }
.hero .container > :nth-child(4) { animation-delay: 180ms; }
.hero { padding: clamp(48px, 7vw, 96px) 0 0; text-align: center; position: relative; }
.hero h1 { max-width: 14ch; margin: 0 auto var(--s-5); }
.hero .lead { margin: 0 auto var(--s-6); }
.hero .btn-row { justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; margin-bottom: var(--s-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.hero-badge b { background: var(--blue-100); color: var(--blue-500); border-radius: var(--r-pill); padding: 2px 10px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

/* Adopted-pets marquee: drifts slowly left (driven from JS) and can be swiped, scrolled or dragged */
.hero-marquee { margin-top: clamp(48px, 6vw, 80px); position: relative; animation: fade 900ms var(--ease-out) 200ms both; }
.marquee-viewport {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-viewport::-webkit-scrollbar { display: none; }
.is-dragging .marquee-viewport { cursor: grabbing; user-select: none; }
.is-dragging .marquee-item { pointer-events: none; }
.marquee-track { display: flex; width: max-content; }
.marquee-set { display: flex; gap: clamp(12px, 1.6vw, 22px); padding-right: clamp(12px, 1.6vw, 22px); }
.marquee-item img { -webkit-user-drag: none; user-select: none; }
.marquee-item {
  --h: clamp(240px, 30vw, 420px);
  position: relative; flex: none; height: var(--h); aspect-ratio: 4/5;
  border-radius: var(--r-lg); overflow: hidden; background: var(--sand); color: var(--ink); text-decoration: none;
}
.marquee-item:nth-child(3n+2) { aspect-ratio: 5/4; }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform var(--t-slow) var(--ease-out); }
.marquee-item:hover img { transform: scale(1.04); }
.marquee-item:focus-visible { outline: 3px solid var(--caramel-600); outline-offset: -3px; }
.marquee-cap {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: var(--r-pill);
  padding: 7px 13px; font-size: .82rem; font-weight: 700; display: flex; gap: 8px; align-items: center; white-space: nowrap;
}
.marquee-cap .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
.marquee-toggle {
  display: inline-flex; margin: var(--s-4) auto 0; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  font: 600 .8rem/1 var(--font-body); letter-spacing: .04em; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast);
}
.marquee-toggle:hover { background: var(--sand); border-color: var(--sand-deep); }
.marquee-toggle > span { display: inline-flex; align-items: center; gap: 6px; }
.marquee-toggle .icon { width: 14px; height: 14px; }
.marquee-toggle-play, .is-paused .marquee-toggle-pause { display: none !important; }
.is-paused .marquee-toggle-play { display: inline-flex !important; }
@media (max-width: 720px) {
  .marquee-item { --h: 260px; }
  .marquee-cap { left: 10px; bottom: 10px; font-size: .78rem; }
}
/* Reduced motion: no drifting. The row becomes a normal sideways-scrollable strip. */
@media (prefers-reduced-motion: reduce) {
  .marquee-viewport { scroll-snap-type: x mandatory; }
  .marquee-set[aria-hidden="true"], .marquee-toggle { display: none; }
  .marquee-item { scroll-snap-align: center; }
}

/* ---------- Panels / cards ---------- */
.panel { background: var(--sand); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); position: relative; }
.panel--white { background: var(--white); border: 1px solid var(--line); }
.panel--dark { background: var(--ink); color: #EDE6DC; }
.panel--dark h2, .panel--dark h3 { color: var(--white); }
.panel--dark .muted { color: #BDB1A3; }
.panel--blue { background: var(--blue-100); }

/* Upcoming events (Events page, from Sanity) */
.event-list { display: grid; gap: clamp(16px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
.event-list[hidden] { display: none; }
.event-card {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.event-card:not(:has(.event-card-media)) { grid-template-columns: 1fr; }
.event-card-media { background: var(--sand); min-height: 100%; }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.event-card-body { display: flex; gap: var(--s-5); align-items: flex-start; padding: clamp(20px, 3vw, 36px); }
.event-date {
  flex: none; width: 64px; padding: 8px 0 10px; border-radius: var(--r-sm); text-align: center;
  background: var(--blue-100); color: var(--blue-500); line-height: 1;
}
.event-date span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-date strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--ink); }
.event-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 0 0 var(--s-3); font-variation-settings: "SOFT" 100, "opsz" 36; }
.event-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.event-meta .icon { width: 18px; height: 18px; flex: none; color: var(--blue-500); }
.event-desc { margin: var(--s-4) 0 0; color: var(--ink-soft); white-space: pre-line; }
.event-card-media img[data-photo] { cursor: zoom-in; }
.event-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-4) 0 0; }
.event-photos button { padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; width: 72px; height: 72px; background: var(--sand); cursor: zoom-in; }
.event-photos img { width: 100%; height: 100%; object-fit: cover; }
.event-actions { margin-top: var(--s-5); }
@media (max-width: 720px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card-body { gap: var(--s-4); }
  .event-date { width: 56px; }
}
.panel-mark {
  position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px);
  width: 84px; height: 84px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.panel-mark svg { width: 48px; height: 48px; }
.panel--dark .panel-mark { background: #3A2F26; }
.panel-head { padding-right: 110px; max-width: 720px; }
@media (max-width: 600px) { .panel-mark { display: none; } .panel-head { padding-right: 0; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: var(--s-7); }
.stat { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; font-variation-settings: "SOFT" 100, "opsz" 96; margin-bottom: var(--s-4); font-variant-numeric: tabular-nums; }
.stat-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-2); }
.stat p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Pet cards ---------- */
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); }
/* Horizontal pet carousel (home "Meet our dogs & cats") */
.section-head-actions { display: flex; align-items: center; gap: var(--s-4); }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.carousel-btn:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.carousel-btn .icon { width: 20px; height: 20px; }
.carousel-track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 4px 8px; margin: -4px -4px -8px; scroll-padding-inline: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--caramel-600); outline-offset: 4px; border-radius: var(--r-md); }
.carousel-track > * { flex: 0 0 clamp(250px, 38%, 440px); scroll-snap-align: start; }
.carousel-track--sm > * { flex-basis: clamp(220px, 27%, 320px); }
@media (max-width: 600px) {
  .carousel-track > * { flex-basis: 80%; }
  .carousel-track--sm > * { flex-basis: 66%; }
  .section-head-actions .carousel-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
.pet-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pet-card-media { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.pet-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.pet-card:hover .pet-card-media img { transform: scale(1.045); }
.pet-card-tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.94); font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--ink);
}
.tag--blue { background: var(--blue-500); color: var(--white); }
.tag--caramel { background: var(--caramel-600); color: var(--white); }
.tag .icon { width: 13px; height: 13px; }
.pet-card-go {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); display: grid; place-items: center; color: var(--ink);
  transform: translateY(6px); opacity: 0; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
}
.pet-card:hover .pet-card-go, .pet-card:focus-visible .pet-card-go { transform: none; opacity: 1; }
.pet-card-body { padding: var(--s-4) 4px 0; }
.pet-card-name { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 2px; font-variation-settings: "SOFT" 100, "opsz" 36; color: var(--caramel-600); }
.pet-card-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.pet-card-desc { font-size: .95rem; color: var(--ink-soft); margin: var(--s-3) 0 0; white-space: pre-line; }
@media (hover: none) { .pet-card-go { opacity: 1; transform: none; } }

/* Filter chips */
.filters { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-6); }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-soft);
  font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--caramel-400); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip .count { font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { aspect-ratio: 4/3; } }

/* ---------- Feature cards (values, steps) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .cards-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--muted); }
.card .text-link { margin-top: auto; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sand); color: var(--caramel-600); margin-bottom: var(--s-5);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon--blue { background: var(--blue-100); color: var(--blue-500); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: var(--s-4); }
.step {
  counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: var(--s-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(20px, 3vw, 32px);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--caramel-500);
  font-variation-settings: "SOFT" 100, "opsz" 96;
}
.step h3 { margin-bottom: var(--s-2); }
.step p:last-child, .step ul:last-child { margin-bottom: 0; }
.step ul { padding-left: 1.2em; color: var(--ink-soft); }
.step li { margin-bottom: 6px; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: var(--s-2); } }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.2em; }
.prose blockquote {
  margin: var(--s-6) 0; padding: var(--s-5) var(--s-6); border-left: 4px solid var(--caramel-400);
  background: var(--sand); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic; line-height: 1.45; color: var(--ink);
}

/* ---------- Pet detail ---------- */
.pet-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.gallery-main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--sand);
  transition: border-color var(--t-fast), opacity var(--t-fast); opacity: .7;
}
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--caramel-600); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pet-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: var(--s-5) 0; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; }
.fact dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 600; }
.fee-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--sand); border-radius: var(--r-md); padding: 20px 24px; margin: var(--s-5) 0; }
.fee-box strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.videos figure { margin: 0; }
.videos video { width: 100%; aspect-ratio: 9/14; object-fit: cover; border-radius: var(--r-md); background: var(--ink); }
.videos figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .pet-detail { grid-template-columns: 1fr; } .pet-sticky { position: static; } }

/* ---------- Story cards ---------- */
.story-grid { columns: 3 260px; column-gap: clamp(16px, 2vw, 24px); }
.story {
  break-inside: avoid; margin: 0 0 clamp(16px, 2vw, 24px); background: var(--white);
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
}
.story img { width: 100%; }
.story figcaption { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.story-name { font-family: var(--font-display); font-size: 1.3rem; font-variation-settings: "SOFT" 100, "opsz" 36; }
.story-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--success); display: inline-flex; gap: 4px; align-items: center; }
.story-tag .icon { width: 14px; height: 14px; }

.video-feature { border-radius: var(--r-lg); overflow: hidden; background: var(--ink); aspect-ratio: 16/9; }
.video-feature video { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Gallery (events) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-grid button { padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.photo-grid button:nth-child(1), .photo-grid button:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.photo-grid button:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(20, 15, 10, .92);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility var(--t-med);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; max-width: min(1100px, 100%); border-radius: var(--r-md); }
.lightbox-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center;
  transition: background var(--t-fast);
}
.lightbox-btn:hover { background: rgba(255,255,255,.24); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ---------- Donation ---------- */
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: var(--s-6) 0 var(--s-5); }
.amount {
  min-height: 60px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white);
  font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.amount:hover { border-color: var(--caramel-400); }
.amount:active { transform: scale(.97); }
.amount[aria-pressed="true"] { background: var(--caramel-600); border-color: var(--caramel-600); color: var(--white); }
@media (max-width: 560px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.etransfer {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between;
  background: var(--white); border: 1.5px dashed var(--caramel-300); border-radius: var(--r-md); padding: 16px 20px;
}
.etransfer code { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--ink); word-break: break-all; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--ink); background: var(--white); font-weight: 700; font-size: .85rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.copy-btn:hover { background: var(--ink); color: var(--white); }
.copy-btn.is-copied { background: var(--success); border-color: var(--success); color: var(--white); }
.impact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.impact-list li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; background: var(--white); border-radius: var(--r-md); padding: 14px 18px; border: 1px solid var(--line); }
.impact-list b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--caramel-600); font-variant-numeric: tabular-nums; }

/* ---------- Store ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.product + .product { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.product-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--white); aspect-ratio: 1; border: 1px solid var(--line); }
.product-gallery figure:first-child { grid-column: span 2; aspect-ratio: 4/3; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.price { font-family: var(--font-display); font-size: 2.2rem; color: var(--caramel-600); font-variation-settings: "SOFT" 100, "opsz" 96; margin: 0 0 var(--s-4); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-4); padding: 0; list-style: none; }
.swatches li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-size: .88rem; font-weight: 600; }
.swatches span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.spec-list { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: 10px; }
.spec-list li { display: flex; gap: 12px; align-items: start; color: var(--ink-soft); }
.spec-list .icon { color: var(--caramel-500); margin-top: 4px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin: var(--s-7) 0; }
.contact-item dt { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: #BDB1A3; }
.contact-item dd { margin: 0; font-size: 1.05rem; }
.contact-item a { color: var(--white); }
.contact-item a:hover { color: var(--caramel-300); }
.map { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 21/8; background: #3A2F26; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.15); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .map { aspect-ratio: 4/3; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > label, .field > legend, .field-label { font-weight: 700; font-size: .95rem; color: var(--ink); padding: 0; }
.req { color: var(--danger); margin-left: 2px; }
.hint { font-size: .85rem; color: var(--muted); margin: -2px 0 0; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white);
  font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--caramel-300); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--caramel-600); box-shadow: 0 0 0 4px rgba(168, 115, 58, .18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { display: none; color: var(--danger); font-size: .88rem; font-weight: 600; align-items: center; gap: 6px; }
.field.has-error .field-error { display: flex; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--white);
  font-size: .93rem; font-weight: 600; color: var(--ink-soft);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.option input:hover + span { border-color: var(--caramel-400); }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.option input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--caramel-600); flex: none; margin-top: 2px; }

.form-note { display: flex; gap: 12px; align-items: start; padding: 16px 18px; border-radius: var(--r-sm); background: var(--blue-100); color: #2F3592; font-size: .92rem; }
.form-note .icon { margin-top: 3px; }
.form-success {
  text-align: center; padding: clamp(32px, 5vw, 64px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.form-success .success-icon { width: 72px; height: 72px; border-radius: 50%; background: #E3F1E8; color: var(--success); display: grid; place-items: center; margin: 0 auto var(--s-5); }
.form-success .success-icon .icon { width: 34px; height: 34px; }
.error-summary { border: 2px solid var(--danger); background: #FCEEEE; border-radius: var(--r-sm); padding: 16px 20px; }
.error-summary h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--danger); margin: 0 0 8px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--danger); }

/* Multi-step application */
.app-shell { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.app-steps { position: sticky; top: calc(var(--header-h) + 24px); list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.app-steps button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 52px;
  padding: 8px 12px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--muted); font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast);
}
.app-steps button:hover { background: var(--sand); color: var(--ink); }
.app-steps .num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--line); background: var(--white); font-size: .85rem; font-variant-numeric: tabular-nums;
}
.app-steps [aria-current="step"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.app-steps [aria-current="step"] .num { background: var(--caramel-600); border-color: var(--caramel-600); color: var(--white); }
.app-steps .is-done .num { background: var(--sand); border-color: var(--caramel-300); color: var(--caramel-600); }
.app-progress { height: 6px; border-radius: 6px; background: var(--sand-deep); overflow: hidden; margin-bottom: var(--s-6); }
.app-progress span { display: block; height: 100%; background: var(--caramel-600); border-radius: 6px; transition: width var(--t-med) var(--ease-out); }
.app-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.app-panel h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
.app-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); flex-wrap: wrap; }
.terms { max-height: 380px; overflow-y: auto; padding: 20px 24px; border-radius: var(--r-sm); background: var(--cream); border: 1px solid var(--line); font-size: .93rem; }
.terms h4 { margin: 16px 0 6px; font-size: 1rem; }
.terms h4:first-child { margin-top: 0; }
.terms p { color: var(--ink-soft); }
.autosave { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-steps { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .app-steps li { flex: none; }
  .app-steps .label { display: none; }
  .app-steps [aria-current="step"] .label { display: inline; }
}

/* Choice cards (dog / cat) */
.choice { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--white); border: 1.5px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med); }
.choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--caramel-300); color: inherit; }
.choice-art { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--sand); color: var(--caramel-600); }
.choice-art svg { width: 40px; height: 40px; }
.choice--cat .choice-art { background: var(--blue-100); color: var(--blue-500); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: center;
  background: var(--caramel-600); color: var(--white); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px);
  position: relative; overflow: hidden; isolation: isolate;
}
.cta-band h2 { color: var(--white); margin-bottom: var(--s-3); }
.cta-band p { color: #F5E6D3; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .paw-deco { position: absolute; right: -50px; bottom: -70px; width: 280px; color: rgba(255,255,255,.08); z-index: -1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC4B6; padding: clamp(56px, 7vw, 96px) 0 32px; margin-top: clamp(64px, 9vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.site-footer .brand { color: var(--white); }
.site-footer .brand-sub { color: #A99C8D; }
.site-footer .brand-name span { color: #9DA3F0; }
.site-footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: #CFC4B6; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; gap: 8px; }
.site-footer a:hover { color: var(--white); }
.footer-about { margin-top: var(--s-4); max-width: 36ch; font-size: .95rem; }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid #3A2F26; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #A99C8D; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med), visibility var(--t-med);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Plain-text phone number (not a link) in the mobile menu and footer */
.menu-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; color: var(--ink-soft); }
.site-footer .footer-text { display: inline-flex; min-height: 32px; align-items: center; gap: 8px; }

/* Donate page: Stripe checkout */
.amount--other { grid-column: 1 / -1; font-size: 1rem; }
.donate-go { display: grid; gap: 12px; justify-items: start; }
.donate-secure { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; color: var(--muted); }
.donate-thanks { display: flex; gap: 16px; align-items: center; margin-top: var(--s-5); padding: 16px 20px; border-radius: var(--r-md); background: #E3F1E8; }
.donate-thanks .success-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--success); display: grid; place-items: center; flex: none; }
.donate-thanks h3 { font-size: 1.2rem; }

/* Adoption fee on pet cards */
.pet-card-fee { margin: 6px 0 0; font-weight: 700; font-size: .92rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Dogs & Cats: filter drop-downs */
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: calc(-1 * var(--s-4)) 0 var(--s-5); }
.filter-select { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter-select .select { min-height: 44px; padding: 8px 36px 8px 14px; width: auto; min-width: 150px; font-size: .95rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink); border-radius: var(--r-pill); }
.filter-toggle { min-height: 44px; }
.filter-clear { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--caramel-600); font-weight: 700; font-size: .92rem; cursor: pointer; }
.filter-clear:hover { color: var(--caramel-700); text-decoration: underline; }
.filter-count { margin: 0 0 var(--s-4); font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) {
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-select .select { min-width: 0; width: 100%; }
}
