/* =========================================================================
   SEVA VETERINARY CLINIC — Design System
   Playful & illustrated. Brand: pink/magenta + navy (from the clinic flyer).
   Fonts: Fredoka (display) + Nunito (body).
   ========================================================================= */

:root {
  /* ---- Brand palette ---- */
  --pink:        #E5397F;   /* primary — SEVA wordmark magenta-pink */
  --pink-deep:   #C42D6A;   /* hover / pressed */
  --pink-soft:   #FCE3EE;   /* light pink section background */
  --pink-tint:   #FFF2F7;   /* very light pink wash */
  --navy:        #163A6C;   /* secondary — deep brand navy */
  --navy-deep:   #0E2A50;   /* darkest navy */
  --navy-soft:   #E8F0FB;   /* light sky-blue section background */
  --sun:         #FFC94A;   /* playful golden accent (Petman "coins") */
  --sun-deep:    #F2B02E;
  --mint:        #37B6A3;   /* sparing tertiary accent */
  --cream:       #FFF8EF;   /* warm off-white */
  --white:       #FFFFFF;

  /* ---- Text ---- */
  --ink:         #24304A;   /* body text — soft near-navy */
  --ink-soft:    #5A6684;   /* muted body text */
  --ink-invert:  #FFFFFF;

  /* ---- Structure ---- */
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 32px;
  --r-xl: 44px;
  --pill: 999px;

  --shadow-sm: 0 6px 18px rgba(22, 58, 108, .08);
  --shadow:    0 18px 40px rgba(22, 58, 108, .12);
  --shadow-lg: 0 30px 70px rgba(22, 58, 108, .16);
  --shadow-pink: 0 16px 34px rgba(229, 57, 127, .28);

  --container: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: clamp(1rem, .5vw + .9rem, 1.075rem);
  overflow-x: hidden;
  /* soft paw-print texture across the whole page */
  background-image: var(--paw-bg);
  background-size: 260px 260px;
}

/* Reusable subtle paw-print texture (encoded once as a CSS var) */
:root {
  --paw-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23163a6c' fill-opacity='0.035'%3E%3Cg transform='translate(40 46) rotate(-18)'%3E%3Cellipse cx='0' cy='10' rx='9' ry='11'/%3E%3Cellipse cx='-13' cy='-6' rx='4.5' ry='6'/%3E%3Cellipse cx='-2' cy='-13' rx='4.5' ry='6'/%3E%3Cellipse cx='9' cy='-10' rx='4.5' ry='6'/%3E%3Cellipse cx='16' cy='2' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(175 150) rotate(12)'%3E%3Cellipse cx='0' cy='10' rx='9' ry='11'/%3E%3Cellipse cx='-13' cy='-6' rx='4.5' ry='6'/%3E%3Cellipse cx='-2' cy='-13' rx='4.5' ry='6'/%3E%3Cellipse cx='9' cy='-10' rx='4.5' ry='6'/%3E%3Cellipse cx='16' cy='2' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(115 215) rotate(-6)'%3E%3Cellipse cx='0' cy='10' rx='7' ry='9'/%3E%3Cellipse cx='-10' cy='-5' rx='3.6' ry='4.8'/%3E%3Cellipse cx='-1' cy='-11' rx='3.6' ry='4.8'/%3E%3Cellipse cx='7' cy='-8' rx='3.6' ry='4.8'/%3E%3Cellipse cx='13' cy='1' rx='3.6' ry='4.8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  /* same paw-print texture in white, for use on dark (navy) card backgrounds */
  --paw-bg-invert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cg transform='translate(40 46) rotate(-18)'%3E%3Cellipse cx='0' cy='10' rx='9' ry='11'/%3E%3Cellipse cx='-13' cy='-6' rx='4.5' ry='6'/%3E%3Cellipse cx='-2' cy='-13' rx='4.5' ry='6'/%3E%3Cellipse cx='9' cy='-10' rx='4.5' ry='6'/%3E%3Cellipse cx='16' cy='2' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(175 150) rotate(12)'%3E%3Cellipse cx='0' cy='10' rx='9' ry='11'/%3E%3Cellipse cx='-13' cy='-6' rx='4.5' ry='6'/%3E%3Cellipse cx='-2' cy='-13' rx='4.5' ry='6'/%3E%3Cellipse cx='9' cy='-10' rx='4.5' ry='6'/%3E%3Cellipse cx='16' cy='2' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(115 215) rotate(-6)'%3E%3Cellipse cx='0' cy='10' rx='7' ry='9'/%3E%3Cellipse cx='-10' cy='-5' rx='3.6' ry='4.8'/%3E%3Cellipse cx='-1' cy='-11' rx='3.6' ry='4.8'/%3E%3Cellipse cx='7' cy='-8' rx='3.6' ry='4.8'/%3E%3Cellipse cx='13' cy='1' rx='3.6' ry='4.8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

a { color: var(--pink-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--pink); }

/* =========================================================================
   Typography
   ========================================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p  { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--pink-deep);
}
.eyebrow.center { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); }
.text-pink { color: var(--pink); }
.text-navy { color: var(--navy); }
.text-invert, .text-invert h1, .text-invert h2, .text-invert h3 { color: #fff; }

/* =========================================================================
   Layout
   ========================================================================= */
.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

/* one-page anchor targets clear the fixed/sticky header when jumped to */
.anchor { scroll-margin-top: 120px; }
@media (max-width: 860px) { .anchor { scroll-margin-top: 82px; } }

/* Full-bleed scrapbook image section (placed right after the hero) */
.scrapbook-section { line-height: 0; background: #9dc0cf; }
.scrapbook-section img { display: block; width: 100%; height: auto; }

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-pink  { background: var(--pink-soft); }
.bg-blue  { background: var(--navy-soft); }
.bg-navy  { background: var(--navy); color: #dfe7f4; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lead { color: #b9c6df; }

.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  --btn-bg: var(--pink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem;
  padding: .85rem 1.7rem;
  border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: none; cursor: pointer;
  box-shadow: var(--shadow-pink);
  transition: transform .25s var(--ease-bounce), box-shadow .25s ease, background .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-3px) scale(1.02); color: #fff; background: var(--pink-deep); }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-navy { --btn-bg: var(--navy); box-shadow: 0 16px 30px rgba(22,58,108,.28); }
.btn-navy:hover { background: var(--navy-deep); }

.btn-ghost {
  --btn-fg: var(--navy);
  background: #fff; color: var(--navy);
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(22,58,108,.10);
}
.btn-ghost:hover { background: #fff; color: var(--pink); border-color: var(--pink); }

.btn-sun { --btn-bg: var(--sun); --btn-fg: var(--navy); box-shadow: 0 16px 30px rgba(242,176,46,.35); }
.btn-sun:hover { background: var(--sun-deep); color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 244, .32);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 6px 28px rgba(22, 58, 108, .06);
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 250, 244, .48);
  box-shadow: 0 10px 34px rgba(22, 58, 108, .12);
  border-color: rgba(255, 255, 255, .5);
}
/* Home page: header floats over the hero video so the frosted glass shows the blurred animation behind it */
.home .site-header { position: fixed; top: 0; left: 0; right: 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem; min-height: 68px;
}
.brand { display: inline-flex; align-items: flex-end; gap: .65rem; font-family: var(--font-display); }
.brand .brand-mark { width: auto; height: 84px; flex: 0 0 auto; }
.brand .brand-wordmark { width: auto; height: 62px; flex: 0 0 auto; display: block; }
@media (max-width: 860px) {
  /* compact header logo on phones */
  .brand .brand-mark { height: 52px; }
  .brand .brand-wordmark { height: 44px; }
  /* headline wraps on phones instead of being forced to one (overflowing) line */
  .home-hero .mega-1line { white-space: normal; font-size: clamp(2rem, 8.6vw, 3rem); line-height: 1.05; }
  .video-hero .hh-center { max-width: 100%; }
  .video-hero .hh-sub { max-width: 100%; font-size: 1.04rem; }
  /* Phone: the HEADLINE is overlaid on the video (upper area, nudged up); the SUBTITLE and the
     Book-a-Visit button sit on the PINK space below the video. The video is a shorter banner
     (a wider crop shows more of the scene = zoomed-out). `--hv` is the video height, i.e. the
     point where the video ends and the pink begins.
     NOTE: `.home `-prefixed selectors raise specificity so these beat the base
     hero rules that appear later in the file. */
  .home .home-hero.video-hero {
    --hv: clamp(330px, 50vh, 480px); /* video height = where the pink begins */
    display: block; aspect-ratio: auto; min-height: 0;
    padding: 0 1.2rem clamp(2.2rem, 8vw, 3.4rem);
    position: relative; overflow: hidden;
    background: var(--pink-soft); /* pink shows under the video, like before */
  }
  .home .hero-video {
    position: absolute; top: 0; left: 0; right: 0; z-index: 0;
    width: 100%; height: var(--hv);
    object-fit: cover; object-position: center center;
    transform: none; /* natural crop — most zoomed-out */
  }
  .home .hero-scrim {
    display: block; position: absolute; top: 0; left: 0; right: 0; bottom: auto;
    height: var(--hv); /* covers only the video, keeping the pink clean */
    background: radial-gradient(ellipse 98% 60% at 50% 38%,
      rgba(255,248,243,.86) 0%, rgba(255,248,243,.5) 46%, rgba(255,248,243,.12) 72%, rgba(255,248,243,0) 88%);
  }
  /* subtitle + button flow on the pink area, starting just below the video */
  .home .video-hero .hh-center {
    position: static; max-width: 100%;
    margin-top: var(--hv);
    padding-top: clamp(1rem, 4vw, 1.6rem);
  }
  /* headline lifted onto the video, near the top (moved up) */
  .home .video-hero .hh-center .mega {
    position: absolute; z-index: 2; margin: 0;
    top: clamp(150px, 23vh, 205px);
    left: 1.2rem; right: 1.2rem;
  }
}
.brand .brand-name { line-height: 1; }
.brand .brand-name b { display: block; font-size: 1.4rem; font-weight: 600; color: var(--pink); letter-spacing: .02em; }
.brand .brand-name span { display: block; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--navy); font-family: var(--font-body); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500;
  color: var(--navy); padding: .5rem .9rem; border-radius: var(--pill);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--pink-tint); color: var(--pink); }
