/* ==========================================================================
   Voo Vets — Homepage
   Vanilla HTML / CSS / JS build from Figma (raw build, pre-WordPress split)
   ========================================================================== */

:root {
  /* Brand colours (from Figma variables) */
  --color-teal: #00b2a9;
  --color-navy: #00004c;
  --color-midnight: #00004d;
  --color-grey: #676e67;
  --color-mint: #87ffbd;
  --color-lavender: #cddfff;
  --color-bubblegum: #ffd9ff;
  --color-pink: #ffdaff;
  --color-sage: #e7f3e7;
  --color-white: #ffffff;

  /* Fonts — Pogonia is a licensed display font used in the Figma file,
     self-hosted from /fonts (see the @font-face block below). Plus Jakarta
     Sans is the web-safe fallback while a Pogonia weight is loading or if
     a file ever fails to fetch. */
  --font-display: 'Pogonia', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1480px;
  --container-med-width: 1600px;
  --container-big-width: 1875px;
  --gutter: 40px;
  --radius-lg: 30px;
  --radius-md: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 40px rgba(0, 0, 0, 0.1);
  --header-height: 104px;
}

/* --------------------------------------------------------------------------
   Pogonia — single variable-weight family, self-hosted.
   One @font-face per weight, all under the same font-family name so any
   numeric font-weight (100–900) resolves to the matching cut automatically
   — no separate "Pogonia Extra" family or manual weight-swapping needed.
   Paths are relative to THIS file (css/style.css), so they go up one level
   into /fonts — a bare 'fonts/...' path would incorrectly look inside
   css/fonts/ and 404, silently falling back to Plus Jakarta Sans.
   woff2 is listed first (smaller, and the only format every target browser
   needs); woff is kept as a zero-cost fallback since a browser only ever
   fetches the first format it supports, never both.
   font-display: swap avoids invisible text while each weight loads, and
   the two weights actually used above the fold (Regular for nav/body copy,
   Black for the H1) are additionally warmed up via <link rel="preload">
   in the <head>. */
