/* ============================================================================
   Central Valley German Shepherds — app.css
   Layout + components on top of tokens.css
   ========================================================================== */

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background: var(--bg-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

/* Unified photographic tone across content imagery (not logos/badges/icons). */
.hero-media img, .ph-media img, .dog-media img, .puppy-media img, .l-media img,
.feature-media img, .cta-bg img, .gallery-grid img, .gallery-main img, .frame-tag ~ img {
  filter: var(--photo-grade) brightness(1.01);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--steel-500); color: #fff; }

/* Scrollbar (subtle, on-theme) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #ece7dd; }
::-webkit-scrollbar-thumb { background: #cdc6b8; border-radius: 999px; border: 3px solid #ece7dd; }
::-webkit-scrollbar-thumb:hover { background: #b9b1a0; }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }
p { text-wrap: pretty; }
strong { color: var(--ink-800); font-weight: 600; }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  overflow-wrap: break-word;
}
.brand-text b, .brand-text span { white-space: nowrap; }
.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-500);
  font-weight: 380;
}
.muted { color: var(--ink-500); }
.faint { color: var(--ink-400); }
.accent { color: var(--steel-300); }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--steel-300);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--steel-400);
  opacity: 0.85;
}
.eyebrow.center::after {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--steel-400);
  opacity: 0.85;
}

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sec-y); }
.section.sm { padding-block: var(--sec-y-sm); }
.section.alt { background: var(--bg-850); }
.section.raise { background: var(--bg-800); }
.divider { height: 1px; background: var(--line); border: 0; }

.section-head { max-width: 600px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 0.8rem; }
.section-head h2 { margin-bottom: 0.55rem; }
.section-head p { color: var(--ink-500); font-size: var(--fs-lead); line-height: 1.55; }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .cols-4, .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; } }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  --_bg: var(--steel-500);
  --_fg: #f4f8fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72em 1.35em;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--r-pill);
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: filter var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  will-change: filter;
}
.btn:hover { filter: brightness(1.1); box-shadow: 0 0 0 4px var(--steel-glow); }
.btn:active { filter: brightness(0.98); }
.btn:focus-visible { outline: 2px solid var(--steel-300); outline-offset: 3px; }

.btn-ghost {
  --_bg: transparent;
  --_fg: var(--ink-800);
  border-color: var(--line-strong);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  --_fg: var(--ink-900);
  border-color: var(--steel-400);
  box-shadow: 0 0 0 4px var(--steel-glow);
  filter: none;
  background: rgba(255,255,255,0.02);
}
.btn-quiet { --_bg: var(--bg-700); --_fg: var(--ink-800); border-color: var(--line); }
.btn-quiet:hover { filter: brightness(1.15); box-shadow: none; }
.btn-lg { padding: 0.85em 1.6em; font-size: 0.95rem; }
.btn-sm { padding: 0.5em 0.95em; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Text link with animated steel underline */
.link {
  color: var(--steel-300);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}
.link::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--steel-400);
  transform: scaleX(0.001);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.link:hover::after { transform: scaleX(1); }
.link .arw { transition: transform var(--dur-fast) var(--ease); }
.link:hover .arw { transform: translateX(3px); }

