/* =====================================================================
   Alex Xanda Shih Tzu Kennel — the one stylesheet (public site + admin)

   Fonts are loaded in each page's <head>:
   Fraunces (400–700, italic 500) and Nunito Sans (400–800).

    1. Tokens            7. Media + placeholder   13. Gallery, CTA, empty
    2. Base              8. Grids + cards         14. Footer
    3. Layout            9. Tags + chips          15. Admin
    4. Navbar           10. Puppy profile         16. Responsive
    5. Buttons          11. Parents               17. Reduced motion
    6. Hero + paws      12. Forms
   ===================================================================== */

/* ---------- 1. Tokens ---------- */

/* The site's colours. Names say what a colour is for, not what it looks like,
   so the palette can change here without touching the rest of the file.
   Current palette: linen and oat neutrals, warm charcoal text, soft teal accent. */
:root {
  /* Warm neutrals */
  --paper: #FAF6F1;            /* page background */
  --paper-deep: #F1EAE1;       /* tinted sections, chips, icon circles */
  --ink: #3F3530;              /* text, dark sections, admin sidebar */
  --ink-soft: #6E625A;         /* secondary text */
  --ink-deep: #322A26;         /* footer: a shade deeper than --ink, so it reads apart from a dark CTA */
  --white: #FFFFFF;
  --line: #E8DFD3;
  --dash: #D8CCBD;             /* dashed edges: photo placeholders, dropzones, empty states */
  --field-line: #95867A;       /* form field edges: 3:1 against white */

  /* Accent */
  --accent: #5DB8AD;           /* fills: buttons, brand mark, paws. Text on it is --ink */
  --accent-deep: #54AFA4;      /* hover fill; still 4.5:1 under --ink text */
  --accent-ink: #1C6861;       /* accent dark enough to read as text on --paper and --paper-deep */
  --accent-tint: #DCEEEA;      /* pale fill: "available" tags, ticks, success messages */
  --accent-wash: #EDF6F4;      /* palest fill: health notes, dropzone hover */

  --star: #C67A1C;             /* rating stars: 3:1 against white */
  --focus: var(--accent-ink);  /* keyboard focus ring; switched to --accent on dark areas */

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 10px rgba(63, 53, 48, .06);
  --shadow-md: 0 12px 32px rgba(63, 53, 48, .10);
  --shadow-lg: 0 26px 60px rgba(63, 53, 48, .16);

  --maxw: 1180px;
  --pad: 24px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
main:focus { outline: none; }

/* Short pages: the footer sits at the bottom of the screen instead of floating mid-page. */
body:not(.admin-body) { display: flex; flex-direction: column; min-height: 100vh; }
body:not(.admin-body) > main { flex: 1 0 auto; }   /* the skip link moves focus here; no ring around the whole page */

img, svg { max-width: 100%; }
img { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent-ink); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.section--dark, .footer, .admin-side { --focus: var(--accent); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }

/* Heading sizes for when the right level for the outline is not the right size for the design. */
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.h4 { font-size: 1.1rem; }

/* First thing a keyboard user reaches: jumps past the menu. Only visible when focused. */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--ink); color: var(--paper);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: 820px; }

