/* Central Valley German Shepherd Rescue — public site styles
   Palette: white, cool slate, deep navy, steel blue → teal accent.
   (No brown / gold / yellow / pink backgrounds.)
   Depth comes from: navy gradient page bands, white cards with layered
   shadows, tinted gradient sections, and gradient buttons/icon chips. */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --tint: #e6edf6;
  --ink: #0f1a2a;
  --ink-2: #3a4658;
  --muted: #5a6680;
  --line: #d6dee9;
  --line-soft: #e6ebf2;
  --field: #ffffff;
  --field-line: #7d8ba0;   /* ≥3:1 against white (WCAG non-text contrast) */

  --navy-0: #070d18;
  --navy-1: #0b1526;
  --navy-2: #12233d;
  --navy-3: #1a3459;

  --accent: #3b82d6;
  --accent-d: #1d5aa8;
  --accent-l: #e3eefb;
  --teal: #1aa3b5;
  /* White text on these stays ≥4.9:1 (WCAG AA). */
  --grad: linear-gradient(135deg, #2a6fc4 0%, #2265b5 55%, #137c8c 100%);
  --grad-hover: linear-gradient(135deg, #1d5aa8 0%, #19549a 55%, #0f6f7e 100%);
  --grad-soft: linear-gradient(135deg, #e3eefb 0%, #e0f3f6 100%);
  --grad-navy: linear-gradient(160deg, #0b1526 0%, #12233d 55%, #173056 100%);

  --ok: #17784a;
  --ok-bg: #e2f4ea;
  --warn: #1d5aa8;
  --warn-bg: #e3eefb;
  --err: #b42318;
  --err-bg: #f1f4f8;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 42, .06), 0 2px 6px rgba(15, 26, 42, .05);
  --shadow: 0 1px 2px rgba(15, 26, 42, .05), 0 6px 16px -4px rgba(15, 26, 42, .10), 0 18px 40px -16px rgba(15, 26, 42, .18);
  --shadow-lg: 0 2px 4px rgba(15, 26, 42, .05), 0 16px 32px -8px rgba(15, 26, 42, .16), 0 40px 80px -24px rgba(15, 26, 42, .30);
  --ring: 0 0 0 4px rgba(59, 130, 214, .2);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
  --wrap: 1200px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  /* Not background-attachment:fixed — that forces a full repaint on every scroll frame (jitter). */
  background: #eef2f7 linear-gradient(180deg, #f3f6fa 0%, #eaf0f7 1400px) no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, .h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt-0 { margin-top: 0; } .mt-md { margin-top: 32px; } .mt-lg { margin-top: 48px; }
.pt-0 { padding-top: 0 !important; } .pt-sm { padding-top: 24px !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.45em; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #1b2c47 0%, #0f1a2a 100%); color: #fff;
  font: 600 1rem/1.2 var(--font); text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 6px 16px -6px rgba(15, 26, 42, .55);
  transition: transform .15s ease, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); background: var(--grad-hover); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 14px 28px -10px rgba(29, 90, 168, .65); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1.02em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .58em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--grad); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -8px rgba(59, 130, 214, .7); }
.btn-accent:hover { background: var(--grad-hover); }
.btn-outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.btn-outline:hover { background: var(--surface); color: var(--accent-d); box-shadow: inset 0 0 0 1.5px var(--accent), 0 10px 22px -10px rgba(29, 90, 168, .45); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); }
.btn-text { background: none; color: var(--ink-2); padding-left: .4em; padding-right: .4em; box-shadow: none; }
.btn-text:hover { background: none; color: var(--accent-d); box-shadow: none; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--accent-d); }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---- Header ---- */
.announce { background: var(--grad); color: #fff; text-align: center; font-size: .92rem; font-weight: 500; padding: 9px 16px; }
.site-header {
  /* Solid (no backdrop-filter blur): blurring the page behind a sticky header re-renders on every scroll frame. */
  position: sticky; top: 0; z-index: 50; background: #ffffff;
  box-shadow: 0 1px 0 var(--line-soft), 0 4px 16px -8px rgba(15, 26, 42, .12);
  transition: box-shadow .25s;
}
.site-header::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -10px rgba(15, 26, 42, .28); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand picture, .brand img { display: block; width: 56px; height: 56px; flex-shrink: 0; }
.brand img { filter: drop-shadow(0 4px 8px rgba(15, 26, 42, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; font-family: var(--display); white-space: nowrap; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-d); }
.brand-light { color: #fff; }
.brand-light .brand-text span { color: #7fb6ee; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 9px 13px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.site-nav a:not(.btn):hover { background: var(--accent-l); color: var(--accent-d); }
.site-nav a[aria-current="page"] { color: var(--accent-d); background: var(--accent-l); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--line); padding: 8px; color: var(--ink); cursor: pointer; border-radius: 12px; box-shadow: var(--shadow-sm); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; padding: 12px 20px 24px; border-top: 1px solid var(--line-soft); box-shadow: 0 30px 60px -20px rgba(15, 26, 42, .4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 14px; font-size: 1.05rem; border-radius: 12px; }
  .nav-cta { margin: 10px 0 0; }
}

/* ---- Breadcrumbs (sit on the navy band that opens inner pages) ---- */
.crumbs-bar { background: var(--navy-1); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: rgba(255, 255, 255, .62); padding-top: 18px; padding-bottom: 4px; }
.crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 500; }

/* ---- Navy band shared by the homepage hero and inner page heroes ---- */
.hero, .page-hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 480px at 88% 10%, rgba(59, 130, 214, .34), transparent 62%),
  radial-gradient(640px 380px at 6% 105%, rgba(26, 163, 181, .22), transparent 60%),
  var(--grad-navy); }
