/* Ace of Hearts – home page */

:root {
  --cream: #F7F0E3;
  --card: #FBF8F1;
  --navy: #26314D;
  --blue: #3F527C;
  --red: #B8433A;
  --hero-red: #E2574B;
  --pink: #F0B4A8;
  --cta-pink: #F6C9BE;
  --cream-text: #F6F1E6;
  --cream-text-2: #F3EDE1;
  --body: #3A4560;
  --muted: #4A5570;
  --muted-2: #6A7388;
  --body-on-blue: #D5DBE8;
  --gold: #D9A33B;
  --star: #FBBC05;
  --tape: rgba(225, 211, 180, .85);

  /* Type scale. Hierarchy: display > h2 > h3 > lead > body > hand > small.
     Everything below pulls from these so sizes can't drift per section. */
  --fs-display: clamp(42px, 6.1vw, 95px);   /* h1 */
  --fs-h2: clamp(34px, 4.4vw, 64px);        /* every section heading */
  --fs-h3: clamp(24px, 2.2vw, 30px);        /* card titles, list headings */
  --fs-lead: clamp(19px, 1.7vw, 24px);     /* hero intro */
  --fs-body: clamp(17px, 1.3vw, 18px);      /* paragraphs */
  --fs-hand: clamp(24px, 2vw, 28px);        /* eyebrows, names, captions */
  --fs-sign: clamp(34px, 3.2vw, 46px);     /* signature, always below h2 */
  --lh-h2: 1.1;

  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --hand: 'Caveat', cursive;

  /* Motion: one easing curve and a short set of durations for the whole site. */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --dur: .8s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body { background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; opacity: .8; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.page {
  background-color: var(--cream);
  background-image: url(../assets/grain-warm.svg);
  color: var(--navy);
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

.eyebrow { font-family: var(--hand); font-size: var(--fs-hand); line-height: 1.2; color: var(--red); }
.on-blue .eyebrow { color: var(--pink); }

.h2 {
  font-size: var(--fs-h2);
  letter-spacing: -.02em;
  line-height: var(--lh-h2);
  margin: 0;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), translate .3s var(--ease), box-shadow .3s var(--ease);
}
/* Pills lift and darken on hover instead of the generic link fade. */
a.pill:hover { opacity: 1; translate: 0 -2px; box-shadow: 0 10px 24px rgba(38, 49, 77, .22); }
.pill--blue { background: var(--blue); color: var(--cream-text); }
.pill--blue:hover { color: var(--cream-text); background: var(--navy); }

.wave { display: block; width: 100%; height: 90px; }

.tape {
  position: absolute;
  background: var(--tape);
}

.heart { display: block; }

/* ---------- Nav ---------- */
.site-header {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 10;
  color: #fff;
}
.nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: nowrap;
}
.nav__logo { display: block; }
/* Logo: dog mark on the left, wordmark on the right. */
.nav__lockup { display: flex; align-items: center; gap: 12px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.nav__lockup img { width: auto; height: 46px; flex: 0 0 auto; }
.nav__lockup span { display: grid; gap: 3px; }
.nav__lockup b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1; letter-spacing: -.01em; }
.nav__lockup i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; white-space: nowrap; }
/* A touch bigger over the desktop hero; the sticky bar keeps its compact size. */
@media (min-width: 901px) {
  .site-header:not(.is-stuck) .nav { padding-top: 24px; }
  .site-header:not(.is-stuck) .nav__lockup { gap: 14px; }
  .site-header:not(.is-stuck) .nav__lockup img { height: 60px; }
  .site-header:not(.is-stuck) .nav__lockup b { font-size: 26px; }
  .site-header:not(.is-stuck) .nav__lockup i { font-size: 11px; }
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
  font-size: clamp(10.5px, 1vw, 12.5px);
  font-weight: 700;
  letter-spacing: clamp(.1em, .9vw, .24em);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.nav__cta {
  background: var(--cream-text);
  color: var(--navy);
  padding: 14px 24px;
  font-size: clamp(13px, 1.1vw, 15px);
  flex: 0 0 auto;
}
.nav__cta:hover { color: var(--navy); background: #fff; }

/* Once the hero has scrolled away the nav comes back as a slim navy bar.
   The blur sits on ::before so the header never becomes the containing
   block for the fixed mobile menu. */
.site-header.is-stuck { position: fixed; }
.site-header.is-stuck::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(38, 49, 77, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 8px 30px rgba(10, 16, 30, .18);
}
.site-header.is-stuck .nav { position: relative; padding-top: 10px; padding-bottom: 10px; }
.site-header.is-stuck .nav__lockup img { height: 40px; }
.site-header.is-stuck .nav__cta { padding: 11px 20px; }
section[id] { scroll-margin-top: 70px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  padding-top: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); pointer-events: none; }
.hero__content {
  position: relative;
  max-width: 1280px;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 6px rgba(10, 16, 30, .45), 0 6px 30px rgba(10, 16, 30, .45);
}
.hero__accent { position: relative; color: var(--hero-red); white-space: nowrap; }
.hero__accent svg {
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 20px;
  filter: drop-shadow(0 2px 4px rgba(10, 16, 30, .4));
}
.hero p {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 720px;
  margin: 34px 0 0;
  color: #fff;
  font-weight: 500;
  text-wrap: pretty;
  text-shadow: 0 1px 4px rgba(10, 16, 30, .55), 0 4px 20px rgba(10, 16, 30, .45);
}
.hero__cta {
  margin-top: 34px;
  padding: 23px 38px;
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(38, 49, 77, .25);
}
.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px;
  z-index: 2;
  pointer-events: none;
}