.section {
  --section-bg: var(--paper);
  position: relative;
  padding: 88px 0;
  background: var(--section-bg);
}
.section--tight { padding: 56px 0; }
.section--tint { --section-bg: var(--paper-deep); }
.section--white { --section-bg: var(--white); }
.section--dark { --section-bg: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .lead, .section--dark .muted { color: rgba(250, 246, 241, .8); }
.section--dark h2 em { color: var(--accent); }

/* Scalloped divider: add .scallop to a section and its top edge becomes a row of
   soft bumps in the section's own colour, rising into the section above. */
.scallop::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -19px;
  height: 20px;
  background-image: radial-gradient(circle at 20px 20px, var(--section-bg) 19px, transparent 20px);
  background-size: 40px 20px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

.section-foot { margin: 40px 0 0; text-align: center; }
.stack > * + * { margin-top: 24px; }
.card > .btn-row { margin-top: 24px; }
section[id] { scroll-margin-top: 76px; }

.page-header {
  --section-bg: var(--paper-deep);
  position: relative;
  padding: 64px 0 72px;
  background: var(--section-bg);
  text-align: center;
}
.page-header h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
.page-header .lead { margin: 0 auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }      /* let long emails and selects shrink instead of widening the page */
.split--reverse > :first-child { order: 2; }
.split--top { align-items: start; }
.split--form { grid-template-columns: .8fr 1.2fr; }
.split .media { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.breadcrumb { margin-bottom: 24px; font-size: .92rem; color: var(--ink-soft); }
.breadcrumb a { color: inherit; }
.breadcrumb span[aria-hidden] { margin: 0 8px; opacity: .6; }

/* ---------- 4. Navbar ---------- */

.navbar {
  position: sticky; top: 0; z-index: 50;
  min-height: 77px;
  background: rgba(250, 246, 241, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(62, 150, 140, .32);
}
.brand-mark svg { width: 24px; height: 24px; fill: currentColor; }
.brand-name { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.brand-name small {
  margin-top: 3px;
  font-family: var(--font-body); font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .95rem; font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--paper-deep); color: var(--ink); }
.nav-link.active { background: var(--ink); color: var(--paper); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 0; border-radius: 50%;
  background: var(--paper-deep);
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.navbar.open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 5. Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 800; line-height: 1.2;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 18px rgba(62, 150, 140, .30); }
.btn-primary:hover { background: var(--accent-deep); color: var(--ink); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn-outline { border-color: var(--paper); color: var(--paper); }
.section--dark .btn-outline:hover { background: var(--paper); color: var(--ink); }

.btn-solid { background: var(--accent-ink); color: var(--white); }
.btn-solid:hover { background: #15554F; color: var(--white); }

.btn-danger { background: #B5483D; color: var(--white); }
.btn-danger:hover { background: #9C3A30; color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--paper-deep); color: var(--ink); }

.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 6. Hero + paw-print trail ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 104px;
  background:
    radial-gradient(circle at 88% 12%, rgba(243, 201, 176, .42), transparent 42%),   /* warm peach glow */
    radial-gradient(circle at 6% 92%, rgba(93, 184, 173, .18), transparent 40%),     /* accent glow */
    var(--paper);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy .lead { margin-bottom: 30px; }

.hero-media { position: relative; }
.hero-media .media {
  aspect-ratio: 4 / 5;
  border-radius: 46% 54% 44% 56% / 40% 42% 58% 60%;   /* soft, fluffy blob */
  border: 10px solid var(--white);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  max-width: 250px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: .9rem; font-weight: 700; line-height: 1.3;
}
.hero-badge strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--accent-ink); }

/* drawPawTrails() fills any [data-paw-trail] element with .paw prints. */
.paw-trail { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.paw {
  position: absolute;
  width: 30px; height: 30px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--r, 90deg));
  animation: paw-step 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.paw svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.section--dark .paw { color: var(--paper); }
.cta .paw, .notfound .paw { --paw-o: .18; }   /* these trails run behind centred text, so keep them faint */

@keyframes paw-step {
  0%   { opacity: 0;   transform: translate(-50%, -50%) rotate(var(--r, 90deg)) scale(.6); }
  6%   { opacity: var(--paw-o, .34); transform: translate(-50%, -50%) rotate(var(--r, 90deg)) scale(1); }
  58%  { opacity: var(--paw-o, .34); }
  78%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 90deg)) scale(1); }
}

/* ---------- 7. Media + placeholder (axMedia) ---------- */

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--paper-deep);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--round { aspect-ratio: 1; border-radius: 50%; }

.media--placeholder {
  display: grid; place-items: center;
  border: 2px dashed var(--dash);
  background:
    radial-gradient(circle at 30% 25%, rgba(243, 201, 176, .28), transparent 55%),
    var(--paper-deep);
  color: var(--ink-soft);
}
.media-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; text-align: center; }
.media-ph svg { width: 38px; height: 38px; fill: currentColor; opacity: .45; }
.media-label { font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.media--round .media-label { display: none; }
.media--round .media-ph svg { width: 55%; height: 55%; }

/* ---------- 8. Grids + cards ---------- */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.puppy-grid, .parent-grid, .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.parent-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 840px; margin-left: auto; margin-right: auto; }

