/* Paws of Pawfection demo. Mobile first: 360px is the design, wider screens get more room. */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f6f9fc;
  --sky-wash: #e6f1f9;
  --panel: #ffffff;
  --ink: #1d2831;        /* their slate cladding */
  --muted: #4c5a66;
  --line: #d5e0e8;
  --line-strong: #7d8b97;
  --sky: #1a6aa6;        /* their bath, deepened for text */
  --sky-bright: #4aa3e0;
  --tub: #5cb0e8;
  --tub-dark: #2f86c6;
  --foam: #ffffff;
  --foam-line: #c9dfee;
  --extrude: #ffffff;
  --gold: #9a6614;       /* the dog in their logo, deepened to 4.6:1: small touches only */
  --collar: #c63b2f;
  --on-ink: #ffffff;
  --error: #b42318;
  --ok: #1d6b3a;
  --shadow: 0 1px 2px rgb(29 40 49 / 0.08), 0 16px 34px -14px rgb(29 40 49 / 0.3);
  --display: "Outfit", "Futura", "Century Gothic", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111a22;
    --sky-wash: #152330;
    --panel: #1a2733;
    --ink: #eef3f7;
    --muted: #aebccb;
    --line: #283846;
    --line-strong: #6c7e8e;
    --sky: #7cc4f5;
    --sky-bright: #7cc4f5;
    --tub: #3f95d2;
    --tub-dark: #2a74ad;
    --foam: #e8f1f8;
    --foam-line: #b8cfe0;
    --extrude: #0b1218;
    --gold: #f0b75a;
    --collar: #ff7a6b;
    --on-ink: #0d151c;
    --error: #ff8a80;
    --ok: #7fd6a0;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 18px 40px -14px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: clip;
  padding-bottom: 76px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky-bright); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 9vw, 4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 8px; }

.demo-banner { margin: 0; padding: 7px var(--gutter); background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.4; text-align: center; }

/* --- Header ------------------------------------------------------------- */
.site-header { background: var(--sky-wash); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gutter); max-width: 1180px; margin: 0 auto; }
.wordmark { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.02rem; line-height: 1; letter-spacing: -0.01em; }
.wordmark img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .header-book { display: none; }
.call-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  transition: background-color 180ms, color 180ms, transform 120ms;
}
.call-pill:hover { background: var(--ink); color: var(--on-ink); }
.call-pill:active { transform: scale(0.95); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink);
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 160ms var(--spring), box-shadow 180ms;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.97); transition-duration: 80ms; }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: 0 4px 0 var(--sky-bright); }
.btn-primary:hover { background: var(--sky); border-color: var(--sky); color: var(--on-ink); box-shadow: 0 6px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: none; }
.btn-small:hover { box-shadow: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  background: var(--sky-wash);
  padding: 12px var(--gutter) 8px;
  overflow-x: clip;
}
.hero-text, .bath-panel { max-width: 1180px; margin: 0 auto; }
.hero-title { font-size: clamp(2.35rem, 10.4vw, 5.4rem); margin-bottom: 16px; text-wrap: balance; }
.hero-title span { display: block; color: var(--sky); text-shadow: 0.04em 0.04em 0 var(--extrude), 0.08em 0.08em 0 color-mix(in srgb, var(--sky-bright) 35%, transparent); }
.hero-lede { font-size: 1.08rem; max-width: 36ch; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-meta { font-size: 15px; color: var(--muted); margin: 0; }
.stars { color: var(--gold); letter-spacing: 1px; }
.sep { margin: 0 4px; }
.open-now.is-open::before, .open-now.is-closed::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px; background: var(--ok);
}
.open-now.is-closed::before { background: var(--line-strong); }

