/* =========================================================================
   Brooklyn & Finley — Ragdoll Theme
   Palette inspired by the cats themselves: cream coat, seal-point smoke,
   blue eyes, dusty rose noses. Warm, soft, but crisp.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --cream:      #faf6ef;
  --cream-2:    #f3ebdf;
  --paper:      #fffdfa;
  --ink:        #38302b;
  --muted:      #8a7f76;
  --line:       #ece2d4;

  --point:      #6b5d52;   /* seal-point smoke */
  --point-dk:   #50443b;
  --rose:       #d98a86;   /* nose pink */
  --rose-dk:    #c5736f;
  --sky:        #6ea8d8;   /* eye blue */
  --sky-soft:   #e3eef8;

  --radius-lg: 22px;
  --radius-sm: 13px;
  --shadow:    0 14px 44px rgba(80, 60, 40, 0.13);
  --shadow-sm: 0 6px 18px rgba(80, 60, 40, 0.10);

  --display: "Fraunces", Georgia, serif;
  --body:    "Nunito", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--body);
  color: var(--ink);
}

body.kitten-bg {
  background:
    radial-gradient(16px 16px at 18px 22px, rgba(107,93,82,0.045) 42%, transparent 43%) 0 0/54px 54px,
    radial-gradient(16px 16px at 45px 49px, rgba(110,168,216,0.05) 42%, transparent 43%) 0 0/54px 54px,
    linear-gradient(160deg, var(--cream) 0%, #f6efe4 60%, var(--sky-soft) 140%);
  background-attachment: fixed;
}

/* ===== Navbar (injected by header.js) ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,253,250,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.navbar .nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.navbar .brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--point-dk);
  text-decoration: none;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar .brand .paw { color: var(--rose); }
.navbar ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; gap: 6px; align-items: center;
}
.navbar a.nav-link {
  text-decoration: none;
  color: var(--point);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.navbar a.nav-link:hover { background: var(--sky-soft); color: var(--point-dk); }
.navbar a.nav-link.active { background: var(--point); color: #fff; }

.nav-cart {
  position: relative;
  border: none;
  background: var(--rose);
  color: #fff;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 16px rgba(197,115,111,.28);
  transition: transform .05s ease, background-color .15s ease;
}
.nav-cart:hover { background: var(--rose-dk); }
.nav-cart:active { transform: translateY(1px); }
.nav-cart .cart-count {
  background: #fff; color: var(--rose-dk);
  border-radius: 999px; min-width: 20px; height: 20px;
  display: inline-grid; place-items: center;
  font-size: 0.74rem; font-weight: 900; padding: 0 5px;
}

/* ===== Layout ===== */
.wrap {
  max-width: 1020px;
  margin: 42px auto;
  padding: 0 22px;
}
.wrap.narrow { max-width: 720px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
  position: relative;
}
.card::after {
  content: "🐾";
  position: absolute; top: 16px; right: 20px;
  font-size: 20px; opacity: .55;
}

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 800;
  color: var(--rose-dk);
  margin: 0 0 8px;
}
.page-title {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--point-dk);
}
.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* ===== Buttons ===== */
.btn {
  appearance: none; border: none; cursor: pointer;
  font-family: var(--body); font-weight: 800;
  border-radius: 999px; padding: 13px 22px; font-size: .98rem;
  transition: transform .05s ease, background-color .15s ease, box-shadow .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--sky); color: #fff;
  box-shadow: 0 10px 20px rgba(110,168,216,.32);
}
.btn-primary:hover { background: #5b97c9; }
.btn-rose {
  background: var(--rose); color: #fff;
  box-shadow: 0 10px 20px rgba(197,115,111,.28);
}
.btn-rose:hover { background: var(--rose-dk); }
.btn-ghost {
  background: transparent; color: var(--point);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--cream); border-color: var(--point); }

/* ===== Slideshow (home) ===== */
.slide-stage {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background:
    radial-gradient(70% 100% at 50% 0%, var(--sky-soft), transparent 65%),
    linear-gradient(135deg, var(--cream), #fff);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.slide-stage img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .45s ease;
}
.slide-stage img.loaded { opacity: 1; }
.slide-stage .empty-msg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--muted); font-weight: 700; text-align: center; padding: 24px;
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; border-radius: 999px;
  width: 46px; height: 46px; font-size: 18px; font-weight: 900; line-height: 1;
  background: rgba(56,48,43,.5); color: #fff; cursor: pointer;
  transition: background-color .15s ease, transform .06s ease;
  backdrop-filter: blur(3px);
}
.slide-btn:hover { background: rgba(56,48,43,.72); }
.slide-btn:active { transform: translateY(-50%) scale(.95); }
#prev { left: 12px; }
#next { right: 12px; }
.slide-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; padding: 6px 10px;
  background: rgba(56,48,43,.32); border-radius: 999px; backdrop-filter: blur(3px);
}
.slide-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; transition: all .15s ease;
}
.slide-dots .dot.active { background: #fff; transform: scale(1.35); }

.caption-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; gap: 12px; flex-wrap: wrap;
}
.caption-bar .counter { color: var(--muted); font-weight: 700; font-size: .92rem; }
.bottom-buttons { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.bottom-buttons .btn { flex: 1; justify-content: center; min-width: 150px; }

/* ===== Gallery grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.gallery-grid figure {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm); cursor: pointer;
  aspect-ratio: 1/1;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-grid figure:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "See more" button — takes the place of the 4th tile in the initial grid */
.gallery-more {
  appearance: none; border: none;
  font-family: var(--body); cursor: pointer;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sky-soft), var(--cream));
  border: 1.5px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  color: var(--point-dk);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.gallery-more:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow);
  border-color: var(--sky);
  background: linear-gradient(135deg, #d8e9f6, var(--cream));
}
.gallery-more .plus {
  font-size: 2.6rem; line-height: 1;
  font-family: var(--display); font-weight: 400;
  color: var(--sky);
}
.gallery-more .label {
  font-size: 0.92rem; font-weight: 800; letter-spacing: .02em;
}
.gallery-more:disabled { opacity: .6; cursor: wait; }
.gallery-empty { color: var(--muted); margin-top: 20px; }

/* ===== Lightbox ===== */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(40,32,26,.78);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  padding: 30px; backdrop-filter: blur(4px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.popup-overlay img { max-width: 92%; max-height: 86%; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.popup-overlay .close-btn {
  position: absolute; top: 22px; right: 24px;
  background: #fff; color: var(--ink); padding: 8px 16px;
  border-radius: 999px; cursor: pointer; font-weight: 800; box-shadow: var(--shadow-sm);
}

/* ===== Forms (contact + upload shared) ===== */
.form-grid { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; gap: 7px; }
label { font-weight: 800; color: var(--point-dk); font-size: .95rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); border-radius: var(--radius-sm);
  font-size: 16px; font-family: var(--body); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 5px var(--sky-soft); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ===== Footer ===== */
.site-footer {
  text-align: center; color: var(--muted);
  font-size: .9rem; padding: 36px 20px 48px;
}
.site-footer .paw { color: var(--rose); }

/* ===== Mobile ===== */
@media (max-width: 560px) {
  .card { padding: 24px; }
  .navbar .nav-inner { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .navbar .brand { font-size: 1rem; }
  .navbar a.nav-link { padding: 7px 11px; font-size: .9rem; }
  .bottom-buttons .btn { min-width: 0; }
}
