/* Tidy Whiskers — site styles
   Brand palette:
   Soft Lavender #B8A5D6 · Dusty Lilac #9C88C8 · Soft Peach #F7C6B5
   Warm White #FCFAF8 · Dove Grey #8C8C91 · Light Mist Grey #D8D8DC */

:root {
  --page-bg: #F1ECE7;
  --card: #FCFAF8;
  --surface: #ffffff;
  --lavender: #B8A5D6;
  --lilac: #9C88C8;
  --lavender-soft: #EFEAF7;
  --lavender-band: #B4A1D6;
  --peach: #F0A88E;
  --peach-dark: #E69277;
  --peach-soft: #FBDDD2;
  --ink: #3E3A45;
  --text: #6A6570;
  --muted: #8C8C91;
  --border: #E5E1DC;
  --shadow: 0 24px 60px rgba(62, 58, 69, 0.12);
  --shadow-soft: 0 10px 30px rgba(62, 58, 69, 0.07);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15.5px;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h4 {
  color: var(--ink);
  margin: 0 0 0.4em;
}

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

a {
  color: var(--lilac);
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

.script {
  font-family: "Dancing Script", cursive;
  font-weight: 500;
}

/* Full-width page */
.page {
  background: var(--card);
  /* Stops decorative elements that bleed off a section's edge from
     creating sideways scroll - unlike overflow:hidden, "clip" doesn't
     create a scroll container, so it can't break the sticky header */
  overflow-x: clip;
}

.container {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 85px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.9rem;
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background-color: var(--lilac);
  /* Peach centre shrinks to nothing, so lavender closes in from both ends */
  background-image: linear-gradient(to right, var(--peach), var(--peach));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  color: #fff;
  box-shadow: 0 8px 20px rgba(240, 168, 142, 0.45);
  transition: background-size 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease,
              transform 0.25s ease;
}

.btn:hover {
  background-size: 0% 100%;
  box-shadow: 0 13px 28px rgba(156, 136, 200, 0.5);
  transform: translateY(-3px);
}

.text-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
}

.text-link:hover {
  color: var(--peach-dark);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  padding: 1.1rem 0;
  box-shadow: 0 6px 20px rgba(62, 58, 69, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-phone {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.header-phone:hover {
  color: var(--lilac);
}

.header-phone svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--lilac);
}

.header-social {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--lilac);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.social-btn:hover {
  background: var(--lavender);
  color: #fff;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--lilac);
}

/* Nav button keeps a simple peach hover rather than the lavender sweep,
   and stays white even when it is the current page (.active) */
.site-nav a.nav-cta,
.site-nav a.nav-cta.active {
  color: #fff;
  background-image: none;
  background-color: var(--peach);
  box-shadow: 0 6px 14px rgba(240, 168, 142, 0.4);
  transition: background-color 0.28s ease, box-shadow 0.28s ease, transform 0.2s ease;
}

.site-nav a.nav-cta:hover {
  color: #fff;
  background-color: var(--peach-dark);
  box-shadow: 0 9px 18px rgba(240, 168, 142, 0.55);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.5rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Text sits above the decorative paw, without making the container a
   positioning context (the cat is positioned against .hero itself) */
.hero-copy {
  position: relative;
  z-index: 1;
}

/* Laid out at full size but shown at 94%, so the hover scales up to its
   native resolution rather than stretching an already-rendered bitmap */
/* Wrapper holds the paws that scatter out from behind the logo on hover */
.logo-play {
  position: relative;
  display: inline-block;
  margin-left: 8rem;
  margin-bottom: 1.8rem;
}

.hero-logo-img {
  width: min(340px, 72%);
  height: auto;
  transform: scale(0.94);
  transition: transform 0.35s ease, filter 0.35s ease;
}


/* Only on devices with a real mouse/pointer - otherwise tapping the logo
   on a touchscreen triggers this and it stays "stuck" glowing until you
   tap elsewhere, since there's no real hover state on mobile */
@media (hover: hover) and (pointer: fine) {
  .hero-logo-img:hover {
    transform: scale(1);
    filter: drop-shadow(0 12px 28px rgba(156, 136, 200, 0.5)) brightness(1.04);
  }
}

.hero-copy h1,
.hero-copy .hero-actions {
  position: relative;
}

.hero-copy h1 {
  left: -2.25rem;
}

/* Button sits indented to line up under the logo above it */
.hero-copy .hero-actions {
  left: 5.5rem;
}

.hero-copy .hero-actions .btn {
  padding-left: 3.4rem;
  padding-right: 3.4rem;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--peach);
  font-size: clamp(2.6rem, 4.8vw, 3.7rem);
  line-height: 0.92;
  word-spacing: -0.12em;
  margin-bottom: 0.4em;
}

.hero h1 .script {
  position: relative;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
}

/* Positioned out of the text flow so it can't stretch the line height */
.hero h1 .paw-icon {
  position: absolute;
  left: 100%;
  bottom: -0.28em;
  width: 1.35em;
  height: 1.35em;
  color: var(--peach);
  transform: rotate(12deg);
}

.hero h1 .paw-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 34px;
  background: var(--lavender-soft);
}

/* Transparent PNG - sits straight on the page, no frame behind it */
.hero-photo.cutout img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0;
  background: none;
}

