/* Pine & Paw Mobile Grooming — Starter example site */
:root {
  --pine: #1D4B3E;   /* van green, main brand */
  --fir: #2E6B57;    /* lighter evergreen */
  --ink: #13261F;    /* text */
  --bubble: #DCEFF2; /* bath-water aqua */
  --sun: #F2B437;    /* tennis-ball marigold */
  --suds: #FFFFFF;
  --tan: #E7DCC6;    /* driveway */
  --muted: #3D5850;
  --radius: 22px;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--suds);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  /* footer carries ~70px extra bottom padding so the demo bar never covers it */
  overflow-x: hidden;
}
html.in-preview .foot { padding-bottom: 24px; }
main { overflow-x: clip; } /* swinging tags / reveal offsets never widen the page */
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--pine); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--pine); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--pine); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 12px; top: -60px; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 1rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 700 1.0625rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .28s cubic-bezier(.3, 1.7, .5, 1), box-shadow .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(2px) scale(.97); transition-duration: .06s; }
.btn--sun { background: var(--sun); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--sun:hover { box-shadow: 0 7px 0 var(--ink); }
.btn--sun:active { transform: translateY(4px) scale(.98); box-shadow: 0 0 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn--ghost:hover { background: rgba(29, 75, 62, .08); }
.btn--full { width: 100%; }

/* Header */
.top { background: var(--bubble); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pine); font: 800 1.45rem/1 var(--display); letter-spacing: -0.02em; min-height: 44px; }
.logo__mark { width: 34px; height: 34px; }
.top__nav { display: none; gap: 4px; }
.top__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; }
.top__nav a:hover { background: rgba(29, 75, 62, .1); }
.top__call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--pine); color: #fff; text-decoration: none; font-weight: 700; }
.top__call svg { width: 18px; height: 18px; }
.top__call span { display: none; }
@media (min-width: 420px) { .top__call span { display: inline; } }
@media (min-width: 900px) { .top__nav { display: flex; } }