/* ---- Header / nav --------------------------------------------------------- */
/* Dark bar by default (dark header on a light body). */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 15, 20, 0.90);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,8,10,0.55), rgba(6,8,10,0));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.site-header.scrolled { background: rgba(9, 11, 15, 0.92); }
/* On the home page the bar floats transparent over the cinematic hero until scroll. */
body.home .site-header:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.home .site-header:not(.scrolled)::before { opacity: 1; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-steel);
  box-shadow: var(--shadow-1);
  background: var(--bg-750);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.32rem;
  height: 1px; background: var(--steel-400);
  transform: scaleX(0.001); transform-origin: center;
  transition: transform var(--dur) var(--ease-out);
}
.nav a:hover { color: var(--ink-900); }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink-900); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-700);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.header-phone:hover { color: var(--ink-900); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  color: var(--ink-800);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(8, 10, 13, 0.97);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu .m-close {
  position: absolute; top: 1.1rem; right: var(--gutter);
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; color: var(--ink-800);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1rem; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 480;
  color: var(--ink-800);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a.active { color: var(--steel-300); }
.mobile-menu .m-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  padding-top: var(--header-h);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-900);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,13,0.55) 0%, rgba(8,10,13,0.12) 32%, rgba(8,10,13,0.35) 62%, rgba(8,10,13,0.94) 100%),
    linear-gradient(90deg, rgba(8,10,13,0.7) 0%, rgba(8,10,13,0.1) 55%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-block: clamp(1.75rem, 4vh, 3.25rem);
  max-width: 640px;
}
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1.display { margin-bottom: 1rem; }
.hero h1 .em { color: var(--steel-300); }
.hero-lead { max-width: 500px; margin-bottom: 1.5rem; color: var(--ink-700); font-size: var(--fs-lead); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.hero-stats .stat { padding: 1rem 0; }
.stat .n { font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); color: var(--ink-900); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.stat .n .u { font-size: 0.5em; color: var(--steel-300); vertical-align: super; margin-left: 2px; }
.stat .l { margin-top: 0.35rem; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-400); }

.scroll-cue { display: none; }

/* ---- Credential strip ----------------------------------------------------- */
.creds {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-block: 1.35rem;
}
.creds img { height: 34px; width: auto; opacity: 0.6; filter: grayscale(1); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease); }
.creds img:hover { opacity: 0.95; filter: grayscale(0.1); }
.creds .cred-text { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; }

/* ---- Dog cards ------------------------------------------------------------ */
.card-grid { display: grid; gap: clamp(1rem, 1.6vw, 1.35rem); grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }

.dog-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-750);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dog-card:hover { border-color: var(--line-steel); box-shadow: var(--shadow-glow); }
.dog-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-800); }
.dog-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter var(--dur) var(--ease);
}
.dog-card:hover .dog-media img { transform: scale(1.045); filter: var(--photo-grade) brightness(1.08); }
.dog-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,10,13,0.30) 0%, rgba(8,10,13,0.02) 40%, transparent 65%);
}
.dog-tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35em 0.75em; border-radius: var(--r-pill);
  background: rgba(10,12,15,0.6); color: var(--steel-200);
  border: 1px solid var(--line-steel); backdrop-filter: blur(6px);
}
.dog-body {
  position: relative; z-index: 2;
  padding: 0.95rem 1.15rem 1.15rem;
}
.dog-body .gender-ico { color: var(--steel-300); }
.dog-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); line-height: 1.15; }
.dog-meta { margin-top: 0.25rem; font-size: 0.82rem; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: center; }
.dog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-400); display: inline-block; }
.dog-desc { margin-top: 0.6rem; font-size: 0.88rem; color: var(--ink-500); line-height: 1.5; }
.dog-foot { margin-top: 0.85rem; display: flex; align-items: center; justify-content: space-between; }

/* Featured editorial dog block (alternating) */
.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(1.5rem, 3.5vw, 3.25rem); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 5 / 4; border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media .frame-tag {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(10,12,15,0.7); border: 1px solid var(--line-steel); backdrop-filter: blur(6px);
  padding: 0.5rem 0.9rem; border-radius: var(--r-pill);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-200);
}
.feature-body .eyebrow { margin-bottom: 0.85rem; }
.feature-body h3 { font-size: var(--fs-h2); margin-bottom: 0.7rem; }
.spec-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0; }

/* Small spec pills */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 500; color: var(--ink-700);
  padding: 0.42em 0.85em; border-radius: var(--r-pill);
  background: var(--bg-700); border: 1px solid var(--line);
}
.pill svg { width: 14px; height: 14px; color: var(--steel-300); }

