@import url("tokens.css?v=13");

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--fw-body);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* Custom cursor: the logo paw in miniature (pointer devices only).
   Hotspot at the centre of the paw. Links, buttons and fields keep their usual
   hand / text cursor so it stays clear what is clickable. */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("../assets/logo/cursor-paw-32.png?v=2") 16 16, auto;
    cursor: -webkit-image-set(url("../assets/logo/cursor-paw-32.png?v=2") 1x, url("../assets/logo/cursor-paw-64.png?v=2") 2x) 16 16, auto;
    cursor: image-set(url("../assets/logo/cursor-paw-32.png?v=2") 1x, url("../assets/logo/cursor-paw-64.png?v=2") 2x) 16 16, auto;
  }
}

img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-white);
  color: var(--color-teal);
  border-radius: var(--radius-btn);
}
.skip-link:focus { top: 16px; }

/* Visible placeholder for missing content */
.todo {
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  border: 1px dashed currentColor;
  border-radius: 4px;
  font-size: var(--fs-small);
  color: var(--color-teal);
  background: var(--color-white);
}

/* ---------- Button ---------- */
/* Gold on teal = 4.37:1 → bold ≥ 18.66px so it meets AA as large text */
.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: var(--radius-btn);
  background: var(--color-button);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover { background: color-mix(in srgb, var(--color-button) 80%, black); }

/* ---------- Shared section pieces ---------- */
[id] { scroll-margin-top: 76px; }
@media (min-width: 768px) { [id] { scroll-margin-top: 88px; } }

/* Secondary action: a text link, so the only button is the booking one */
.link-more {
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.link-more:hover { text-decoration-color: currentColor; }

.section { padding-block: var(--section-pad); }

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-heading);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--color-heading);
}

.subtitle {
  margin: 0;
  font-size: var(--fs-sub);
  letter-spacing: var(--ls-sub);
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ---------- 00 Header ---------- */
.site-header {
  /* Fixed: the nav stays reachable while scrolling */
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
}
/* Light frosted glass. Drawn on ::before (not the header itself) so the
   mobile menu below can have its own blur too. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.site-header__inner {
  /* Canva: logo and nav sit near the page edges, not in the content container */
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

/* logo-header.png is 800×800 with wide padding: crop to the mark (~55px tall) */
.site-header__logo {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
/* Paw mark only (logo-paw, cropped from logo-header.png) */
.site-header__logo img {
  width: 64px;
  height: 48px;
}

/* Logo: pops in on load, then gives a small wag every few seconds */
.site-header__logo {
  transform-origin: 50% 85%;
  animation: logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
             logo-wag 7s ease-in-out 2s infinite;
}
@keyframes logo-in {
  from { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes logo-wag {
  0%, 86%, 100% { transform: none; }
  89% { transform: rotate(-8deg); }
  92% { transform: rotate(6deg); }
  95% { transform: rotate(-3deg); }
}

.site-header__inner { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .site-header__logo { animation: none; }
}

/* Hamburger (mobile) */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-heading);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 16px 24px;
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--color-teal) 12%, transparent);
}
.site-nav.is-open { display: block; }

.site-nav__list a {
  display: block;
  padding: 12px 0;
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.site-nav__list a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }

.social { display: flex; gap: 16px; margin-top: 12px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -12px;
  color: var(--color-heading);
  transition: color 0.2s ease;
}
.social a:hover { color: var(--color-accent); }

@media (min-width: 768px) {
  .site-header__inner { min-height: 88px; padding-inline: clamp(32px, 6vw, 96px); }

  .nav-toggle { display: none; }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    align-items: center;
    gap: 16px;
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .site-nav__list { display: flex; gap: clamp(16px, 3vw, 32px); }
  .site-nav__list a { padding: 8px 0; }

  .social { margin: 0; }
  .social a { margin-left: 0; width: 36px; height: 36px; }
}

/* ---------- 01 Hero ---------- */
/* Full screen, as in Canva: the video fills the viewport behind the translucent header */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
}