/* On wider screens the cat drops to the bottom of the hero so it
   sits directly on the lavender strip below */
@media (min-width: 821px) {
  .hero {
    position: relative;
    padding-bottom: 0;
    min-height: 610px;
  }

  .hero-grid {
    align-items: end;
  }

  .hero-copy {
    padding-bottom: 3.5rem;
  }

  /* Pinned to the far right edge of the page, resting on the strip below */
  .hero-photo.cutout img {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: 49%;
    max-height: 590px;
  }
}

/* ---------- Feature strip ---------- */

.feature-strip {
  background: var(--lavender-band);
  color: #fff;
  padding: 2.6rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.feature .icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.8rem;
  color: #fff;
}

.feature .icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-family: "Nunito", sans-serif;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.4em;
}

.feature p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Section headings ---------- */

p.eyebrow-script,
.split p.eyebrow-script,
.contact-info p.eyebrow-script {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--peach-dark);
  margin: 0 0 1.1rem;
}

p.eyebrow-script.lg {
  font-size: 2.2rem;
  letter-spacing: 0.11em;
}

/* Centred variants sit inside centred sections */
.services-head p.eyebrow-script,
.page-hero p.eyebrow-script {
  justify-content: center;
}

.eyebrow-script .paw-svg {
  width: 1.9em;
  height: 1.9em;
  flex: none;
  color: var(--peach);
}

/* On the purple gallery band the label needs to lift off the background */
.gallery p.eyebrow-script {
  color: rgba(255, 255, 255, 0.85);
  justify-content: center;
}

.gallery p.eyebrow-script .paw-svg,
.gallery .flourish {
  color: var(--peach-soft);
}

.gallery .flourish::before,
.gallery .flourish::after {
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* Small paw flourish beneath a section heading */
.flourish {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.4rem;
  width: min(290px, 100%);
  color: var(--peach);
}

.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, var(--lavender), transparent);
}

.flourish svg {
  width: 20px;
  height: 20px;
  transform: rotate(10deg);
}