/* ---- Status badges -------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.34em 0.7em; border-radius: var(--r-pill);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.available { color: var(--ok); background: var(--ok-bg); }
.badge.reserved  { color: var(--warn); background: var(--warn-bg); }
.badge.sold      { color: var(--gone); background: var(--gone-bg); }

/* ---- Puppy cards ---------------------------------------------------------- */
.puppy-card {
  background: var(--bg-750); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.puppy-card:hover { border-color: var(--line-steel); box-shadow: var(--shadow-glow); }
.puppy-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-800); }
.puppy-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.puppy-card:hover .puppy-media img { transform: scale(1.05); }
.puppy-media .badge { position: absolute; top: 0.8rem; right: 0.8rem; background: rgba(10,12,15,0.72); backdrop-filter: blur(6px); }
.puppy-body { padding: 1.1rem 1.2rem 1.3rem; }
.puppy-body h4 { font-size: 1.25rem; }
.puppy-body .p-meta { margin-top: 0.3rem; font-size: 0.85rem; color: var(--ink-500); }
.puppy-body .p-price { margin-top: 0.45rem; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--steel-600); }

/* ---- Litter cards --------------------------------------------------------- */
.litter-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  background: var(--bg-750); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.litter-card:hover { border-color: var(--line-steel); box-shadow: var(--shadow-glow); }
.litter-card .l-media { position: relative; overflow: hidden; min-height: 220px; background: var(--bg-800); }
.litter-card .l-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.litter-card:hover .l-media img { transform: scale(1.05); }
.litter-card .l-year {
  position: absolute; top: 0.9rem; left: 0.9rem;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-900);
  background: rgba(10,12,15,0.62); border: 1px solid var(--line-steel); backdrop-filter: blur(6px);
  padding: 0.2rem 0.7rem; border-radius: var(--r-pill);
}
.litter-card .l-body { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; }
.litter-card .l-cross { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }
.litter-card .l-cross .x { color: var(--steel-400); font-style: italic; margin: 0 0.35rem; }
.litter-card .l-stats { margin-top: auto; padding-top: 1rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.litter-card .l-stats .s b { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-900); display: block; }
.litter-card .l-stats .s span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); }

