/* =========================================================================
   PurrmeowCA — Scottish Fold & Straight Cattery
   Apple-inspired design system. One stylesheet for the whole site.
   ========================================================================= */

:root {
  /* Color palette — warm, elegant, feminine */
  --bg:           #ffffff;
  --bg-soft:      #fbf8f4;
  --bg-cream:     #f5ede3;
  --bg-dark:      #1d1d1f;
  --ink:          #1d1d1f;
  --ink-muted:    #6e6e73;
  --ink-subtle:   #a1a1a6;
  --line:         #e6e1db;
  --accent:       #c89b7b;      /* warm cappuccino */
  --accent-deep:  #a67a5b;
  --accent-soft:  #f1dfd1;
  --blush:        #e8c4c0;
  --gold:         #c9a76a;
  --success:      #4a8f5d;

  /* Typography */
  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-serif:   "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:     240ms;
  --dur:          600ms;
  --dur-slow:     1100ms;

  /* Layout */
  --nav-h:        64px;
  --maxw:         1240px;
  --maxw-narrow:  980px;
  --radius-sm:    10px;
  --radius:       18px;
  --radius-lg:    28px;

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(29,29,31,.06), 0 2px 6px rgba(29,29,31,.04);
  --shadow:       0 10px 30px rgba(29,29,31,.08), 0 4px 12px rgba(29,29,31,.04);
  --shadow-lg:    0 30px 80px rgba(29,29,31,.14), 0 8px 24px rgba(29,29,31,.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  overflow-x: hidden;

  /* Cute fixed paw-print backdrop.
     The cream base stays put while content scrolls over it.
     Plain <section> blocks have no background, so the pattern shows through;
     .section--cream / --soft / --dark / .tile / .parent__photo etc. stay opaque
     so the paw prints only peek through in the "empty" lanes.
     SVG is inline (no request) and low-opacity so it never fights text. */
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'><g fill='%23a67a5b'><g opacity='0.09'><ellipse cx='64' cy='78' rx='12' ry='15'/><ellipse cx='44' cy='56' rx='6' ry='8'/><ellipse cx='60' cy='44' rx='6' ry='8'/><ellipse cx='78' cy='46' rx='6' ry='8'/><ellipse cx='88' cy='62' rx='6' ry='8'/></g><g opacity='0.08' transform='translate(200 200) rotate(28)'><ellipse cx='0' cy='13' rx='12' ry='15'/><ellipse cx='-20' cy='-9' rx='6' ry='8'/><ellipse cx='-4' cy='-22' rx='6' ry='8'/><ellipse cx='15' cy='-19' rx='6' ry='8'/><ellipse cx='24' cy='-2' rx='6' ry='8'/></g><g opacity='0.07' transform='translate(175 60) rotate(-15)'><ellipse cx='0' cy='11' rx='9' ry='12'/><ellipse cx='-14' cy='-6' rx='4.5' ry='6'/><ellipse cx='-2' cy='-16' rx='4.5' ry='6'/><ellipse cx='11' cy='-14' rx='4.5' ry='6'/><ellipse cx='18' cy='-1' rx='4.5' ry='6'/></g></g></svg>");
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 280px 280px;
}
@media (prefers-reduced-motion: no-preference) {
  /* iOS Safari can jitter with background-attachment: fixed during momentum scroll.
     On small screens, swap to normal scroll-with-content to stay smooth. */
  @media (max-width: 768px) {
    body { background-attachment: scroll; }
  }
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-family: var(--font-serif); font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 500; letter-spacing: -0.025em; }
h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1em; color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--ink-muted); line-height: 1.55; max-width: 46ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
}
.muted { color: var(--ink-muted); }

