/* =============================================================================
   Once Upon A Time Aussies — Variant A: "Storybook"
   Warm, homey, subtle watercolor washes. Mobile-first.
   ============================================================================= */

:root {
  /* Palette — sage + caramel on warm cream */
  --paper:        #f7f3ec;
  --paper-warm:   #fbf6ec;
  --ink:          #3a3530;
  --ink-soft:     #6a6259;
  --ink-mute:     #998d80;

  --sage:         #8aa97a;
  --sage-deep:    #6b8a5c;
  --sage-mist:    #d4dec9;
  --caramel:      #d4a574;
  --caramel-deep: #b5814b;
  --caramel-mist: #efddc4;
  --amber:        #e2b265;
  --sky:          #a4b8c4;
  --lilac:        #b9a8c4;
  --stone:        #b8aea3;
  --rose:         #c98a8a;

  --line:         rgba(58, 53, 48, 0.08);
  --shadow-sm:    0 1px 2px rgba(58,53,48,.04), 0 2px 8px rgba(58,53,48,.05);
  --shadow-md:    0 2px 4px rgba(58,53,48,.04), 0 12px 28px rgba(58,53,48,.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --tab-h: 64px;
  --top-h: 56px;

  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans:  'Nunito', system-ui, -apple-system, sans-serif;
  --script:'Caveat', cursive;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.script { font-family: var(--script); }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Selection — use the brand's sage accent */
::selection { background: var(--sage-mist); color: var(--sage-deep); }
::-moz-selection { background: var(--sage-mist); color: var(--sage-deep); }

/* ============================================================================
   Watercolor system — CSS gradients only, no filters
   ============================================================================ */
.wc-warm  { background-color: var(--paper-warm); }
.wc-sage  {
  background:
    radial-gradient(ellipse 80% 60% at 18% 30%, rgba(138,169,122,.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 82% 70%, rgba(212,165,116,.25), transparent 60%),
    var(--paper-warm);
}
.wc-cara  {
  background:
    radial-gradient(ellipse 70% 50% at 75% 22%, rgba(212,165,116,.32), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 78%, rgba(138,169,122,.20), transparent 60%),
    var(--paper-warm);
}
.wc-deep {
  background:
    radial-gradient(ellipse 80% 50% at 30% 18%, rgba(107,138,92,.55), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 82%, rgba(181,129,75,.40), transparent 60%),
    #5d6f4f;
  color: var(--paper-warm);
}

.wc-splash {
  height: 14px; width: 100%;
  background:
    radial-gradient(ellipse 30% 100% at 12% 50%, rgba(138,169,122,.45), transparent 70%),
    radial-gradient(ellipse 22% 100% at 40% 50%, rgba(212,165,116,.40), transparent 70%),
    radial-gradient(ellipse 28% 100% at 70% 50%, rgba(138,169,122,.35), transparent 70%),
    radial-gradient(ellipse 18% 100% at 90% 50%, rgba(212,165,116,.30), transparent 70%);
}

/* ============================================================================
   App shell — fluid container (was hard-capped at 440px; now responsive)
   ============================================================================ */
.app {
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--paper);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
}

/* Phones: comfortable mobile column, fills the viewport */
@media (min-width: 600px) {
  .app { max-width: 560px; }
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  background:
    linear-gradient(to bottom, rgba(247,243,236,.96), rgba(247,243,236,.86));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.brand { display: block; cursor: pointer; }
.brand__line1 {
  font-family: var(--serif);
  font-size: 18px; line-height: 1.05;
  color: var(--ink);
  display: block;
  white-space: nowrap;
}
.brand__line2 {
  font-family: var(--script);
  font-size: 16px; font-weight: 600;
  color: var(--caramel-deep);
  margin-top: -3px;
  letter-spacing: 0.02em;
  display: block;
}
.iconbtn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.iconbtn:active { transform: scale(.95); }

/* Tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0));
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(251, 246, 236, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.tabbar__inner {
  /* Auto-distributes however many tabs exist — add/remove tabs in app.jsx
     without touching this. */
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
  height: 100%;
  width: 100%;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--ink-soft);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 4px;
  transition: color .15s;
}
.tab.active { color: var(--sage-deep); }
.tab svg { width: 22px; height: 22px; }
.tab .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--sage-deep);
  margin-top: 2px;
  opacity: 0;
}
.tab.active .dot { opacity: 1; }