/* ---- Reviews -------------------------------------------------------------- */
/* Google-style review card */
.greview {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.25rem 1.3rem 1.35rem; display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.greview:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.gr-head { display: flex; align-items: center; gap: 0.7rem; }
.gr-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  object-fit: cover; overflow: hidden;
}
.gr-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gr-name { font-weight: 600; color: #202124; font-size: 0.95rem; }
.gr-time { font-size: 0.8rem; color: #5f6368; margin-top: 1px; }
.gr-g { margin-left: auto; flex: none; display: flex; }
.gr-stars { color: #fbbc04; font-size: 1.05rem; letter-spacing: 1px; margin: 0.7rem 0 0.55rem; }
.gr-stars .e { color: #dadce0; }
.gr-text { color: #3c4043; font-size: 0.95rem; line-height: 1.6; }
.review-card .r-by::before { content: "— "; color: var(--steel-400); }

/* ---- Empty state ---------------------------------------------------------- */
.empty {
  text-align: center; max-width: 560px; margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  border: 1px dashed var(--line-strong); border-radius: var(--r-xl); background: var(--bg-800);
}
.empty .ico { width: 56px; height: 56px; margin: 0 auto 1.25rem; color: var(--steel-400); }
.empty h3 { margin-bottom: 0.75rem; }

/* ---- Service cards -------------------------------------------------------- */
.service-card {
  background: var(--bg-750); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.9rem 1.8rem; display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { border-color: var(--line-steel); box-shadow: var(--shadow-glow); }
.service-card .s-ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--steel-200); background: var(--steel-800); border: 1px solid var(--line-steel); margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-500); font-size: 0.96rem; line-height: 1.6; }
.service-card .link { margin-top: 1.2rem; }
.service-card ul { margin: 0.8rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.service-card ul li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--ink-700); font-size: 0.95rem; }
.service-card ul li svg { color: var(--steel-300); flex: none; margin-top: 3px; }

/* ---- FAQ (accordion via <details>) --------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); color: var(--ink-800);
  transition: color var(--dur-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ink-900); }
.faq-item summary .pm { flex: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--steel-300); transition: transform var(--dur) var(--ease), border-color var(--dur-fast) var(--ease); }
.faq-item[open] summary .pm { transform: rotate(45deg); border-color: var(--steel-400); }
.faq-item .faq-a { padding: 0 0 1.5rem; color: var(--ink-500); line-height: 1.7; max-width: 68ch; }

/* ---- Gallery grid (masonry columns) -------------------------------------- */
.gallery-grid { columns: 3 260px; column-gap: 1rem; }
.gallery-grid figure {
  break-inside: avoid; margin: 0 0 1rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  position: relative; background: var(--bg-800);
}
.gallery-grid img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: transform 1s var(--ease-out), filter var(--dur) var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); filter: var(--photo-grade) brightness(1.08); }
.gallery-grid figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); pointer-events: none; }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,13,0.94), rgba(8,10,13,0.65) 60%, rgba(8,10,13,0.4)); }
.cta-band .cta-inner { position: relative; z-index: 1; padding: clamp(1.75rem, 4vw, 3.25rem); max-width: 560px; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--bg-850); border-top: 1px solid var(--line); padding-top: clamp(2.75rem, 5vw, 4.5rem); }
.footer-main { display: grid; grid-template-columns: 1.5fr 2fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 2rem; }
.footer-lead .brand { margin-bottom: 1rem; }
.footer-lead .brand-mark { width: 44px; height: 44px; }
.footer-tag { color: var(--ink-500); font-size: 0.92rem; line-height: 1.6; max-width: 360px; }

.footer-news { margin-top: 1.4rem; max-width: 380px; }
.footer-news .fn-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-700); margin-bottom: 0.6rem; }
.footer-news .fn-label svg { color: var(--steel-300); }
.footer-news .fn-form { display: flex; gap: 0.5rem; }
.footer-news .fn-form input { flex: 1; min-width: 0; background: var(--bg-800); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0.55rem 0.8rem; color: var(--ink-900); font-size: 16px; }
.footer-news .fn-form input::placeholder { color: var(--ink-400); }
.footer-news .fn-form input:focus { outline: none; border-color: var(--steel-400); box-shadow: 0 0 0 3px var(--steel-glow); }
.footer-news .fn-thanks { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ok); }

.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 2rem; }
.footer-col h5 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 0.9rem; font-weight: 700; font-family: var(--font-sans); }
.footer-col > a { display: block; padding: 0.3rem 0; color: var(--ink-700); font-size: 0.92rem; transition: color var(--dur-fast) var(--ease); }
.footer-col > a:hover { color: var(--steel-300); }
.footer-contact a, .footer-contact .fc-line { display: flex; align-items: center; gap: 0.5rem; padding: 0.28rem 0; }
.footer-contact svg { color: var(--steel-300); flex: none; }
.footer-contact .big { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); }
.footer-contact .fc-line { color: var(--ink-500); font-size: 0.9rem; }

.social-row { display: flex; gap: 0.5rem; margin-top: 1.3rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--ink-700);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.social-row a:hover { color: var(--steel-200); border-color: var(--steel-400); box-shadow: 0 0 0 4px var(--steel-glow); }
.social-row svg { width: 17px; height: 17px; }