.hero__media {
  grid-area: 1 / 1;
  position: relative;
  background: color-mix(in srgb, var(--color-teal) 14%, var(--color-cream));
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%; /* keep the dog centered on narrow screens */
}


/* Mobile: full-screen crop centred on the dog's face (and the ball) */
@media (max-width: 767px) {
  /* Taller than one screen: video keeps running below the card, so the card
     never sits right against the next section */
  .hero { min-height: calc(100vh + 64px); min-height: calc(100svh + 64px); }
  .hero .hero__content { padding-bottom: calc(clamp(30px, 5vw, 64px) + 32px); }
  .hero__video { object-position: 55% 50%; }
  /* No hero parallax on phones: its extra bleed zoomed the video in even more */
  .has-parallax .hero .hero__media { margin-block: 0; transform: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Panel + trust bar sit at the foot of the video, leaving the dog's face free */
.hero__content {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  text-align: center;
  /* clear the overlaid header */
  padding: calc(76px + 48px) 16px 32px;
}

/* Brand name large, tagline smaller underneath */
.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
}
.hero__brand {
  font-weight: var(--fw-heading);
  font-size: clamp(2rem, 7vw, 4.25rem);
  letter-spacing: 0.1em;
  line-height: 1.05;
  text-shadow: none;
  color: var(--color-accent); /* gold on the teal panel: large text, AA */
}
.hero__tagline {
  margin-top: 12px;
  max-width: 24em;
  text-wrap: balance;
  font-weight: var(--fw-body);
  font-size: clamp(0.9375rem, 2.2vw, 1.25rem);
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--color-on-dark);
  text-shadow: none;
}

/* Title straight on the video. No box: a soft teal gradient rises from the foot of the
   hero (it has no edge, so it melts into the torn cut of the next section). */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: min(42%, 360px);
  background: linear-gradient(to top,
    color-mix(in srgb, var(--color-teal) 60%, transparent) 0%,
    color-mix(in srgb, var(--color-teal) 24%, transparent) 45%,
    transparent 100%);
  pointer-events: none;
}
.hero__content { z-index: 1; }
.hero__paw { align-self: stretch; }
.hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
/* Very discreet CTA: small text link with a thin gold underline */
.hero__link {
  padding: 6px 2px;
  color: var(--color-on-dark);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.2s ease;
}
.hero__link::after { content: " \2192"; }
.hero__link:hover { color: var(--color-accent); }
.hero__link:focus-visible { outline-color: var(--color-accent); }

@media (min-width: 768px) {
  .hero__content { padding: calc(88px + 56px) 0 calc(clamp(30px, 5vw, 64px) + 40px); align-items: stretch; }
  .hero__card { max-width: var(--container); margin-inline: auto; width: 100%; padding-inline: 32px; align-items: flex-start; text-align: left; }
  .hero__title { align-items: flex-start; }
}

@media (min-width: 1280px) {
}

/* ---------- 02 Why choose us ---------- */
/* Canva: photo bleeds off the left edge (~60% wide), text centered in the rest */
.why {
  display: grid;
  background: var(--color-bg);
}

.why__media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.why__text {
  max-width: 20em;
  margin: 0 auto;
  padding: var(--section-pad) 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.why__text .section-title { text-wrap: balance; }
.why__text .subtitle { margin-top: 32px; }
.why__text p:not(.subtitle) { margin: 32px 0 0; }
.why__text .link-more { margin-top: 40px; }

@media (min-width: 768px) {
  .why { grid-template-columns: 50fr 50fr; }
  /* Photo spans the full section height: its own ratio (706 / 1014) or the text, whichever is taller */
  .why__media {
    height: 100%;
    min-height: calc(59vw * 1014 / 706);
    aspect-ratio: auto;
    border-radius: 0 var(--radius-img) var(--radius-img) 0;
  }
  .why__text { align-self: center; padding: 48px 24px; }
  /* Canva: title on one line */
  .why__text .section-title { white-space: nowrap; }
}

@media (min-width: 1280px) {
  .why__text { font-size: 1.0625rem; }
}

/* ---------- 03 Understanding band + About Amira ---------- */
/* Editorial: large photo with a soft shadow | pull quote, title,
   role tags, short bio, link */
.about { background: var(--color-surface); }

.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
  display: grid;
  gap: 56px;
}