/* Hero */
.hero { position: relative; background: var(--bubble); padding: 24px 0 70px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .95rem; color: var(--pine); background: #fff; border-radius: 14px; padding: 6px 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 4.4rem); margin-bottom: .35em; }
.hl { color: var(--ink); background: linear-gradient(transparent 62%, rgba(242, 180, 55, .75) 62%, rgba(242, 180, 55, .75) 92%, transparent 92%); padding: 0 .05em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 1.2rem; max-width: 34em; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 1rem; color: var(--muted); }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--fir); }
.hero__facts strong { color: var(--ink); }
.hero__art { position: relative; }
.van { width: 100%; max-width: 560px; margin: 0 auto; }
.tag-note { position: relative; max-width: 300px; margin: -6px auto 0; background: #fff; border: 2px solid var(--pine); border-radius: 16px; padding: 12px 16px; font-size: .98rem; transform: rotate(-1.5deg); }
.tag-note span { font-weight: 700; }
.suds { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; }

@media (min-width: 900px) {
  .hero { padding: 40px 0 90px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .tag-note { position: absolute; left: -8px; top: 6px; margin: 0; max-width: 250px; }
}

/* Signature animation: soap bubbles drifting up from the van */
.bubbles .b { transform-box: fill-box; transform-origin: center; animation: rise 5.5s ease-in-out infinite; }
.b2 { animation-delay: -1.1s !important; }
.b3 { animation-delay: -2.4s !important; }
.b4 { animation-delay: -3.3s !important; }
.b5 { animation-delay: -4.2s !important; }
@keyframes rise {
  0%   { transform: translateY(30px) scale(.6); opacity: 0; }
  20%  { opacity: .95; }
  80%  { opacity: .8; }
  100% { transform: translateY(-40px) scale(1.05); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubbles .b { animation: none; opacity: .9; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
  .tag { transform: rotate(var(--base, 0deg)); }
  .steps li::after { transform: none !important; }
}

/* Sections */
section { scroll-margin-top: 16px; }
.services, .visit, .reviews, .area, .book { padding: 64px 0; }
@media (min-width: 900px) { .services, .visit, .reviews, .area, .book { padding: 96px 0; } }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head p { color: var(--muted); }

/* Services: dog-ID-tag price tags */
.tags { display: grid; gap: 28px; }
.tag {
  /* the tag hangs from its ring: JS swings --swing on scroll / hover */
  transform-origin: 50% 21px;
  transform: rotate(calc(var(--base, 0deg) + var(--swing, 0deg)));
  position: relative; background: #fff; border: 2.5px solid var(--pine); border-radius: 30px;
  padding: 40px 26px 24px; box-shadow: 6px 6px 0 var(--bubble);
}
.tag__ring { position: absolute; top: 12px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 3px solid var(--pine); background: var(--suds); }
.tag__ring::before { content: ""; position: absolute; left: 50%; top: -24px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; border: 3px solid #9AA9A4; border-bottom-color: transparent; }
.tag h3 { margin-bottom: .25em; }
.tag__price { font-family: var(--display); font-size: 1.1rem; color: var(--fir); margin-bottom: .7em; }
.tag__price strong { font-size: 2rem; color: var(--ink); }
.tag p:last-child { margin-bottom: 0; }
.tag__time { display: inline-block; font-weight: 700; font-size: .95rem; background: var(--sun); color: var(--ink); padding: 4px 12px; border-radius: 999px; }
.tag--big { background: var(--pine); color: #fff; box-shadow: 6px 6px 0 var(--sun); }
.tag--big h3, .tag--big .tag__price strong { color: #fff; }
.tag--big .tag__price { color: var(--bubble); }
.tag--big .tag__ring { border-color: var(--sun); background: var(--pine); }
.tag--pup { background: var(--sun); }
.tag--pup .tag__price { color: var(--ink); }
.tag--pup { box-shadow: 6px 6px 0 var(--pine); }

@media (min-width: 760px) {
  .tags { grid-template-columns: repeat(2, 1fr); }
  .tag--big { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 56px 40px 40px; }
  .tag--big h3 { font-size: 2.2rem; }
  .tag--big .tag__price strong { font-size: 3rem; }
  .tag:nth-child(2) { --base: 1deg; }
  .tag:nth-child(3) { --base: -1deg; }
}
@media (min-width: 1000px) {
  .tags { grid-template-columns: 1.2fr 1fr 1fr; }
  .tag--pup { grid-column: 2 / span 2; }
}

/* How a visit works */
.visit { background: var(--tan); }
.visit__grid { display: grid; gap: 36px; }
.ph { margin: 0; }
.ph__box { aspect-ratio: 4 / 3; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #CDE0D6 0 14px, #C3D8CD 14px 28px); display: grid; place-items: center; color: var(--fir); }
.ph__box svg { width: 56px; height: 56px; opacity: .7; }
.ph figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); font-style: italic; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; position: relative; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 72px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2.5px solid var(--pine);
  font: 800 1.35rem/1 var(--display); color: var(--pine);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 50px; bottom: 0; border-left: 3px dotted var(--fir); transform-origin: top; transform: scaleY(var(--draw, 1)); }
.steps li:last-child::before { background: var(--sun); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } .steps { margin-top: 12px; } }

/* Reviews */
.reviews { background: var(--pine); color: #fff; }
.reviews h2 { color: #fff; margin-bottom: .3em; }
.sample-note { display: inline-block; font-size: .95rem; font-weight: 700; color: var(--ink); background: var(--bubble); padding: 4px 12px; border-radius: 8px; margin-bottom: 32px; }
.quotes { display: grid; gap: 22px; }
.q { margin: 0; background: #fff; color: var(--ink); border-radius: 26px 26px 26px 6px; padding: 24px 24px 20px; position: relative; }
.q p { font-size: 1.15rem; margin-bottom: .8em; }
.q footer { font-size: .95rem; color: var(--muted); }
.q--b { background: var(--bubble); border-radius: 26px 26px 6px 26px; }
.q--c { background: var(--sun); }
.q--c footer { color: var(--ink); }
@media (min-width: 900px) {
  .quotes { grid-template-columns: 1.15fr 1fr 1fr; align-items: start; }
  .q--b { margin-top: 40px; }
  .q--c { margin-top: 12px; }
}

/* Area & hours */
.area__grid { display: grid; gap: 32px; align-items: center; }
.area__map svg { width: 100%; max-width: 460px; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: 8px 0 12px; font-size: 1.05rem; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 2px dotted #A9C3BA; }
.hours th { font-weight: 700; }
.hours td { text-align: right; }
@media (min-width: 900px) { .area__grid { grid-template-columns: 1fr 1fr; gap: 64px; } .area__map { order: 2; } }

/* Booking */
.book { background: var(--bubble); }
.book__grid { display: grid; gap: 32px; }
.call-card { display: block; margin: 24px 0 18px; padding: 20px 22px; border-radius: var(--radius); background: var(--pine); color: #fff; text-decoration: none; max-width: 380px; }
.call-card__label { display: block; font-weight: 700; color: var(--sun); }
.call-card__num { display: block; font: 800 2rem/1.2 var(--display); letter-spacing: -0.01em; }
.call-card__sub { display: block; font-size: .98rem; color: var(--bubble); }
.form { background: #fff; border: 2.5px solid var(--pine); border-radius: 28px; padding: 24px 20px; box-shadow: 8px 8px 0 var(--pine); }
@media (min-width: 600px) { .form { padding: 32px; } }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.hint { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], select {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 14px;
  border: 2px solid #6F8A82; background: #fff; color: var(--ink); font: inherit;
}
input::placeholder { color: #5E756E; }
input:focus-visible, select:focus-visible { border-color: var(--pine); }
.days__row { display: flex; flex-wrap: wrap; gap: 8px; }
.days__row label { position: relative; margin: 0; font-weight: 700; }
.days__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.days__row span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 46px; padding: 0 12px; border-radius: 999px; border: 2px solid #6F8A82; cursor: pointer; }
.days__row input:checked + span { background: var(--pine); border-color: var(--pine); color: #fff; }
.days__row input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.form__error { color: #A3271B; font-weight: 700; }
.form__thanks { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--bubble); border-left: 6px solid var(--sun); }
.form__thanks p:last-child { margin: 0; }
@media (min-width: 900px) { .book__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } }

/* Footer */
.foot { background: var(--ink); color: #D9E6E1; padding: 48px 0 94px; }
.foot a { color: #fff; display: inline-block; min-height: 32px; }
.foot__grid { display: grid; gap: 18px; }
.foot__name { font: 800 1.4rem/1.1 var(--display); color: var(--sun); margin-bottom: .3em; }
.foot__fine { font-size: .9rem; color: #A9BDB5; margin-top: 24px; margin-bottom: 0; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ------------------------------------------------------------------
   Motion layer. Everything here is inside no-preference, so reduced
   motion gets the plain, fully visible page. Load animations are
   skipped in the pricing-page preview (html.in-preview).
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: headline words arrive one by one, highlighter swipes under */
  html:not(.in-preview) .hero h1 .w { display: inline-block; animation: wordIn .62s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--i) * 70ms + 60ms); }
  html:not(.in-preview) .hl { background-size: 0% 100%; background-repeat: no-repeat; animation: swipe .55s .62s cubic-bezier(.6, 0, .2, 1) forwards; }
  html:not(.in-preview) .eyebrow { animation: fadeUp .5s both; }
  html:not(.in-preview) .lede { animation: fadeUp .55s .45s both; }
  html:not(.in-preview) .hero__actions { animation: fadeUp .55s .55s both; }
  html:not(.in-preview) .hero__facts { animation: fadeUp .55s .65s both; }
  html:not(.in-preview) .tag-note { animation: noteIn .55s 1s cubic-bezier(.3, 1.6, .5, 1) both; }

  /* Van drives in, wheels turning, then settles and idles */
  .van .vehicle { transform-box: view-box; }
  html:not(.in-preview) .van .vehicle { animation: driveIn 1.1s cubic-bezier(.2, .75, .25, 1) both; }
  .van .wheel, .van .wheel__spin { transform-box: fill-box; transform-origin: center; }
  html:not(.in-preview) .van .wheel { animation: wheelIn 1.1s cubic-bezier(.2, .75, .25, 1) both; }
  .van .chassis { animation: idle 3.4s 1.7s ease-in-out infinite; }
  html:not(.in-preview) .van .chassis { animation: settle .6s 1s ease-out, idle 3.4s 1.7s ease-in-out infinite; }
  .van .dog { transform-box: fill-box; transform-origin: 50% 85%; animation: headTilt 5.5s 2s ease-in-out infinite; }

  /* Suds edge drifts sideways forever */
  .suds__path { animation: sudsDrift 7s linear infinite; }

  /* Map: the dashed route ring marches, the home pin pings */
  .map__ring { animation: march 3s linear infinite; }
  .map__pulse { transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }

  /* Small press / hover touches */
  .top__call, .call-card, .days__row span, .logo__mark { transition: transform .28s cubic-bezier(.3, 1.7, .5, 1), background-color .2s ease; }
  .top__call:hover, .call-card:hover { transform: translateY(-2px); }
  .top__call:active, .call-card:active, .days__row label:active span { transform: scale(.95); transition-duration: .06s; }
  .logo:hover .logo__mark { transform: rotate(-10deg) scale(1.08); }
  .tag { cursor: grab; }
  .steps li::before { transition: scale .45s cubic-bezier(.3, 1.8, .5, 1), background-color .3s ease; }
  .steps.is-drawing li:not(.on)::before { scale: .7; }

  /* Scroll reveals (classes added by script.js only to content still below the fold) */
  .rv { transition: opacity .7s ease, translate .8s cubic-bezier(.2, .8, .25, 1), scale .7s cubic-bezier(.3, 1.5, .5, 1), rotate .8s cubic-bezier(.2, .8, .25, 1); transition-delay: var(--d, 0s); }
  .rv:not(.in) { opacity: 0; }
  .rv--up:not(.in) { translate: 0 28px; }
  .rv--hang:not(.in) { translate: 0 -46px; }
  .rv--left:not(.in) { translate: -36px 0; }
  .rv--right:not(.in) { translate: 36px 0; }
  .rv--pop:not(.in) { scale: .82; translate: 0 18px; }
  .q.rv--pop { transform-origin: 0 100%; }
  .q--b.rv--pop { transform-origin: 100% 100%; }
  .rv--tilt:not(.in) { rotate: -5deg; translate: -10px 30px; }
  .rv--zoom:not(.in) { scale: .7; }
}

@keyframes wordIn { from { opacity: 0; transform: translateY(.45em) rotate(-5deg); } to { opacity: 1; transform: none; } }
@keyframes swipe { to { background-size: 100% 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes noteIn { from { opacity: 0; transform: rotate(-9deg) scale(.8); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes driveIn { from { translate: -110px 0; } to { translate: 0 0; } }
@keyframes wheelIn { from { rotate: -210deg; } to { rotate: 0deg; } }
@keyframes settle { 0% { translate: 0 0; } 35% { translate: 0 4px; } 70% { translate: 0 -2px; } 100% { translate: 0 0; } }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes headTilt { 0%, 62%, 100% { transform: rotate(0); } 70% { transform: rotate(-9deg); } 80% { transform: rotate(-9deg); } 88% { transform: rotate(5deg); } 94% { transform: rotate(0); } }
@keyframes sudsDrift { to { transform: translateX(-120px); } }
@keyframes march { to { stroke-dashoffset: -32; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