.nav-links a.active { color: var(--pink); background: var(--pink-tint); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: none; cursor: pointer;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2.5px;
  background: var(--navy); border-radius: 3px; transform: translate(-50%,-50%);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -8px); }
.nav-toggle span::after  { transform: translate(-50%, 8px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%,0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%,0) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 8rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero h1 { margin-bottom: .3em; }
.hero .lead { max-width: 44ch; margin-bottom: 1.8rem; }
.hero .tagline {
  font-family: var(--font-display); font-weight: 500; font-style: normal;
  color: var(--pink); font-size: clamp(1.2rem, 2.2vw, 1.7rem); margin: 0 0 1rem;
}
.hero-art { position: relative; }
.hero-art .art-frame {
  position: relative; border-radius: var(--r-xl);
  background: radial-gradient(120% 120% at 30% 20%, #fff 0%, var(--pink-tint) 55%, var(--navy-soft) 100%);
  padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-lg);
}

/* Page hero (interior pages) — compact banner */
.page-hero { position: relative; padding-block: clamp(2.6rem, 6vw, 4.5rem) clamp(2.2rem, 5vw, 3.5rem); text-align: center; overflow: hidden; }
.page-hero .lead { max-width: 60ch; margin-inline: auto; }
/* striped variant — same blue-and-cream stripes as the Services hero */
.page-hero.striped { background: #F1ECDB url("images/stripes-blue.svg") 0 0 / 168px 100% repeat-x; }
/* soft cream halo behind the hero text so it stays legible over the busy stripes */
.page-hero.striped .eyebrow,
.page-hero.striped h1,
.page-hero.striped .lead {
  text-shadow: 0 0 7px #FFF8EF, 0 0 15px #FFF8EF, 0 2px 10px rgba(255, 248, 239, .9);
}
.breadcrumb { font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--pink); }

/* =========================================================================
   Home hero v2 — bold display type with photo-letters, reviews card,
   pet portrait, and a curved bottom (inspired by the PupBar layout).
   ========================================================================= */
.home-hero {
  position: relative; background: var(--pink-soft); overflow: hidden;
  padding-block: clamp(1.4rem, 4vw, 3rem) clamp(5.5rem, 12vw, 9.5rem);
}

/* Video-background hero */
.home-hero.video-hero {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;          /* match the video so nothing is cropped on wide screens */
  min-height: clamp(480px, 60vh, 680px);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6.5rem);
  background: #8ca6b4; /* fallback tone matching the video */
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom; z-index: 0; pointer-events: none;
}
/* soft spotlight so the headline reads over the animation; edges stay clear so the animals show */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 68% at 50% 47%,
    rgba(255,248,243,.94) 0%, rgba(255,248,243,.66) 36%, rgba(255,248,243,.2) 60%, rgba(255,248,243,0) 80%);
}
.video-hero .hh-center { position: relative; z-index: 2; max-width: 1120px; }
/* headline forced onto a single line (scales with viewport so it always fits) */
.mega-1line { white-space: nowrap; font-size: clamp(1.35rem, 5.2vw, 4.2rem); }
/* subtext constrained so it wraps to two lines on desktop */
.video-hero .hh-sub { max-width: 640px; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; } /* fall back to the poster frame */
  .home-hero.video-hero { background: #8ca6b4 url("video/hero-poster.jpg") center/cover no-repeat; }
}
.home-hero .hh-grid {
  display: grid;
  grid-template-columns: minmax(196px, 240px) minmax(0, 1fr) minmax(200px, 290px);
  align-items: center; gap: clamp(1rem, 3vw, 2.6rem);
  position: relative; z-index: 2;
}