.hero::before, .page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 75%); mask-image: linear-gradient(90deg, #000 0%, transparent 75%); }
.hero::after, .page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(127, 182, 238, .5), transparent); }
.crumbs-bar + .page-hero { background:
  radial-gradient(900px 480px at 88% -10%, rgba(59, 130, 214, .34), transparent 62%),
  radial-gradient(640px 380px at 6% 105%, rgba(26, 163, 181, .22), transparent 60%),
  linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 60%, #173056 100%); }
.hero h1, .page-hero h1, .hero h2, .page-hero h2 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .55em; font: 700 .8rem/1 var(--font); letter-spacing: .15em; text-transform: uppercase; color: var(--accent-d); margin: 0 0 16px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow svg { display: none; }
.hero .eyebrow, .page-hero .eyebrow { color: #8cc0f2; }

.page-hero { padding: 40px 0 72px; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: none; margin-bottom: .35em; }
.page-hero .lead { color: rgba(255, 255, 255, .8); }
.page-hero .lead a { color: #9fcbf5; }
.page-hero .lead a:hover { color: #fff; }
.page-hero .muted { color: rgba(255, 255, 255, .65); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 1040px; }

/* Homepage hero */
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 140px; }
.hero h1 { margin-bottom: .4em; font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 600px; color: rgba(255, 255, 255, .8); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 460px; }
.hero-media::before { content: ''; position: absolute; inset: -14px 14px 14px -14px; border: 1.5px solid rgba(127, 182, 238, .5); border-radius: 220px 220px 28px 28px; }
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 220px 220px 28px 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75); }
.hero-badge { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; }
.hero-badge picture { position: relative; width: 100%; aspect-ratio: 1; }
.hero-badge picture::before { content: ''; position: absolute; inset: -9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 130, 214, .45), rgba(26, 163, 181, .12) 65%, transparent); }
.hero-badge picture::after { content: ''; position: absolute; inset: -4%; border-radius: 50%; border: 1.5px solid rgba(127, 182, 238, .4); box-shadow: 0 0 0 18px rgba(127, 182, 238, .05); }
.hero-badge img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: drop-shadow(0 34px 50px rgba(0, 0, 0, .6)); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; padding-bottom: 120px; }
  .hero-media, .hero-badge { justify-self: center; max-width: 360px; order: -1; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-media, .hero-badge { max-width: 280px; }
  .page-hero { padding: 28px 0 56px; }
}