/* ---------- Reviews ---------- */
.reviews { padding: 100px 0; }
.reviews__head { margin-bottom: 44px; }
.reviews__head .h2 { margin-bottom: 16px; }
.reviews__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rating {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(38, 49, 77, .08);
}
.rating b { font-size: 16px; }
.rating span, .rating a { font-size: 14px; color: var(--muted); }
.rating a { text-decoration: underline; text-underline-offset: 3px; }
.stars { display: flex; gap: 2px; }
.reviews__cta { display: flex; justify-content: center; margin: 28px 0 0; }
.reviews__cta .pill { padding: 16px 30px; font-size: 17px; box-shadow: 0 8px 22px rgba(38, 49, 77, .2); }
.reviews__note { font-family: var(--hand); font-size: var(--fs-hand); color: var(--red); transform: rotate(-2deg); display: inline-block; }

.carousel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 20px;
  align-items: center;
}
.carousel__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.carousel__btn--prev { border: 1.5px solid var(--navy); background: var(--card); color: var(--navy); }
.carousel__btn--next { border: 0; background: var(--blue); color: var(--cream-text); }
.carousel__viewport { padding: 16px 6px 30px; overflow: hidden; }
.carousel__track {
  display: flex;
  gap: 28px;
  transition: transform .7s cubic-bezier(.65, 0, .35, 1);
}
.carousel__track.no-anim { transition: none; }