.hh-center { text-align: center; }
.mega {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  color: var(--navy); line-height: .9; letter-spacing: -.02em; margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 4vw + 1.5rem, 5.4rem);
}
.mega .ln { display: block; }
.mega em { font-style: normal; color: var(--pink); }
.letter-photo {
  display: inline-grid; place-items: center; width: .84em; height: .84em;
  border-radius: 50%; vertical-align: -.13em; overflow: hidden;
  box-shadow: var(--shadow-sm); margin: 0 .015em; background: var(--pink-tint);
}
.letter-photo.sun { background: #FFF0CE; }
.letter-photo > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-sub { max-width: 44ch; margin: 0 auto 1.7rem; font-size: clamp(1.02rem, 1.2vw, 1.2rem); color: var(--ink); }
.hh-center .btn { font-size: 1.08rem; padding: 1rem 2.2rem; }

.hh-portrait { justify-self: center; }
.portrait-circle {
  width: clamp(168px, 20vw, 290px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 12%, #fff 0%, var(--pink-tint) 55%, var(--pink-soft) 100%);
  box-shadow: var(--shadow); border: 6px solid #fff; display: grid; place-items: center;
}
.portrait-circle > * { width: 100%; height: 100%; object-fit: cover; }

/* Reviews card */
.reviews-card {
  justify-self: start; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem; text-align: left; max-width: 250px; width: 100%;
}
.rc-head { display: flex; align-items: center; gap: .55rem; padding-bottom: .7rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(22,58,108,.1); }
.rc-head .g-logo { flex: 0 0 auto; }
.rc-head b { font-family: var(--font-display); color: var(--navy); font-size: .84rem; letter-spacing: .06em; line-height: 1.15; text-transform: uppercase; }
.rc-head b small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .62rem; letter-spacing: .02em; text-transform: none; }
.rc-review { padding-top: .8rem; }
.rc-review + .rc-review { border-top: 1px solid rgba(22,58,108,.08); }
.rc-who { display: flex; align-items: center; gap: .55rem; }
.rc-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.rc-ava.navy { background: var(--navy); }
.rc-ava svg { width: 26px; height: 26px; }
.rc-ava img { width: 100%; height: 100%; object-fit: cover; }
.rc-meta { display: flex; flex-direction: column; }
.rc-name { font-family: var(--font-display); color: var(--navy); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .28rem; }
.rc-name svg { width: 13px; height: 13px; flex: 0 0 auto; }
.rc-stars { color: var(--sun); font-size: .82rem; letter-spacing: 1.5px; line-height: 1; }
.rc-quote { font-size: .78rem; color: var(--ink-soft); line-height: 1.45; margin: .4rem 0 0; }

/* Curved bottom that blends the hero into the white section below */
.hh-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(48px, 8vw, 110px); display: block; z-index: 1; }


@media (max-width: 980px) {
  .home-hero .hh-grid { grid-template-columns: 1fr; justify-items: center; }
  .hh-center { order: 1; }
  .hh-portrait { order: 2; }
  .reviews-card { order: 3; justify-self: center; }
  .hh-sub { margin-inline: auto; }
}


/* =========================================================================
   Cards
   ========================================================================= */