.about__media {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
.about__img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-img);
  box-shadow: 0 28px 56px -28px color-mix(in srgb, var(--color-teal) 45%, transparent);
}

.about__text p { margin: 0; }

/* One typeface, two sizes: the shared section title + body text */
.about__text { text-align: center; }
.about__text p { max-width: 34em; margin-inline: auto; line-height: 1.7; }
.about__title + p { margin-top: 24px; }
.about__text p + p { margin-top: 1em; }

/* The band sentence as a quiet closing quote: same size, gold rule */
.about__quote {
  margin: 32px 0 0;
  font-weight: 700;
}
/* short centred gold rule above the quote (a side rule doesn't suit centred text) */
.about__quote::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 24px;
  background: var(--color-accent);
}
.about__text .about__more { margin-top: 32px; }
.about__more .link-more::after { content: " \2192"; }

@media (min-width: 768px) {
  .about__inner {
    padding-inline: 32px;
    grid-template-columns: 5fr 6fr;
    align-items: center;
    gap: var(--gap);
  }
  .about__text { font-size: 1.0625rem; }
}

/* ---------- 04 Founder quote ---------- */
/* Full-width photo as a deep background: it drifts slower than the page
   (data-parallax-inner) and a teal veil keeps the gold quote legible. */
.founder {
  position: relative;
  min-height: clamp(520px, 75vh, 760px);
  display: grid;
  place-items: center;
  padding: var(--section-pad) 16px;
  overflow: hidden;
  background: var(--color-teal); /* while the photo loads */
}

.founder__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.founder__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%; /* Amira's face and the poodle's head */
}
/* Frosted glass over the whole photo: blurred and slightly dimmed
   (brightness, not a colour wash, so it doesn't turn green) */
.founder__img { filter: blur(10px) brightness(0.62) saturate(1.1); }

.founder__quote {
  position: relative;
  margin: 0;
  text-align: center;
  /* soft halo for legibility over the frosted photo */
  text-shadow: 0 1px 2px color-mix(in srgb, var(--color-teal) 70%, transparent),
               0 2px 16px color-mix(in srgb, var(--color-teal) 80%, transparent);
}
.founder__quote blockquote { margin: 0; }
/* Gold on teal = 4.37:1; at this size it's large text (AA) */
.founder__quote blockquote p {
  max-width: 16em;
  margin: 0 auto;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  letter-spacing: var(--ls-sub);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-accent);
  text-wrap: balance;
}
/* Each sentence starts on its own line */
.founder__quote blockquote p span { display: block; text-wrap: balance; }
.founder__quote blockquote p span + span { margin-top: 0.5em; }
.founder__quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
  height: 0.35em;
  color: var(--color-accent);
}
.founder__quote figcaption {
  margin-top: 48px;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--color-on-dark);
}

/* ---------- Image placeholder (missing photos) ---------- */
.placeholder {
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background: color-mix(in srgb, var(--color-teal) 14%, var(--color-cream));
}

/* ---------- 04–07 Service blocks (shared component) ---------- */
/* One block = title + gold subtitle + 3 cards. Blocks stack, so padding is
   lighter than .section to avoid doubling the gap between them. */
.svc { padding-block: calc(var(--section-pad) * 0.75); background: var(--color-bg); /* own colour, so the torn top edge shows the section above */ }
.svc--sand { background: var(--color-sand); }