.footer-creds {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1rem;
  padding: 1.15rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.8rem; color: var(--ink-500);
}
.footer-creds span:not(.dot-sep) { display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-creds svg { color: var(--steel-300); }
.footer-creds .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-400); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.4rem; font-size: 0.82rem; color: var(--ink-400); }
.footer-legal { display: flex; gap: 1.1rem; align-items: center; }
.footer-legal a:hover, .footer-bottom a:hover { color: var(--ink-700); }
.footer-admin { display: inline-flex; align-items: center; gap: 0.32rem; opacity: 0.72; }
.footer-admin:hover { opacity: 1; }
.footer-admin svg { width: 13px; height: 13px; }

/* ---- Page hero (interior pages) ------------------------------------------ */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(1.75rem, 4vw, 3.25rem)); padding-bottom: clamp(1.5rem, 3vw, 2.75rem); overflow: hidden; }
.page-hero.has-media { min-height: 42vh; display: flex; align-items: flex-end; }
.page-hero .ph-media { position: absolute; inset: 0; z-index: 0; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .ph-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,13,0.75), rgba(8,10,13,0.4) 45%, rgba(8,10,13,0.96)); }
.page-hero .ph-inner { position: relative; z-index: 1; width: 100%; }
.page-hero h1 { font-size: var(--fs-h1); margin: 0.7rem 0 0.55rem; }
.page-hero .lead { max-width: 600px; }
.breadcrumb { font-size: 0.8rem; color: var(--ink-400); display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a:hover { color: var(--steel-300); }
.breadcrumb .sep { color: var(--ink-400); }

/* ---- Detail (dog / puppy / litter) --------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.gallery-main {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 3; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--bg-800);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-top: 0.7rem; }
.thumbs button {
  aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--bg-800);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover, .thumbs button.active { border-color: var(--steel-400); box-shadow: 0 0 0 3px var(--steel-glow); }

.detail-body .eyebrow { margin-bottom: 1rem; }
.detail-body h1 { font-size: var(--fs-h1); }
.detail-title-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 1.75rem 0; }
.spec-grid .cell { background: var(--bg-800); padding: 1rem 1.15rem; }
.spec-grid .cell .k { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); display: flex; align-items: center; gap: 0.4rem; }
.spec-grid .cell .k svg { color: var(--steel-300); }
.spec-grid .cell .v { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-900); margin-top: 0.3rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.parents { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.parent-chip { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1rem 0.6rem 0.6rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-800); }
.parent-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.parent-chip .pc-r { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); }
.parent-chip .pc-n { font-family: var(--font-display); color: var(--ink-900); }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ---- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(9px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dog-card:hover .dog-media img, .puppy-card:hover .puppy-media img { transform: none; }
}

/* ---- Lightbox ------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(6,7,9,0.94); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; object-fit: contain; border-radius: var(--r); box-shadow: var(--shadow-3); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; color: var(--ink-800); width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(10,12,15,0.5); }
.lightbox .lb-close { top: 1.5rem; right: 1.5rem; }
.lightbox .lb-nav.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav:hover, .lightbox .lb-close:hover { color: var(--ink-900); border-color: var(--steel-400); }

/* ---- Forms ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-500); text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: var(--bg-800); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 0.85rem 1rem; color: var(--ink-900); font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--steel-400); box-shadow: 0 0 0 3px var(--steel-glow); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-400); }
.alert { padding: 1rem 1.2rem; border-radius: var(--r-sm); font-size: 0.95rem; margin-bottom: 1.4rem; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(111,174,134,0.3); }
.alert.err { background: rgba(200,90,90,0.12); color: #a11f1a; border: 1px solid rgba(200,90,90,0.35); }

/* ---- Prose ---------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2rem; color: var(--ink-700); }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 0.8rem; }
.prose ul { margin: 0 0 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li { color: var(--ink-700); }
.prose li::marker { color: var(--steel-400); }
.prose a { color: var(--steel-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Utilities ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .wrap { flex-wrap: wrap; }
.hide { display: none !important; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .nav, .header-phone, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .litter-card { grid-template-columns: 1fr; }
  .litter-card .l-media { min-height: 240px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding-top: calc(var(--header-h) + 2rem); }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  /* Buttons in inline rows / admin chrome must NOT stretch to full width. */
  .fn-form .btn, .footer-news .fn-form .btn,
  .admin-topbar .btn, .bar-actions .btn, .row-actions .btn, .card-head .btn { width: auto; flex: 0 0 auto; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Litter growth timeline (public litter page)
   ============================================================ */
.l-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.l-step { background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; }
.l-node { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--steel-glow); color: var(--steel-500); margin-bottom: 0.7rem; }
.l-when { font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--steel-500); font-weight: 700; margin-bottom: 0.15rem; }
.l-step h4 { margin: 0 0 0.3rem; font-size: 1rem; letter-spacing: -0.01em; }
.l-step p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--ink-500); }

