/* ============================================
   Just4Paws Grooming Studio — Cyprus
   ============================================ */

:root {
  --pink-hot: #b98a95;
  --pink-deep: #8a5b63;
  --pink-mid: #d4b8bc;
  --pink-light: #efe6e4;
  --pink-pale: #faf8f6;
  --gold: #c3a572;
  --ink: #3d3733;
  --ink-soft: #746b65;
  --white: #ffffff;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  /* Always a dark strip in both themes, like the footer - not tied to
     --ink, which flips to a light color for body text in dark mode. */
  --topbar-bg: #3d3733;
  /* Likewise always a light color on that always-dark strip - --pink-light
     flips to a dark shade in dark mode (for use as a background tint
     elsewhere), which would make topbar text unreadable. */
  --topbar-text: #f3e4e1;
  --shadow: 0 10px 30px rgba(61, 55, 51, 0.15);
  --radius: 20px;
  /* Overwritten live by script.js (measured from the actual rendered DOM) —
     these are just a sane first-paint fallback before JS runs. */
  --header-height: 120px;
  --topbar-height: 40px;
  --font-heading: 'Baloo 2', 'Quicksand', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

/* Dark theme: applied automatically when the OS is set to dark (unless the
   visitor explicitly chose light), and always when they explicitly choose
   dark via the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink-hot: #d9899a;
    --pink-deep: #e7aab6;
    --pink-mid: #a97885;
    --pink-light: #4a3b40;
    --pink-pale: #221b1e;
    --gold: #d9b87e;
    --ink: #f3ece9;
    --ink-soft: #c7bab5;
    --white: #ffffff;
    --surface: #332a2e;
    --header-bg: rgba(38, 31, 34, 0.88);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --success-bg: #163a26;
    --success-text: #8fe3ad;
  }
  /* The booking page's bright pink gradient (built from --pink-hot/
     --pink-deep, which flip to light, vivid shades in dark mode) stood out
     against every other page's subdued dark background - give it the same
     background as Services/Gallery/About/FAQ instead. */
  :root:not([data-theme="light"]) section.booking { background: var(--pink-pale); color: var(--ink); }
  :root:not([data-theme="light"]) .booking .section-tag { background: var(--pink-light); color: var(--pink-deep); }
  :root:not([data-theme="light"]) .booking .section-head h2 { color: var(--pink-deep); }
  :root:not([data-theme="light"]) .booking .section-head p { color: var(--ink-soft); }
  :root:not([data-theme="light"]) .booking-info-item .icon-circle { background: var(--pink-light); color: var(--pink-deep); }
  :root:not([data-theme="light"]) .booking-info-item span,
  :root:not([data-theme="light"]) .booking-info-item a { color: var(--ink-soft); }
}
[data-theme="dark"] section.booking { background: var(--pink-pale); color: var(--ink); }
[data-theme="dark"] .booking .section-tag { background: var(--pink-light); color: var(--pink-deep); }
[data-theme="dark"] .booking .section-head h2 { color: var(--pink-deep); }
[data-theme="dark"] .booking .section-head p { color: var(--ink-soft); }
[data-theme="dark"] .booking-info-item .icon-circle { background: var(--pink-light); color: var(--pink-deep); }
[data-theme="dark"] .booking-info-item span,
[data-theme="dark"] .booking-info-item a { color: var(--ink-soft); }
:root[data-theme="dark"] {
  --pink-hot: #d9899a;
  --pink-deep: #e7aab6;
  --pink-mid: #a97885;
  --pink-light: #4a3b40;
  --pink-pale: #221b1e;
  --gold: #d9b87e;
  --ink: #f3ece9;
  --ink-soft: #c7bab5;
  --white: #ffffff;
  --surface: #332a2e;
  --header-bg: rgba(38, 31, 34, 0.88);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --success-bg: #163a26;
  --success-text: #8fe3ad;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Both the topbar and header stay pinned now, so anchored scrolls need
     to clear both. */
  scroll-padding-top: calc(var(--header-height) + var(--topbar-height));
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--pink-pale);
  line-height: 1.6;
  overflow-x: hidden;
  /* On mouse/trackpad devices, vertical swipes are handled entirely by our
     paging JS; letting the browser also start its own native scroll on the
     same gesture is what causes a single swipe to advance two pages. On a
     touch-primary device (phone/tablet) the paging JS steps aside instead
     (see script.js) and the page scrolls + pinch-zooms natively, so pan-y
     needs to be allowed there too. */
  touch-action: pan-x pinch-zoom;
}
@media (pointer: coarse) {
  body { touch-action: auto; }
}