.card, .service-card, .value-card, .info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.section--white .card, .section--white .service-card, .section--white .value-card, .section--white .info-card {
  background: var(--paper);
  box-shadow: none;
}
.service-card h3, .value-card h3, .info-card h3 { margin-bottom: 8px; }
.service-card p, .value-card p, .info-card p { color: var(--ink-soft); }

.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--accent-ink);
  font-size: 1.6rem;
}
.card-icon svg { width: 28px; height: 28px; fill: currentColor; }
.value-card:nth-child(4n+2) .card-icon { background: var(--accent-tint); color: var(--accent-ink); }
.value-card:nth-child(4n+3) .card-icon { background: #F9E4E5; color: #9B4A52; }

/* Puppy card */
.puppy-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.puppy-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.puppy-card-media { position: relative; display: block; text-decoration: none; }
.puppy-card-media .media { border-radius: 0; aspect-ratio: 1; }
.puppy-card-media .media--placeholder { border-width: 0 0 2px; }
.puppy-card-media .tag { position: absolute; top: 14px; left: 14px; box-shadow: var(--shadow-sm); }
.puppy-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 22px 24px 24px; }
.puppy-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.puppy-card-top h3 { margin: 0; }
.puppy-card-top h3 a { color: inherit; text-decoration: none; }
.puppy-card-top h3 a:hover { color: var(--accent-ink); }
.puppy-card-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.puppy-card-meta { margin: 0 0 14px; font-size: .95rem; color: var(--ink-soft); }
.puppy-card-body .btn { margin-top: auto; }
.puppy-card--placed .media img { filter: saturate(.75); }

/* Review card: who wrote it, the stars, what they said, then their puppy photos. */
.testi-card {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testi-head { display: flex; align-items: center; gap: 14px; }
.testi-head > div { min-width: 0; overflow-wrap: anywhere; }
.testi-head strong { display: block; line-height: 1.2; }
.testi-head > div span { font-size: .88rem; color: var(--ink-soft); }
.testi-card blockquote { margin: 0; flex: 1; overflow-wrap: anywhere; }

/* Profile picture (axAvatar): the photo, or the person's initial when there isn't one. */
.avatar { flex: none; width: 54px; height: 54px; }
.avatar--initial {
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-ink);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; line-height: 1;
}

/* Row of small photos that open in the photo viewer (axPhotoStrip). */
.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-strip-item {
  width: 72px; height: 72px;
  padding: 0; overflow: hidden;
  border: 0; border-radius: 14px;
  background: var(--paper-deep);
  cursor: zoom-in;
}
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.photo-strip-item:hover img { transform: scale(1.06); }
.photo-strip-item:focus-visible { border-radius: 14px; }

/* Photo viewer (axWireLightbox): one photo large on a dark backdrop. */
.lightbox-open { overflow: hidden; }
.lightbox {
  --focus: var(--accent);
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  padding: 64px 16px;
  background: rgba(34, 28, 25, .97);
}
.lightbox figure { display: grid; justify-items: center; gap: 12px; margin: 0; max-width: 100%; }
.lightbox img { max-width: min(100%, 1100px); max-height: calc(100vh - 160px); border-radius: var(--radius-md); object-fit: contain; }
.lightbox figcaption { min-height: 1.5em; color: var(--paper); font-size: .95rem; font-weight: 700; }
.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: rgba(34, 28, 25, .78); color: var(--white);   /* dark, so it reads on top of a bright photo too */
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
}
.lightbox-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lightbox-btn:focus-visible { border-radius: 50%; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 14px; top: 50%; margin-top: -24px; }