/* Gold frosted glass: a heavily blurred photo behind a gold glass veil */
.svc--gold { position: relative; isolation: isolate; overflow: hidden; }
.svc--gold::before,
.svc--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.svc--gold::before {
  inset: -60px; /* hide the blurred edges */
  background: url("../assets/images/home/placeholders/care-in-home-sitting--PLACEHOLDER-lowres.jpg") center / cover;
  filter: blur(28px) saturate(1.1);
}
.svc--gold::after {
  /* lighter than the shared gold glass: more white in the mix */
  background: color-mix(in srgb, color-mix(in srgb, var(--color-gold) 12%, var(--color-white)) 90%, transparent);
  border-block: 1px solid var(--glass-border);
}

.svc__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 16px;
  text-align: center;
}

.svc__kicker { margin-bottom: clamp(32px, 5vw, 56px); }

.svc__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: var(--ls-heading);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-heading);
  text-wrap: balance;
}

.svc__sub { margin-top: 16px; text-wrap: balance; }

/* Mobile: swipeable row (full-bleed, next card peeks in) so 12 cards don't
   become an endless scroll. Grid of 3 from 768px. */
.svc__list {
  margin: clamp(32px, 5vw, 64px) -16px 0;
  padding: 0 16px 4px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.svc__list::-webkit-scrollbar { display: none; }
.svc__list:focus-visible { outline-offset: -2px; }

.svc-card {
  flex: 0 0 min(80%, 300px);
  scroll-snap-align: start;
}

.svc-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-img);
}

/* Service name: clearly above the description in the hierarchy
   (bigger, plus a short gold rule beneath it) */
.svc-card__title {
  margin: 20px 0 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-heading);
}
.svc-card__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--color-accent);
}

.svc-card__text {
  max-width: 20em;
  margin: 12px auto 0;
  font-size: 0.9375rem;
  letter-spacing: var(--ls-sub);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .svc__inner { padding-inline: 32px; }
  .svc__list {
    margin-inline: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
    overflow: visible;
  }
  .svc-card__title { margin-top: 32px; }
  .svc-card__text { margin-top: 16px; }
}

/* ---------- 06 Anima Mundi Dogs ---------- */
.dogs { background: var(--color-surface); }

.dogs__head {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 16px;
  text-align: center;
}

.dogs__sub {
  max-width: 50em;
  margin: 32px auto 0;
  text-wrap: balance;
}
/* Canva's line break only works on wide screens */
@media (max-width: 767px) { .dogs__sub br { display: none; } }

/* One organic mosaic: varied tile sizes, rounded corners, thin gaps in the
   page colour; each photo drifts gently inside its tile (parallax) */
.gallery {
  max-width: var(--container);
  margin: 48px auto 0;
  padding-inline: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 44vw;
  grid-auto-flow: dense;
  gap: 8px;
}
.gallery__item { overflow: hidden; border-radius: var(--radius-img); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
/* Gentle zoom (10%) is enough for a 4% drift: the dogs never leave the frame */
.has-parallax .gallery__item img[data-parallax-inner] {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.1);
}
/* Dog at the very bottom of the photo: frame from the bottom and let the zoom
   grow mostly upwards (4% spare below = exactly the drift, so no gap shows) */