.card {
  background: #fff; border-radius: var(--r-lg); padding: clamp(1.4rem, 2.5vw, 2.1rem);
  box-shadow: var(--shadow); border: 1px solid rgba(22,58,108,.05);
  transition: transform .35s var(--ease-bounce), box-shadow .3s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.icon-badge {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center;
  background: var(--pink); color: #fff; margin-bottom: 1.1rem; box-shadow: var(--shadow-pink);
}
.icon-badge svg { width: 30px; height: 30px; }
.icon-badge.navy { background: var(--navy); box-shadow: 0 14px 26px rgba(22,58,108,.25); }
.icon-badge.sun  { background: var(--sun); color: var(--navy); box-shadow: 0 14px 26px rgba(242,176,46,.3); }
.icon-badge.mint { background: var(--mint); box-shadow: 0 14px 26px rgba(55,182,163,.3); }

/* Keep the two service blocks compact — don't let them stretch the full row width. */
.services-grid { max-width: 900px; margin-inline: auto; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: stretch; }

/* Service cards — cat-ear-tab shape (reference look): cream Urgent + pink Wellness,
   each with a folder-style tab topped by two cat ears carrying the service name. */
.service-card {
  display: flex; flex-direction: column; position: relative; overflow: visible;
  border: none; border-radius: 26px;
  margin-top: 54px;                     /* room for the ears sticking above the card */
  padding: clamp(2.9rem, 2rem + 2.4vw, 3.6rem) clamp(1.5rem, 1rem + 1.6vw, 2.2rem) clamp(1.6rem, 1rem + 2vw, 2.4rem);
  box-shadow: 0 20px 44px rgba(22, 58, 108, .16);
}
/* the protruding tab that carries the title (same colour as the card so it merges) */
/* the cat-ear tab is the REAL graphic extracted from the client's asset (exact cats),
   with the baked label removed; the label below is real text at a uniform size. */
.ear-tab {
  position: absolute; left: 22px; z-index: 3;
  width: 184px; pointer-events: none; user-select: none;
}
.sc-urgent .ear-tab { top: -91px; }
.sc-wellness .ear-tab { top: -75px; }
.ear-tab img { display: block; width: 100%; height: auto; }
.ear-tab .ear-label {
  position: absolute; left: 0; right: 0; bottom: 11%;
  text-align: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1;
}
.sc-urgent .ear-label { color: #d63384; }
.sc-wellness .ear-label { color: #ffe4c2; }

/* Phone tuning: tighter padding for more text room, and extra gap so each card's
   cat ears have clear space above them when the two cards stack. */
@media (max-width: 560px) {
  .services-grid { gap: 2.6rem; }
  .service-card { padding: 2.5rem 1.35rem 1.6rem; }
  .service-card p { max-width: none; }
  .ear-tab { width: 138px; }
  .sc-urgent .ear-tab { top: -68px; }
  .sc-wellness .ear-tab { top: -56px; }
}

.service-card p { max-width: 40ch; margin-bottom: 1.4rem; }
.service-card .card-tag {
  align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .14em; text-transform: uppercase; background: none; padding: 0; margin-bottom: .9rem;
}
.service-card .btn {
  margin-top: auto; align-self: flex-start;
  font-size: .82rem; padding: .58rem 1.2rem; gap: .4rem;
}

/* Urgent — cream card (tab head is cream #ffdfb5, so it merges) */
.sc-urgent { background: #ffdfb5; }
.sc-urgent .card-tag { color: #c8407e; }
.sc-urgent p { color: #6a5140; }
.sc-urgent .btn { box-shadow: 0 10px 22px rgba(229, 57, 127, .28); }

/* Wellness — pink card #f47cc4 (matches the tab head so it merges); dark text for contrast */
.sc-wellness { background: #f47cc4; }
.sc-wellness .card-tag { color: #7a1e51; }
.sc-wellness p { color: #5c2444; }
.sc-wellness .btn { box-shadow: 0 12px 26px rgba(22, 58, 108, .3); }

/* Pillar (values) */
.pillar { text-align: center; }
.pillar .icon-badge { margin-inline: auto; }

/* Stat */
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--pink); line-height: 1; }
.stat span { font-family: var(--font-display); color: var(--navy); font-size: .95rem; }
.bg-navy .stat b { color: var(--sun); }
.bg-navy .stat span { color: #cdd8ec; }

/* =========================================================================
   Checklist (conditions / services lists)
   ========================================================================= */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2.1rem; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; background: var(--pink);
  -webkit-mask: var(--check-mask) center / .85rem no-repeat;
          mask: var(--check-mask) center / .85rem no-repeat;
  background-image: none;
}
/* fallback: draw check with background + pseudo tick */
.checklist li::before {
  background: var(--pink);
  box-shadow: var(--shadow-sm);
}
.checklist li::after {
  content: ""; position: absolute; left: .42rem; top: .40em; width: .35rem; height: .62rem;
  border: solid #fff; border-width: 0 .17rem .17rem 0; transform: rotate(45deg);
}
.checklist.navy li::before { background: var(--navy); }
.checklist.two { grid-template-columns: 1fr 1fr; column-gap: 1.6rem; }

/* =========================================================================
   Callout / Alert
   ========================================================================= */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--pink-tint); border-radius: var(--r);
  padding: 1.1rem 1.4rem; border-left: 5px solid var(--pink);
}
.callout .callout-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.callout p { margin: 0; font-size: .98rem; }
.callout.info { background: var(--navy-soft); border-left-color: var(--navy); }
.callout.info .callout-icon { background: var(--navy); }

/* Commitment / highlight panel */
.panel {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dbe4f4; border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.panel h3 { color: #fff; }
.panel.pink { background: linear-gradient(135deg, var(--pink-deep) 0%, #A82459 100%); color: #fff; }
.panel.pink h3 { color: #fff; }

/* =========================================================================
   Our Commitment — hand-drawn postcard note (home)
   ========================================================================= */
.commitment {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.6rem, 7vw, 6rem);
  background-color: var(--cream);
  background-image:
    /* occasional sky-blue pinstripe (every 6th stripe) */
    repeating-linear-gradient(90deg, transparent 0 120px, var(--navy-soft) 120px 132px, transparent 132px 144px),
    /* thin cream + pink pinstripes */
    repeating-linear-gradient(90deg, var(--pink-soft) 0 12px, var(--cream) 12px 24px);
}

/* airmail dashed edges (top & bottom) */
.airmail-edge {
  position: absolute; left: 0; right: 0; height: 11px; z-index: 2;
  background: repeating-linear-gradient(90deg, var(--pink) 0 15px, transparent 15px 30px);
}
.airmail-edge.top    { top: 0; }
.airmail-edge.bottom { bottom: 0; }

/* the paper note card */
.commitment .note-card {
  position: relative;
  max-width: 900px; margin-inline: auto;
  background: var(--cream);
  border: 2px solid rgba(22,58,108,.10);
  border-radius: 20px 24px 18px 26px;   /* subtly irregular = hand-cut */
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.5rem, 4vw, 3.6rem);
  text-align: center;
  transform: rotate(-.5deg);
}

/* washi tape holding the note up */
.note-tape {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
  width: 128px; height: 26px; border-radius: 3px;
  background: rgba(255,201,74,.72);          /* translucent sun = tape */
  box-shadow: 0 4px 10px rgba(22,58,108,.12);
}

.commitment h2 {
  color: var(--navy);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.05; margin: .1rem 0 .5rem;
}
.commitment .lead { max-width: 58ch; margin-inline: auto; color: var(--ink-soft); }

/* stats inside the note */
.commitment .note-stats { margin-top: clamp(1.9rem, 3.5vw, 2.8rem); }
.commitment .stat b { color: var(--pink); }
.commitment .stat span { color: var(--navy); display: block; line-height: 1.25; margin-top: .3rem; }

/* =========================================================================
   Sticky-note tags (Petman flavor)
   ========================================================================= */
.sticky-note {
  position: absolute; background: var(--sun); color: var(--navy);
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  padding: .7rem 1rem; border-radius: 12px 12px 12px 4px;
  box-shadow: var(--shadow); max-width: 190px; line-height: 1.3;
}
.sticky-note.pink { background: var(--pink); color: #fff; }
.sticky-note.white { background: #fff; color: var(--navy); }
.sticky-note::before {
  content: ""; position: absolute; top: -9px; left: 18px; width: 14px; height: 14px;
  background: rgba(22,58,108,.25); border-radius: 50%;
}

/* =========================================================================
   Image slots (for the user's real photos)
   ========================================================================= */
/* (Old polaroid gallery + generic .photo-slot removed — Happy Tails now uses the
   clean .g-item photo frames defined in the Happy Tails block below.) */

/* =========================================================================
   Happy Tails — auto-scrolling photo marquee
   ========================================================================= */
.gallery-marquee {
  width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; padding-block: 2.2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; width: max-content; gap: 1.6rem; align-items: center;
  animation: marquee-scroll 26s linear infinite; will-change: transform;
}
.gallery-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Clean framed photo (varying heights, staggered gallery-wall rhythm) */
.g-item {
  flex: 0 0 auto; margin: 0; position: relative; overflow: hidden;
  width: var(--w, 200px); height: var(--h, 260px);
  border-radius: 7px; background: linear-gradient(150deg, #ece4d5, #ddd2be);
  box-shadow: 0 16px 34px rgba(22, 58, 108, .14);
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-item:hover { transform: scale(1.06); box-shadow: 0 26px 54px rgba(22, 58, 108, .24); z-index: 2; }
.g-item .slot-label {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 500; font-size: .82rem; color: var(--navy);
  opacity: .5; padding: .8rem;
}
.g-item .slot-label small { display: block; font-family: var(--font-body); opacity: .75; margin-top: .2rem; font-size: .72rem; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* =========================================================================
   Meet the Team — expanding-panel accordion
   ========================================================================= */
.team-accordion { display: flex; gap: 14px; height: clamp(320px, 40vw, 440px); }
.team-panel {
  position: relative; flex: 1 1 0; min-width: 54px; overflow: hidden; cursor: pointer;
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--pink-soft), var(--navy-soft));
  transition: flex .55s var(--ease-out);
}
/* placeholder hint — swap the panel background for a real photo when ready */
.team-panel .slot-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .04em;
  color: rgba(22, 58, 108, .4); white-space: nowrap;
}
.team-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(14, 42, 80, .6) 100%); }

/* vertical label shown while the panel is collapsed */
.team-vert {
  position: absolute; inset: auto 0 1.3rem 0; margin-inline: auto; width: max-content;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .45); white-space: nowrap;
  transition: opacity .3s ease;
}
/* horizontal name + role shown while the panel is open */
.team-card-info {
  position: absolute; left: 1.4rem; right: 1.2rem; bottom: 1.2rem; color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease .1s, transform .35s ease .1s;
}
.team-card-info h3 { color: #fff; margin: 0 0 .1rem; font-size: clamp(1.2rem, 1.6vw, 1.55rem); }
.team-card-info p { color: #eaf0fb; margin: 0; font-family: var(--font-display); font-weight: 500; }

/* first panel open by default; hovering opens the hovered one instead */
.team-accordion .team-panel:first-child { flex: 3.4 1 0; }
.team-accordion:hover .team-panel { flex: 1 1 0; }
.team-accordion .team-panel:hover { flex: 3.4 1 0; }
.team-accordion:not(:hover) .team-panel:first-child .team-vert { opacity: 0; }
.team-accordion:not(:hover) .team-panel:first-child .team-card-info { opacity: 1; transform: none; }
.team-panel:hover .team-vert { opacity: 0; }
.team-panel:hover .team-card-info { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .team-accordion { flex-direction: column; height: auto; gap: 12px; }
  .team-accordion .team-panel,
  .team-accordion:hover .team-panel,
  .team-accordion .team-panel:first-child,
  .team-accordion .team-panel:hover { flex: none; height: 200px; }
  .team-vert { display: none; }
  .team-card-info { opacity: 1; transform: none; }
}

/* =========================================================================
   Featured team members — photo + bio side by side (one block per person)
   ========================================================================= */
.team-feature { display: flex; flex-direction: column; gap: 16px; align-items: center; max-width: 1120px; margin: 0 auto; }
.team-feature + .team-feature { margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.tf-photo, .tf-bio {
  position: relative; width: 100%; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow); margin: 0;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.tf-photo { aspect-ratio: 1200 / 1600; max-width: 380px; background: var(--navy); }
.tf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-photo--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.tf-initials { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 8vw, 4.5rem); color: rgba(255, 255, 255, .45); letter-spacing: .04em; }
/* real bio copy (not baked into an image) so it's readable text, not a graphic */
.tf-bio {
  max-width: 760px; padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--navy); background-image: var(--paw-bg-invert); background-size: 220px 220px;
  color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.tf-bio p { margin: 0 0 1em; }
.tf-bio p:last-child { margin-bottom: 0; }
.tf-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14, 42, 80, .66) 100%); }
.tf-info { position: absolute; left: 1.3rem; right: 1.1rem; bottom: 1.1rem; color: #fff; }
.tf-info h3 { color: #fff; margin: 0 0 .12rem; font-size: clamp(1.15rem, 1.5vw, 1.5rem); }
.tf-info p { color: #eaf0fb; margin: 0; font-family: var(--font-display); font-weight: 500; }
.tf-photo:hover, .tf-bio:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

@media (min-width: 1180px) {
  .team-feature { flex-direction: row; justify-content: center; align-items: stretch; }
  .tf-photo { flex: 0 0 340px; width: 340px; max-width: 340px; aspect-ratio: auto; }
  .tf-bio { flex: 1 1 760px; }
}

/* =========================================================================
   Decorative floating shapes + dividers
   ========================================================================= */
.floaties { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.floaty { position: absolute; opacity: .9; will-change: transform; }
.floaty svg { display: block; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-16px) rotate(var(--rot, 0deg)); } }
.floaty { animation: bob var(--dur, 6s) ease-in-out infinite; animation-delay: var(--delay, 0s); }

.section > .container { position: relative; z-index: 1; }

/* Wavy top/bottom dividers */
.wave-divider { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave-top { margin-bottom: -1px; }
.wave-bottom { margin-top: -1px; }

/* =========================================================================
   Services page hero — dog mascots flanking the copy, a running paw-print
   trail in the background, and a scalloped, colourful bottom edge.
   ========================================================================= */
.services-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4.5rem, 9vw, 7.5rem);
  background: #F1ECDB url("images/stripes-blue.svg") 0 0 / 168px 100% repeat-x;
}
.services-hero::before { display: none; } /* paw trail retired for the plaid look */
.services-hero > .container {
  position: relative; z-index: 2; max-width: 760px;
}

/* --- paper note pinned on the stripes --- */
.paper-note {
  position: relative; z-index: 3; width: min(600px, 100%); margin-inline: auto;
  transform: rotate(-0.6deg); filter: drop-shadow(0 20px 36px rgba(0,0,0,.28));
}
.paper-inner {
  background-color: #fdfaf0; text-align: center; border-radius: 10px;
  padding: clamp(2.6rem, 1.6rem + 3vw, 3.8rem) clamp(1.7rem, 4vw, 3rem) clamp(2.8rem, 1.6rem + 3vw, 4rem);
}
.paper-note .breadcrumb { color: #a4977c; margin-bottom: .9rem; }
.paper-note .breadcrumb a { color: #a4977c; }
.paper-note .breadcrumb a:hover { color: var(--pink); }
.paper-eyebrow {
  display: block; font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; color: #b07d34; margin-bottom: 1rem;
}
.paper-note h1 {
  font-family: var(--font-display); color: var(--navy-deep);
  text-transform: uppercase; line-height: 1.03; letter-spacing: .01em;
  font-size: clamp(1.45rem, 1rem + 2.2vw, 2.3rem); margin: 0 0 1.05rem;
}
.paper-note .lead {
  color: #6b6252; max-width: 40ch; margin-inline: auto;
  font-size: clamp(.95rem, .9rem + .3vw, 1.05rem); line-height: 1.6;
}
/* round Seva seals, like the stamps in the reference */
.stamp { position: absolute; z-index: 4; width: clamp(60px, 8vw, 94px); height: auto; }
.stamp-tl { top: -18px; left: -14px; transform: rotate(-13deg); }
.stamp-br { bottom: -20px; right: -10px; transform: rotate(10deg); }
@media (max-width: 520px) { .stamp { width: 58px; } .stamp-tl{ left:-6px } .stamp-br{ right:-4px } }
/* watercolor dogs flanking the paper note, facing inward */
.hero-dog {
  position: absolute; z-index: 2; bottom: 0;   /* feet on the ground of the striped hero */
  width: clamp(195px, 25vw, 415px); height: auto; pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(22, 58, 108, .14));
}
.hero-dog-l { left: clamp(0px, 2vw, 60px); width: clamp(185px, 23vw, 385px); }
.hero-dog-r { right: clamp(0px, 2vw, 60px); transform: scaleX(-1); width: clamp(160px, 20vw, 340px); }
/* scalloped, two-tone bottom edge */
.hero-scallop {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  width: 100%; height: clamp(44px, 6vw, 70px); display: block;
}
@media (max-width: 1200px) { .hero-dog { width: clamp(150px, 17vw, 250px); } }
@media (max-width: 920px) {
  .hero-dog { display: none; }
  .services-hero > .container { max-width: 620px; }
  .services-hero { padding-bottom: clamp(58px, 15vw, 92px); }
}

/* =========================================================================
   Full-bleed photo strip — a tight, edge-to-edge band of patient photos that
   slides slowly across (no frames, no gaps), sitting under the services hero.
   ========================================================================= */
.photo-strip {
  width: 100%; overflow: hidden; line-height: 0; background: var(--navy-soft);
  border-block: 4px solid #fff;
}
.ps-track {
  display: flex; width: max-content;
  animation: marquee-scroll 60s linear infinite; will-change: transform;
}
.photo-strip:hover .ps-track { animation-play-state: paused; }
.ps-item {
  flex: 0 0 auto;
  width: clamp(148px, 18vw, 224px); height: clamp(148px, 18vw, 224px);
}
.ps-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) {
  .ps-track { animation: none; }
}

/* =========================================================================
   Urgent-care "ticket" card — punched circle top edge, framed cream panel,
   icon cells + newsletter strip (styled after the candy-cart reference).
   ========================================================================= */
.cart-card {
  width: 100vw; margin-left: calc(50% - 50vw); max-width: none;
  background: var(--pink); border-radius: 0; padding: clamp(15px, 2.2vw, 36px);
}
.cart-panel {
  position: relative; background: var(--cream); border-radius: 6px; overflow: hidden;
  padding: clamp(2.6rem, 1.4rem + 3.4vw, 4rem) clamp(1.3rem, 3vw, 3rem) clamp(1.8rem, 1rem + 2vw, 3rem);
}
/* punched circle top edge — pink half-circles dipping into the cream */
.cart-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px;
  background: radial-gradient(circle 19px at 25px 0, var(--pink) 18px, transparent 19px) repeat-x;
  background-size: 50px 34px; background-position: center top;
}
.cart-eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: .22em;
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  color: var(--pink-deep); margin: 0 0 .35rem;
}
.cart-title {
  text-align: center; font-family: "Playfair Display", Georgia, serif;
  font-weight: 800; color: var(--pink-deep); letter-spacing: .01em;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.9rem); line-height: 1.05;
  margin: 0 0 clamp(1.5rem, 3vw, 2.3rem);
}
.cart-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cart-cell {
  flex: 0 0 calc((100% - 4 * 12px) / 5);   /* 5 per row; last row stays centred */
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-align: center; padding: 1.2rem .7rem 1.35rem; min-height: 146px;
  background: #fff; border: 1.5px solid rgba(229, 57, 127, .32); border-radius: 8px;
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.cart-cell:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(22, 58, 108, .12); }
.cart-ic { width: 38px; height: 38px; flex: 0 0 auto; }
.c-pink .cart-ic { color: var(--pink); }
.c-navy .cart-ic { color: var(--navy); }
.c-sun  .cart-ic { color: var(--sun-deep); }
.c-mint .cart-ic { color: var(--mint); }
.cart-cell-name {
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
  font-size: 1.14rem; line-height: 1.25;
}
.cart-btn {
  display: block; width: max-content; margin: clamp(1.5rem, 3vw, 2.1rem) auto 0;
  background: var(--pink-deep); color: #fff; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: .85rem;
  padding: .72rem 1.7rem; border-radius: 8px; box-shadow: 0 10px 22px rgba(196, 45, 106, .3);
  transition: transform .2s var(--ease-out), box-shadow .2s ease;
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(196, 45, 106, .4); }
/* newsletter strip below the card */
.cart-news {
  max-width: 1060px; margin: clamp(1.2rem, 2.5vw, 1.8rem) auto 0;
  background: var(--pink-soft); border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.2rem, 3vw, 2rem);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap;
}
.cart-news p {
  margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--pink-deep); font-size: clamp(.8rem, .7rem + .35vw, .95rem);
}
.cart-news-form { display: flex; gap: .5rem; }
.cart-news-form input {
  border: none; border-radius: 8px; padding: .72rem 1rem; min-width: 210px;
  font-family: var(--font-body); background: #fff; color: var(--ink);
}
.cart-news-form button {
  background: var(--pink); color: #fff; border: none; border-radius: 8px;
  padding: .72rem 1.3rem; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
  transition: background .2s ease;
}
.cart-news-form button:hover { background: var(--pink-deep); }
@media (max-width: 900px) { .cart-cell { flex-basis: calc((100% - 2 * 12px) / 3); } }
@media (max-width: 560px) { .cart-cell { flex-basis: calc((100% - 12px) / 2); } }

/* Urgent Care only: beige card frame + scallop instead of pink */
#urgent-care .cart-card { background: #F4DDB0; }
#urgent-care .cart-panel::before {
  background: radial-gradient(circle 19px at 25px 0, #F4DDB0 18px, transparent 19px) repeat-x;
  background-size: 50px 34px; background-position: center top;
}

/* =========================================================================
   Services CTA — dashed "quiz-style" box with hand-drawn arrows (inspo)
   ========================================================================= */
.quiz-cta { position: relative; max-width: 760px; margin-inline: auto; }
.quiz-box {
  position: relative; z-index: 2; text-align: center;
  border: 2.5px dashed var(--pink); border-radius: 24px;
  padding: clamp(2rem, 1.4rem + 2.4vw, 3.2rem) clamp(1.4rem, 4vw, 3.4rem);
}
.quiz-pill {
  display: inline-block; background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: .68rem; padding: .42rem .95rem; border-radius: var(--pill);
  margin-bottom: 1.1rem;
}
.quiz-title {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; color: var(--navy-deep);
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.12; margin: 0 0 .8rem;
}
.quiz-sub { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.5rem; }
.quiz-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
/* hand-drawn arrows flanking the box, pointing inward */
.quiz-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: clamp(58px, 7vw, 104px); height: auto; color: var(--navy); opacity: .8; pointer-events: none;
}
.quiz-arrow-l { right: calc(100% + 4px); }
.quiz-arrow-r { left: calc(100% + 4px); transform: translateY(-50%) scaleX(-1); }
@media (max-width: 880px) { .quiz-arrow { display: none; } }

/* =========================================================================
   Contact form
   ========================================================================= */
.form { display: grid; gap: 1.1rem; }
.form .field { display: grid; gap: .4rem; }
.form label { font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: .95rem; }
.form input, .form select, .form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .85rem 1.1rem; border-radius: var(--r-sm); border: 2px solid rgba(22,58,108,.12);
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-tint);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form .form-note { font-size: .85rem; color: var(--ink-soft); }
.form .form-status { font-family: var(--font-display); font-weight:500; color: #1C8375; display:none; }
.form .form-status.show { display:block; }

/* Contact info list */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; background: var(--pink-tint); color: var(--pink); display: grid; place-items: center; }
.contact-list .ci-icon svg { width: 22px; height: 22px; }
.contact-list b { font-family: var(--font-display); color: var(--navy); display: block; font-weight: 600; }
.contact-list a, .contact-list span { color: var(--ink-soft); }
.contact-list a:hover { color: var(--pink); }