.stars { color: var(--star); font-size: 1.15rem; letter-spacing: 3px; line-height: 1; }
.stars .off { color: var(--dash); }

/* ---------- 9. Tags + chips ---------- */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4;
}
.tag--available { background: var(--accent-tint); color: var(--accent-ink); }
.tag--pending   { background: #FCEBC8; color: #7A4E0E; }
.tag--reserved  { background: #F9E0E2; color: #7A3138; }
.tag--sold      { background: #E9E2DA; color: #5F5148; }
.tag--sire      { background: var(--accent-tint); color: var(--accent-ink); }
.tag--dam       { background: #F9E0E2; color: #7A3138; }
.tag--new       { background: #FCEBC8; color: #7A4E0E; }
.tag--contacted { background: var(--accent-tint); color: var(--accent-ink); }
.tag--approved  { background: var(--accent-tint); color: var(--accent-ink); }
.tag--declined  { background: #E9E2DA; color: #5F5148; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  padding: 10px 20px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--white);
  font-family: var(--font-body); font-size: .95rem; font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-count { margin-left: 6px; font-weight: 600; }

/* ---------- 10. Puppy profile ---------- */

.profile { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start; }
.profile-gallery [data-thumb-main] .media { aspect-ratio: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.profile-info h1 { font-size: clamp(2.2rem, 4.4vw, 3.25rem); margin: 12px 0 14px; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb {
  width: 76px; height: 76px;
  padding: 0; overflow: hidden;
  border: 3px solid transparent; border-radius: 16px;
  background: var(--paper-deep);
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--line); }
.thumb.active { border-color: var(--accent-ink); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
.fact { padding: 14px 18px; border-radius: var(--radius-md); background: var(--paper-deep); }
.fact dt { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.fact dd { margin: 2px 0 0; font-weight: 800; }

.price-lg { font-family: var(--font-head); font-size: 2.3rem; font-weight: 600; line-height: 1; color: var(--accent-ink); }
.profile-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }

.health-box { margin: 22px 0; padding: 18px 20px; border-left: 5px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-wash); }
.health-box .h4 { margin-bottom: 6px; color: var(--accent-ink); }

.parent-minis { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 26px; }
.parent-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; line-height: 1.2;
}
.parent-mini:hover { box-shadow: var(--shadow-md); color: var(--ink); }
.parent-mini .media { flex: none; width: 48px; }
.parent-mini small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }

/* ---------- 11. Parents ---------- */

.parent-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}
.parent-card:target, .parent-card.is-target { box-shadow: 0 0 0 4px var(--accent), var(--shadow-md); }
.parent-card-media { position: relative; }
.parent-card-media .media { border-radius: 0; aspect-ratio: 4 / 3; }
.parent-card-media .media--placeholder { border-width: 0 0 2px; }
.parent-card-media .tag { position: absolute; top: 14px; left: 14px; box-shadow: var(--shadow-sm); }
.parent-card .thumbs { margin: 12px 24px 0; }
.parent-card .thumb { width: 56px; height: 56px; border-radius: 12px; }
.parent-card-body { padding: 22px 24px 26px; }
.parent-card-body h3 { margin-bottom: 4px; }
.parent-card-meta { font-weight: 700; color: var(--ink-soft); }
.parent-card-pups { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; }

/* ---------- 12. Forms ---------- */

.form-card { padding: 38px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-card > h2, .form-card > h3 { margin-bottom: 6px; }
.form-card > h2 + p, .form-card > h3 + p { margin-bottom: 24px; color: var(--ink-soft); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 18px; }
.field > label, .field > .label { font-size: .9rem; font-weight: 800; }
.field .req { color: #B5483D; }
.hint { font-size: .84rem; color: var(--ink-soft); }

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--field-line); border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent-ink);
}
.field ::placeholder { color: #776A60; opacity: 1; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; font-size: .95rem; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent-ink); }

/* Honeypot field for bots: in the DOM, out of sight. */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 26px 20px;
  border: 2px dashed var(--dash); border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover, .dropzone:focus-within { border-color: var(--accent-ink); background: var(--accent-wash); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dropzone strong { color: var(--ink); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone--small { padding: 14px 20px; }

/* Star rating. Markup: radios in the order 5,4,3,2,1, each followed by its <label>★</label>. */
.star-input { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* Empty stars are outlines and chosen stars are filled in, so the rating never depends on colour alone. */
.star-input label { font-size: 2.1rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #85776C; cursor: pointer; transition: transform .12s; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--star); -webkit-text-stroke-color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.form-msg { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 700; }
.form-msg--success { background: var(--accent-tint); color: var(--accent-ink); }
.form-msg--error { background: #FBE3E1; color: #7A2A22; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-list .card-icon { flex: none; width: 46px; height: 46px; margin: 0; font-size: 1.2rem; }
.contact-list small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a, .contact-list span { font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent-ink); }

/* ---------- 13. Gallery, CTA, empty state ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid .media { aspect-ratio: 1; border-radius: var(--radius-lg); }
.gallery-grid .media img { object-position: center 30%; transition: transform .4s; }   /* tall photos: keep the head in the square */
.gallery-grid .media:hover img { transform: scale(1.05); }

.cta { position: relative; text-align: center; }   /* no overflow:hidden here, it would clip the scallop */
.cta .container { position: relative; z-index: 1; }
.cta .lead { margin: 0 auto 30px; }
.cta .btn-row { justify-content: center; }

.empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 2px dashed var(--dash); border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
}
.empty svg { display: block; width: 46px; height: 46px; margin: 0 auto 10px; fill: var(--accent); opacity: .7; }
.empty h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.empty h1, .empty h3 { margin-bottom: 6px; }
.empty p { margin-bottom: 20px; color: var(--ink-soft); }

.loading { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--ink-soft); }

/* Page pieces: breed facts, check lists, steps, FAQ, 404 */

.stat-badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 8px; padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 700; line-height: 1.3;
}
.stat-badge strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--accent-ink); }

.stat-big { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--accent-ink); }

.check-list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-ink);
  font-size: .8rem; font-weight: 800;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { position: relative; padding-left: 56px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
}
.steps strong { display: block; }
.steps span { color: var(--ink-soft); }

.faq-list { display: grid; gap: 14px; }
.faq-list + h2 { margin-top: 56px; }
.faq-item { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.faq-item summary {
  position: relative;
  padding: 20px 64px 20px 26px;
  list-style: none;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.3;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  width: 32px; height: 32px; margin-top: -16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-deep); color: var(--accent-ink);
  font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { border-radius: var(--radius-md); }
.faq-answer { padding: 0 26px 24px; color: var(--ink-soft); }

.notfound { position: relative; overflow: hidden; padding: 96px 0 128px; text-align: center; }
.notfound .container { position: relative; z-index: 1; }
.notfound-code { font-family: var(--font-head); font-size: clamp(5.5rem, 20vw, 10rem); font-weight: 600; line-height: 1; color: var(--accent); }
.notfound .lead { margin: 0 auto 30px; }
.notfound .btn-row { justify-content: center; }

/* ---------- 14. Footer ---------- */

.footer {
  --section-bg: var(--ink-deep);
  position: relative;
  padding: 76px 0 28px;
  background: var(--section-bg);
  color: rgba(250, 246, 241, .8);
  font-size: .98rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer .brand, .footer .brand:hover { color: var(--paper); margin-bottom: 16px; }
.footer .brand-name small { color: var(--accent); }
.footer-title { margin-bottom: 14px; color: var(--paper); font-size: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--accent); }

.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--paper);
  transition: background .15s, transform .15s;
}
.social a:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .88rem;
}