/* ============================================================================
   Sections + headings
   ============================================================================ */
.page-section { padding: 28px 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-deep);
}
.eyebrow::before {
  content: ''; display: inline-block; width: 18px; height: 1px;
  background: var(--caramel-deep);
}
.section-title {
  font-size: 32px; line-height: 1.05;
  margin: 8px 0 6px;
}
.section-title em {
  font-style: italic;
  color: var(--sage-deep);
}
.section-lede {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 18px;
}

/* ============================================================================
   Photo placeholder (watercolor wash)
   ============================================================================ */
.ph-portrait {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 35% 40%, rgba(212,165,116,.55), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(138,169,122,.45), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,138,138,.30), transparent 60%),
    linear-gradient(135deg, #e9e1d0, #d4dec9);
  color: rgba(58, 53, 48, .45);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px;
  line-height: 1.4;
}
.ph-portrait[data-variant="a"] {
  background:
    radial-gradient(ellipse at 40% 35%, rgba(138,169,122,.60), transparent 60%),
    radial-gradient(ellipse at 65% 75%, rgba(212,165,116,.45), transparent 60%),
    linear-gradient(135deg, #e9e1d0, #d4dec9);
}
.ph-portrait[data-variant="b"] {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212,165,116,.55), transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(184,174,163,.45), transparent 60%),
    linear-gradient(135deg, #efddc4, #e9e1d0);
}
.ph-portrait[data-variant="c"] {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(201,138,138,.45), transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(138,169,122,.45), transparent 60%),
    linear-gradient(135deg, #f0e0d8, #d4dec9);
}

/* ============================================================================
   Puppy card
   ============================================================================ */
.pcard {
  background: var(--paper-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
}
.pcard__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sage-mist);
  overflow: hidden;
}
.pcard__media .ph-portrait { position: absolute; inset: 0; }
.pcard__body { padding: 12px 14px 14px; }
.pcard__name {
  font-family: var(--serif);
  font-size: 22px; line-height: 1;
  margin: 0;
}
.pcard__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
}
.pcard__gender { display: inline-flex; align-items: center; }
.pcard__gender[data-gender="Female"] { color: var(--rose); }
.pcard__gender[data-gender="Male"]   { color: var(--sky); }
.pcard__meta {
  font-size: 12px; color: var(--ink-mute);
  display: flex; align-items: center; gap: 6px;
  margin: 2px 0 8px;
  min-width: 0;
}
.littername {
  font-family: var(--script);
  font-size: 13px;
  color: var(--caramel-deep);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); }