.map-slot { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.map-slot iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Hours table */
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed rgba(22,58,108,.15); }
.hours li:last-child { border-bottom: none; }
.hours li span:first-child { font-family: var(--font-display); font-weight: 500; color: var(--navy); }
.hours li.today { color: var(--pink); }
.hours li.today span:first-child { color: var(--pink); }

/* Get-directions link (under the address) */
.contact-list a.directions-link {
  display: flex; width: max-content; align-items: center; gap: .35rem;
  margin-top: .45rem; font-family: var(--font-display); font-weight: 600;
  font-size: .92rem; color: var(--pink);
}
.contact-list a.directions-link:hover { color: var(--pink-deep); }
.contact-list a.directions-link svg { width: 1em; height: 1em; }

/* Social links (contact section) */
.social-links { display: flex; gap: .55rem; margin-top: .35rem; }
.social-links a {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--pink-tint); color: var(--pink);
  display: grid; place-items: center;
  transition: transform .2s var(--ease-out), background .2s ease, color .2s ease;
}
.social-links a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 21px; height: 21px; }

/* Footer social row */
.footer-social { display: flex; gap: .55rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.09); color: #fff;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }

/* =========================================================================
   Contact — professional one-line contact bar + hours/map row
   ========================================================================= */
.contact-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  background: #fff; border: 1px solid rgba(22, 58, 108, .08);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 1.8rem) clamp(1.4rem, 3.4vw, 2.3rem);
}
.cb-item { display: flex; align-items: center; gap: .8rem; }
.cb-ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  background: var(--pink-tint); color: var(--pink); display: grid; place-items: center;
}
.cb-ic svg { width: 21px; height: 21px; }
.cb-text { display: flex; flex-direction: column; gap: .12rem; line-height: 1.25; min-width: 0; }
.cb-label {
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft);
}
.cb-text > a:not(.cb-dir) {
  color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.cb-text > a:not(.cb-dir):hover { color: var(--pink); }
.cb-dir {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .15rem;
  color: var(--pink); font-family: var(--font-display); font-weight: 600; font-size: .82rem;
}
.cb-dir:hover { color: var(--pink-deep); }
.cb-dir svg { width: 1em; height: 1em; }
.cb-sep { flex: 0 0 auto; width: 1px; align-self: stretch; min-height: 46px; background: rgba(22, 58, 108, .12); }
/* socials — just the icons, pushed to the far right */
.cb-socials { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.cb-socials a {
  color: var(--pink); display: grid; place-items: center; width: 34px; height: 34px;
  transition: color .2s ease, transform .2s var(--ease-out);
}
.cb-socials a:hover { color: var(--pink-deep); transform: translateY(-2px); }
.cb-socials svg { width: 24px; height: 24px; }

.contact-lower {
  display: grid; grid-template-columns: minmax(258px, 360px) 1fr;
  gap: clamp(1.1rem, 2.4vw, 1.8rem); align-items: stretch;
  margin-top: clamp(1.1rem, 2.5vw, 1.7rem);
}
.contact-lower .hours-card { height: 100%; }
.contact-lower .map-slot { min-height: 300px; }
@media (max-width: 900px) { .contact-lower { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .cb-sep { display: none; }
  .contact-bar { gap: 1.15rem 1.4rem; }
  .cb-socials { margin-left: 0; }
}

/* =========================================================================
   Booking hero — full-bleed dark section: form + dog-family illustration
   ========================================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.btn-block { width: 100%; justify-content: center; }

.book-section {
  background-color: #5d5a8f;   /* periwinkle-violet (reference vibe) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 260 260'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cg transform='translate(40 46) rotate(-18)'%3E%3Cellipse cx='0' cy='10' rx='9' ry='11'/%3E%3Cellipse cx='-13' cy='-6' rx='4.5' ry='6'/%3E%3Cellipse cx='-2' cy='-13' rx='4.5' ry='6'/%3E%3Cellipse cx='9' cy='-10' rx='4.5' ry='6'/%3E%3Cellipse cx='16' cy='2' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(175 150) rotate(12)'%3E%3Cellipse cx='0' cy='10' rx='9' ry='11'/%3E%3Cellipse cx='-13' cy='-6' rx='4.5' ry='6'/%3E%3Cellipse cx='-2' cy='-13' rx='4.5' ry='6'/%3E%3Cellipse cx='9' cy='-10' rx='4.5' ry='6'/%3E%3Cellipse cx='16' cy='2' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(115 215) rotate(-6)'%3E%3Cellipse cx='0' cy='10' rx='7' ry='9'/%3E%3Cellipse cx='-10' cy='-5' rx='3.6' ry='4.8'/%3E%3Cellipse cx='-1' cy='-11' rx='3.6' ry='4.8'/%3E%3Cellipse cx='7' cy='-8' rx='3.6' ry='4.8'/%3E%3Cellipse cx='13' cy='1' rx='3.6' ry='4.8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #e7e9f4;
  overflow: hidden;
}
.book-grid {
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.book-form-col { position: relative; z-index: 2; max-width: 560px; }
.book-section .eyebrow { color: #ff7fb0; }
.book-section .eyebrow::before { background: #ff7fb0; }
.book-section h2 { color: #fff; }
.book-sub { color: #aab3c6; margin-bottom: 1.5rem; max-width: 46ch; }

.book-section .form input,
.book-section .form select,
.book-section .form textarea {
  background: #fff; border-color: transparent; box-shadow: 0 3px 12px rgba(0,0,0,.28);
}
.book-section .form input::placeholder,
.book-section .form textarea::placeholder { color: #8a97b0; }
.book-section .form input:focus,
.book-section .form select:focus,
.book-section .form textarea:focus {
  border-color: var(--pink); box-shadow: 0 0 0 4px rgba(229,57,127,.35);
}
.book-section .form-status { color: #86e6d3; }
.book-note { color: #8b93a6 !important; }

.book-section .consent {
  display: flex; gap: .6rem; align-items: flex-start;
  color: #c3cfe6; font-family: var(--font-body); font-size: .9rem; line-height: 1.4; font-weight: 400; cursor: pointer;
}
.consent input {
  flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .15rem;
  accent-color: var(--pink); cursor: pointer;
}

/* dog-family illustration — framed as a soft rounded portrait on the
   periwinkle background (the image carries its own dark backdrop) */
.book-art { position: relative; z-index: 1; }
.book-art img {
  display: block; width: 100%; height: auto; max-width: 520px; margin-inline: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 55px rgba(20, 16, 46, .45);
}

.info-row { margin-top: 0; }

@media (max-width: 860px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-art { order: -1; max-width: 420px; margin-inline: auto; }
  .book-form-col { max-width: none; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--navy-deep); color: #b9c6df; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; position: relative; overflow: hidden; }

/* Full-bleed animated cat video as the footer background, text overlaid on top */
.footer-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0; pointer-events: none;
}
.footer-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 42, 80, .62) 0%, rgba(14, 42, 80, .84) 100%);
}
.site-footer > .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .footer-video { display: none; }   /* fall back to the solid navy footer */
}
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; }
.footer-grid a { color: #b9c6df; }
.footer-grid a:hover { color: var(--sun); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .brand .brand-name b { color: #fff; }
.site-footer .brand .brand-name span { color: var(--sun); }
.site-footer .brand-blurb { margin-top: 1rem; max-width: 34ch; font-size: .95rem; color: #96a6c6; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #8496b8; }
.footer-emergency { background: rgba(229,57,127,.14); border: 1px solid rgba(229,57,127,.35); border-radius: var(--r); padding: 1rem 1.2rem; color: #ffd7e6; font-size: .9rem; }
.footer-emergency b { color: #fff; }

/* =========================================================================
   Scroll-reveal animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---- Text entrance: headings rise word-by-word; supporting copy fades up ---- */
/* JS wraps heading text in <span class="word" style="--wi:n">; container gets .anim-words,
   then .in when scrolled into view. Inline elements (e.g. hero <em>CARE</em>) are preserved. */
.anim-words .word { display: inline-block; opacity: 0; transform: translateY(.9em) rotate(3deg); }
.anim-words.in .word {
  animation: word-rise .6s var(--ease-out) both;
  animation-delay: calc(var(--wi, 0) * .045s);
}
@keyframes word-rise {
  from { opacity: 0; transform: translateY(.9em) rotate(3deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}
.anim-fade { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.anim-fade.in { opacity: 1; transform: none; }
.section-head .lead.anim-fade { transition-delay: .1s; }
.hh-sub.anim-fade { transition-delay: .3s; }
/* hero CTA eases in on load — opacity only, so the :hover lift keeps working */
.home .hh-center .btn { animation: cta-in .55s var(--ease-out) both; animation-delay: .5s; }
@keyframes cta-in { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-art { order: -1; max-width: 460px; margin-inline: auto; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: #fff; padding: 1rem; box-shadow: var(--shadow); border-radius: 0 0 var(--r) var(--r);
  }
  .site-header.open .nav-links a { padding: .8rem 1rem; }
  .site-header.open .nav-cta .btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .checklist.two { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .g-item { width: calc(var(--w, 200px) * .78); height: calc(var(--h, 260px) * .78); }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .anim-words .word, .anim-fade { opacity: 1; transform: none; }
}