@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaThin.woff2') format('woff2'),
        url('../fonts/PogoniaThin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaExtraLight.woff2') format('woff2'),
        url('../fonts/PogoniaExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaLight.woff2') format('woff2'),
        url('../fonts/PogoniaLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaRegular.woff2') format('woff2'),
        url('../fonts/PogoniaRegular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaMedium.woff2') format('woff2'),
        url('../fonts/PogoniaMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaSemibold.woff2') format('woff2'),
        url('../fonts/PogoniaSemibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaBold.woff2') format('woff2'),
        url('../fonts/PogoniaBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaExtraBold.woff2') format('woff2'),
        url('../fonts/PogoniaExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pogonia';
    src: url('../fonts/PogoniaBlack.woff2') format('woff2'),
        url('../fonts/PogoniaBlack.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--color-navy);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; display: block; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; }
table { border-collapse: collapse; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-teal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.med-container {
  width: 100%;
  max-width: var(--container-med-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.big-container {
  width: 100%;
  max-width: var(--container-big-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }

.btn-mint { background: var(--color-mint); color: var(--color-navy); }
.btn-mint:hover { box-shadow: 0 6px 18px rgba(135, 255, 189, 0.55); }

.btn-teal { background: var(--color-teal); color: #fff; }
.btn-teal:hover { box-shadow: 0 6px 18px rgba(0, 178, 169, 0.4); }

.btn-small { padding: 0.7rem 1.4rem; font-size: 0.95rem; }
.btn-icon svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 20px 1.25rem;
  background: transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
/* Toggled by main.js once the page has scrolled 50px from the top. */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 76, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-mark { width: clamp(88px, 8vw, 118px); height: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  /* Auto height — driven by the 53px-tall link buttons plus this 5px
     top/bottom padding, not a fixed height. */
  padding: 5px;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-teal);
  /* 18px top/bottom + 17px (1.0625rem) line box = 53px total button height. */
  padding: 18px 0.9rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a:focus-visible { background: var(--color-mint); color: var(--color-navy); }
.main-nav a.active { background: var(--color-mint); color: var(--color-navy); }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.btn-contact { padding: 0.85rem 1.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: #fff;
    padding: 6rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; background: none; padding: 0; gap: 0.25rem; }
  .main-nav a { display: block; padding: 0.9rem 1rem; font-size: 1.25rem; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .btn-contact { padding: 0.7rem 1.1rem; font-size: 0.95rem; }
}
@media (max-width: 560px) {
  .main-nav { inset: 0; }
  .btn-icon .btn-label { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--color-pink);
  /* Background bleeds all the way to the top of the viewport behind the
     fixed header; this top padding just keeps the heading/logo clear of it. */
  /* padding-top: calc(var(--header-height) + clamp(1.5rem, 4vw, 3rem)); */
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding-top: 230px;
  
}

.hero-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* stretch (not start) so .hero-art always fills the full row height —
     its child .hero-photo is pinned to its bottom, so this keeps the
     photo flush with the row's bottom edge at every breakpoint. */
  align-items: stretch;
}

.hero-col--text {
  display: flex;
  /* padding-left: var(--gutter); */
}

.hero-copy {
  width: 100%;
  max-width: 860px;
  height: auto;
  margin-left: auto;
  text-align: left;
  /* padding: 255px 0 150px 0; */
  padding: 150px 0;
}



.hero-col--art {
  position: relative;
}
.hero-art {
  position: absolute;
  bottom: 0;
  left: 0;
}
.hero-heart {
  display: block;
  width: 1015px;
  max-width: none;
  height: auto;
  margin-bottom: 40px;
  opacity: 0;
  animation: hero-fade-in 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-photo {
  position: absolute;
  bottom: 0;
  right: 25%;
  /* width: 62%; */
  width: auto;
  height: auto;
  left: auto;
  opacity: 0;
  animation: hero-fade-in-up 1s ease forwards;
  animation-delay: 0.6s;
}

/* Hero load-in animations — .hero-heart fades in immediately, .hero-photo
   fades in 4s later while sliding up 40px into its resting position. Pure
   CSS (no JS needed for a one-shot page-load effect); animation-fill-mode:
   forwards (the "forwards" keyword in the shorthand) keeps each element at
   its final, fully-visible state once its animation ends. */
@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hero-fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 850px) {
  .hero-heart {
    width: 600px;
    right: auto;
  }
  .hero-photo {
    right: auto;
    width: 300px;
  }
}
.hero-copy h1 {
  font-weight: 600;
  /* font-size: clamp(2.5rem, 5vw, 5.375rem); */
  line-height: .9;
  letter-spacing: -0.03em;
  color: var(--color-teal);
  max-width: 20ch;
  font-size: 80px;
}
.hero-copy p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--color-teal);
  margin-block: 1.5rem 2rem;
  max-width: 42ch;
}

.hero-video {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-video__poster,
.hero-video__player {
  width: 100%;
  aspect-ratio: 1874 / 853;
  object-fit: cover;
  /* Rounded independently of .hero-video's own overflow:hidden, so the
     video/poster stay correctly clipped even at the 780px breakpoint
     where .hero-video switches to overflow: visible to let the "Need to
     talk?" button sit outside the frame. */
  border-radius: var(--radius-lg);
}
.hero-video__player { display: none; background: #000; }

/* Once playing, swap the poster + button out for the real <video> */
.hero-video.is-playing .hero-video__poster,
.hero-video.is-playing .play-btn {
  display: none;
}
.hero-video.is-playing .hero-video__player { display: block; }

/* The whole poster is the click target — not just the icon — so the button
   covers the full .hero-video area, while the visible play icon inside it
   stays a fixed 85x85px, centered via flex. */
.play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.play-btn:hover img { transform: scale(1.08); }
.play-btn img {
  width: 85px;
  height: 85px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.hero-video__talk {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 5;
}
.hero-video__talk img { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */
.trust-bar { padding-block: 68px; padding-inline: 30px; }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.trust-logo { width: 326px; height: auto; flex-shrink: 0; }
.trust-divider {
  display: block;
  width: 1px;
  height: 77px;
  background: #00004C;
  opacity: 0.2;
  flex-shrink: 0;
}
.trust-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.25rem;
  color: var(--color-navy);
  font-size: 1.0625rem;
}

/* Force the logo onto its own line above .trust-stats at a fixed
   breakpoint (rather than leaving it to whatever width the content
   happens to naturally overflow at), and drop the divider once it does —
   a vertical divider makes no sense once the two sides are stacked. */
@media (max-width: 1660px) {
  .trust-logo { flex-basis: 100%; max-width: 360px; }
  .trust-divider { display: none; }
}
.trust-stats li { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.trust-stats img { flex-shrink: 0; object-fit: scale-down; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */
.features { padding-block: clamp(2rem, 5vw, 4rem); padding-top: 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.feature-card {
  background: #f0f6ff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-card__body { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-card h2 {
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--color-navy);
}
.feature-card p { color: var(--color-grey); font-size: 1.0625rem; line-height: 1.5; }
.feature-icon {
  height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-sizing: content-box;
  align-self: center;
  margin-block: auto;
  padding-block: 30px;
  flex-shrink: 0;
}
.feature-card .btn { align-self: center; }

/* --------------------------------------------------------------------------
   Pet gallery
   -------------------------------------------------------------------------- */
.pet-gallery { padding-block: clamp(3rem, 6vw, 5rem); }
.pet-gallery .section-head {
  padding-left: 50px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.section-head h2 {
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3.125rem);
  letter-spacing: -0.03em;
  color: var(--color-navy);
  padding-bottom: 20px;
}
.section-head p {
  font-family: var(--font-display);
  /* font-size: clamp(1rem, 1.2vw, 1.3125rem); */
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-top: 0.75rem;
  max-width: 40ch;
}
.carousel-controls { display: flex; gap: 0.75rem; }

/* Owl Carousel's own nav markup is generated inside #petGalleryCarousel,
   then moved into #petGalleryControls (see main.js) so it sits next to the
   heading like the design. Style the generated .owl-nav buttons directly. */
.owl-nav { display: flex; gap: 0.75rem; }
.owl-nav button.owl-prev,
.owl-nav button.owl-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 76, 0.15);
  background: #fff;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.owl-nav button.owl-next {
  background: var(--color-mint);
  border-color: var(--color-mint);
}
.owl-nav button.owl-prev:hover:not(.disabled) { background: var(--color-sage); }
.owl-nav button.owl-next:hover:not(.disabled) { filter: brightness(0.96); }
.owl-nav button.disabled {
  background: #fff;
  border-color: rgba(0, 0, 76, 0.1);
  color: rgba(0, 0, 76, 0.3);
  cursor: default;
  pointer-events: none;
}

/* Full-bleed carousel viewport — flush with the .container's left edge so
   the row starts aligned with the heading, but has no right-hand
   constraint so the track (and its cut-off last card) can bleed all the
   way to the browser edge. overflow:hidden here (on top of the global
   body{overflow-x:hidden}) stops that bleed from ever creating a
   horizontal scrollbar on mobile. */
.pet-gallery__viewport {
  overflow: hidden;
  padding-left: calc(max((100vw - var(--container-width)) / 2, 0px) + var(--gutter));
}
.pet-gallery__track.owl-carousel { display: block; }

.gallery-item {
  width: 343px;
  flex-shrink: 0;
  margin-right: 24px;
}
.gallery-card {
  position: relative;
  display: block;
  width: 343px;
  height: 438px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 45%);
  z-index: -1;
}
.gallery-label {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gallery-card:hover .gallery-label {
  background: var(--color-mint);
  border-color: var(--color-mint);
  color: var(--color-navy);
}
.gallery-item p {
  width: 343px;
  max-width: 100%;
  margin-top: 1rem;
  color: var(--color-navy);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Find a Voo
   -------------------------------------------------------------------------- */
.find-voo { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 0; }
.find-voo-outer {
  background: var(--color-pink);
  border-radius: var(--radius-lg);
  padding-inline: clamp(1.5rem, 3vw, 2.75rem);
  padding-block: 170px;
  padding: 170px;
}
.find-voo-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 40px;
  display: grid;
  grid-template-columns: 0.55fr 1.15fr;
  align-items: stretch;
  /* overflow: hidden;
  height: 543px; 8*/
}
.find-voo-copy {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  padding: clamp(2rem, 4vw, 3.75rem);
  padding: 50px 60px 50px 0;
  min-height: 514px;
}
.find-voo-copy h2 {
  font-family: 'Pogonia';
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 3.125rem);
  letter-spacing: -0.02em;
  color: var(--color-navy);
  line-height: .9;
  padding-bottom: 20px;
}
.find-voo-copy p {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-block: 1rem 1.75rem;
  padding-bottom: 10px;
}
.postcode-form {
  display: flex;
  align-items: center;
  background: rgba(231, 243, 231, 0.5);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.5rem;
  gap: 1rem;
  max-width: 30rem;
}
.postcode-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  outline: none;
  box-shadow: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--color-grey);
  /* Some browsers (notably Safari) draw their own native focus ring from
     the input's default appearance, independent of outline/border — reset
     it so outline: none below is actually the last word. */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.postcode-form input:focus,
.postcode-form input:focus-visible,
.postcode-form input:active,
input#postcode:focus,
input#postcode:focus-visible,
input#postcode:active {
  outline: none;
  border: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}
.postcode-form input::placeholder { color: rgba(103, 110, 103, 0.55); }
.postcode-form .btn { flex-shrink: 0; }

.find-voo-map {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  /* Scale-in on scroll — same IntersectionObserver-driven .is-visible
     toggle as .cta-card (see main.js), just a different transform. */
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-fade-ready .find-voo-map { opacity: 0; transform: scale(0.85); }
.js-fade-ready .find-voo-map.is-visible { opacity: 1; transform: scale(1); }
.find-voo-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials { margin-block: 90px; }
.testimonials-card {
  position: relative;
  background: #ececec;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
}
.testimonials-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}
.testimonials-head {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0;
  max-width: 375px;
}
.testimonials-head h2 {
  font-weight: 800;
  line-height: 0.9;
  /* font-size: clamp(1.75rem, 2.6vw, 2.5rem); */
  font-size: clamp(1.75rem, 2.6vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--color-navy);
  max-width: 15ch;
  padding-bottom: 30px;
}
.rating { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); }
.rating .stars { color: var(--color-teal); letter-spacing: 2px; }
.rating-score { font-size: 1.3rem; color: var(--color-navy); }
.rating-count { opacity: 0.4; font-size: 1.3rem; color: var(--color-navy); }

.testimonials-grid {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-inline: clamp(1.75rem, 3vw, 2.75rem);
  padding-block: 20px;
}
.review {
  padding-inline: clamp(1rem, 2vw, 2rem);
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.review:not(:last-child) { border-right: 1px solid rgba(0,0,76,0.1); }
.review:first-child { padding-left: 0; }
.review .stars { color: var(--color-teal); letter-spacing: 2px; }
.review p { font-size: 1.0625rem; line-height: 1.5; color: var(--color-navy); }
.review-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.9375rem; }
.review-footer a { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing {  }
.pricing .inner {
  padding: 80px 150px;
  background: #f0f6ff; border-radius: var(--radius-lg); margin-inline: var(--gutter);
}
.pricing .container { max-width: calc(var(--container-width) - 2 * var(--gutter)); padding-inline: clamp(1rem, 3vw, 3rem); }
.pricing .section-head { margin-bottom: 0; padding-bottom: 0; max-width: 384px; }

/* The table sits directly on the section's light-blue background — no
   white card wrapper. Instead a single decorative panel (.pricing-highlight)
   is absolutely positioned behind the "I'm loved" column only, spanning
   from just above the header row to just below the footer buttons, so that
   plan reads as the highlighted/featured option. Its left offset and width
   match the middle <col>'s 34% + 22% share of the table exactly. */
.pricing-table-wrap { overflow-x: auto; overflow-y: visible; padding-block: 16px; padding: 55px 0; }
.pricing-table-inner { position: relative; min-width: 640px; }
.pricing-highlight {
  position: absolute;
  top: -16px;
  bottom: -16px;
  left: 56%;
  width: 22%;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 0;
}
.pricing-table { position: relative; z-index: 1; width: 100%; border-collapse: collapse; table-layout: fixed; }
.pricing-table th, .pricing-table td { padding: 1.1rem 1rem; text-align: center; }
.pricing-table thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.875rem);
  letter-spacing: -0.02em;
  color: var(--color-navy);
  padding-bottom: 1.5rem;
}
.pricing-table tbody th {
  text-align: left;
  font-weight: 400;
  font-family: var(--font-display);
  /* font-size: 1.0625rem; */
  font-size: 21px;
  color: var(--color-navy);  
  padding-left: 30px;
  padding-right: 30px;
}
.pricing-table tbody th::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-navy);
  opacity: 0.4;
  margin-right: 0.75rem;
  vertical-align: middle;
}
.pricing-table tbody tr { border-top: 1px solid rgba(0, 0, 76, 0.1); }
.pricing-table td.yes img,
.pricing-table td.no img { display: inline-block; }
.pricing-table tfoot td { padding-top: 1.75rem; padding-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner { padding-block: 90px; }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cta-card {
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Fade-in-up on scroll — see the IntersectionObserver in main.js, which
     toggles .is-visible. opacity/transform are cheap, GPU-composited
     properties (no layout/paint cost), so this stays smooth even on
     low-power devices. Cards start pre-hidden only once JS confirms it can
     drive the animation (see .js-fade-ready below), so content never gets
     stuck invisible if JavaScript fails to load. */
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-fade-ready .cta-card { opacity: 0; transform: translateY(28px); }
.js-fade-ready .cta-card.is-visible { opacity: 1; transform: translateY(0); }
.cta-card:nth-child(2) { transition-delay: 0.12s; }
.cta-card--blue { background: #ccdeff; }
.cta-card--pink { background: #ffd9ff; }

.cta-card__media { position: relative; flex-shrink: 0; border-radius: 30px; overflow: hidden; }
.cta-card__media img { width: 100%; height: auto; display: block; border-radius: 30px; }
.cta-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 55%);
}
.cta-card__media h2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cta-card__body {
  flex: 1;
  padding: 35px;
  color: var(--color-navy);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.cta-card__columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 2rem); }
.cta-card__col-left { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.cta-card__columns p { margin: 0; font-weight: 600; font-size: 1.1rem;  }
.cta-card p {
  font-weight: 600;
  font-size: 1.1rem; 
}
.cta-card p, .cta-card ul { font-family: var(--font-display); line-height: 1.5;  }
.cta-card__multicol { columns: 2; column-gap: clamp(1rem, 2vw, 2rem); margin: 0; }
.cta-card ul li { padding-block: 0.05rem; }
.cta-card ul li::before { content: '• '; opacity: 0.55; }
.cta-card .btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--color-teal); color: #fff; padding-top: clamp(2.5rem, 5vw, 6rem); }
.footer-grid {
  display: grid;
  /* Brand column absorbs all the flexible space; the three .footer-col
     boxes size to their own content (auto) and cluster together against
     the right edge of the row instead of stretching across it — text
     inside each box stays left-aligned as normal. */
  grid-template-columns: 1fr auto auto auto;
  gap: 80px;
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-logo { width: 220px; height: auto; }
.footer-col h3 { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 400; margin-bottom: 1rem; opacity: 0.75; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a, .footer-col p { font-family: var(--font-display); font-size: 1.0625rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-col--practices .footer-col__lists { display: flex; gap: 2.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a:hover { text-decoration: underline; }

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

@media (max-width: 1500px) {
  .find-voo-outer {
    padding: 30px;
  }
  .find-voo-card {
    padding: 6px;
  }
  .find-voo-copy {
    padding: 40px 30px 50px;
    min-height: 0;
  }
  .pricing .inner {
    padding: 60px 30px;
    margin: 0;
  }
  .pricing-table tbody th {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 18px;
    line-height: 1.2;
  }
}

@media (max-width: 1200px) {
  
  .hero-copy {
    padding-top: 0;
    display: block;
    margin-left: 0;
  }
  .hero-art {
    text-align: right;
  }
  .hero-photo {
    right: 0;
    width: 50%;
  }
  .hero-heart {
    display: inline-block;
    width: 70%;
  }
  .hero-row {
    display: block;
  }
  .hero-col--text {
    position: relative;
    z-index: 50;
    text-align: left;
    display: block;
  }
  .hero-col--art {
    position: relative;
    z-index: 20;
    opacity: 0.2;
  }
}

@media (max-width: 1100px) {
  .features-grid { grid-template-columns: 1fr; }
  .find-voo-card { grid-template-columns: 1fr; height: auto; }
  /* min-width: 0 lets the grid item shrink below the iframe's default
     intrinsic width instead of overflowing the column at narrow widths. */
  .find-voo-map { width: 100%; min-width: 0; height: auto; aspect-ratio: 16 / 9; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-photo { width: 100%; height: auto; aspect-ratio: 1478 / 793; position: static; margin-bottom: 1.25rem; border-radius: var(--radius-md); }
  .testimonials-head { max-width: none; }
  .review:not(:last-child) { border-right: 0; border-bottom: 1px solid rgba(0,0,76,0.1); padding-bottom: 1.25rem; }
  .review { padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  
}

@media (max-width: 860px) {
  .footer-col--practices .footer-col__lists { flex-direction: column; gap: 0.5rem; }
  .hero {
    padding-top: 140px;
  }
  .hero-copy {
    padding-bottom: 100px;
  }
  .hero-copy h1 {
    font-size: 60px;
  }
  .trust-stats {
    gap: 0.25rem 2.25rem;
  }
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  /* .hero-row { grid-template-columns: 1fr; } */
  .find-voo-outer {
    padding: 15px;
  }
  .find-voo-copy {
    padding: 30px 10px;
    box-sizing: border-box;
  }
  .hero-col--text { order: 1; }
  .hero-copy { max-width: none; margin-left: 0; }
  .hero-copy h1, .hero-copy p { max-width: none; }
  .hero-col--art { order: 2; }
  /* .hero-art { position: relative; bottom: auto; left: auto; max-width: 380px; margin-inline: auto; } */
  /* .hero-heart { width: 800px; } */
  /* .hero-photo { right: 0; width: 70%; } */
  .trust-inner { justify-content: center; }

  /* Let the "Need to talk?" button sit outside the video frame, in the
     top-right, instead of overlapping the video itself. */
  .hero-video { overflow: visible; }
  .hero-video__talk { top: -80px; left: 0; right: auto; }

  .cta-card__columns { grid-template-columns: 1fr; }
  .cta-card__multicol { columns: 1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { margin-inline: 1rem; }
}

@media (max-width: 600px) {
  .container,
  .med-container,
  .big-container { padding-inline: 20px; }
  .pet-gallery .section-head {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-links {
    gap: 10px 2rem;
  }
  .testimonials {
    margin-block: 50px;
  }
}

@media (max-width: 560px) {
  .trust-stats { font-size: 0.95rem; gap: 1rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px }
  .testimonials-head { 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 10px 10px 40px;
  }
  .testimonials-head h2 {
    padding-bottom: 5px;
  }
  .pricing-table-inner { min-width: 560px; }
  .pet-gallery__viewport {
    padding-left: 20px;
  }
  .hero-heart { width: 650px; right: -20%; position: relative; }
  .hero-photo {
    width: 40%;
    right: auto;
    left: 186px;
  }
}



@media (max-width: 490px) {
  .find-voo-outer {
    padding: 4px;
  }
  .hero-copy h1 {
    font-size: 50px;
  }
}

@media (max-width: 450px) {
  /* Stack every footer column full-width — .footer-bottom (copyright +
     legal links row) is a separate element and is left untouched. */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Separate the postcode field from the submit button — the pill-shaped
     background moves from the form wrapper onto the input itself, and the
     button drops 15px below instead of sitting inline on the right. */
  .postcode-form {
    flex-direction: column;
    align-items: stretch;
    background: none;
    padding: 0;
    gap: 15px;
  }
  .postcode-form input {
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-pill);
    background: rgba(231, 243, 231, 0.5);
  }
}