.pcard__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 2px;
}
.pcard__price {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  line-height: 1;
}
.pcard__price--sale { display: inline-flex; align-items: baseline; gap: 8px; }
.pcard__price-was { font-size: .72em; color: var(--ink-soft); text-decoration: line-through; opacity: .75; }
.pcard__price-now { color: var(--caramel-deep); }
.pcard__chips {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin: 0 0 8px;
}
.chip {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip--cert { background: var(--sage-mist); color: var(--sage-deep); border-color: transparent; }
.chip--litter {
  background: var(--caramel-mist); color: var(--caramel-deep); border-color: transparent;
  cursor: pointer; transition: filter .15s;
}
.chip--litter:hover { filter: brightness(.97); }
.chip--size { background: #dde6ea; color: #566b76; border-color: transparent; }

/* Status visual treatments */
.pcard[data-status="available"] { box-shadow: 0 0 0 1.5px var(--sage), var(--shadow-sm); }
.pcard[data-status="sold"] .pcard__media .ph-portrait { filter: grayscale(.6) brightness(.95); opacity: .8; }
.pcard[data-status="sold"] .pcard__name,
.pcard[data-status="sold"] .pcard__meta,
.pcard[data-status="sold"] .pcard__price { opacity: .65; }
.pcard[data-status="sold"]::after {
  content: 'sold';
  position: absolute; top: 22%; left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  font-family: var(--serif);
  font-style: italic;
  font-size: 52px;
  color: rgba(184, 174, 163, 0.95);
  border: 3px solid rgba(184, 174, 163, .85);
  padding: 2px 16px 4px;
  border-radius: 12px;
  pointer-events: none;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  color: var(--ink-soft);
}
.status-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status-pill[data-tone="sage"]    { background: var(--sage-mist);    color: var(--sage-deep); }
.status-pill[data-tone="caramel"] { background: var(--caramel-mist); color: var(--caramel-deep); }
.status-pill[data-tone="amber"]   { background: #f5e3c0;             color: #8a6a2f; }
.status-pill[data-tone="sky"]     { background: #d6e3ea;             color: #4d6a78; }
.status-pill[data-tone="lilac"]   { background: #e4d8eb;             color: #6e5a82; }
.status-pill[data-tone="stone"]   { background: #ddd4ca;             color: #6a5f54; }

/* ============================================================================
   Carousel controls
   ============================================================================ */
.carbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  opacity: 0; transition: opacity .15s;
}
.pcard__media:hover .carbtn,
.pcard__media:focus-within .carbtn,
.bigcar:hover .carbtn,
.bigcar:focus-within .carbtn { opacity: 1; }
.carbtn--prev { left: 8px; }
.carbtn--next { right: 8px; }
.carbtn--zoom { top: 8px; right: 8px; transform: none; opacity: 1; width: 30px; height: 30px; }

.dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
  pointer-events: none;
}
.dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.6);
  box-shadow: 0 0 2px rgba(0,0,0,.3);
}
.dots span.on { background: #fff; }

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform .12s, background .15s, color .15s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--sage-deep); color: var(--paper-warm); }
.btn--primary:hover { background: #5a7a4e; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--cara { background: var(--caramel); color: #fff; }
.btn--block { width: 100%; }

/* ============================================================================
   Forms
   ============================================================================ */
.field { display: block; margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138,169,122,.18);
}
.field textarea { resize: vertical; min-height: 100px; }

.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.filter-chip {
  flex: 0 0 auto;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.filter-chip.active {
  background: var(--ink);
  color: var(--paper-warm);
  border-color: var(--ink);
}

/* ============================================================================
   Hero / Story / Tiles
   ============================================================================ */
.hero { position: relative; padding: 28px 18px 32px; overflow: hidden; }
.hero__art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
}
.hero__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(251, 246, 236, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--sage-deep);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero__badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }

.hero__h1 {
  font-size: 38px;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.hero__h1 em { font-style: italic; color: var(--sage-deep); }
.hero__sub { margin: 10px 0 18px; color: var(--ink-soft); font-size: 16px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.story-tile {
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}
.story-tile h3 { font-size: 26px; margin: 6px 0 6px; }
.story-tile p { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.story-tile .sig {
  font-family: var(--script);
  font-size: 26px;
  color: var(--caramel-deep);
}

/* ============================================================================
   Bonuses + Testimonials
   ============================================================================ */
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bonus-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  position: relative;
  overflow: hidden;
}
.bonus-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, var(--caramel-mist), transparent 70%),
    var(--sage-mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep);
  margin-bottom: 10px;
}
.bonus-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 4px;
  font-weight: 400;
}
.bonus-card p { font-size: 12px; color: var(--ink-soft); margin: 0; line-height: 1.4; }

.testimonial {
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.testimonial__hero {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--sage-mist);
  border-radius: var(--radius-md);
}
.testimonial__hero .ph-portrait,
.testimonial__hero img { position: absolute; inset: 0; }
/* Review photos are family submissions — mixed orientations, some screenshots
   with text. Never crop them; letterbox over the sage placeholder instead. */
.testimonial__hero img { object-fit: contain; }
.testimonial__body {
  padding: 22px 20px 20px;
  position: relative;
}
.testimonial__body::before {
  content: none;
}
.testimonial__quote {
  position: relative;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 14px;
  font-style: italic;
  line-height: 1.55;
}
.testimonial__author { font-size: 13px; font-weight: 700; }
.testimonial__author .pup {
  font-family: var(--script);
  color: var(--caramel-deep);
  font-size: 16px;
  font-weight: 500;
}
.testimonial__meta { font-size: 11px; color: var(--ink-mute); }

/* ============================================================================
   Litter card + detail
   ============================================================================ */