.flourish.center {
  justify-content: center;
  width: min(340px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Label + divider pair: the group shrinks to the label's width,
   so the divider always sits centred beneath the text */
.heading-group {
  width: fit-content;
  max-width: 100%;
}

.heading-group.center {
  margin-left: auto;
  margin-right: auto;
}

.heading-group .flourish {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Small filled heart used in section headings */
.heart-svg {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  color: var(--peach);
  vertical-align: middle;
  margin-right: -0.12em;
  transform: translateY(-0.08em);
}

.heart-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  text-align: center;
}

.section-title .accent {
  color: var(--lilac);
}

.section-title .accent.peach {
  color: var(--peach-dark);
}

/* Heading set in the same uppercase style as the small section labels */
.section-title.as-label {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Inline SVG paw icons (same paw as the hero) */
.paw-svg {
  display: inline-block;
  width: 1.6em;
  height: 1.6em;
  vertical-align: middle;
  transform: rotate(12deg);
}

.paw-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Decorative paws scattered through sections */
.hero,
.split,
.feature-strip,
.services-home,
.testimonials,
.gallery,
.gallery-page,
.contact,
.page-hero,
.service-list {
  position: relative;
}

.deco-paw {
  position: absolute;
  aspect-ratio: 1;
  color: var(--peach-soft);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Keep real content above the decorative paws */
.split > div,
.feature-strip .container,
.services-home .container,
.testimonials .container,
.gallery .container,
.gallery-page .container,
.contact .container,
.page-hero .container,
.service-list .container,
.prose-section .container {
  position: relative;
  z-index: 1;
}

.deco-paw svg {
  width: 100%;
  height: 100%;
  display: block;
}

.deco-paw.lavender {
  color: var(--lavender-soft);
}

.deco-paw.white {
  color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 820px) {
  .deco-paw {
    display: none;
  }
}

/* ---------- Welcome / About blocks ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

/* About section: split into 4 pieces (head, text, photo, body) instead of
   2 so the photo can sit between the description text and the checklist
   on mobile, where it just follows natural DOM order. Desktop needs
   explicit placement to recreate the side-by-side look now that there
   are 4 grid items, not 2. Row-gap is zeroed at every width, not just
   desktop - the base .split gap:3rem was also landing between the
   heading, text, photo and checklist on mobile, where they stack in a
   single column. */
.about-split {
  row-gap: 0;
}

@media (min-width: 821px) {
  .about-split .about-head {
    grid-column: 1;
    grid-row: 1;
  }

  .about-split .about-text {
    grid-column: 1;
    grid-row: 2;
  }

  .about-split .about-body {
    grid-column: 1;
    grid-row: 3;
  }

  /* Taken out of grid flow entirely and centred against the whole
     section's height instead of the text rows, so a tall photo can never
     stretch the gaps between the heading, paragraph and checklist */
  .about-split .photo-arch {
    position: absolute;
    grid-column: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 420px;
    transform: translate(-30px, 75px);
  }

  .about-split .photo-arch img {
    height: 480px;
  }
}

.split.story-split {
  padding-top: 0;
}

/* About Me's hero has only the logo in it - its own bottom padding was
   stacking on top of the logo's margin and the story section's padding,
   making the gap to "My story" bigger than the equivalent gap on other
   pages */
.page-hero.logo-only {
  padding-bottom: 0;
}

.split h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.split p {
  font-size: 0.95rem;
}

.split .actions {
  margin-top: 1.6rem;
}

.photo-blob img,
.photo-arch img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: var(--lavender-soft);
}

/* Fit the whole cat inside the shape rather than filling and cropping it */
.photo-blob img {
  height: 550px;
  max-width: 680px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 0;
  padding: 0;
}

.photo-blob img {
  border-radius: 58% 42% 52% 48% / 50% 55% 45% 50%;
}

/* Cutout photo - no frame, no background, sits straight on the page */
.photo-plain img {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  background: none;
  border-radius: 0;
}

.photo-arch {
  position: relative;
}

.photo-arch img {
  height: 650px;
  object-position: 30% 40%;
  border-radius: 48% 52% 46% 54% / 42% 42% 58% 58%;
}

.photo-arch .paw-accent {
  position: absolute;
  bottom: -6px;
  left: -30px;
  font-size: 3.2rem;
  color: var(--peach-soft);
  transform: rotate(-15deg);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.checklist .tick {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--lilac);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

/* ---------- Services cards ---------- */

.services-home {
  padding: 3.5rem 0 4rem;
}

.services-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--lavender);
  box-shadow: 0 18px 40px rgba(156, 136, 200, 0.28);
}

.card:hover .icon-circle {
  background: var(--lavender);
  color: #fff;
}

.card .icon-circle {
  transition: background 0.25s ease, color 0.25s ease;
}

.card .icon-circle {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--lilac);
  display: grid;
  place-items: center;
}

.card .icon-circle svg {
  width: 34px;
  height: 34px;
}

.card h3 {
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.4em;
}

/* Description takes up the slack so price and link line up across all cards */
.card p {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  flex: 1 1 auto;
}

.card .price {
  display: block;
  font-weight: 800;
  color: var(--lilac);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.card .text-link {
  align-self: center;
}

.services-cta {
  text-align: center;
  margin-top: 2.4rem;
}

/* ---------- Testimonials ---------- */

.testimonials {
  background: #FDF1EB;
  padding: 4rem 0;
  position: relative;
}

.testimonials .heading-group {
  text-align: center;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 0.6rem;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.6rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(240, 168, 142, 0.3);
}

.quote-card .stars {
  color: var(--peach);
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

/* Quote text stretches so the attributions line up across all cards */
.quote-card p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 1.2rem;
  flex: 1 1 auto;
}

.quote-card footer {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
}

.quote-card .cat {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

/* ---------- Gallery ---------- */

.gallery {
  padding: 2.2rem 0;
  text-align: center;
  background: var(--lavender-band);
}

.gallery .section-title,
.gallery .section-title .accent {
  color: #fff;
}

/* Crossfading gallery carousel on the homepage - loops forever since it's
   just cycling an index, with no scroll position to "jump back" from */
.fade-carousel {
  position: relative;
  margin: 2.2rem 0 1.6rem;
}

/* Taller than the visible photo so the peeking side slides aren't clipped */
.fade-track {
  position: relative;
  width: min(580px, 100%);
  height: 320px;
  margin: 0 auto;
}

.fade-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(400px, 62vw);
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--lavender-soft);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  /* Resting position matches the centred, scaled-down look of .prev/.next
     rather than the default "none" transform - without this, a slide
     that cycles past prev/next (once there are more than 3 photos) had
     no transform of its own, so it visibly slid from its peeking spot
     over to the untransformed top-left corner as its classes were
     removed, instead of just fading out in place. */
  transform: translate(-50%, -50%) scale(0.78);
  transition: transform 0.9s ease, opacity 0.9s ease, filter 0.9s ease;
}

.fade-slide.active {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.fade-slide.prev,
.fade-slide.next {
  opacity: 0.55;
  z-index: 2;
  filter: brightness(0.85);
  pointer-events: auto;
}

.fade-slide.prev:hover,
.fade-slide.next:hover {
  opacity: 0.8;
  filter: brightness(1);
}

.fade-slide.prev {
  transform: translate(calc(-50% - 46%), -50%) scale(0.78);
}

.fade-slide.next {
  transform: translate(calc(-50% + 46%), -50%) scale(0.78);
}

@media (max-width: 640px) {
  /* Same peeking effect as desktop, just pulled in tighter and scaled
     down further so both side photos fit on a narrow screen */
  .fade-slide.prev {
    transform: translate(calc(-50% - 38%), -50%) scale(0.68);
  }

  .fade-slide.next {
    transform: translate(calc(-50% + 38%), -50%) scale(0.68);
  }
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--lilac);
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(50, 45, 58, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav.prev {
  left: 0.8rem;
}

.carousel-nav.next {
  right: 0.8rem;
}

@media (max-width: 640px) {
  .fade-track {
    height: 240px;
  }

  .fade-slide {
    width: min(230px, 56vw);
    height: 220px;
  }

  .carousel-nav {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
}

/* ---------- Gallery page ---------- */

.gallery-page {
  padding: 1rem 0 4.5rem;
  position: relative;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.gallery-page-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Scaling up (rather than shifting up) keeps the card under the cursor,
   so the hover can't flicker on and off at the edges */
.gallery-page-grid figure:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(50, 45, 58, 0.25);
}

.gallery-page-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--lavender-soft);
}

.gallery-page-grid figcaption {
  padding: 0.85rem 1rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
}

/* ---------- Lightbox ---------- */

.zoomable {
  transition: transform 0.28s ease, filter 0.28s ease,
              outline-color 0.28s ease, box-shadow 0.28s ease;
}

/* Homepage carousel: a gentle lift on the centre photo only - has to
   restate the translate/scale from .fade-slide.active or hovering would
   reset its position instead of just scaling it up */
.fade-track img.zoomable.active:hover,
.fade-track img.zoomable.active:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
  filter: brightness(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(50, 45, 58, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 2rem 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  max-width: min(920px, 100%);
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  background: var(--lavender-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-figure figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background 0.25s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--peach);
  transform: scale(1.08);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

/* Arrows are flex items either side of the figure, so they hug the photo */
.lightbox-nav {
  flex: none;
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  padding-bottom: 0.25rem;
}

@media (max-width: 600px) {
  .lightbox {
    flex-wrap: wrap;
    padding: 1rem 0.75rem 1.5rem;
  }

  .lightbox-figure {
    order: 1;
    flex: 1 0 100%;
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
  }

  .lightbox-nav.prev { order: 2; }
  .lightbox-nav.next { order: 3; }
}

/* ---------- Contact ---------- */

.contact {
  padding: 1.5rem 0 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.contact-list li > span:first-child {
  font-size: 1.3rem;
  flex: none;
}

.contact-list a {
  color: var(--lilac);
}

.contact-list a:hover {
  color: var(--peach-dark);
}

.contact-form-col {
  margin-top: -14.5rem;
}

.contact-form {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  display: grid;
  gap: 1.05rem;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink);
  display: grid;
  gap: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  background: var(--card);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
}

.contact-form button {
  border: none;
  cursor: pointer;
  justify-self: start;
}

/* ---------- Coverage map ---------- */

.map-box {
  width: min(300px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin: 1.4rem 0 0.8rem;
  background: var(--lavender-soft);
}

.map-box #coverage-map {
  width: 100%;
  height: 100%;
}

/* Leaflet's own furniture, toned down to match the site */
.map-box .leaflet-container {
  font-family: "Nunito", sans-serif;
  background: var(--lavender-soft);
}

.map-box .leaflet-control-attribution {
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.8);
}

.map-caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.6rem 0;
  text-align: center;
}

.footer-logo {
  height: 96px;
  width: auto;
  margin: 0 auto 0.5rem;
}

/* Logo and social icons sit on one row */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 1.2rem;
}

.footer-top .footer-logo {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.footer-top .footer-social {
  align-self: flex-end;
  margin-bottom: -0.4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--lilac);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin: 1rem 0;
}

.site-footer nav a {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer nav a:hover {
  color: var(--lilac);
}

.footer-fine {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Services page ---------- */

.page-hero {
  padding: 3rem 0 1rem;
  text-align: center;
}

.page-hero p {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 0.95rem;
}

.page-hero-logo {
  width: min(300px, 72%);
  height: auto;
  margin: 0 auto 2.6rem;
}

/* Left-aligned page header, matching the About Me page */
.page-hero.left,
.page-hero.left .section-title {
  text-align: left;
}

.page-hero.left .flourish {
  margin-left: 0;
  margin-right: auto;
}

/* Same size in both places, regardless of the surrounding section's rules */
.page-hero p.intro-note,
.split p.intro-note {
  font-size: 1.25rem;
}

.page-hero p.intro-note {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
}

/* Contact page: logo sits beside the heading instead of above it */
.hero-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-row .page-hero-logo {
  flex: none;
  margin-bottom: 0;
}

.hero-row-text {
  flex: 1;
  min-width: 0;
}

.hero-row-text .intro-note {
  margin-top: 0.8rem;
}

@media (max-width: 700px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .hero-row .page-hero-logo {
    margin-bottom: 0.5rem;
  }
}

/* Cat sitting in the empty space beside a left-aligned page header */
.page-hero-cat {
  display: none;
}

@media (min-width: 900px) {
  .page-hero-cat {
    display: block;
    position: absolute;
    right: 22%;
    bottom: -2.6rem;
    width: min(470px, 40%);
    height: auto;
    z-index: 0;
  }
}

.page-hero-logo.left {
  width: min(330px, 78%);
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 6.5rem;
}

/* About page: the section below already brings its own top padding */
.page-hero-logo.tight {
  margin-bottom: 1rem;
}

/* Matches the total logo-to-heading gap on About Me, where the logo
   sits in its own section and the heading below adds its own spacing */
.page-hero-logo.roomy {
  margin-bottom: 3.2rem;
}

.page-hero-logo.small {
  width: min(220px, 52%);
  margin-left: 0;
  margin-right: auto;
}


.service-list {
  padding: 2.5rem 0 4rem;
}

.service-detail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-detail:hover {
  transform: translateY(-4px);
  border-color: var(--lavender);
  box-shadow: 0 16px 36px rgba(156, 136, 200, 0.28);
}

.service-detail:hover .icon-circle {
  background: var(--lavender);
  color: #fff;
}

.service-detail + .service-detail {
  margin-top: 1.1rem;
}


.service-detail .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--lilac);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.service-detail .icon-circle svg {
  width: 30px;
  height: 30px;
}

.service-detail h3 {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.service-detail p {
  margin: 0;
  font-size: 0.87rem;
}

.service-detail .price {
  font-weight: 800;
  color: var(--lilac);
  font-size: 1.05rem;
  white-space: nowrap;
}

/* ---------- Hero coverage + quick contact ---------- */

.hero-coverage {
  font-size: 0.98rem;
  color: var(--text);
  max-width: 34rem;
  margin: 0 0 1.4rem;
}

.hero-coverage strong {
  color: var(--ink);
}

.hero-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  transition: color 0.25s ease;
}

.hero-contact a:hover {
  color: var(--lilac);
}

.hero-contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--lilac);
}