.gallery__item--dog-low img { object-position: 50% 100%; transform-origin: 50% 60%; }
/* Dog's face at the top: frame from the top, zoom grows mostly downwards */
.gallery__item--dog-high img { object-position: 50% 0; transform-origin: 50% 40%; }
.gallery__item--dog-high img[src*="dogs-strip-5"] { object-position: 85% 0; } /* face is top-right */
.gallery__item--big  { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
/* phones (2 columns): the last two tiles sit side by side, one cell each, so the grid ends flush with no gap */
@media (max-width: 767px) {
  .gallery__item:nth-child(8),
  .gallery__item:nth-child(9) { grid-column: span 1; grid-row: span 1; }
}

@media (min-width: 768px) {
  .gallery {
    padding-inline: 32px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(150px, 17vw, 230px);
    gap: 12px;
    /* hand-placed so the mosaic has no holes */
    grid-template-areas:
      "a a b c"
      "a a b d"
      "e e f g"
      "h i f g";
  }
  .gallery__item { grid-area: auto; }
  .gallery__item:nth-child(1)  { grid-area: a; }
  .gallery__item:nth-child(2)  { grid-area: b; }
  .gallery__item:nth-child(3)  { grid-area: c; }
  .gallery__item:nth-child(4)  { grid-area: d; }
  .gallery__item:nth-child(5)  { grid-area: e; }
  .gallery__item:nth-child(6)  { grid-area: f; }
  .gallery__item:nth-child(7)  { grid-area: g; }
  .gallery__item:nth-child(8)  { grid-area: h; }
  .gallery__item:nth-child(9)  { grid-area: i; }
}

/* ---------- 08 Not sure what's right ---------- */
/* Full-bleed photo with a gold frosted-glass card (teal text) */
.cta {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 80vh, 720px);
  padding-inline: 16px;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; overflow: hidden; }
.cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%; /* the shepherd's whole face, ears to nose */
}
/* Same photo, heavily blurred, fills the area behind the glass card */
.cta::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: url("../assets/images/home/webp/welcome-german-shepherd-480.webp") 50% 30% / cover;
  filter: blur(30px) saturate(1.1);
}

.cta__text {
  position: relative;
  justify-self: center;
  max-width: 460px;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-img);
  /* light, see-through gold glass: the photo stays visible behind */
  background: color-mix(in srgb, color-mix(in srgb, var(--color-gold) 35%, var(--color-white)) 72%, transparent);
  -webkit-backdrop-filter: blur(5px) saturate(1.1);
  backdrop-filter: blur(5px) saturate(1.1);
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--color-teal) 50%, transparent);
}
.cta__title { max-width: 15em; text-wrap: balance; }
/* subtitle is gold elsewhere; on gold glass it must be teal */
.cta__text .cta__sub { max-width: 16em; margin-top: 20px; color: var(--color-heading); font-weight: 700; }
.cta__body {
  max-width: 24em;
  margin: 20px 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.cta__text .btn { margin-top: 28px; }

/* Mobile: card at the foot so the dog's face stays visible above it */
@media (max-width: 767px) {
  .cta { min-height: 820px; align-items: end; padding-bottom: 24px; }
}
@media (min-width: 768px) {
  .cta { padding-inline: clamp(32px, 6vw, 96px); }
  .cta__text { justify-self: start; }
  /* sharp photo on the right, blurred copy behind the card on the left */
  .cta__bg {
    left: auto;
    width: 62%;
    /* soft seam: the sharp photo fades into the blurred one */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%);
    mask-image: linear-gradient(to right, transparent, #000 22%);
  }
}

/* ---------- 09 Footer ---------- */
/* Teal frosted glass over a blurred photo (its own background now that
   the gallery lives in "Anima Mundi Dogs") */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-footer); /* while the photo loads */
  color: var(--color-on-dark);
  text-align: center;
}
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.site-footer::before {
  inset: -60px;
  background: url("../assets/images/home/webp/collage-3-600.webp") center / cover;
  filter: blur(24px) saturate(1.1);
}
.site-footer::after { inset: 0; background: var(--glass-teal); border-top: 1px solid var(--glass-border); }
.site-footer :focus-visible { outline-color: var(--color-on-dark); }

/* Footer menu: same links as the header, small uppercase on teal glass */
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  margin-bottom: 16px;
}
.footer-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--color-on-dark);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--color-accent); }

.social--footer {
  justify-content: center;
  gap: 20px;
  margin: 0;
}
.social--footer a {
  margin: 0;
  color: var(--color-on-dark);
}
.social--footer a:hover { color: var(--color-accent); }

.site-footer__copy {
  margin: 12px 0 0;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .site-footer { padding-block: 44px; }
}

/* ---------- Parallax (enabled by scripts/main.js unless reduced motion) ---------- */
.hero { overflow: hidden; }