.lcard {
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.lcard__cover {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.lcard__cover img,
.lcard__cover .ph-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lcard__cover .badge {
  position: absolute; bottom: 10px; left: 14px;
  background: rgba(251,246,236,.94);
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--ink); letter-spacing: .04em;
}
.lcard__body { padding: 14px 16px 16px; }
.lcard__title { font-size: 22px; margin: 0; }
.lcard__sub { font-size: 12px; color: var(--ink-mute); margin: 2px 0 10px; }
.lcard__stats {
  display: flex; gap: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.lcard__stats strong { display: block; color: var(--ink); font-size: 13px; font-weight: 700; }
.lcard__count-strip { display: flex; gap: 4px; margin-bottom: 12px; }
.lcard__count-strip span {
  flex: 1; height: 6px; border-radius: 3px;
  background: var(--sage-mist);
}
.lcard__count-strip span.sold     { background: var(--stone); }
.lcard__count-strip span.reserved { background: var(--caramel); }
.lcard__count-strip span.deposit  { background: var(--amber); }
.lcard__count-strip span.shots    { background: var(--sky); }
.lcard__count-strip span.coming   { background: var(--lilac); }

.detail-back {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}

.bigcar {
  position: relative;
  aspect-ratio: 5/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* ============================================================================
   About page bits
   ============================================================================ */
.about-hero { display: block; }
.about-hero__art {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  position: relative;
}
.about-hero__text { display: flex; flex-direction: column; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.stat-tile {
  padding: 14px 10px;
  background: var(--paper-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  text-align: center;
}
.stat-tile strong {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--sage-deep);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-tile span {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================================
   Parent/Dam info card
   ============================================================================ */
.parents-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.parents-card .parent { text-align: center; }
.parents-card .parent strong { display: block; font-weight: 700; margin-top: 4px; }
.parents-card .parent .meta { font-size: 11px; color: var(--ink-mute); }
.parents-card .parent .reg  { font-size: 10px; color: var(--ink-mute); margin-top: 2px; }

.info-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
}
.info-row .ico { color: var(--sage-deep); flex-shrink: 0; margin-top: 1px; }
.info-row .label {
  font-size: 12px; font-weight: 700; margin-bottom: 1px;
}
.info-row .value { font-size: 13px; color: var(--ink-soft); }

/* ============================================================================
   Parents page
   ============================================================================ */
/* Status pill (Active / Retired / …) — generic default + per-status tints */
.parent-status {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 999px;
  text-transform: uppercase;
  background: var(--sage-mist); color: var(--sage-deep);
}
.parent-status[data-status="Retired"] { background: #ece7df; color: var(--ink-mute); }

/* Clickable sire/dam cards on the litter-detail page */
.parents-card .parent--link { cursor: pointer; border-radius: var(--radius-sm); transition: background .15s; }
.parents-card .parent--link:hover { background: rgba(0,0,0,.03); }

/* Litters list inside the parent modal */
.parent-litters { margin-top: 18px; }
.parent-litters__label {
  font-size: 12px; font-weight: 700; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft);
}
.parent-litters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.parent-litters__chips .chip--litter { font-size: 12px; padding: 6px 12px; }

/* ============================================================================
   Turnstile (contact form)
   ============================================================================ */
.turnstile-field { display: flex; justify-content: center; min-height: 65px; }

/* ============================================================================
   Q&A accordion
   ============================================================================ */
.about-qa { margin-top: 44px; }
.about-qa__title { margin-bottom: 6px; }
.qa-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.qa-item {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qa-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left;
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  transition: color .15s;
}
.qa-item__q:focus { outline: 0; }
.qa-item__q:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: -2px; border-radius: var(--radius-md); }
.qa-item__q:hover { color: var(--sage-deep); }
.qa-item.open .qa-item__q { color: var(--sage-deep); }
.qa-item__chev {
  flex-shrink: 0;
  color: var(--caramel-deep);
  display: inline-flex;
  transition: transform .2s ease;
}
.qa-item.open .qa-item__chev { transform: rotate(90deg); }
.qa-item__a { padding: 0 18px 18px; }
.qa-item__a p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.qa-item__a p:last-child { margin-bottom: 0; }

/* ============================================================================
   CTA banners
   ============================================================================ */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  color: var(--paper-warm);
  text-align: center;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner h3 { color: inherit; font-size: 26px; margin-bottom: 6px; }
.cta-banner p { font-size: 14px; margin: 0 0 16px; opacity: .85; }

/* ============================================================================
   Zoom modal
   ============================================================================ */
.zoom-modal {
  position: fixed; inset: 0;
  background: rgba(58, 53, 48, .92);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .18s ease-out;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.zoom-modal__media {
  width: 100%; max-width: 380px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.zoom-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
}
.zoom-modal__nav {
  position: absolute; bottom: -54px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 12px;
}
.zoom-modal__nav button {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================================
   Puppy detail modal
   ============================================================================ */
.puppy-modal {
  position: fixed; inset: 0;
  background: rgba(58, 53, 48, 0.82);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .18s ease-out;
  overflow-y: auto;
}
.puppy-modal__card {
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-md);
  margin: auto;
}
.puppy-modal__media { position: relative; }
.puppy-modal__media .bigcar { aspect-ratio: 4/5; border-radius: 0; }
.puppy-modal__body { padding: 20px 20px 24px; }
.puppy-modal__close {
  position: absolute; top: 10px; left: 10px;
  z-index: 10;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
@media (min-width: 1024px) {
  .puppy-modal { padding: 32px; }
  .puppy-modal__card { max-width: 500px; }
  .puppy-modal__media .bigcar { aspect-ratio: 4/5; }
}

/* ============================================================================
   Turnstile slot placeholder
   ============================================================================ */
.turnstile-slot {
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 16px;
  font-size: 12px; color: var(--ink-soft);
}
.turnstile-slot .tick {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--sage-mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep);
  flex-shrink: 0;
}
.turnstile-slot .label {
  font-weight: 700; color: var(--ink);
  margin-bottom: 2px;
}
.turnstile-slot .sub { font-size: 10px; }

/* ============================================================================
   Cert tiles
   ============================================================================ */
.cert-row {
  display: flex; gap: 12px; margin-top: 12px;
}
.cert-tile {
  flex: 1;
  background: var(--paper-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 20px 14px;
  text-align: center;
}
.cert-tile .abbr {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--sage-deep);
}
.cert-tile .full {
  font-size: 10px; color: var(--ink-mute);
  letter-spacing: .06em; text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================================================
   Page transition (disabled — was causing stuck opacity:0 on re-render)
   ============================================================================ */
.page-fade { animation: none; flex: 1; min-width: 0; }

/* ============================================================================
   Layout utilities
   ============================================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-14 > * + * { margin-top: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ============================================================================
   DESKTOP FOUNDATION — ≥ 1024px
   ----------------------------------------------------------------------------
   Reuses every component from the mobile design with three structural shifts:
     1) Bottom tabbar → top navbar
     2) Container widens to 1200px, page padding grows
     3) Grids fan out (2 → 3-4 columns), hero becomes split layout
   The theme, color, type, and component vocabulary are identical to mobile.
   ============================================================================ */

.desktop-only { display: none !important; }

.topnav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  padding: 16px 40px;
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topnav__brand {
  display: flex; flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}
.topnav__links {
  display: flex; gap: 28px;
  margin-left: auto;
}
.topnav__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.topnav__link:hover { color: var(--ink); }
.topnav__link.active {
  color: var(--sage-deep);
  border-bottom-color: var(--sage-deep);
}

@media (min-width: 1024px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: flex !important; }

  .app {
    max-width: 100%;
    padding-bottom: 0;
  }

  /* Larger hero — side-by-side split (text left, art right) */
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 64px;
    padding-left: max(40px, calc((100vw - 1200px) / 2 + 40px));
    padding-right: max(40px, calc((100vw - 1200px) / 2 + 40px));
  }
  .hero__text {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
  }
  .hero__art {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 4/5;
    margin-bottom: 0;
    max-height: 640px;
  }
  .hero__h1 { font-size: 56px; }
  .hero__sub { font-size: 18px; max-width: 44ch; }

  /* Sections — wider gutters, bigger headlines */
  .page-section { padding: 56px 40px; max-width: 1200px; margin-left: auto; margin-right: auto; box-sizing: border-box; width: 100%; }
  .section-title { font-size: 42px; }
  .section-lede { font-size: 16px; max-width: 56ch; }

  /* Grids — fan out */
  .grid-2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .bonus-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* Litter cards — 2 per row, taller covers */
  .lcard { display: grid; grid-template-columns: 1fr; }

  /* Two-up litter grid on the homepage + listings */
  .page-section > .lcard + .lcard,
  .page-section > article.lcard:first-of-type {
    /* placeholder — see container below */
  }
  .litter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* Testimonials — 2 col */
  .testimonial { padding: 24px; }
  .stack-14 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stack-14 > * + * { margin-top: 0; }

  /* CTA banner — limit width, generous padding */
  .cta-banner { padding: 56px 40px; }
  .cta-banner h3 { font-size: 36px; }

  /* About — two-column with portrait left, text right */
  .about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 32px;
  }
  .about-hero__text { grid-column: 1; grid-row: 1; }
  .about-hero__art {
    grid-column: 2; grid-row: 1;
    aspect-ratio: 3/4;
    max-height: 600px;
    margin-bottom: 0;
  }
  .about-hero__text .stat-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-tile strong { font-size: 36px; }

  /* Litter detail — bigger cover, constrained so content is visible below the fold */
  .bigcar {
    aspect-ratio: 16/9;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    max-height: 60vh;
  }

  /* Forms — readable width, not viewport-full */
  form {
    max-width: 640px;
    margin: 0 auto;
  }

  /* Watercolor splash — full-width still */
  .wc-splash { height: 18px; }

  /* Bonuses page — list rather than 4-col grid */
  .bonuses-list .bonus-card {
    padding: 22px !important;
  }
}

/* Wide desktop — let things breathe more */
@media (min-width: 1440px) {
  .grid-2 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .hero__h1 { font-size: 64px; }
}

/* ============================================================================
   SITE FOOTER
   ============================================================================ */
.site-footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  padding: 32px 18px 24px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.site-footer__brand {
  display: flex; flex-direction: column;
  gap: 1px;
}
.site-footer__name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.1;
}
.site-footer__sub {
  font-family: var(--script);
  font-size: 18px;
  color: var(--caramel-deep);
}
.site-footer__loc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-mute);
}
.site-footer__col { display: flex; flex-direction: column; gap: 4px; overflow-wrap: break-word; word-break: break-word; min-width: 0; }
.site-footer__col a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(58,53,48,.15);
  text-underline-offset: 3px;
}
.site-footer__col a:hover { text-decoration-color: var(--sage-deep); }
.site-footer__social { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__social svg { flex-shrink: 0; }
.site-footer__col span { color: var(--ink-soft); }
.site-footer__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  margin-bottom: 4px;
}
.site-footer__bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer__credit {
  font-family: var(--script);
  font-size: 15px;
  color: var(--caramel-deep);
}