/* ---------- Layout helpers ---------- */
.container  { max-width: var(--maxw);        margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.container--narrow { max-width: var(--maxw-narrow); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section    { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--cream { background: var(--bg-cream); }
.section--soft  { background: var(--bg-soft); }
.section--dark  { background: var(--bg-dark); color: #f5f5f7; }
.section--dark .muted,
.section--dark .lead { color: rgba(245,245,247,0.72); }
.section--dark .eyebrow { color: var(--blush); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr);   gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr);   gap: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; box-shadow: var(--shadow); }
.btn--ghost   { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light   { background: #fff; color: var(--ink); }
.btn--accent  { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.0);
  /* No backdrop-filter — iOS Safari treats position:fixed children of
     elements with backdrop-filter as position:absolute, which collapsed
     .nav__mobile to nav-height. Use solid background on scroll instead. */
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(251,248,244,0.94);
  border-bottom-color: rgba(0,0,0,0.06);
}
.nav__inner {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--blush) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 0.92rem; color: var(--ink); opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease);
  position: relative; padding-block: 4px;
}
.nav__link:hover { opacity: 1; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__cta { margin-left: 8px; }

.nav__burger {
  display: none;
  width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.04);
}
.nav__burger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; position: relative;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top:  6px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__burger span { background: transparent; }
  .nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__burger span::after  { transform: translateY(-6px) rotate(-45deg); }
  .nav.is-open .nav__mobile { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

.nav__mobile {
  position: fixed; inset: var(--nav-h) 0 0 0;
  /* Light translucent overlay — page behind shows through clearly,
     just enough tint to keep menu links legible.
     Safe now that .nav (parent) no longer has backdrop-filter — earlier
     that combination collapsed this fixed child to nav-height on iOS. */
  background: rgba(251,248,244,0.32);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  padding: 40px clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Plain links — dark serif on cream. */
.nav__mobile a:not(.btn) {
  font-family: var(--font-serif); font-size: 1.8rem; color: var(--ink);
}
/* CTA button keeps its own colors (.btn--primary etc.). Don't override the
   white-on-dark text by accident. */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 880px);
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;          /* stack content (text) above stage (video) */
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf8f4 0%, #f5ede3 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: auto -10% -30% -10%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(200,155,123,0.22), transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 860px; margin-inline: auto; text-align: center;
  padding-inline: clamp(20px, 4vw, 40px);
}
.hero__title { font-size: clamp(2.8rem, 7vw, 6rem); }
.hero__title em {
  font-style: italic; color: var(--accent-deep);
}
.hero__lead {
  margin: 24px auto 36px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-muted); max-width: 58ch;
}
.hero__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__stage {
  position: relative; z-index: 1;
  margin-top: 64px; padding-inline: clamp(20px, 4vw, 40px);
  max-width: var(--maxw); margin-inline: auto;
}
.hero__photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

/* Floating decorative photos — disabled on hero.
   The hero video + "New litter" badge are focal enough on their own;
   the 4 photos were relocated to .life__floats where they have room to breathe. */
.hero__floats { display: none; }