.bath-panel { position: relative; margin-top: 4px; }
.stage { position: relative; aspect-ratio: 4 / 3; max-width: 520px; margin: 0 auto; pointer-events: none; }
.stage .bath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bath .shadow { fill: color-mix(in srgb, var(--ink) 12%, transparent); }
.bath .foam circle { fill: var(--foam); stroke: var(--foam-line); stroke-width: 2; }
.bath .rim { fill: var(--tub-dark); }
.bath .tub { fill: var(--tub); }
.bath .tub-shine { fill: #fff; opacity: 0.22; }
.bath .foot { fill: var(--tub-dark); }
.bath .bubbles circle { fill: color-mix(in srgb, var(--sky-bright) 10%, transparent); stroke: var(--sky-bright); stroke-width: 2; }
.stage .hero-3d { position: absolute; left: -10%; top: 0; width: 120%; height: 100%; opacity: 0; transition: opacity 700ms; }
.stage.has-3d .hero-3d { opacity: 1; }
.stage.has-3d .bubbles { visibility: hidden; transition: visibility 0s 700ms; }

@media (prefers-reduced-motion: no-preference) {
  /* Bath time in the first seconds: foam swells, bubbles float up into place. */
  .bath .foam { transform-box: fill-box; transform-origin: 50% 100%; animation: foam-up 1s var(--spring) 0.1s both; }
  .bath .bubbles circle { transform-box: fill-box; transform-origin: center; animation: bubble-up 1.6s var(--ease) both; animation-delay: calc(0.5s + var(--i) * 0.12s); }
  .stage.has-3d .bubbles circle { animation: none; }
}
@keyframes foam-up { from { transform: scaleY(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bubble-up { from { transform: translateY(90px) scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }

.motion-toggle {
  position: absolute; right: 0; bottom: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--line-strong); background: var(--panel); color: var(--ink);
  font: 700 14px/1 var(--sans); cursor: pointer;
  transition: border-color 180ms, transform 120ms;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: var(--ink); }
.motion-toggle:active { transform: scale(0.95); }
.motion-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-icon { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* The soft foam edge between the bath and the page (Dirty Dog idea, calmer). */
.foam-edge {
  height: 34px; margin-top: -1px;
  background:
    radial-gradient(circle at 18px -4px, var(--sky-wash) 22px, transparent 23px) 0 0 / 44px 34px repeat-x,
    radial-gradient(circle at 40px -10px, var(--sky-wash) 26px, transparent 27px) 0 0 / 62px 34px repeat-x;
}

/* --- Sections ----------------------------------------------------------- */
.section { padding: 56px 0; content-visibility: auto; contain-intrinsic-size: auto 800px; }
.section + .section { border-top: 1px solid var(--line); }
.example-note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 10px; margin-top: 14px; }
.small { font-size: 14px; color: var(--muted); }
.two-col { display: grid; gap: 36px; }

/* How a visit works: a trail of paw prints, each stamps in (scene 1). */
.steps { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; border-left: 3px dotted var(--line-strong); }
.steps li { position: relative; padding: 0 0 26px 64px; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); max-width: 38ch; }
.paw {
  position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper);
}
.paw::before {
  content: ""; position: absolute; inset: 6px;
  background: var(--sky);
  -webkit-mask: url("assets/paw.svg") center / contain no-repeat;
  mask: url("assets/paw.svg") center / contain no-repeat;
}
.steps li:nth-child(even) .paw::before { transform: rotate(14deg); }
.steps li:nth-child(odd) .paw::before { transform: rotate(-10deg); }
.scenes-on [data-scene="paws"] li { transition: opacity 400ms var(--ease) calc(var(--i, 0) * 260ms), transform 500ms var(--ease) calc(var(--i, 0) * 260ms); }
.scenes-on [data-scene="paws"] .paw { transition: transform 420ms var(--spring) calc(var(--i, 0) * 260ms), opacity 200ms calc(var(--i, 0) * 260ms); }
.scenes-on [data-scene="paws"]:not(.is-in) li { opacity: 0; transform: translateY(10px); }
.scenes-on [data-scene="paws"]:not(.is-in) .paw { transform: scale(1.8); opacity: 0; }

/* Services */
.price-card { background: var(--panel); border-radius: 18px; padding: 8px 16px 12px; box-shadow: var(--shadow); }
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.prices thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.prices thead th:first-child, .prices tbody th { text-align: left; }
.prices tbody th a { font-weight: 700; text-decoration: none; display: inline-block; padding: 2px 0; transition: color 160ms, transform 160ms var(--spring); }
.prices tbody th a:hover, .prices tbody th a:focus-visible { color: var(--sky); transform: translateX(3px); }
.prices tbody th small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.prices td { font-weight: 700; white-space: nowrap; }
.prices td.span { text-align: right; }

/* Reviews: the rating counts up, quotes lift in (scene 2). */
.reviews h2 .soft { display: block; font-size: 0.45em; color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.reviews .count { color: var(--sky); font-variant-numeric: tabular-nums; }
.quotes { display: grid; gap: 20px; margin-top: 26px; }
.quote { margin: 0; padding: 22px 20px; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "★★★★★"; display: block; color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }
.quote blockquote { margin: 0 0 12px; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: 15px; color: var(--muted); font-weight: 700; }
.scenes-on [data-scene="lift"] .quote { transition: opacity 600ms var(--ease), transform 700ms var(--spring); }
.scenes-on [data-scene="lift"] .quote:nth-child(2) { transition-delay: 90ms; }
.scenes-on [data-scene="lift"] .quote:nth-child(3) { transition-delay: 180ms; }
.scenes-on [data-scene="lift"] .quote:nth-child(4) { transition-delay: 270ms; }
.scenes-on [data-scene="lift"]:not(.is-in) .quote { opacity: 0; transform: translateY(26px) scale(0.97); }

/* Hall of Fame: polaroids with real perspective (Tier 1). */
.polaroids { list-style: none; margin: 26px 0 0; padding: 0 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; perspective: 900px; }
.polaroid {
  background: #fff; padding: 10px 10px 12px; border-radius: 4px; box-shadow: var(--shadow);
  transform: rotate(var(--t)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 260ms var(--spring);
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); }
.polaroid .ph {
  display: block; aspect-ratio: 1; border-radius: 2px;
  background:
    radial-gradient(circle at 70% 30%, rgb(255 255 255 / 0.7) 0 10%, transparent 11%),
    radial-gradient(circle at 30% 60%, rgb(255 255 255 / 0.5) 0 7%, transparent 8%),
    linear-gradient(160deg, #cfe6f6, #8cc4ea);
}
.polaroid .cap { display: block; text-align: center; margin-top: 8px; font: 800 15px/1.2 var(--display); color: #1d2831; }

/* Find us: the shopfront opens out (scene 3). */
address { font-style: normal; font-size: 1.12rem; margin-bottom: 10px; }
.find h3 { margin-top: 28px; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " · today"; color: var(--sky); font-weight: 700; }
.open-now-lg { font-weight: 700; }
.shopfront { margin: 0; }
.shopfront img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.shopfront figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .shopfront img { animation: open-out linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes open-out {
  from { clip-path: inset(18% 22% 18% 22% round 999px); transform: scale(1.12); }
  to { clip-path: inset(0 0 0 0 round 18px); transform: none; }
}

/* Request a slot (pitch fix 2) */
.book { background: var(--sky-wash); }
.book-form { background: var(--panel); padding: 22px 18px; border-radius: 18px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: 17px/1.4 var(--sans);
  transition: border-color 160ms, box-shadow 160ms;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky-bright) 35%, transparent); }
.field.is-invalid input { border-color: var(--error); }
.field.is-valid input { border-color: var(--ok); }
.field-msg { font-size: 14px; color: var(--error); margin: 6px 0 0; }
.field-msg:empty { display: none; }
.form-done { margin-top: 16px; border-left: 4px solid var(--sky-bright); padding: 4px 0 4px 12px; }
.form-done p { margin: 0 0 6px; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin-bottom: 8px; }
.site-footer a[href^="tel"] { white-space: nowrap; }

.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border-top: 1px solid var(--line);
  transition: transform 260ms var(--ease);
}
.call-bar .btn { box-shadow: none; min-height: 48px; }
.call-bar.is-tucked { transform: translateY(110%); }

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .polaroids { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .site-header { position: sticky; top: 0; }
  .header-actions .header-book { display: inline-flex; }
  .wordmark { font-size: 1.2rem; }
  .hero {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
    padding: 30px max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))) 20px;
    min-height: min(680px, calc(100vh - 120px));
  }
  .hero-text, .bath-panel { margin: 0; max-width: none; }
  .stage { max-width: none; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  /* The trail walks across on wide screens. */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps::before { left: 23px; right: 12%; top: 21px; bottom: auto; border-left: 0; border-top: 3px dotted var(--line-strong); }
  .steps li { padding: 64px 0 0; }
  .steps li:nth-child(even) { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