/* On mobile, give the footer extra breathing room above the fixed tabbar */
@media (max-width: 1023px) {
  .site-footer { padding-bottom: 32px; }
}

/* At tablet widths (600–1023px) .app is max-width:560px and centered.
   Break the topnav and footer out to full viewport width visually
   while keeping their content at the original padding positions. */
@media (min-width: 600px) and (max-width: 1023px) {
  .topbar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .topnav {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .site-footer__top,
  .site-footer__bottom {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================================
   Final desktop tweaks (additive)
   ============================================================================ */
@media (min-width: 1024px) {
  /* Align topnav content with the 1200px page sections */
  .topnav {
    padding-left: max(40px, calc((100vw - 1200px) / 2 + 40px));
    padding-right: max(40px, calc((100vw - 1200px) / 2 + 40px));
  }

  /* John: hide the small "Once Upon A Time Aussies" eyebrow on desktop — the
     headline carries the brand already at this scale */
  .hero .eyebrow { display: none; }

  /* John: keep the contact heading + form in the same centered column so
     "Tell me about your family" aligns with the form fields below it */
  .contact-wrap {
    max-width: 640px;
    margin: 0 auto;
  }
  /* Form rule above already constrains <form>; keep wrap-driven alignment */
  form { max-width: none; margin: 0; }

  /* Site footer goes editorial: 4 columns, generous padding */
  .site-footer {
    padding-top: 56px;
    padding-bottom: 32px;
    padding-left: max(40px, calc((100vw - 1200px) / 2 + 40px));
    padding-right: max(40px, calc((100vw - 1200px) / 2 + 40px));
    margin-top: 0;
  }
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
  }
  .site-footer__brand { flex: 0 0 220px; }
  .site-footer__col { flex: 0 0 auto; min-width: 160px; max-width: 220px; }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* =============================================================================
   Utility classes — replaces all former inline styles
   ============================================================================= */

/* Photo */
.photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Error boundary */
.error-page { padding: 40px 24px; text-align: center; color: var(--ink-soft); }
.error-page__msg { font-size: 18px; margin-bottom: 8px; }
.error-page__detail { font-size: 13px; }
.error-page__btn { margin-top: 16px; }

/* Puppy card — clickable */
.pcard { cursor: pointer; }

/* Puppy modal body */
.puppy-modal__head { margin-bottom: 6px; }
.puppy-modal__name { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; margin: 0; }
.puppy-modal__details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 12px;
}
.puppy-modal__details dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  padding-top: 2px;
}
.puppy-modal__details dd {
  font-size: 13px;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.puppy-modal__details-divider {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}
.puppy-modal__chips { margin-bottom: 12px; }
.puppy-modal__status { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.puppy-modal__price { font-size: 24px; }
.puppy-modal__desc { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 20px; }

/* Eyebrow size variant */
.eyebrow--xs { font-size: 10px; }

/* Multi-litter grouping on home page */
.litter-group { margin-bottom: 28px; }
.litter-group__name { font-family: var(--script); font-size: 20px; color: var(--caramel-deep); margin-bottom: 10px; }

/* Story tile action row */
.story-tile__action { margin-top: 14px; }

/* Section button with top gap */
.section-btn-gap { margin-top: 14px; }

/* Page section padding modifiers */
.page-section--pb-sm { padding-bottom: 8px; }
.page-section--pt-0  { padding-top: 0; }
.page-section--pt-sm { padding-top: 16px; }

/* Litters page */
.litters-page__title { font-size: 36px; }

/* Litter detail */
.bigcar--hero { aspect-ratio: 5/3; }
.litter-detail__title { font-size: 32px; }
.litter-pups__title { font-size: 26px; }
.filter-row { margin-top: 12px; }
.filter-empty { color: var(--ink-mute); text-align: center; padding: 20px 0; font-size: 13px; }

/* About page */
.about-page__title  { font-size: 32px; margin-top: 8px; }
.about-certs__title { font-size: 22px; margin-top: 24px; }
.about-story        { margin-top: 32px; }
.about-story p      { font-size: 15px; line-height: 1.6; color: var(--ink); margin-bottom: 14px; }
.about-promise      { margin-top: 18px; }
.about-promise__text { font-size: 16px; margin-top: 8px; color: var(--ink); font-style: italic; }
.about-cta-btn      { margin-top: 24px; }

/* Bonuses page */
.bonuses-page__title { font-size: 34px; }
.bonuses-list        { margin-top: 16px; }
.bonus-card--full    { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.bonus-card--full .bonus-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; }
.bonus-card__text    { flex: 1; min-width: 0; }
.bonus-card--full h4 { font-size: 19px; margin-bottom: 4px; }
.bonus-card--full p  { font-size: 13px; line-height: 1.5; margin: 0; }
.bonuses-cta         { margin-top: 24px; }

/* Contact page — thank you state */
.contact-thanks      { text-align: center; padding-top: 60px; }
.contact-thanks__avatar {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 24px;
  border: 1px solid var(--line); position: relative;
}
.contact-thanks__title { font-size: 30px; }
.contact-thanks .section-lede { max-width: 320px; margin: 12px auto 24px; }

/* Contact page — form */
.contact-form__title { font-size: 34px; }
.inquiry-form        { margin-top: 18px; }
.interest-chips      { display: flex; gap: 8px; flex-wrap: wrap; }
.form-error          { color: #c62828; font-size: 13px; margin-bottom: 10px; text-align: center; }
.btn--submit         { padding: 15px 18px; }
.form-disclaimer     { font-size: 11px; color: var(--ink-mute); text-align: center; margin-top: 14px; }
.form-disclaimer__email { color: var(--ink); }

/* Reviews modal */
.reviews-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 24, 18, 0.55);
  display: flex; align-items: flex-end;
  backdrop-filter: blur(2px);
}
.reviews-modal__panel {
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.reviews-modal__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.reviews-modal__title {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  margin: 4px 0 0; color: var(--ink);
}
.reviews-modal__body {
  overflow-y: auto;
  min-height: 0;
  padding: 16px 20px 32px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--caramel) transparent;
}
.reviews-modal__body::-webkit-scrollbar { width: 4px; }
.reviews-modal__body::-webkit-scrollbar-thumb { background: var(--caramel); border-radius: 4px; }
.reviews-modal__body::-webkit-scrollbar-track { background: transparent; }
.reviews-modal__body .testimonial {
  overflow: visible;
}
.reviews-modal__body .testimonial__hero {
  height: 0;
  padding-bottom: 62.5%;
  aspect-ratio: unset;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
@media (min-width: 600px) {
  .reviews-modal {
    align-items: center;
    justify-content: center;
  }
  .reviews-modal__panel {
    border-radius: var(--radius-lg);
    max-width: 560px;
    max-height: 80vh;
  }
}