/* ---------- Scattered polaroids for the "Life at PurrmeowCA" section ---------- */
.life__floats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3.2vw, 44px);
  flex-wrap: wrap;
  margin: clamp(8px, 2vw, 24px) auto clamp(32px, 5vw, 56px);
  padding-block: 10px;                /* room for rotation + hover lift */
  max-width: 820px;
}
.life__float {
  width: clamp(88px, 11vw, 150px);
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 18px;
  background: var(--bg-soft);
  box-shadow: 0 14px 32px -12px rgba(29,29,31,.22), 0 4px 10px rgba(29,29,31,.08);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
  cursor: pointer;
}
.life__float--1 { transform: rotate(-6deg)  translateY(6px); }
.life__float--2 { transform: rotate(4deg)  translateY(-12px); }
.life__float--3 { transform: rotate(-3deg) translateY(10px); }
.life__float--4 { transform: rotate(5deg)  translateY(-6px); }
.life__float:hover {
  transform: rotate(0) translateY(-6px) scale(1.06);
  box-shadow: 0 22px 44px -14px rgba(29,29,31,.28), 0 6px 14px rgba(29,29,31,.1);
}
@media (max-width: 640px) {
  .life__floats { gap: 12px; }
  .life__float  { width: clamp(68px, 22vw, 108px); }
}
@media (prefers-reduced-motion: reduce) {
  .life__float { transition: none; }
  .life__float:hover { transform: rotate(0) scale(1.02); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-left.is-in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-right.is-in { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-scale.is-in { opacity: 1; transform: scale(1); }

.parallax { will-change: transform; }

/* Fade sequence stagger */
.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.stagger.is-in > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(2) { transition-delay: 90ms;  opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(3) { transition-delay: 180ms; opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(4) { transition-delay: 270ms; opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(5) { transition-delay: 360ms; opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(6) { transition-delay: 450ms; opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(7) { transition-delay: 540ms; opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(8) { transition-delay: 630ms; opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(9)  { transition-delay: 720ms;  opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(10) { transition-delay: 810ms;  opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(11) { transition-delay: 900ms;  opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(12) { transition-delay: 990ms;  opacity: 1; transform: translateY(0); }
/* Safety net: any child past the 12th still reveals so it never stays hidden */
.stagger.is-in > *:nth-child(n+13) { transition-delay: 1080ms; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .stagger > *, .parallax, .hero__float {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p.lead { margin-top: 1rem; }

/* ---------- Feature block (image + text) ---------- */
.feature__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  position: relative;
}
.feature__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.feature:hover .feature__image img { transform: scale(1.04); }
.feature__text h2 { margin-bottom: 1rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep);
}
.card__badge--sold { color: #fff; background: rgba(29,29,31,0.85); }
.card__badge--reserved { color: #fff; background: rgba(201,167,106,0.95); }
.card__body { padding: 20px 22px 22px; }
.card__title { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 6px; }
.card__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  color: var(--ink-muted); font-size: 0.88rem;
  margin-top: 2px; margin-bottom: 10px;
}
.card__tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 8px 0 14px;
}
.card__tag {
  font-size: 0.72rem; padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
}
.card__price {
  font-weight: 600; color: var(--ink); font-size: 1rem;
}
.card__footer {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.card__link {
  color: var(--accent-deep); font-weight: 600; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.card__link:hover .btn__arrow { transform: translateX(3px); }
.card__media-link { display: block; text-decoration: none; color: inherit; }
.card__titlelink { text-decoration: none; color: inherit; }
.card__titlelink:hover .card__title { color: var(--accent-deep); transition: color var(--dur-fast) var(--ease); }
.card__photobadge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(29,29,31,0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}

/* ---------- Photo mosaic (Life at PurrmeowCA) ---------- */
.photomosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* No explicit grid-auto-rows — let each row auto-size to its (square) items so
     the grid stays perfectly tight with no ghost whitespace above small tiles. */
  gap: 8px;
  margin-top: 36px;
}
.photomosaic__item {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  position: relative;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.photomosaic__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s var(--ease);
}
.photomosaic__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.photomosaic__item:hover img { transform: scale(1.06); }
/* The --big tile must also be square so its 2×2 span actually equals 2 rows tall
   (2 × col_width + gap). Without this, a portrait photo stretches the rows and
   leaves vertical gaps above the adjacent small tiles. */
.photomosaic__item--big { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
@media (max-width: 920px) {
  .photomosaic { grid-template-columns: repeat(3, 1fr); }
  .photomosaic__item--big { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 640px) {
  .photomosaic { grid-template-columns: repeat(2, 1fr); }
  .photomosaic__item--big { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }
}

/* ---------- Kitten detail page ---------- */
.kitten-detail { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .kitten-detail { grid-template-columns: 1fr; } }

.kitten-detail__gallery { position: sticky; top: 100px; }
@media (max-width: 820px) { .kitten-detail__gallery { position: static; } }

.kitten-hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: block;
  cursor: zoom-in;
  transition: transform var(--dur-fast) var(--ease);
}
.kitten-hero-photo:hover { transform: scale(1.01); }

.kitten-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.kitten-thumbs__item {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  padding: 0;
}
.kitten-thumbs__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kitten-thumbs__item:hover { transform: translateY(-2px); }
.kitten-thumbs__item.is-active { border-color: var(--accent-deep); }

.kitten-info__title { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.02; margin: 10px 0 10px; letter-spacing: -0.02em; }
.kitten-info__meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px; }
.kitten-info__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-cream);
  color: var(--ink);
  font-size: 0.88rem; font-weight: 500;
  border: 1px solid var(--line);
}
.kitten-info__price {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 4px;
}
.kitten-info__price--sold { color: var(--ink-muted); }
.kitten-info__price-caveat { color: var(--ink-muted); font-size: 0.88rem; margin-bottom: 18px; }
.kitten-info__bio { font-size: 1.05rem; color: var(--ink); line-height: 1.7; margin: 18px 0; }
.kitten-info__specs {
  display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px;
  padding: 20px 0; margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.kitten-info__specs dt { color: var(--ink-muted); font-weight: 500; }
.kitten-info__specs dd { margin: 0; }
.kitten-info__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.kitten-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 18px;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.kitten-back:hover { color: var(--accent-deep); transform: translateX(-3px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
  padding: 24px;
  animation: lbFade 0.18s ease;
}
.lightbox.is-open { display: flex; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: background var(--dur-fast) var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem; letter-spacing: 0.05em;
}

/* ---------- Value tiles ---------- */
.tile {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.tile__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.tile h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 8px; }
.tile p  { color: var(--ink-muted); font-size: 0.98rem; margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 24px; }
.stat__num {
  font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500; color: var(--ink); line-height: 1;
}
.stat__label { margin-top: 10px; color: var(--ink-muted); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* On dark sections the default --ink color goes invisible — use light tones */
.section--dark .stat__num   { color: #f5f5f7; }
.section--dark .stat__label { color: rgba(245,245,247,0.72); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonial ---------- */
.quote {
  max-width: 860px; margin-inline: auto; text-align: center;
}
.quote__text {
  font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.35; color: var(--ink); letter-spacing: -0.01em;
}
.quote__text::before { content: "\201C"; color: var(--accent); margin-right: 4px; }
.quote__text::after  { content: "\201D"; color: var(--accent); margin-left: 4px; }
.quote__author { margin-top: 22px; color: var(--ink-muted); font-size: 0.95rem; }

/* ---------- Parent hero (for parents.html) ---------- */
.parent {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding-block: clamp(40px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}
.parent:last-child { border-bottom: none; }
.parent--reverse { grid-template-columns: 1fr 1.1fr; }
.parent--reverse .parent__photo { order: 2; }
.parent--reverse .parent__text  { order: 1; }
.parent__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.parent__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease); }
.parent:hover .parent__photo img { transform: scale(1.05); }
.parent__title { font-family: var(--font-serif); font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 10px; }
.parent__role  { color: var(--accent-deep); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.82rem; font-weight: 600; margin-bottom: 18px; }
.parent__spec  { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin-top: 18px; font-size: 0.98rem; }
.parent__spec dt { color: var(--ink-muted); }
.parent__spec dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .parent, .parent--reverse { grid-template-columns: 1fr; }
  .parent--reverse .parent__photo { order: 0; }
  .parent--reverse .parent__text  { order: 1; }
}

/* ---------- Parent mini-gallery (appears below each queen/king tile) ---------- */
.parent__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: clamp(20px, 3vw, 36px) 0 clamp(8px, 2vw, 20px);
}
.parent__gallery-item {
  border: 0; padding: 0; margin: 0; background: none; cursor: pointer;
  aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.parent__gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s var(--ease);
}
.parent__gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.parent__gallery-item:hover img { transform: scale(1.06); }
.parent__gallery-item:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

/* ---------- Lightbox (shared by parent galleries) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15, 15, 17, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(0.96);
  transition: transform var(--dur) var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.14); border: 0; border-radius: 50%;
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Pinned image / side-by-side story ---------- */
.pinned {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.pinned__media {
  position: sticky; top: calc(var(--nav-h) + 40px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}
.pinned__media img { width: 100%; height: 100%; object-fit: cover; }
.pinned__story { display: grid; gap: clamp(40px, 6vw, 88px); padding-block: 24px; }
.pinned__step h3 { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
@media (max-width: 860px) { .pinned { grid-template-columns: 1fr; } .pinned__media { position: static; } }

/* ---------- Filter bar ---------- */
.filterbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 36px;
}
.chip {
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem; color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--ink-muted); font-weight: 500; }
.field input,
.field textarea,
.field select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  outline: none;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,155,123,0.15);
}
.field textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.field--row { grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }
.field__hint { font-size: 0.8rem; color: var(--ink-subtle); margin-top: 2px; }

/* File dropzone */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 32px 24px; text-align: center;
  background: var(--bg-soft);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  cursor: pointer;
}
.dropzone:hover { border-color: var(--accent); background: #fff; }
.dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__icon { margin: 0 auto 12px; color: var(--accent-deep); }
.dropzone small { color: var(--ink-muted); }
.dropzone__preview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-top: 18px;
}
.dropzone__preview img {
  aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%;
}
.dropzone__thumb { position: relative; }
.dropzone__thumb-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(29,29,31,0.82); color: #fff;
  border: 0; cursor: pointer; line-height: 1; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.dropzone__thumb-remove:hover { background: #000; transform: scale(1.08); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 4px;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}
.faq__q:hover { color: var(--accent-deep); }
.faq__toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--ink-muted);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.faq__item.is-open .faq__toggle { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease), padding var(--dur) var(--ease);
  opacity: 0;
}
.faq__item.is-open .faq__a { max-height: 400px; opacity: 1; padding-bottom: 28px; }
.faq__a p { color: var(--ink-muted); max-width: 70ch; }

/* ---------- Reviews / testimonials ---------- */
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  height: 100%;
}
.review__stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.review__text  { color: var(--ink); margin-bottom: 20px; flex-grow: 1; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--accent-deep);
  object-fit: cover; overflow: hidden;
}
.review__name { font-weight: 600; font-size: 0.95rem; }
.review__meta { font-size: 0.82rem; color: var(--ink-muted); }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; }
.ba__cell { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--bg-soft); }
.ba__cell img { width: 100%; height: 100%; object-fit: cover; }
.ba__cell::after {
  content: attr(data-label);
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.92); color: var(--ink);
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Info grid (contact page) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.info__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.info h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 6px; }
.info a { color: var(--accent-deep); font-weight: 500; }
.info a:hover { text-decoration: underline; }
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #f5ede3, #f1dfd1);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.5), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(200,155,123,0.25), transparent 50%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: rgba(245,245,247,0.8); padding-block: 64px 36px; }
.footer__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
.footer__brand .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { color: rgba(245,245,247,0.6); max-width: 34ch; }
.footer__col h5 { color: #fff; margin-bottom: 16px; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; }
.footer__col a { display: block; color: rgba(245,245,247,0.7); font-size: 0.92rem; padding-block: 6px; transition: color var(--dur-fast) var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer__social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer__bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: rgba(245,245,247,0.5); font-size: 0.82rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }

/* Page hero (smaller hero for inner pages) */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 40px;
  text-align: center;
  /* Fade INTO transparency at the bottom so the body paw-print pattern
     starts peeking through at the hero → section boundary (no hard seam). */
  background: linear-gradient(180deg, rgba(245,237,227,0.85) 0%, rgba(251,248,244,0.35) 60%, transparent 100%);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin-bottom: 16px; }
.page-hero .lead { margin-inline: auto; }
/* Tighten the transition from page-hero into the first content section on
   inner pages (parents/kittens/owners/contact). Otherwise the hero's
   padding-bottom + section's padding-top stack into a big empty band. */
.page-hero + .section { padding-top: clamp(16px, 2.4vw, 36px); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--ink-muted); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0.7;
}
.scroll-hint__line {
  width: 1px; height: 32px; background: var(--ink-muted);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
  50%     { transform: scaleY(1); opacity: 1; }
}

/* ===== ADMIN PANEL ===== */
.admin-body { background: #f8f6f2; min-height: 100vh; }
.admin-lock {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,20,24,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.admin-lock__card {
  background: #fff; border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.admin-lock__card h2 { font-family: var(--font-serif); margin-bottom: 8px; }
.admin-lock__card p  { color: var(--ink-muted); font-size: .92rem; }
.admin-lock__card input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem; outline: none; margin-top: 18px;
}
.admin-lock__card input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200,155,123,.15); }
.admin-lock__error { color: #b44; font-size: .85rem; margin-top: 10px; min-height: 1.2em; }

.admin-main { padding: calc(var(--nav-h) + 32px) 0 80px; }
.admin-toolbar {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(248,246,242,0.94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(20px,4vw,40px);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.admin-toolbar__status { font-size: .88rem; color: var(--ink-muted); }
.admin-toolbar__status strong { color: var(--ink); }
.admin-toolbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-toolbar .btn { padding: 10px 16px; font-size: .88rem; }
.admin-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .9rem;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease); z-index: 120;
}
.admin-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.admin-grid {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(20px,4vw,40px);
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}

.admin-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); padding: 20px;
  display: grid; grid-template-columns: 160px 1fr; gap: 20px;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.admin-card:hover { box-shadow: var(--shadow-sm); }
.admin-card[data-status="reserved"] { border-left: 4px solid var(--gold); }
.admin-card[data-status="sold"]     { border-left: 4px solid var(--ink); opacity: .85; }
.admin-card[data-status="available"]{ border-left: 4px solid var(--success); }
.admin-card__thumb {
  width: 160px; height: 200px; border-radius: 14px; overflow: hidden;
  background: var(--bg-soft); position: relative;
}
.admin-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-card__thumb:empty::after {
  content: "No image"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-subtle); font-size: .82rem;
}
.admin-card__body { display: grid; gap: 12px; }
.admin-card__row  { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.admin-card__field { display: grid; gap: 4px; }
.admin-card__field label {
  font-size: .72rem; color: var(--ink-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.admin-card__field input,
.admin-card__field textarea,
.admin-card__field select {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: .92rem; font-family: inherit; color: var(--ink);
  background: #fff; outline: none; width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.admin-card__field input:focus,
.admin-card__field textarea:focus,
.admin-card__field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,155,123,.15);
}
.admin-card__field textarea { resize: vertical; min-height: 70px; font-size: .9rem; line-height: 1.45; }

.status-pills { display: flex; gap: 6px; }
.status-pill {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: .82rem; font-weight: 600;
  color: var(--ink-muted); cursor: pointer; background: #fff;
  transition: all var(--dur-fast) var(--ease);
}
.status-pill:hover { color: var(--ink); border-color: var(--ink-muted); }
.status-pill.is-active[data-value="available"] { background: var(--success); color: #fff; border-color: var(--success); }
.status-pill.is-active[data-value="reserved"]  { background: var(--gold);    color: #fff; border-color: var(--gold); }
.status-pill.is-active[data-value="sold"]      { background: var(--ink);     color: #fff; border-color: var(--ink); }

.admin-card__footer {
  margin-top: 4px; display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--line); gap: 10px; flex-wrap: wrap;
}
.admin-card__id { font-size: .78rem; color: var(--ink-subtle); font-family: var(--font-mono); }
.admin-del {
  font-size: .82rem; color: #b44; background: transparent; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(180, 60, 60, .25);
  transition: all var(--dur-fast) var(--ease);
}
.admin-del:hover { background: #b44; color: #fff; }

.admin-add-slot {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--ink-muted);
  cursor: pointer; transition: all var(--dur-fast) var(--ease); background: transparent;
}
.admin-add-slot:hover { border-color: var(--accent); color: var(--accent-deep); background: rgba(255,255,255,.5); }
.admin-add-slot strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--font-serif); font-size: 1.3rem; }

.admin-empty {
  text-align: center; padding: 80px 40px; color: var(--ink-muted);
}

.admin-export-hint {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 16px 20px; border-radius: 14px; margin-bottom: 20px;
  font-size: .92rem; display: flex; gap: 14px; align-items: flex-start;
}
.admin-export-hint.is-hidden { display: none; }
.admin-export-hint svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-deep); }

@media (max-width: 720px) {
  .admin-card { grid-template-columns: 1fr; }
  .admin-card__thumb { width: 100%; height: 200px; }
}

/* ---------- Form error banner (mirror of .form__success) ---------- */
.form__success {
  padding: 18px; border-radius: 14px;
  background: rgba(74,143,93,0.08);
  border: 1px solid rgba(74,143,93,0.25);
  color: #2f5f3c;
}
.form__error {
  padding: 18px; border-radius: 14px;
  background: rgba(179,58,58,0.08);
  border: 1px solid rgba(179,58,58,0.28);
  color: #b33a3a;
  font-size: .95rem;
}

/* ---------- Admin tab switcher ---------- */
.admin-tabs {
  display: flex; gap: 6px;
  padding: 14px clamp(20px,4vw,40px) 0;
  max-width: var(--maxw); margin-inline: auto;
}
.admin-tab {
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-muted); font-weight: 600; font-size: .88rem;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  transition: all var(--dur-fast) var(--ease); font-family: inherit;
}
.admin-tab:hover { color: var(--ink); border-color: var(--ink-muted); }
.admin-tab.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* ---------- Admin: owner code list ---------- */
.admin-codes-list {
  display: grid; gap: 8px;
}
.admin-code-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px;
}
.admin-code-row__hash {
  font-family: var(--font-mono); font-size: .9rem;
  color: var(--ink); background: var(--bg-soft);
  padding: 4px 10px; border-radius: 6px;
}
.admin-code-row__note { font-size: .92rem; color: var(--ink); }
.admin-code-row__date { font-size: .78rem; margin-top: 2px; }

/* ---------- Admin: modals (review editor + code generator) ---------- */
.admin-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-modal[hidden] { display: none; }
.admin-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(29,29,31,0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.admin-modal__card {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--radius);
  width: 100%; max-width: 640px; max-height: 90vh;
  overflow: auto; box-shadow: var(--shadow-lg);
}
.admin-modal__head {
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-modal__head h3 { font-family: var(--font-serif); font-size: 1.3rem; margin: 0; }
.admin-modal__close {
  background: transparent; border: 0; font-size: 1.6rem; line-height: 1;
  color: var(--ink-muted); cursor: pointer; padding: 4px 8px;
}
.admin-modal__close:hover { color: var(--ink); }
.admin-modal__body { padding: 20px 24px; display: grid; gap: 14px; }
.admin-modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px;
}

/* ---------- Generated-code copy box ---------- */
.copy-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  border: 2px dashed var(--accent);
  background: var(--accent-soft);
  border-radius: 14px; padding: 22px 24px;
  font-family: var(--font-mono); font-size: 1.4rem;
  color: var(--ink); letter-spacing: 2px;
  text-align: center;
}
.copy-box span { flex: 1; word-break: break-all; }

/* ---------- Local preview banner (shown on kittens.html when admin has unsaved changes) ---------- */
.local-preview-banner {
  background: linear-gradient(90deg, var(--accent-soft), var(--blush));
  padding-block: 14px;
  border-block: 1px solid rgba(0,0,0,0.08);
  font-size: 0.95rem;
  color: var(--ink);
}

/* GoKitty verified breeder trust band */
.gokitty-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 40px 0 10px;
  padding: 22px 28px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
}
.gokitty-band__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  color: var(--accent-deep);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.gokitty-band__text { display: flex; flex-direction: column; gap: 4px; }
.gokitty-band__text strong {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink);
  font-weight: 500; letter-spacing: -0.01em;
}
.gokitty-band__text span { color: var(--ink-muted); font-size: 0.95rem; }