/* ---------- 15. Admin ---------- */

.admin-body { background: var(--paper-deep); font-size: 1rem; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 430px; padding: 40px 36px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.login-card .brand { margin-bottom: 24px; }
.login-card h1 { margin-bottom: 22px; font-size: 1.9rem; }
.login-back { margin: 18px 0 0; text-align: center; }

.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }

.admin-side {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 16px;
  background: var(--ink);
  color: var(--paper);
}
.admin-side .brand, .admin-side .brand:hover { color: var(--paper); margin: 0 6px 22px; }
.admin-side .brand-name small { color: var(--accent); }
.admin-side .spacer { flex: 1; }
.admin-nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(250, 246, 241, .76);
  font: inherit; font-weight: 700; text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.admin-nav-btn:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.admin-nav-btn.active { background: var(--accent); color: var(--ink); }
.admin-nav-btn.active:focus-visible { outline-color: var(--paper); }
.admin-nav-btn.active .count { background: var(--ink); color: var(--paper); }
.admin-nav-btn .count {
  margin-left: auto;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-size: .76rem; font-weight: 800;
}

.admin-main { min-width: 0; padding: 28px 32px 64px; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-top h1 { margin: 0; font-size: 1.9rem; }

.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 22px; padding: 16px 20px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-weight: 700;
}
.banner--warn { background: #FFF3D6; border-color: #F0D48A; color: #6B4A0C; }
.banner--error { background: #FBE3E1; border-color: #E9A8A2; color: #7A2A22; }
.banner--ok { background: var(--accent-tint); border-color: #B4D8D2; color: var(--accent-ink); }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-tile { padding: 20px 22px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.stat-tile strong { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 600; line-height: 1.1; }
.stat-tile span { font-size: .9rem; color: var(--ink-soft); }

.panel { margin-bottom: 24px; padding: 24px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.35rem; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }   /* scrolls sideways on phones instead of squashing */
.admin-table th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: left;
  color: var(--ink-soft); white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-thumb { width: 54px; }
.admin-thumb .media { aspect-ratio: 1; border-radius: 12px; border-width: 1px; }
.admin-thumb .media-label { display: none; }
.admin-thumb .media-ph { padding: 0; }
.admin-thumb .media-ph svg { width: 24px; height: 24px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.review-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; padding-bottom: 0; }
.review-item:first-child { padding-top: 0; }
.review-item p { margin: 6px 0 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.review-item .stars { margin-top: 6px; }
.review-item .photo-strip { margin-top: 12px; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(63, 53, 48, .55);
}
.modal {
  display: flex; flex-direction: column;
  width: 100%; max-width: 660px; max-height: calc(100vh - 40px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px 0; }
.modal-head h2, .modal-head h3 { margin: 0; font-size: 1.5rem; }
.modal-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper-deep); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--line); }
.modal-body { padding: 20px 28px; overflow-y: auto; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 4px 28px 26px; }

/* Photo editor: thumbnails with move-earlier / move-later / remove buttons. The first one is the main photo. */
.upload-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upload-thumbs:empty { display: none; }
.upload-thumb { position: relative; width: 104px; height: 104px; overflow: hidden; border-radius: 14px; background: var(--paper-deep); }
.upload-thumb.is-main { box-shadow: 0 0 0 3px var(--accent); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-tools { position: absolute; top: 5px; left: 5px; right: 5px; display: flex; justify-content: flex-end; gap: 4px; }
.upload-tools button {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(63, 53, 48, .85); color: var(--white);
  font-size: 1rem; font-weight: 800; line-height: 1;
  cursor: pointer;
}
.upload-tools button:hover { background: var(--accent-deep); color: var(--ink); }
.upload-tools button[data-photo-remove] { margin-left: auto; }
.upload-tools button[data-photo-remove]:hover { background: #B5483D; color: var(--white); }
.upload-badge {
  position: absolute; left: 5px; bottom: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
}
.upload-badge--new { left: auto; right: 5px; background: var(--accent-ink); color: var(--white); }

.modal--sm { max-width: 470px; }
.modal > .form-msg { margin: 0 28px 16px; }
.is-busy [data-close] { opacity: .45; pointer-events: none; }

.select-sm {
  padding: 7px 10px;
  border: 1.5px solid var(--field-line); border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit; font-size: .9rem; font-weight: 700; color: inherit;
}
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--ink); text-align: left; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent-ink); }
.admin-empty { margin: 0; padding: 26px 12px; text-align: center; color: var(--ink-soft); }
.admin-who { font-size: .88rem; color: var(--ink-soft); }
.admin-top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.banner > :first-child { flex: 1 1 320px; }
.banner strong { display: block; }
.banner span { font-weight: 600; }

.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 200; display: grid; gap: 10px; width: min(92vw, 480px); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 14px 20px; border-radius: var(--radius-md); background: var(--ink); color: var(--paper); font-weight: 700; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; }
.toast--success { background: #1F5F59; }
.toast--error { background: #8E3229; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.detail-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.detail-list dt { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- 16. Responsive ---------- */

@media (max-width: 1180px) {
  .nav-link { padding: 8px 9px; font-size: .9rem; }
  .nav-cta { margin-left: 4px; }
}

@media (max-width: 940px) {
  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-badge { left: 0; }
  .hero > .paw-trail { top: 50%; }   /* keep the paws off the stacked headline and buttons */
  .split { gap: 36px; }
  .split--form { grid-template-columns: 1fr; }   /* forms need the full width sooner than photo-and-text rows */
  .profile { gap: 32px; }
}

/* Eight links plus the Apply button need about 1020px, so the hamburger starts here. */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--pad) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .navbar.open .nav-links { display: flex; }
  .nav-links { max-height: calc(100vh - 77px); overflow-y: auto; }   /* a long menu scrolls on a short screen */
  .nav-link { padding: 13px 16px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
}

@media (max-width: 860px) {
  .puppy-grid, .parent-grid, .testi-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .admin-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; }
  .admin-side [data-brand] { flex-basis: 100%; }
  .admin-side .brand { margin: 0 0 8px 6px; }
  .admin-side .spacer { display: none; }
  .admin-nav-btn { width: auto; padding: 9px 14px; }
  .admin-main { padding: 22px var(--pad) 56px; }
}