/* ---- Stats: floating card that overlaps the bottom of the hero ---- */
.stats-band { position: relative; z-index: 2; margin-top: -76px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; padding: 0; }
.stats-band .wrap.stats { width: calc(100% - 48px); max-width: calc(var(--wrap) - 48px); }
.stats > div { padding: 30px 18px; text-align: center; position: relative; }
.stats > div + div::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line-soft); }
.stats strong { display: block; font: 800 2rem/1.1 var(--display); letter-spacing: -.02em; background: linear-gradient(135deg, #0f1a2a 30%, #1d5aa8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats-band { margin-top: -64px; }
  .stats-band .wrap.stats { width: calc(100% - 32px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 20px 10px; }
  .stats > div:nth-child(3)::before { display: none; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .stats strong { font-size: 1.45rem; }
  .stats span { font-size: .8rem; line-height: 1.35; margin-top: 4px; }
}

/* ---- Sections ---- */
.section { position: relative; padding: 96px 0; }
.page-hero + .section.pt-0, .crumbs-bar + .section, .page-hero + .section { padding-top: 64px !important; }
.section-tint { background:
  radial-gradient(800px 360px at 100% 0%, rgba(59, 130, 214, .10), transparent 60%),
  radial-gradient(700px 320px at 0% 100%, rgba(26, 163, 181, .08), transparent 60%),
  linear-gradient(180deg, #e3eaf4 0%, #edf2f8 100%); }
.section-tint::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.section-dark { color: #fff; background:
  radial-gradient(800px 400px at 0% 0%, rgba(59, 130, 214, .25), transparent 60%),
  radial-gradient(700px 400px at 100% 100%, rgba(26, 163, 181, .18), transparent 60%),
  var(--grad-navy); }
.section-head { max-width: 1000px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.08rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 1.4em; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.seo-copy p { color: var(--ink-2); }
@media (max-width: 700px) { .section { padding: 64px 0; } .page-hero + .section.pt-0, .crumbs-bar + .section, .page-hero + .section { padding-top: 44px !important; } }

/* ---- Card base ---- */
.dog-card, .steps li, .info-card, .split-card, .side-card, .empty-state, .faq, .filters, .form-card, .intake-status, .facts > div, .gallery-main, .callout {
  background: var(--surface); border: 1px solid rgba(214, 222, 233, .7); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---- Dog cards ---- */
.dog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 30px; }
.dog-card { overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.dog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dog-card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint); }
.dog-card-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(0deg, rgba(11, 21, 38, .22), transparent); pointer-events: none; }
.dog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dog-card:hover .dog-card-media img { transform: scale(1.05); }
.dog-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.dog-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.dog-card h3 a { color: inherit; text-decoration: none; }
.dog-card h3 a::after { content: ''; position: absolute; inset: 0; }
.dog-meta { color: var(--muted); font-size: .92rem; font-weight: 500; margin-bottom: 10px; }
.dog-headline { color: var(--ink-2); font-size: .98rem; flex: 1; }
.dog-card .link-arrow { margin-top: auto; }
.badge { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.badge-pending { background: var(--grad); color: #fff; }
.badge-adopted { background: linear-gradient(135deg, #1f8a56, #17784a); color: #fff; }
.badge-coming, .badge-hold { background: var(--navy-2); color: #fff; }

/* ---- Steps / info cards ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { padding: 32px 26px 30px; position: relative; counter-increment: s; transition: transform .25s, box-shadow .25s; }
.steps li:hover, .info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.steps li::before { content: '0' counter(s); position: absolute; top: 26px; right: 24px; font: 800 1.6rem var(--display); background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px #c7d8ee; }
.steps p, .info-card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.step-icon, .info-card > svg { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: 0 10px 22px -10px rgba(29, 90, 168, .8); }
.info-card > svg { padding: 13px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card { padding: 32px 30px; transition: transform .25s, box-shadow .25s; }
.info-card .link-arrow, .info-card .btn { margin-top: 20px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .steps, .cards-3 { grid-template-columns: 1fr; } }

/* ---- Split ---- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 60px; align-items: center; }
.split-text p { color: var(--ink-2); }
.split-card, .side-card { padding: 32px; }
.split-card { position: relative; }
.split-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad); }
.side-card + .side-card { margin-top: 22px; }
.checklist { list-style: none; padding: 0; margin: 0 0 4px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { flex-shrink: 0; margin-top: 2px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #22a066, #17784a); }
.split-card .btn { margin-top: 22px; }
.numbered { padding-left: 1.3em; color: var(--ink-2); }
.numbered li { margin-bottom: .6em; padding-left: .3em; }
.numbered li::marker { color: var(--accent-d); font-weight: 800; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---- CTA tiles (dark section) ---- */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cta-tile { display: block; padding: 36px 32px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); color: #fff; text-decoration: none; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7); transition: background .25s, border-color .25s, transform .25s; }
.cta-tile:hover { background: linear-gradient(160deg, rgba(59, 130, 214, .28), rgba(26, 163, 181, .12)); border-color: rgba(127, 182, 238, .6); color: #fff; transform: translateY(-4px); }
.cta-tile svg { margin-bottom: 18px; padding: 12px; width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(59, 130, 214, .9); }
.cta-tile h3 { color: #fff; font-size: 1.4rem; }
.cta-tile p { color: rgba(255, 255, 255, .74); margin: 0; }
@media (max-width: 800px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---- Notices ---- */
.notice, .alert { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); font-size: .96rem; margin: 0 0 20px; border: 1px solid #c9dcf3; }
.notice svg, .alert svg { flex-shrink: 0; margin-top: 3px; }
.notice-ok, .alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cf; }
.alert-err { background: var(--err-bg); color: var(--err); border-color: #e3c6c3; box-shadow: inset 4px 0 0 var(--err); }
.callout { padding: 30px 32px; background: var(--grad-soft); }
.callout p { margin: 0; }
.intake-status { display: flex; gap: 16px; align-items: flex-start; padding: 24px 28px; position: relative; overflow: hidden; }
.intake-status::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #22a066, #17784a); }
.intake-status.is-full::before { background: var(--grad); }
.intake-status p { margin: 4px 0 0; color: var(--ink-2); }
.intake-status .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); margin-top: 7px; flex-shrink: 0; box-shadow: 0 0 0 5px var(--ok-bg); animation: pulse 2.4s ease-in-out infinite; }
.intake-status.is-full .dot { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-l); animation: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 5px var(--ok-bg); } 50% { box-shadow: 0 0 0 9px rgba(226, 244, 234, .4); } }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 60px 32px; max-width: 900px; margin: 0 auto; background: linear-gradient(180deg, #ffffff, #f7f9fc); }
.empty-state > svg { margin: 0 auto 18px; padding: 14px; width: 68px; height: 68px; border-radius: 20px; background: var(--grad); color: #fff; box-shadow: 0 14px 28px -12px rgba(29, 90, 168, .8); }
.empty-state p { color: var(--ink-2); max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 14px; }
.faq { border-radius: var(--radius-sm); transition: box-shadow .2s, border-color .2s; }
.faq:hover { border-color: #c4d3e6; }
.faq[open] { box-shadow: var(--shadow-lg); border-color: #c4d3e6; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font: 700 1.06rem/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; width: 30px; height: 30px; padding: 5px; border-radius: 50%; color: var(--accent-d); background: var(--accent-l); transition: transform .25s, background .25s, color .25s; }
.faq[open] summary svg { transform: rotate(180deg); background: var(--grad); color: #fff; }
.faq-a { padding: 0 24px 22px; color: var(--ink-2); }
.faq-a p:last-child { margin: 0; }

/* ---- Filters ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; margin-bottom: 26px; border-radius: 999px; }
.filters select { appearance: none; border: 1.5px solid var(--field-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364718a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 9px 34px 9px 15px; border-radius: 999px; font: 500 .92rem var(--font); color: var(--ink); box-shadow: inset 0 1px 2px rgba(15, 26, 42, .06); }
.filters select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1.5px solid var(--field-line); border-radius: 999px; font-size: .92rem; font-weight: 500; cursor: pointer; background: #fff; white-space: nowrap; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--accent); }
.chip:has(input:checked) { background: var(--accent-l); border-color: var(--accent); color: var(--accent-d); }
.chip input { accent-color: var(--accent-d); }
.result-count { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
@media (max-width: 700px) { .filters { border-radius: var(--radius); } }

/* ---- Dog profile: gallery + info card overlap a navy band ---- */
.dog-profile { padding-top: 0 !important; }
.dog-profile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 220px; background: linear-gradient(180deg, var(--navy-1), #173056); }
.dog-profile::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none; background: radial-gradient(700px 300px at 85% 0%, rgba(59, 130, 214, .35), transparent 65%); }
.profile-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; padding-top: 32px; }
.gallery-main { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--tint); box-shadow: var(--shadow-lg); border: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.thumbs { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; padding: 4px 2px 6px; }
.thumb { flex: 0 0 auto; width: 80px; height: 80px; padding: 0; border: 3px solid #fff; border-radius: 14px; overflow: hidden; cursor: pointer; background: none; opacity: .75; box-shadow: var(--shadow-sm); transition: opacity .2s, border-color .2s, transform .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--accent); transform: translateY(-2px); }
.profile-info { position: sticky; top: 104px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid rgba(214, 222, 233, .7); padding: 34px 32px; }
.profile-info h1 { font-size: clamp(2.3rem, 4.4vw, 3.3rem); margin-bottom: .2em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.facts > div { padding: 14px 16px; border-radius: var(--radius-sm); box-shadow: none; background: linear-gradient(180deg, #f7f9fc, #eef3f9); border-color: var(--line-soft); }
.facts dt { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.facts dt svg { color: var(--accent-d); }
.facts dd { margin: 4px 0 0; font: 700 1.08rem var(--display); }
.profile-actions { display: grid; gap: 12px; }
.share-btn { margin-top: 12px; }
.profile-details { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; margin-top: 64px; }
.profile-story h2 { font-size: 1.6rem; margin-top: 1.2em; }
.profile-story h2:first-child { margin-top: 0; }
.trait-list { list-style: none; padding: 0; margin: 0 0 12px; }
.trait-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.trait-list li:last-child { border-bottom: 0; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--tint); color: var(--ink-2); white-space: nowrap; }
.pill-yes { background: var(--ok-bg); color: var(--ok); }
.pill-no { background: #eef1f5; color: var(--err); }
.pill-maybe { background: var(--accent-l); color: var(--accent-d); }
.foster-note { background: var(--grad-soft); border-color: #c9dcf3; }
.foster-note h2 { display: flex; align-items: center; gap: 8px; color: var(--accent-d); }
.foster-note p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .profile-grid, .profile-details { grid-template-columns: 1fr; gap: 28px; }
  .profile-info { position: static; padding: 26px 22px; }
  .profile-details { margin-top: 40px; }
}

/* ---- Forms ---- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.form-card { padding: 44px; box-shadow: var(--shadow-lg); position: relative; }
.form-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad); }
.form-aside { position: sticky; top: 104px; }
.form-h { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin: 36px -44px 20px; padding: 16px 44px; background: linear-gradient(90deg, #eef4fb, rgba(238, 244, 251, 0)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.form-h::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--accent-l); }
.form-card > .form-h:first-of-type { margin-top: 14px; }
.form-card > .form-h.mt-0 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .93rem; color: var(--ink); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field legend { margin-bottom: 10px; }
.req { color: var(--accent-d); }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--field-line); border-radius: var(--radius-sm);
  background: var(--field); font: 400 1rem var(--font); color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(15, 26, 42, .07), 0 1px 0 rgba(255, 255, 255, .8);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d5aa8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.field input:hover:not(:focus), .field select:hover:not(:focus), .field textarea:hover:not(:focus) { border-color: #5a6680; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring), inset 0 1px 2px rgba(15, 26, 42, .05); }
.field input::placeholder, .field textarea::placeholder { color: #64718a; }
.field .is-invalid { border-color: var(--err) !important; box-shadow: 0 0 0 4px rgba(180, 35, 24, .12) !important; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1.5px solid var(--field-line); border-radius: 999px; cursor: pointer; font-size: .95rem; background: #fff; white-space: nowrap; box-shadow: var(--shadow-sm); transition: border-color .2s, background .2s; }
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-l); color: var(--accent-d); font-weight: 600; }
.choice input { accent-color: var(--accent-d); width: 17px; height: 17px; }
.form-card .btn-lg { margin-top: 14px; }
.form-card .small { margin-top: 18px; }
.form-dog { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--grad-soft); border: 1px solid #c9dcf3; border-radius: var(--radius-sm); margin-bottom: 22px; }
.form-dog img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); }
.form-dog strong { display: block; font: 700 1.1rem var(--display); }
.form-dog span { color: var(--muted); font-size: .9rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.link-list a:hover { color: var(--accent-d); }
.link-list li:last-child a { border-bottom: 0; }
@media (max-width: 980px) { .form-layout { grid-template-columns: 1fr; } .form-aside { position: static; } }
@media (max-width: 620px) {
  .form-card { padding: 28px 20px; }
  .form-h { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.site-footer { position: relative; color: rgba(255, 255, 255, .72); padding: 76px 0 0; font-size: .95rem; background:
  radial-gradient(700px 300px at 0% 0%, rgba(59, 130, 214, .18), transparent 60%),
  linear-gradient(180deg, var(--navy-1) 0%, var(--navy-0) 100%); }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.15fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.footer-about p { margin-top: 18px; max-width: 420px; }
.footer-about .brand picture, .footer-about .brand img { width: 64px; height: 64px; }
.footer-h { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: #9fcbf5; }
.footer-contact li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.footer-contact svg { color: #7fb6ee; flex-shrink: 0; }
.side-card .footer-contact li { color: var(--ink-2); }
.side-card .footer-contact a { color: var(--accent-d); }
.side-card .footer-contact svg { color: var(--accent-d); }
.footer-note { font-size: .85rem; color: rgba(255, 255, 255, .66); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials { flex-wrap: wrap; }
.socials { gap: 7px; }
.socials a, .socials span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--grad); border-color: transparent; color: #fff; }
.socials span { cursor: default; }
.socials span:hover { border-color: rgba(127, 182, 238, .5); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 24px 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .admin-link { display: inline-flex; align-items: center; gap: 5px; }
.footer-version { font-variant-numeric: tabular-nums; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; }
@media (min-width: 1100px) { .footer-links a, .footer-contact li { white-space: nowrap; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- 1.2.02 additions ---- */
html.nav-open, html.nav-open body { overflow: hidden; }

/* Dog card trait chips */
.dog-traits { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; }
.dog-traits li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.dog-traits svg { width: 12px; height: 12px; }

/* Branded “photo coming soon” */
.photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: rgba(255, 255, 255, .78); font-size: .88rem; font-weight: 600; letter-spacing: .04em;
  background: radial-gradient(420px 260px at 70% 10%, rgba(59, 130, 214, .45), transparent 60%), var(--grad-navy); }
.photo-placeholder picture { display: block; width: 44%; max-width: 170px; }
.photo-placeholder img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
.dog-card-media:has(.photo-placeholder)::after { display: none; }

/* Gallery opener + lightbox */
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gallery-zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(11, 21, 38, .72); color: #fff; font-size: .82rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.gallery-open:hover .gallery-zoom, .gallery-open:focus-visible .gallery-zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery-zoom { opacity: 1; transform: none; } }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(7, 13, 24, .94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: .9rem; font-variant-numeric: tabular-nums; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 64px 10px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* Sticky apply bar (phones) */
.apply-bar { display: none; }
@media (max-width: 900px) {
  .apply-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -10px 30px -10px rgba(15, 26, 42, .35); border-top: 1px solid var(--line-soft); }
  .apply-bar strong { display: block; font: 800 1.05rem var(--display); }
  .apply-bar span { font-size: .82rem; color: var(--muted); }
  .apply-bar .btn { padding: .75em 1.2em; }
  body:has(.apply-bar) .site-footer { padding-bottom: 76px; }
}

/* Form thank-you panel, inline errors, saved draft */
.form-thanks { text-align: center; padding: 56px 40px; outline: none; }
.form-thanks h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-thanks p { color: var(--ink-2); max-width: 620px; margin-left: auto; margin-right: auto; }
.thanks-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #22a066, #17784a); box-shadow: 0 0 0 10px var(--ok-bg), 0 16px 30px -12px rgba(23, 120, 74, .7); }
.field-error { margin: 2px 0 0; font-size: .84rem; font-weight: 600; color: var(--err); }
.field.has-error label, .field.has-error legend { color: var(--err); }
.draft-note { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.h2-like { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.required-note { margin: -4px 0 18px; font-size: .86rem; color: var(--muted); }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-d); text-decoration: underline; cursor: pointer; }

/* reCAPTCHA: badge hidden — the required disclosure is shown under each form instead. */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }
.recaptcha-note a { color: var(--muted); }
.btn.is-busy { opacity: .75; cursor: progress; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .hero-actions, .profile-actions { display: none !important; } }