input, textarea, select {
  touch-action: manipulation;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--pink-deep);
  margin-bottom: 12px;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

section:not(.hero), footer {
  padding: 48px 0;
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--topbar-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page {
  position: relative;
  /* Unlike every other page, Home sits below BOTH the (non-sticky) topbar
     and the sticky header while at the top of the page, so it needs to
     leave room for both, not just the header. */
  min-height: calc(100vh - var(--header-height) - var(--topbar-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer { padding: 30px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(61, 55, 51, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(61, 55, 51, 0.45); }

.btn-outline {
  background: var(--surface);
  color: var(--pink-deep);
  border: 2px solid var(--pink-mid);
}
.btn-outline:hover { background: var(--pink-light); }

.btn-block { width: 100%; justify-content: center; }

/* ===== Top bar =====
   Sticks directly above the header so the two form one persistent bar -
   neither scrolls out of view. header's sticky `top` offset is set to
   --topbar-height (measured live in script.js) so it sits flush below. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--topbar-text); }
.topbar .topbar-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar i { color: var(--gold); margin-right: 6px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
}
.lang-switch select {
  background: rgba(255, 255, 255, 0.1);
  color: var(--topbar-text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 3px 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-switch select:focus { outline: 1px solid var(--pink-mid); }
.lang-switch select option { color: var(--ink); background: var(--surface); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--gold);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease;
}
.theme-toggle i {
  /* Overrides the .topbar i { margin-right: 6px } rule, which would push
     this icon off-center since it's the button's only child. */
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.2); }
.theme-toggle:focus-visible { outline: 1px solid var(--pink-mid); }

/* ===== Header ===== */
header {
  position: sticky;
  top: var(--topbar-height);
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(61, 55, 51, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--pink-deep);
  font-weight: 700;
}

.logo .paw-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 6px 14px rgba(61, 55, 51, 0.35);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--pink-hot);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--pink-deep); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--pink-deep);
  border-radius: 3px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Page dots (right-side section nav) ===== */
.page-dots {
  position: fixed;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dot-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.dot-link .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink-mid);
  border: 2px solid transparent;
  transition: background 0.25s ease, transform 0.25s ease;
}
.dot-link .dot-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.dot-link:hover .dot-label { opacity: 1; transform: translateX(0); }
.dot-link:hover .dot { background: var(--pink-deep); }
.dot-link.active .dot {
  background: var(--pink-deep);
  transform: scale(1.35);
}
.dot-link.active .dot-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--pink-deep);
}

/* ===== Hero ===== */
.hero {
  padding: 40px 0;
  background: radial-gradient(circle at 15% 20%, var(--pink-light), transparent 55%),
              radial-gradient(circle at 90% 10%, var(--pink-light), transparent 45%),
              linear-gradient(180deg, var(--pink-pale), var(--surface));
}

.hero .container { padding-top: 24px; }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas: "title art" "body art";
  column-gap: 50px;
  row-gap: 0;
  align-items: center;
}
.hero-title { grid-area: title; }
.hero-art { grid-area: art; }
.hero-body { grid-area: body; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 .title-span {
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art .blob {
  position: absolute;
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, var(--pink-mid), var(--pink-hot));
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(0, -18px) rotate(6deg); }
}

.hero-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  text-align: center;
  width: 320px;
}
.hero-card .paw-icon {
  font-size: 4rem;
  margin-bottom: 12px;
}
.hero-card h3 { font-family: var(--font-heading); color: var(--pink-deep); margin-bottom: 6px; }
.hero-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }

.floating-chip {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip-1 { top: 6%; left: -6%; color: var(--pink-deep); animation: float 6s ease-in-out infinite; }
.chip-2 { bottom: 10%; right: -8%; color: var(--gold); animation: float 7s ease-in-out infinite reverse; }

/* ===== Trust mini (small info boxes, left side of the hero) ===== */
.trust-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  max-width: 420px;
}
.trust-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(61, 55, 51, 0.08);
}
.trust-mini-item i { color: var(--pink-hot); font-size: 1.2rem; }
.trust-mini-item strong { display: block; color: var(--ink); font-size: 0.9rem; }
.trust-mini-item span { font-size: 0.8rem; color: var(--ink-soft); }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 14px;
  box-shadow: 0 6px 20px rgba(61, 55, 51, 0.08);
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--pink-light);
}
.service-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--pink-light);
  color: var(--pink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.service-card h3 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }
.service-card p { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.service-card .popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-mid), var(--pink-hot));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery-item:nth-child(3n+1) { background: linear-gradient(135deg, #d8c3bf, var(--pink-hot)); }
.gallery-item:nth-child(3n+2) { background: linear-gradient(135deg, var(--pink-deep), #5a4349); }
.gallery-item:nth-child(3n) { background: linear-gradient(135deg, var(--gold), #d8c3bf); }
.gallery-item:hover { transform: scale(1.04); }
.gallery-item span.label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0,0,0,0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===== About ===== */
.about-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.about-text h2 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--pink-deep); margin-bottom: 18px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.about-list { margin-top: 20px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 600;
}
.about-list i { color: var(--pink-hot); margin-top: 3px; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(61,55,51,0.06);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question i { color: var(--pink-hot); transition: transform 0.25s ease; }
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--ink-soft);
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

/* ===== Booking ===== */
section.booking {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-hot));
  color: var(--white);
  padding: 24px 0;
}
.booking .section-head {
  margin-bottom: 10px;
  /* Wide enough that the heading/subheading can sit on one line instead
     of wrapping, down to the general .section-head 640px cap. */
  max-width: none;
}
.booking .section-head h2 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
}
.booking .section-head p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.booking .section-tag { background: rgba(255,255,255,0.2); color: var(--white); }

.booking-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: flex-start;
}

.booking-info { display: flex; flex-direction: column; gap: 10px; }
.booking-info-item { display: flex; gap: 16px; align-items: flex-start; }
.booking-info-item .icon-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.booking-info-item strong { display: block; margin-bottom: 4px; }
.booking-info-item span, .booking-info-item a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

.booking-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 5px; }
.form-group label { display: block; font-weight: 700; color: var(--ink); font-size: 0.82rem; margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 7px 12px;
  border-radius: 10px;
  border: 2px solid var(--pink-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--pink-pale);
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--pink-hot);
}
.form-group textarea { resize: vertical; min-height: 26px; }
.booking-form .btn { padding: 8px 24px; }
.form-success {
  display: none;
  background: var(--success-bg, #e7f8ee);
  color: var(--success-text, #1a7f4e);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }

/* ===== Footer ===== */
footer {
  background: #2b2622;
  color: rgba(255,255,255,0.75);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col h4 { color: var(--white); font-family: var(--font-heading); margin-bottom: 18px; font-size: 1.05rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--pink-mid); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--pink-hot); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(61,55,51,0.4);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
  font-size: 1.2rem;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .blob, .floating-chip { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Stack title -> mood card -> body text (lead + trust boxes) in that
     order on one column, instead of the desktop two-column layout. */
  .hero .container {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "art" "body";
    row-gap: 6px;
  }
  .booking-wrap { grid-template-columns: 1fr; }

  /* Booking: once info+form stack into one column at this width, the
     content is taller than most laptop/tablet screens - compact every
     piece and keep name/phone etc. paired two-up instead of stacking
     every field on its own line. */
  section.booking { padding: 14px 0; }
  .booking .section-head { margin-bottom: 6px; }
  .booking .section-head h2 { font-size: 1.25rem; }
  .booking .section-head p { font-size: 0.78rem; }
  .booking-wrap { gap: 8px; }
  .booking-info { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
  .booking-info-item { flex: 1 1 100%; gap: 8px; align-items: center; }
  .booking-info-item .icon-circle { width: 26px; height: 26px; font-size: 0.7rem; }
  .booking-info-item strong { display: inline; margin-right: 4px; font-size: 0.78rem; }
  .booking-info-item span, .booking-info-item a { font-size: 0.78rem; }
  .booking-form { padding: 8px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .form-group { margin-bottom: 3px; }
  .form-group label { font-size: 0.7rem; margin-bottom: 2px; }
  .form-group input, .form-group select, .form-group textarea { padding: 5px 8px; font-size: 0.78rem; }
  .form-group textarea { min-height: 18px; }
  .booking-form .btn { padding: 6px 20px; font-size: 0.85rem; }
}

/* Short viewports (most laptops at native height): the hero text column
   (now including the trust-mini boxes) can end up taller than the
   available height even though there's plenty of width to spare - trim
   its vertical rhythm specifically rather than its width-based layout. */
@media (max-height: 820px) and (min-width: 1025px) {
  .hero { padding: 20px 0; }
  .hero .container { padding-top: 0; }
  .hero h1 { margin-bottom: 10px; }
  .hero p.lead { margin-bottom: 16px; }
  .trust-mini { margin-top: 12px; gap: 6px; }
  .trust-mini-item { padding: 6px 14px; }
  .trust-mini-item i { font-size: 0.95rem; }
  .trust-mini-item strong { font-size: 0.82rem; }
  .trust-mini-item span { font-size: 0.72rem; }
}

@media (max-width: 1024px) {
  section:not(.hero), footer { padding: 32px 0; }
  section:not(.hero), footer {
    min-height: calc(100vh - var(--header-height) - var(--topbar-height));
  }
  .home-page {
    min-height: calc(100vh - var(--header-height) - var(--topbar-height));
  }
  footer { padding: 24px 0; }
  .topbar .container { justify-content: center; }
  .topbar .topbar-links { justify-content: center; font-size: 0.78rem; gap: 12px; }
  .page-dots { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 0 24px;
    gap: 20px;
    box-shadow: 0 12px 20px rgba(61,55,51,0.1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    pointer-events: none;
  }
  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    padding: 24px;
    pointer-events: auto;
  }
  .hamburger { display: flex; }
  .nav-cta .btn-outline { display: none; }
  /* Shrink the navbar chrome enough that the logo + Book Now + hamburger
     fit one row without overflowing the viewport width. */
  .navbar { padding: 12px 16px; }
  .logo { font-size: 1.2rem; gap: 7px; }
  .logo .paw-badge { width: 34px; height: 34px; font-size: 1rem; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 9px 16px; font-size: 0.82rem; }
  .hamburger { padding: 6px; }
  /* The hero illustration (blob + floating chips) is sized for desktop and
     was pushing the home page far taller than one mobile screen - drop the
     decorative pieces but keep the mood card, shrunk and stacked below the
     text, and tighten the text column so Home still fits in view. */
  .hero { padding: 8px 0; }
  .hero .container { padding-top: 0; }
  .hero-art .blob, .floating-chip { display: none; }
  .hero-card { width: 100%; max-width: 260px; margin: 0 auto; padding: 10px; }
  .hero-card .paw-icon { font-size: 1.9rem; margin-bottom: 2px; }
  .hero-card h3 { font-size: 0.9rem; margin-bottom: 2px; }
  .hero-card p { font-size: 0.7rem; margin-bottom: 0; line-height: 1.2; }
  /* With the illustration gone, the hero column fills the full width -
     center everything on phone/tablet instead of leaving it hugging left. */
  .hero-title, .hero-body { text-align: center; align-items: center; display: flex; flex-direction: column; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); margin-bottom: 8px; }
  .hero p.lead { font-size: 0.92rem; margin-bottom: 12px; }
  .trust-mini { margin-top: 10px; gap: 6px; max-width: 420px; }
  .trust-mini-item { padding: 8px 14px; }

  /* Give the mobile hero some personality: a livelier backdrop, the mood
     card and trust boxes drop in at a playful little tilt like stickers
     instead of sitting flat, and each trust icon gets a colorful badge. */
  .hero {
    background:
      radial-gradient(circle at 12% 12%, var(--pink-light), transparent 50%),
      radial-gradient(circle at 90% 6%, var(--gold) 0%, transparent 30%),
      radial-gradient(circle at 85% 90%, var(--pink-mid), transparent 40%),
      linear-gradient(180deg, var(--pink-pale), var(--surface));
  }
  .hero-title h1 { animation: popInFlat 0.5s ease both; }
  .hero-card {
    border: 2px solid var(--pink-light);
    animation: popInTiltL 0.5s 0.1s ease both;
  }
  .hero-body .lead { animation: popInFlat 0.5s 0.15s ease both; }
  .trust-mini-item { padding: 6px 14px; }
  .trust-mini-item i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 1px;
  }
  .trust-mini-item:nth-child(1) { animation: popInTiltR 0.45s 0.2s ease both; }
  .trust-mini-item:nth-child(2) { animation: popInTiltL 0.45s 0.3s ease both; }
  .trust-mini-item:nth-child(3) { animation: popInTiltR 0.45s 0.4s ease both; }
  @keyframes popInFlat {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes popInTiltL {
    from { opacity: 0; transform: translateY(14px) scale(0.96) rotate(0deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(-1.5deg); }
  }
  @keyframes popInTiltR {
    from { opacity: 0; transform: translateY(14px) scale(0.96) rotate(0deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(1.5deg); }
  }
  .about-wrap { text-align: center; }
  .about-text h2 { font-size: 1.5rem; margin-bottom: 10px; }
  .about-text p { font-size: 0.88rem; margin-bottom: 10px; }
  .about-list { display: inline-block; text-align: left; margin-top: 8px; }
  .about-list li { margin-bottom: 8px; font-size: 0.88rem; }
  .footer-col { text-align: center; }
  .footer-logo, .footer-social { justify-content: center; }
  /* Keep services at 2 columns (not 1) so 5 cards stay to 3 short rows
     instead of 5 tall ones, and shrink the head + each card to suit. */
  #services .section-head { margin-bottom: 10px; }
  #services .section-head h2 { font-size: 1.25rem; margin-bottom: 4px; }
  #services .section-head p { font-size: 0.78rem; }
  #services .section-tag { font-size: 0.68rem; padding: 3px 10px; margin-bottom: 5px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .service-card { padding: 7px 7px; }
  .service-card .icon { width: 22px; height: 22px; font-size: 0.74rem; margin-bottom: 3px; }
  .service-card h3 { font-size: 0.8rem; margin-bottom: 2px; }
  .service-card p { font-size: 0.68rem; line-height: 1.22; }
  /* 3 columns (not 2) keeps the 8-photo gallery to 3 rows of small
     squares instead of 4 rows that don't fit one screen. */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery-item { font-size: 1.4rem; }
  .gallery-item span.label { font-size: 0.65rem; padding: 3px 7px; bottom: 6px; left: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .hero-title h1, .hero-card, .hero-body .lead,
  .trust-mini-item, .trust-mini-item:nth-child(1), .trust-mini-item:nth-child(2), .trust-mini-item:nth-child(3) {
    animation: none;
  }
}

/* Tablet/small-laptop band (769-1024px): wider than phone, so the same
   column count used on phone renders much bigger squares/cards here and
   doesn't fit a short screen - use one more column to keep rows shorter.
   Declared after the generic <=1024px block above so it wins at this
   width despite matching the same max-width. */
@media (min-width: 769px) and (max-width: 1024px) {
  #gallery, #services { padding: 16px 0; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .gallery-item { font-size: 1.1rem; }
  .gallery-item span.label { font-size: 0.68rem; padding: 3px 8px; bottom: 6px; left: 8px; }
  #gallery .section-head, #services .section-head { margin-bottom: 8px; }
  #gallery .section-head h2, #services .section-head h2 { font-size: 1.3rem; margin-bottom: 4px; }
  #gallery .section-head p, #services .section-head p { font-size: 0.8rem; }
  #gallery .section-tag, #services .section-tag { font-size: 0.68rem; padding: 3px 10px; margin-bottom: 4px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