/* Photo-and-text rows and the puppy profile stay side by side on tablets and stack below this. */
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split > [data-photo] { width: 100%; max-width: 560px; margin: 0 auto; }
  .profile { grid-template-columns: 1fr; }
  .profile-gallery { width: 100%; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .page-header { padding: 48px 0 56px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 22px; }
  .lead { font-size: 1.1rem; }
}

@media (max-width: 620px) {
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .review-item { grid-template-columns: 48px minmax(0, 1fr); }
  .review-item .avatar { width: 48px; height: 48px; }
  .review-item .row-actions { grid-column: 1 / -1; }
  .detail-list { grid-template-columns: 1fr; gap: 2px; }
  .detail-list dd { margin-bottom: 12px; }
  .modal-head, .modal-body { padding-left: 20px; padding-right: 20px; }
  .modal-foot { padding: 4px 20px 22px; }
}

@media (max-width: 560px) {
  .puppy-grid, .parent-grid, .testi-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .facts { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
}

@media (max-width: 520px) {
  :root { --pad: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .hero-badge { position: static; max-width: none; margin-top: 16px; }
  .brand-name { font-size: 1.15rem; }
  .chip { padding: 9px 15px; font-size: .9rem; }
  .card, .service-card, .value-card, .info-card, .testi-card { padding: 24px 22px; }
  .contact-list { font-size: .94rem; }
  .contact-list li { gap: 12px; }
}

/* ---------- 17. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .paw { opacity: .2; }
  .cta .paw, .notfound .paw { opacity: .12; }
  .btn:hover, .puppy-card:hover, .social a:hover { transform: none; }
}