.review {
  flex: 0 0 380px;
  background: var(--card);
  padding: 32px 30px 28px;
  box-shadow: 0 10px 26px rgba(38, 49, 77, .10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}
.review__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.review blockquote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.review__name { font-family: var(--hand); font-size: var(--fs-hand); color: var(--red); }
.review__where { font-size: 13px; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

.carousel__counter { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
.carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0; padding: 0;
  cursor: pointer;
  background: rgba(63, 82, 124, .25);
  transition: width .3s;
}
.carousel__dot.is-active { width: 26px; background: var(--blue); }

/* ---------- About ---------- */
.band { background: var(--blue); color: var(--cream-text-2); }
.about .wave--top { margin-bottom: -1px; }
.about .wave--bottom { margin-top: -1px; }
.about__inner {
  padding-top: 60px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 80px;
  align-items: center;
}
.polaroid {
  position: relative;
  background: var(--card);
  color: var(--navy);
  box-shadow: 0 22px 50px rgba(10, 16, 30, .35);
}
.polaroid__caption { position: absolute; font-family: var(--hand); }
.about__photo {
  padding: 16px 16px 70px;
  transform: rotate(-2deg);
  max-width: 520px;
}
.about__photo .tape { top: -14px; left: 40%; width: 120px; height: 30px; transform: rotate(-3deg); }
.about__photo .polaroid__caption { bottom: 18px; left: 24px; font-size: var(--fs-hand); }
.photo-slot {
  height: 560px;
  background: #E9E1D2;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--muted-2);
  font-size: 15px;
  padding: 24px;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__text .h2 { margin: 10px 0 30px; }
.about__text p { font-size: var(--fs-body); line-height: 1.7; margin: 0 0 18px; color: var(--body-on-blue); text-wrap: pretty; }
.about__text p:last-of-type { margin-bottom: 0; }
.signature { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.signature span { font-family: var(--hand); font-size: var(--fs-sign); line-height: 1; color: var(--cream-text); }

/* ---------- Squad ---------- */
.squad { padding-top: 100px; padding-bottom: 120px; } /* +20px each side of the paw trail */
.squad__head { text-align: center; margin-bottom: 64px; }
.squad__head h2 { font-size: var(--fs-h2); letter-spacing: -.02em; line-height: var(--lh-h2); margin: 6px 0 18px; }
.squad__head p { font-size: var(--fs-body); color: var(--body); max-width: 520px; margin: 0 auto; line-height: 1.6; }
.squad__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 40px 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.dog-card {
  position: relative;
  background: var(--card);
  border-radius: 14px;
  padding: 46px 34px 50px;
  box-shadow: 0 12px 28px rgba(38, 49, 77, .15), inset 0 0 0 1px rgba(38, 49, 77, .08);
  transform: rotate(var(--rot, 0deg));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.dog-card:hover { transform: rotate(0deg) translateY(-10px); }
.dog-card::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(184, 67, 58, .28);
  border-radius: 9px;
  pointer-events: none;
}
.dog-card__index {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1;
  color: var(--red);
}
.dog-card__index span { font-family: var(--serif); font-size: 22px; }
.dog-card__index svg { margin-top: 3px; }
.dog-card__index--tl { top: 12px; left: 12px; }
.dog-card__index--br { bottom: 12px; right: 12px; transform: rotate(180deg); }
.dog-card img { width: 100%; aspect-ratio: 13 / 15; object-fit: cover; border-radius: 6px; }
.dog-card__body { text-align: center; padding-top: 14px; }
.dog-card__name { font-family: var(--hand); font-size: var(--fs-hand); line-height: 1; }
.dog-card__breed { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
.dog-card__trait { font-size: 13px; color: var(--body); margin-top: 6px; line-height: 1.4; }

/* ---------- Paw trail ---------- */
.paw-trail { position: relative; height: 0; pointer-events: none; z-index: 1; }
.paw-trail svg {
  position: absolute;
  width: 44px; height: 44px;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r));
  opacity: var(--o);
}

/* ---------- Services ---------- */
.services { padding-top: 120px; padding-bottom: 100px; }
.services .h2 { margin-bottom: 56px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 36px;
}
.service {
  background: var(--card);
  padding: 16px 16px 36px;
  box-shadow: 0 10px 30px rgba(38, 49, 77, .10);
  transition: box-shadow .5s var(--ease);
}
.service:hover { box-shadow: 0 22px 50px rgba(38, 49, 77, .18); }
.service__img { overflow: hidden; }
.service__img img { width: 100%; height: 340px; object-fit: cover; transition: scale 1.2s var(--ease); }
.service:hover .service__img img { scale: 1.04; }
.service__body { padding: 30px 20px 0; }
.service__tag { font-family: var(--hand); font-size: var(--fs-hand); color: var(--red); }
.service h3 { font-size: var(--fs-h3); line-height: 1.15; margin: 4px 0 14px; letter-spacing: -.01em; }
.service p { font-size: var(--fs-body); line-height: 1.65; color: var(--body); margin: 0 0 22px; text-wrap: pretty; }
.checklist { display: grid; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.checklist svg { flex: 0 0 auto; }
.service .pill { padding: 15px 26px; font-size: 15px; }

/* ---------- Why us ---------- */
.why__inner {
  padding-top: 100px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 64px;
}
.why .h2 { margin-top: 10px; max-width: 520px; }
.why__photo {
  margin-top: 56px;
  max-width: 480px;
  padding: 12px 12px 54px;
  transform: rotate(-3deg);
}
.why__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why__photo .polaroid__caption { bottom: 12px; left: 18px; font-size: var(--fs-hand); color: var(--navy); }
.why__photo .tape { top: -13px; left: 38%; width: 100px; height: 28px; transform: rotate(-4deg); }
.why__list { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
.why__item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
/* Typed so the hand-drawn circle can animate around (see Motion). */
@property --draw { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.why__num {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 52% 48% 55% 45%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hand);
  font-size: var(--fs-hand);
  color: var(--pink);
  transform: rotate(-6deg);
}
.why__num::before {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid var(--pink);
  border-radius: inherit;
  -webkit-mask: conic-gradient(from -40deg, #000 var(--draw), transparent 0);
  mask: conic-gradient(from -40deg, #000 var(--draw), transparent 0);
}
.why__item h3 { font-size: var(--fs-h3); line-height: 1.2; margin: 4px 0 8px; }
.why__item p { font-size: var(--fs-body); line-height: 1.6; margin: 0; color: var(--body-on-blue); text-wrap: pretty; }

/* ---------- Areas ---------- */
.areas { text-align: center; }
.areas__inner { padding-top: 100px; padding-bottom: 100px; }
.areas .h2 { margin: 6px 0 22px; }
.areas__intro { font-size: var(--fs-body); line-height: 1.65; color: var(--body-on-blue); margin: 0 auto 56px; max-width: 560px; text-wrap: pretty; }
.tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 30px 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 0 10px;
  list-style: none;
}
.tag { display: flex; flex-direction: column; align-items: center; transform: rotate(var(--rot, 0deg)); }
.tag__ring {
  width: 30px; height: 30px;
  border: 3px solid #9BA3B5;
  border-radius: 50%;
  margin-bottom: -12px;
  z-index: 1;
}
.tag__disc {
  width: 100%;
  max-width: 138px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 10px;
  box-shadow: 0 10px 22px rgba(38, 49, 77, .18), inset 0 0 0 5px rgba(255, 255, 255, .18);
  position: relative;
  transform-origin: 50% 0;
}
/* Hovering a tag gives it a little swing from its ring. */
.tag__disc:hover { animation: tag-nudge 1.1s var(--ease-soft); }
@keyframes tag-nudge {
  0% { rotate: 0deg; }
  20% { rotate: -9deg; }
  45% { rotate: 6deg; }
  68% { rotate: -3deg; }
  85% { rotate: 1deg; }
  100% { rotate: 0deg; }
}
.tag__hole {
  position: absolute; top: 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}
.tag__disc svg { margin-top: 12px; opacity: .85; }
.tag__name { font-family: var(--serif); font-size: 20px; line-height: 1.05; margin-top: 6px; }
.tag__name--long { font-size: 17px; }
.areas__foot { font-family: var(--hand); font-size: var(--fs-hand); color: var(--pink); margin: 24px 0 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  min-height: 760px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--card);
}
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.cta__shade { position: absolute; inset: 0; background: rgba(28, 36, 54, .48); }
.cta__wave { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 90px; z-index: 2; pointer-events: none; }
.cta__content { position: relative; padding: 80px 40px; }
.cta__eyebrow { font-family: var(--hand); font-size: var(--fs-hand); color: var(--cta-pink); }
.cta h2 { font-size: var(--fs-h2); letter-spacing: -.02em; line-height: var(--lh-h2); margin: 8px 0 34px; }
.cta .pill { background: var(--card); color: var(--navy); padding: 20px 34px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--body-on-blue); }
.footer__inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 15px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { height: 56px; width: auto; }
.footer__brand span { font-family: var(--serif); font-size: 22px; color: var(--cream-text-2); }
.footer__col { display: grid; gap: 8px; align-content: start; font-style: normal; }
.footer__brandcol { display: grid; gap: 22px; align-content: start; }
.footer__social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(213, 219, 232, .4);
  color: var(--cream-text-2);
  transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--cream-text-2); color: var(--navy); opacity: 1; }
.footer__credit { padding-bottom: 28px; font-size: 13px; opacity: .75; }
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; }
.enquiry__consent { margin: 6px 0 14px; }
.enquiry__consent a, .legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages (privacy) ---------- */
.legal__bar { background: var(--navy); color: var(--cream-text-2); }
.legal__bar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.legal__bar a { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 20px; }
.legal__bar img { height: 40px; width: auto; }
.legal__bar .legal__back { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; }
.legal__updated { color: var(--muted-2); font-size: 15px; margin: 0 0 40px; }
.legal h2 { font-size: var(--fs-h3); line-height: 1.2; margin: 40px 0 12px; }
.legal p, .legal li { font-size: var(--fs-body); line-height: 1.7; color: var(--body); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

/* ---------- Enquiry form (CTA) ---------- */
.cta__lede { max-width: 560px; margin: -14px auto 34px; font-size: var(--fs-body); line-height: 1.55; color: var(--cream-text); }
.cta { padding: 90px 0 70px; }
.cta__content { width: 100%; max-width: 720px; }
.enquiry {
  position: relative;
  text-align: left;
  background: var(--card);
  color: var(--navy);
  font-family: var(--sans);
  border-radius: 14px;
  padding: 34px 36px 32px;
  box-shadow: 0 30px 70px rgba(10, 16, 30, .4);
  scroll-margin-top: 90px;
}
.enquiry__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.enquiry__progress { margin-bottom: 26px; }
.enquiry__count { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.enquiry__bar { height: 6px; border-radius: 6px; background: rgba(38, 49, 77, .12); overflow: hidden; }
.enquiry__bar i { display: block; height: 100%; width: 12.5%; border-radius: 6px; background: var(--red); transition: width .3s ease; }
.step[hidden] { display: none; }
.step h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 22px; outline: none; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field[hidden] { display: none; }
.field span, .choices legend { font-size: 15px; font-weight: 600; line-height: 1.4; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  color: var(--navy);
  background: #fff;
  border: 1.5px solid rgba(38, 49, 77, .25);
  border-radius: 10px;
  padding: 13px 15px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input[type="file"] { padding: 10px; font-size: 15px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.field input.invalid, .field textarea.invalid { border-color: var(--red); }

.choices { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { padding: 0; margin-bottom: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.choices legend em { font-weight: 400; font-style: normal; color: var(--muted-2); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: block;
  padding: 11px 18px;
  border: 1.5px solid rgba(38, 49, 77, .25);
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.choice:hover span { border-color: var(--blue); }
.choice input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--cream-text); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.choices.invalid .choice span { border-color: var(--red); }

.enquiry__hint { font-size: 14px; color: var(--muted-2); margin: -8px 0 6px; }
.enquiry__error { color: var(--red); font-size: 14px; line-height: 1.45; font-weight: 600; margin: 0 0 14px; }
.enquiry__nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.enquiry .enquiry__btn {
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 16px 32px; font-size: 17px; font-weight: 600; white-space: nowrap;
}
.enquiry__btn[hidden] { display: none; }
.enquiry__btn--next { background: var(--blue); color: var(--cream-text); }
.enquiry__btn--next:hover { background: var(--navy); }
.enquiry__btn--back { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(38, 49, 77, .25); margin-right: auto; }
.enquiry__btn--back:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.enquiry__btn:disabled { opacity: .6; cursor: default; }
.enquiry__thanks { text-align: center; padding: 20px 0 8px; outline: none; }
.enquiry__thanks h3 { font-size: var(--fs-h3); margin: 4px 0 10px; }
.enquiry__thanks p { font-size: 16px; line-height: 1.55; color: var(--body); margin: 0; }

/* ---------- Mobile menu ---------- */
.nav__toggle {
  display: none;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(20, 28, 46, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--cream-text-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 24px 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__close {
  position: absolute; top: 16px; right: 16px;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--cream-text);
  color: var(--navy);
  font-size: 30px; line-height: 1;
  cursor: pointer;
}
.mobile-menu__links { display: grid; gap: 22px; text-align: center; }
.mobile-menu__links a { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.mobile-menu__cta { background: var(--cream-text); color: var(--navy); padding: 18px 32px; font-size: 18px; }
.mobile-menu__cta:hover { color: var(--navy); }
body.menu-open { overflow: hidden; }

/* ---------- Responsive ---------- */
/* Mobile nav isn't designed yet: below 900px the text links are hidden and
   the logo + CTA pill remain. */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

@media (max-width: 640px) {
  .container, .nav { padding-left: 16px; padding-right: 16px; }

  /* Shorter hero so more of the pack photo shows; gentler waves. */
  .hero { height: auto; min-height: 680px; padding: 156px 0 90px; }
  .hero__bg { object-position: 55% 60%; }
  .hero__content { padding: 0 16px; }
  .wave, .hero__wave, .cta__wave { height: 36px; }

  /* Tighter vertical rhythm: 100px sections become 56px. */
  .reviews, .squad, .services { padding-top: 56px; padding-bottom: 56px; }
  .squad { padding-bottom: 76px; }
  .services { padding-top: 76px; }
  .reviews__head { margin-bottom: 28px; }
  .squad__head { margin-bottom: 40px; }
  .services .h2 { margin-bottom: 32px; }
  .why__inner, .areas__inner { padding-top: 56px; padding-bottom: 56px; }
  .why__inner { gap: 48px; }
  .why__photo { margin-top: 36px; }
  .areas__intro { margin-bottom: 36px; }
  .about__inner { padding-top: 32px; padding-bottom: 32px; }
  .hero__cta { padding: 18px 30px; font-size: 18px; }

  .carousel { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 14px; }
  .carousel__btn { display: none; }
  .review { flex-basis: min(380px, calc(100vw - 60px)); }

  .about__inner { gap: 48px; }
  .photo-slot { height: 380px; }
  .squad__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 18px; }
  .dog-card { padding: 38px 18px 40px; }
  .service__img img { height: 260px; }
  .service__body { padding: 24px 8px 0; }
  .cta { padding: 64px 0 40px; min-height: 0; }
  .cta__content { padding: 40px 12px; }
  .cta__lede { margin-top: -18px; }
  .enquiry { padding: 26px 18px 22px; }
  .enquiry__btn { padding: 15px 26px; }
  .enquiry__nav .enquiry__btn--next { flex: 1; }

  /* Smaller, fewer, staggered paws so the trail reads as a dog walking. */
  .paw-trail svg {
    width: 24px; height: 24px;
    left: var(--mx);
    top: var(--my);
    transform: rotate(var(--mr));
    opacity: var(--mo);
  }
  .paw--desktop-only { display: none; }

  /* Thinner hero underline. */
  .hero__accent svg { stroke-width: 5px; bottom: -8px; }

  /* Roomier Why Us list. */
  .why__list { gap: 32px; }
  .why__item { grid-template-columns: 46px 1fr; gap: 16px; }
  .why__num { width: 44px; height: 44px; }
  .why__item h3 { margin-top: 2px; }

  /* One alignment rule on mobile: the two photo moments (hero, final CTA)
     are centred, every other section reads left-aligned. */
  .hero h1 { line-height: 1.14; text-wrap: wrap; }
  /* Explicit lines: WebKit's text-wrap: balance mis-breaks the inline-block words. */
  .hero h1 .hl { display: block; white-space: nowrap; }
  :root { --lh-h2: 1.15; }
  .squad__head, .areas { text-align: left; }
  .squad__head p, .areas__intro { margin-left: 0; margin-right: 0; }
}

/* ---------- Motion ----------
   Everything below only applies once js/motion-init.js has added .motion to
   <html>, which it skips for reduced-motion visitors. Without it the page
   renders exactly as before. Only opacity and the individual translate /
   rotate / scale properties are animated, so existing transforms (card tilts,
   tag angles) are left alone. main.js adds data-reveal and .is-in. */
/* Words are inline-blocks so they can rise in. The accent stays an inline span
   inside its wrapper so its underline still sits under the letters. */
.hero h1 .w { display: inline-block; }

/* Hero entrance: slow settle on the photo, words rise in, underline draws. */
.motion .hero__bg { animation: hero-settle 7s var(--ease-soft) backwards; }
.motion .hero h1 .w { animation: word-in 1.1s var(--ease) backwards; animation-delay: calc(.2s + var(--i) * 70ms); }
.motion:not(.fonts-ready) .hero h1 .w,
.motion:not(.fonts-ready) .hero__accent path { animation-play-state: paused; }
.motion .hero__accent path { stroke-dasharray: 1; animation: underline-draw 1s var(--ease) 1.05s backwards; }
.motion .hero p { animation: rise-in 1s var(--ease) .8s backwards; }
.motion .hero__cta { animation: rise-in 1s var(--ease) .95s backwards; }
.motion .site-header:not(.is-stuck) .nav { animation: nav-fade 1s var(--ease) .1s backwards; }
.motion .site-header.is-stuck::before,
.motion .site-header.is-stuck .nav { animation: nav-drop .55s var(--ease) backwards; }

@keyframes hero-settle { from { scale: 1.1; } }
@keyframes word-in { from { opacity: 0; translate: 0 .45em; filter: blur(8px); } }
@keyframes underline-draw { from { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; translate: 0 18px; } }
@keyframes nav-fade { from { opacity: 0; translate: 0 -12px; } }
@keyframes nav-drop { from { translate: 0 -100%; } }

/* Scroll reveals. --d is the stagger set by main.js for things that come
   into view together. */
.motion [data-reveal] { transition: opacity .8s var(--ease-soft) var(--d, 0s), translate 1s var(--ease) var(--d, 0s); }
.motion [data-reveal]:not(.is-in) { opacity: 0; translate: 0 28px; }
.motion .service[data-reveal] { transition: opacity .8s var(--ease-soft) var(--d, 0s), translate 1s var(--ease) var(--d, 0s), box-shadow .5s var(--ease); }

/* Squad: cards are dealt in from below the row, alternately spun. */
.motion .dog-card[data-reveal] {
  transition: transform .35s var(--ease), opacity .5s ease var(--d, 0s), translate 1s var(--ease) var(--d, 0s), rotate 1s var(--ease) var(--d, 0s), scale 1s var(--ease) var(--d, 0s);
}
.motion .dog-card[data-reveal]:not(.is-in) { translate: var(--dx, 0px) 140px; rotate: -12deg; scale: .9; }
.motion .dog-card[data-reveal]:nth-child(even):not(.is-in) { rotate: 12deg; }

/* Polaroids drop and settle into their tilt, then the tape goes on. */
.motion .polaroid[data-reveal] { transition: opacity .6s ease var(--d, 0s), translate 1.2s var(--ease) var(--d, 0s), rotate 1.2s var(--ease) var(--d, 0s), scale 1.2s var(--ease) var(--d, 0s); }
.motion .polaroid[data-reveal]:not(.is-in) { translate: 0 -30px; rotate: 5deg; scale: 1.05; }
.motion .polaroid[data-reveal] .tape { transition: opacity .35s ease calc(var(--d, 0s) + .75s), scale .45s var(--ease) calc(var(--d, 0s) + .75s); }
.motion .polaroid[data-reveal]:not(.is-in) .tape { opacity: 0; scale: 1.3; }

/* Area tags swing on their rings as they arrive. */
.tag { transform-origin: 50% 15px; }
.motion .tag[data-reveal] { transition: none; }
.motion .tag[data-reveal]:not(.is-in) { translate: none; }
.motion .tag[data-reveal].is-in { animation: tag-swing 1.7s var(--ease-soft) var(--d, 0s) backwards; }
@keyframes tag-swing {
  0% { opacity: 0; rotate: -26deg; translate: 0 -16px; }
  25% { opacity: 1; rotate: 13deg; translate: none; }
  48% { rotate: -7deg; }
  68% { rotate: 3deg; }
  85% { rotate: -1deg; }
  100% { rotate: 0deg; }
}

/* Paw trail: prints appear one after another, like a dog just walked past. */
.motion .paw-trail[data-reveal] { transition: none; }
.motion .paw-trail[data-reveal]:not(.is-in) { opacity: 1; translate: none; }
.motion .paw-trail[data-reveal] svg { transition: opacity .35s ease, scale .5s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.motion .paw-trail[data-reveal]:not(.is-in) svg { opacity: 0; scale: .4; }

/* Why list: the hand-drawn circle draws itself around each number. */
.motion .why__item[data-reveal] .why__num::before { transition: --draw 1.1s var(--ease) calc(var(--d, 0s) + .3s); }
.motion .why__item[data-reveal]:not(.is-in) .why__num::before { --draw: 0deg; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track, .dog-card, .pill, .service, .service__img img { transition: none; }
  .tag__disc:hover { animation: none; }
}