/* ---------- Notes & callouts ---------- */

.note {
  background: var(--lavender-soft);
  border-left: 4px solid var(--lavender);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0 0;
  font-size: 0.88rem;
}

.note:first-child {
  margin: 0 0 1.6rem;
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: 0.6rem;
}

.note.peach {
  background: #FDF1EB;
  border-left-color: var(--peach);
}

/* ---------- Prose blocks (About, Terms) ---------- */

.prose-section {
  padding: 3.5rem 0;
  position: relative;
}

.prose {
  max-width: 46rem;
  margin: 0 auto;
}

/* Terms page: left-align with the page header above it instead of
   centering within the container */
.prose.prose-left {
  margin-left: 0;
  margin-right: auto;
}

/* Tinted box for a prose block */
.prose-box {
  background: var(--lavender-soft);
  border-radius: var(--radius);
  padding: 2.8rem 3rem;
  max-width: 52rem;
}

/* Quiet lead-in line above a heading */
.intro-note {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: none;
  /* Spreads the words evenly so a single word can't dangle on its own line */
  text-wrap: balance;
  margin: 0 0 0.7rem;
}

/* Peach panel nested inside a prose box */
.sub-box {
  background: #FDF0EA;
  border-radius: 22px;
  padding: 1.9rem 2rem;
  margin-top: 2.4rem;
}