@media (max-width: 680px) {
  .gokitty-band { grid-template-columns: auto 1fr; row-gap: 12px; padding: 20px; }
  .gokitty-band .btn { grid-column: 1 / -1; justify-self: start; }
}

/* Marquee banner */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--bg-soft); padding-block: 18px;
}
.marquee__track {
  display: inline-flex; gap: 48px; white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink-muted);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   HERO VIDEO (home)
   A looping, muted portrait video of Matilda with her newborns.
   Falls back to the static poster image for prefers-reduced-motion
   and for browsers that can't play any of the <source> types.
   ============================================================ */

.hero__photo--video,
.hero__photo--static {
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  width: auto;
  max-width: 620px;
  margin-inline: auto;
  display: block;
  object-fit: cover;
  object-position: center 30%;  /* bias crop toward mum's face + nursing pile */
  background: var(--bg-soft);
}

.hero__photo--static {
  /* Hidden in motion-OK mode; revealed for prefers-reduced-motion. */
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo--video  { display: none; }
  .hero__photo--static { display: block; }
}

/* ---- "New litter" badge on the hero ---- */
.hero__newbadge {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  animation: hero-newbadge-drop 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.4s;
}

.hero__newbadge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e85a5a;
  box-shadow: 0 0 0 0 rgba(232, 90, 90, 0.6);
  animation: hero-newbadge-pulse 1.8s ease-out infinite;
}

@keyframes hero-newbadge-drop {
  from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes hero-newbadge-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(232, 90, 90, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(232, 90, 90, 0); }
  100% { box-shadow: 0 0 0 0   rgba(232, 90, 90, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__newbadge,
  .hero__newbadge-dot { animation: none; }
}

/* On narrow screens keep the badge visible and the video sized nicely */
@media (max-width: 640px) {
  .hero__photo--video,
  .hero__photo--static {
    aspect-ratio: 3 / 4;
    max-height: 72vh;
  }
  .hero__newbadge {
    font-size: 0.76rem;
    padding: 7px 13px 7px 10px;
    top: 16px;
  }
}