/* ============================================================
   Reviews marquee — continuous right-to-left scroll
   ============================================================ */
.rev-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.rev-track { display: flex; width: max-content; animation: rev-scroll var(--rev-dur, 60s) linear infinite; }
.rev-marquee:hover .rev-track,
.rev-marquee:focus-within .rev-track { animation-play-state: paused; }
.rev-group { display: flex; gap: 1.25rem; padding-right: 1.25rem; align-items: stretch; }
.rev-track .greview { flex: 0 0 340px; opacity: 1; transform: none; }
.rev-track .greview .gr-text {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
@keyframes rev-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 560px) { .rev-track .greview { flex: 0 0 82vw; } }
@media (prefers-reduced-motion: reduce) {
  .rev-track { animation: none; }
  .rev-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* Course curriculum rows wrap instead of squeezing the title on small phones */
@media (max-width: 480px) {
  .lesson-row { flex-wrap: wrap; row-gap: 0.3rem; }
  .lesson-row > span:nth-child(2) { flex-basis: 100%; order: 3; }
}

/* Puppy reservation deposit form (puppy detail page) */
.reserve-form .rf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.reserve-form .rf-fields input {
  width: 100%; background: var(--bg-800); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 0.7rem 0.9rem; font-size: 16px; color: var(--ink-900);
}
.reserve-form .rf-fields input::placeholder { color: var(--ink-400); }
.reserve-form .rf-fields input:focus { outline: none; border-color: var(--steel-400); box-shadow: 0 0 0 3px var(--steel-glow); }
@media (max-width: 560px) { .reserve-form .rf-fields { grid-template-columns: 1fr; } }

/* Skip-to-content link (a11y) */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 200; background: var(--steel-500); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-sm); font-weight: 600; box-shadow: var(--shadow-2); transition: top var(--dur-fast) var(--ease); }
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

/* Visible zoom affordance on detail-page main gallery image */
.gallery-main { position: relative; }
.gallery-main::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(12,15,20,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.2-4.2'/%3E%3C/svg%3E") center / 17px no-repeat;
  opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none;
}
.gallery-main:hover::after, [data-gallery]:focus-within .gallery-main::after { opacity: 1; }

/* Upcoming litter cards (public litters page + home) */
.upcoming-card { background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow-1); transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.upcoming-card:hover { border-color: var(--line-steel); box-shadow: var(--shadow-glow); }
.upcoming-card .uc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.7rem; }
.uc-status { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 999px; color: var(--steel-600); background: var(--steel-glow); }
.uc-status.uc-expecting { color: var(--warn); background: var(--warn-bg); }
.upcoming-card .uc-when { font-size: 0.8rem; color: var(--ink-500); display: inline-flex; align-items: center; gap: 0.3rem; }
.upcoming-card .uc-parents { font-size: 1.35rem; margin-bottom: 0.5rem; }
.upcoming-card .uc-desc { font-size: 0.9rem; line-height: 1.55; margin-bottom: 1.1rem; }
.upcoming-card .btn { margin-top: auto; align-self: flex-start; }