.sub-box h2 {
  margin-top: 0;
}

.sub-box .tick {
  background: rgba(255, 255, 255, 0.75);
  color: var(--peach-dark);
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 2.4rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 0.97rem;
}

.prose ul {
  padding-left: 1.1rem;
  margin: 0.8rem 0 0;
}

.prose li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.7rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.skills-grid li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.skills-grid .tick {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--lilac);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

/* Statement pulled out as a quote */
.statement {
  background: var(--lavender-band);
  color: #fff;
  border-radius: 22px;
  padding: 2rem 2.2rem;
  margin: 0 0 1.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.6;
}

.statement p {
  margin: 0;
}

/* ---------- Photo reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .prose-box {
    padding: 1.8rem 1.4rem;
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}


@media (max-width: 820px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* The -14.5rem pull-up is a desktop-only trick to align the two
     contact-page columns side by side - once they stack into one column
     it drags the form/quote card up on top of the map above it */
  .contact-form-col {
    margin-top: 0;
  }

  .hero {
    padding-top: 1.5rem;
  }

  /* The DBS/Insured/Groomer/First Aid strip takes up a lot of vertical
     space stacked 2x2 on a phone - tighten it up */
  .feature-strip {
    padding: 1.6rem 0;
  }

  .feature-grid {
    gap: 1.4rem 1rem;
  }

  .feature .icon {
    width: 26px;
    height: 26px;
    margin: 0 auto 0.5rem;
  }

  .feature h3 {
    font-size: 0.8rem;
    margin-bottom: 0.25em;
  }

  .feature p {
    font-size: 0.72rem;
  }

  .hero-photo {
    display: none;
  }

  /* width lives on the wrapper (a definite value) rather than the image,
     and the image fills it at 100% - a percentage width on the image
     combined with width:fit-content on this wrapper created a circular
     sizing dependency that some browsers resolve by ignoring fit-content
     and stretching to the full available width instead of centring */
  .logo-play {
    display: block;
    width: min(260px, 66%);
    margin: 0 auto 1.8rem;
  }

  .hero-logo-img {
    width: 100%;
  }

  .hero-copy h1,
  .hero-copy .hero-actions {
    left: 0;
  }

  .hero-copy .hero-actions {
    text-align: center;
  }

  /* "happy cats" plus the paw right after it were wider than a phone
     screen - shrink both so the whole line fits with room to spare */
  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .hero h1 .paw-icon {
    width: 1em;
    height: 1em;
    left: calc(100% - 0.15em);
    bottom: -0.15em;
  }

  .split {
    padding: 3rem 0;
  }

  .about-split h2 {
    font-size: 2.5rem;
  }

  .about-split .actions {
    text-align: center;
  }

  /* The "Mobile cat grooming" section's cat photo is dropped entirely
     on mobile rather than resized */
  .photo-blob {
    display: none;
  }

  /* Rachel's photo sits between the description text and the checklist
     (its natural DOM order in the restructured About section), and
     shrinks to suit a phone screen */
  .photo-arch img {
    height: 300px;
    object-position: 30% 32%;
  }

  /* Inner-page header logos match the homepage hero logo's size on
     mobile. The About page's logo already centres via its container's
     text-align, but Services/Gallery/Contact/Terms use a left-aligned
     header on desktop, so their logo also needs forcing into a centred
     block on mobile, without affecting the heading/paragraph beside it. */
  /* The homepage logo also has a transform: scale(0.94) applied at every
     size (a hover-effect leftover), which renders it about 6% smaller
     than its declared width - matching that effective size here rather
     than the raw 260px so both actually look the same on screen. */
  .page-hero-logo {
    width: min(244px, 62%);
  }

  .page-hero-logo.left {
    display: block;
    width: min(244px, 62%);
    margin-left: auto;
    margin-right: auto;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    justify-content: space-between;
    gap: 0.8rem;
  }

  /* Hamburger on the far left; phone icon grouped with the social
     icons on the right, in that visual order */
  .nav-toggle {
    order: -1;
  }

  .header-phone {
    order: 1;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .header-social {
    order: 2;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1rem;
    right: 1rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    z-index: 50;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0;
  }

  .site-nav li a {
    display: block;
    padding: 0.8rem 1.5rem;
  }

  .site-nav .nav-cta {
    margin: 0.5rem 1.5rem;
    text-align: center;
  }

  .service-detail {
    grid-template-columns: auto 1fr;
  }

  .service-detail .price {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .header-phone span {
    display: none;
  }

  /* Icon-only phone link matches the social icons' lavender circle */
  .header-phone {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--lavender-soft);
    justify-content: center;
    flex: none;
  }

  .header-phone svg {
    color: var(--lilac);
  }
}