.has-parallax [data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
/* Photo drifts inside its frame: scaled up so edges never show */
.has-parallax [data-parallax-inner] {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.2);
}
/* Extra bleed so the hero backdrop never shows a gap while it drifts */
.has-parallax .hero__media { margin-block: -80px; }

/* ---------- Trust strip (approved addition) ---------- */
/* Glass bar at the foot of the hero, same treatment as the hero panel */
.trust {
  align-self: stretch;
  padding: 12px 20px;
  border: 1px solid color-mix(in srgb, var(--color-on-dark) 20%, transparent);
  border-radius: var(--radius-img);
  background: color-mix(in srgb, var(--color-teal) 45%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--color-on-dark);
  font-size: var(--fs-small);
}
.trust__list {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
  text-align: center;
}

/* ---------- How it works (new) ---------- */
.steps { background: var(--color-surface); }

.steps__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.steps__sub { margin-top: 16px; }

/* Three steps joined by a dashed gold path (vertical on mobile) */
.steps__list {
  margin: 48px 0 0;
  padding: 32px 0 0; /* room for the first badge overlapping its card */
  list-style: none;
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 72px;
}
.step {
  position: relative;
  padding: 0 24px 32px;
  border-radius: var(--radius-img);
  background: var(--color-cream);
}
.step + .step::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: 72px;
  border-left: 2px dashed var(--color-accent);
}
/* Gold on teal = 4.37:1 → bold 24px counts as large text (AA) */
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px auto 0;
  border: 4px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.5rem;
}
.step__title {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-heading);
}
.step__text {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Plan builder: pick services + frequency, live summary, send to the form */
.plan {
  margin: 56px 0 48px;
  width: 100%;
  padding: 32px 16px;
  border-radius: var(--radius-img);
  background: var(--color-teal);
  color: var(--color-on-dark);
  text-align: left;
}
.plan__title {
  margin: 0;
  text-align: center;
  font-weight: var(--fw-heading);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
}
.plan__intro { margin: 8px auto 0; max-width: 34em; text-align: center; font-size: 0.9375rem; opacity: 0.9; }
.plan__body { margin-top: 32px; display: grid; gap: 24px; align-items: start; }

.plan__groups { display: grid; gap: 24px; }
.plan__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.plan__group legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1875rem; /* gold on teal: large text for AA */
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan__group ul { display: grid; gap: 8px; }

/* Each service is a tile; the whole tile is the checkbox's label */
.plan__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 14px 12px 48px;
  border: 1px solid color-mix(in srgb, var(--color-on-dark) 22%, transparent);
  border-radius: var(--radius-img);
  background: color-mix(in srgb, var(--color-on-dark) 5%, transparent);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.plan__item:hover { border-color: var(--color-accent); }
.plan__item:has(input:checked) {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
}
/* native checkbox stays (keyboard + screen readers), drawn as a round tick */
.plan__item input {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: none;
  border: 2px solid color-mix(in srgb, var(--color-on-dark) 60%, transparent);
  border-radius: 50%;
  cursor: pointer;
}
.plan__item input:checked { border-color: var(--color-accent); background: var(--color-accent); }
.plan__item input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--color-teal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* label covers the whole tile so any click toggles it */
.plan__item label { cursor: pointer; font-size: 0.9375rem; line-height: 1.35; }
.plan__item label::before { content: ""; position: absolute; inset: 0; }
.plan__item:has(input:checked) label { font-weight: 700; }
.plan__item select {
  position: relative; /* above the label overlay */
  justify-self: start;
  min-height: 36px;
  padding: 4px 12px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.plan__item:not(:has(input:checked)) select { display: none; }
.plan :focus-visible { outline-color: var(--color-accent); }
.plan__item:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Summary: light frosted "ticket" with teal text */
.plan__summary {
  padding: 24px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-img);
  background: color-mix(in srgb, var(--color-white) 92%, transparent);
  color: var(--color-text);
  text-align: center;
  box-shadow: 0 24px 48px -28px color-mix(in srgb, black 60%, transparent);
}
.plan__summary-title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-heading);
  font-weight: 700;
  font-size: 1.1875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan__lines { margin-top: 8px; display: grid; text-align: left; }
.plan__lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--color-teal) 30%, transparent);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.plan__lines .plan__freq { flex: none; font-weight: 700; text-align: right; }
.plan__lines:empty { display: none; }
.plan__empty { margin: 16px 0 0; font-size: 0.9375rem; }
.plan__lines:not(:empty) + .plan__empty { display: none; }
.plan__send { margin-top: 20px; width: 100%; border: 0; cursor: pointer; }
.plan__send:disabled { opacity: 0.4; cursor: not-allowed; }
.plan__note,
.contact-form__note {
  margin: 12px 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-wrap: balance;
}
.plan__note::before,
.contact-form__note::before { content: "\23F1\FE0E  "; color: var(--color-accent); }
.contact-form__note { margin-top: 16px; }

@media (min-width: 768px) {
  .plan { padding: 48px 32px; }
  .plan__groups { grid-template-columns: 1fr 1fr; column-gap: 20px; }
}
@media (min-width: 1024px) {
  .plan__body { grid-template-columns: 1fr 300px; gap: 32px; }
  /* summary follows the visitor while they pick */
  .plan__summary { position: sticky; top: 112px; }
}


@media (min-width: 768px) {
  .steps__inner { padding-inline: 32px; }
  .steps__list {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
  }
  /* path runs horizontally between badges */
  .step + .step::before {
    bottom: auto;
    top: 0;
    left: auto;
    right: calc(50% + 32px);
    width: calc(100% + var(--gap) - 64px);
    height: 0;
    border-left: 0;
    border-top: 2px dashed var(--color-accent);
  }
}

/* ---------- FAQ (new) ---------- */
.faq__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 16px;
  text-align: center;
}
.faq__list {
  margin-top: 48px;
  text-align: left;
  border-top: 1px solid color-mix(in srgb, var(--color-teal) 25%, transparent);
}
.faq__item { border-bottom: 1px solid color-mix(in srgb, var(--color-teal) 25%, transparent); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-heading);
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0 0 20px; }


/* ---------- Contact form (new) ---------- */
.contact-form__inner {
  max-width: 640px;
  margin: 0 auto;
  padding-inline: 16px;
  text-align: center;
}
.contact-form__inner > .todo { margin-top: 24px; }

/* Service area + form side by side on desktop, area first on mobile */
.contact-form__grid { margin-top: 40px; display: grid; gap: 40px; text-align: left; }
.contact-form__grid .form { margin-top: 0; }

.area {
  padding: 20px;
  border-radius: var(--radius-img);
  background: var(--color-surface);
  box-shadow: 0 20px 40px -28px color-mix(in srgb, var(--color-teal) 55%, transparent);
}
.area__title {
  margin: 0;
  font-size: 1.1875rem;
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--color-heading);
}
.area__text { margin: 8px 0 16px; }
.area__map {
  height: 280px;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: color-mix(in srgb, var(--color-teal) 10%, var(--color-cream));
}
/* softer, on-brand map: desaturate the tiles, keep our own shapes in colour */
.area__map .leaflet-tile-pane { filter: grayscale(1) contrast(0.9) brightness(1.08); }
.area__map .leaflet-control-attribution { font-size: 10px; }
.area__label {
  padding: 2px 8px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--color-teal);
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  box-shadow: none;
}
.area__label::before { display: none; }
.area__outside {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--color-accent);
  font-size: 0.9375rem;
}

.form {
  margin-top: 40px;
  display: grid;
  gap: 20px;
  text-align: left;
}
.form__row { display: grid; gap: 20px; }
.form__field { display: grid; gap: 6px; }
.form label {
  font-weight: 700;
  color: var(--color-heading);
}
.form__optional { font-weight: 400; }

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-teal);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.form textarea { resize: vertical; }

.form :is(input, select, textarea):focus-visible { outline-offset: 1px; }

/* Visually hidden spam trap (still in the DOM for bots) */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  justify-self: center;
  border: 0;
  cursor: pointer;
}
.form__status { margin: 0; text-align: center; }
.form__status:empty { display: none; }

@media (min-width: 768px) {
  .contact-form__inner { padding-inline: 32px; }
}
@media (min-width: 1024px) {
  .contact-form__inner { max-width: var(--container); }
  .contact-form__grid { grid-template-columns: 6fr 5fr; align-items: start; } /* form first, the map after it */
  .area { position: sticky; top: 112px; }
  .form__row { grid-template-columns: 1fr 1fr; }
}

/* Contact form: short privacy line above the Send button */
.form__note { margin: 0; font-size: 0.8125rem; line-height: 1.5; text-align: center; color: var(--color-heading); }
.form__note a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 3px; }

/* ---------- Cookie notice (see scripts/consent.js): label glass, equal Accept / Decline ---------- */
.cookie {
  position: fixed;
  z-index: 200;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  padding: 18px 20px 16px;
  border: var(--label-border);
  border-radius: var(--radius-img);
  background: color-mix(in srgb, var(--color-white) 92%, transparent);
  -webkit-backdrop-filter: var(--label-blur);
  backdrop-filter: var(--label-blur);
  box-shadow: var(--label-shadow);
  color: var(--color-heading);
}
@media (min-width: 768px) { .cookie { left: 24px; right: auto; bottom: 24px; } }
.cookie__title { margin: 0; font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.05em; text-transform: uppercase; }
.cookie__text { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.55; }
.cookie__text a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie__btn {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--color-teal);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--color-teal);
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.cookie__btn--main { background: var(--color-teal); color: var(--color-gold); }
.cookie__btn:hover { transform: translateY(-1px); }
.cookie__btn:active { transform: translateY(0) scale(0.98); }
.cookie__btn:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cookie__btn { transition: none; } }

/* Footer logo: on a beige glass chip (same label tokens as every other label), so its dark lettering stays readable over the teal footer */
.footer-logo {
  display: block;
  margin: 0 0 22px;
  padding: 14px 24px 12px;
  border: var(--label-border);
  border-radius: 20px;
  background: var(--label-bg);
  -webkit-backdrop-filter: var(--label-blur);
  backdrop-filter: var(--label-blur);
  box-shadow: var(--label-shadow-chip);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-logo img { display: block; width: 150px; height: auto; }
.footer-logo:hover { transform: translateY(-3px); }
.footer-logo:active { transform: translateY(-1px) scale(0.99); }
.footer-logo:focus-visible { outline: 2px solid var(--color-on-dark); outline-offset: 4px; }

/* Footer: beige glass over the blurred photo (same label tokens), dark lettering; the logo sits straight on it */
.site-footer { color: var(--color-heading); }
.site-footer::after,
.site-footer.site-footer--clear::after {
  background: var(--label-bg);
  -webkit-backdrop-filter: var(--label-blur);
  backdrop-filter: var(--label-blur);
  border-top: 1px solid var(--glass-border);
}
.footer-nav a, .social--footer a { color: var(--color-heading); }
.footer-nav a:hover, .social--footer a:hover { color: var(--color-teal); text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--color-teal); }
.footer-logo { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.footer-logo img { width: 160px; }
.footer-logo:hover { transform: translateY(-3px); }
.footer-logo:focus-visible { outline-color: var(--color-teal); }

/* Header: the whole logo (paw + name), not only the paw. It just fades in (no wag, the lettering stays still). */
.site-header__logo { overflow: visible; border-radius: 0; animation: logo-fade 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.site-header__logo img { display: block; width: auto; height: 34px; }
@keyframes logo-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .site-header__logo img { height: 54px; } }
@media (prefers-reduced-motion: reduce) { .site-header__logo { animation: none; } }
