/* CONCEPT 'Friendly' - AESTHETIC: "Saturday-morning dog-park sticker book": warm cream paper with confetti dots,
   tangerine as the shop colour, mint + butter stickers, our own cartoon pup. FONTS: Fredoka 300 vs 700 (rounded
   display; 'Fresh pup.' light, 'Happy human.' bold, 3x size jumps) + Nunito Sans (body). */
/* md-pairs: ink:cream, ink-dim:cream, ink:cream-2, ink:mint, ink:butter, ink:sky, on-brand:brand, brand:cream, ink-dim:white, ink:white */

@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-wdth_wght.ttf") format("truetype"); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/NunitoSans-YTLC_opsz_wdth_wght.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --brand: #c2461a;          /* THE shop colour (tangerine); dog walking e.g. #2f7d5b, kids' cuts #2a6fb0 */
  --on-brand: #ffffff;
  --cream: #fff7ec;
  --cream-2: #ffeeda;
  --white: #ffffff;
  --ink: #2a1f17;
  --ink-dim: #5e4f43;
  --edge: #8a7a6c;
  --mint: #c4ead6;
  --butter: #ffe08a;
  --sky: #cfe3f7;
  --fur: #f6e3c4;
  --fur-dark: #c98d4f;
  --shade: rgba(42, 31, 23, .55);
  --dot-a: rgba(194, 70, 26, .10);
  --dot-b: rgba(47, 125, 91, .10);
  --display: "Fredoka", "Nunito Sans", sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --fast: 120ms;
  --mid: 220ms;
  --slow: 420ms;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--body);
  background:
    radial-gradient(circle at 12px 12px, var(--dot-a) 4px, transparent 5px) 0 0 / 64px 64px,
    radial-gradient(circle at 44px 40px, var(--dot-b) 3px, transparent 4px) 0 0 / 64px 64px,
    var(--cream);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
h1, h2, h3, p, fieldset { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -64px; z-index: 30; background: var(--ink); color: var(--cream); padding: 12px 16px; border-radius: 16px; }
.skip:focus { top: 8px; }
.defs { position: absolute; }

/* top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 16px 4px 4px; border-radius: 40px; background: var(--white); box-shadow: 0 4px 0 var(--cream-2); text-decoration: none; font: 700 22px var(--display); }
.pup-head { width: 44px; height: 44px; }
.top-nav { display: flex; gap: 8px; }
.top-nav a { display: inline-grid; place-items: center; min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: 40px; background: var(--butter); font-weight: 800; text-decoration: none; }

/* mascot art */
.fur { fill: var(--fur); } .ear { fill: var(--fur-dark); } .muzzle { fill: var(--white); }
.eye, .nose { fill: var(--ink); } .belly { fill: var(--white); } .shadow { fill: var(--cream-2); }
.mouth, .tail { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.tail { stroke: var(--fur-dark); stroke-width: 12; }
.bow { fill: var(--brand); }

/* hero */
.hero { padding: 16px 16px 32px; display: grid; gap: 16px; }
.tag { justify-self: start; background: var(--mint); border-radius: 40px; padding: 4px 16px; font-weight: 800; }
.hero h1 { font-family: var(--display); line-height: .95; }
.h-light { display: block; font-weight: 300; font-size: 40px; }
.h-bold { display: block; font-weight: 700; font-size: 64px; color: var(--brand); font-stretch: 90%; }
.hero-art { position: relative; margin: 8px 0 0; }
.photo-blob { width: 78%; transform: rotate(-3deg); border-radius: 44% 56% 48% 52% / 52% 44% 56% 48%; overflow: hidden; border: 8px solid var(--white); box-shadow: 0 8px 0 var(--cream-2); }
.photo-blob img { aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.pup { position: absolute; right: -8px; bottom: -16px; width: 44%; height: auto; }
.sticker { position: absolute; font: 700 18px var(--display); padding: 8px 16px; border-radius: 40px; }
.sticker-a { left: 48%; top: -8px; background: var(--butter); transform: rotate(8deg); }
.lede { font-size: 18px; }
.hero-call a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; font-size: 18px; }

/* stepper */
.book { margin: 0 12px; padding: 24px 16px 32px; background: var(--white); border-radius: 32px; box-shadow: 0 8px 0 var(--mint); }
.book h2 { font: 700 32px/1.05 var(--display); margin-bottom: 16px; }
.stepper fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.stepper legend { font: 600 22px var(--display); margin-bottom: 12px; }
.progress { display: none; }
.stepper-on .progress { display: flex; gap: 8px; margin-bottom: 16px; }
.progress span { flex: 1; height: 12px; border-radius: 12px; background: var(--cream-2); font-size: 0; }
.progress .is-done { background: var(--brand); }
.opts { display: grid; gap: 8px; }
.sizes { grid-template-columns: 1fr 1fr; }
.opts label { position: relative; display: block; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.opts span { display: grid; justify-items: start; align-content: center; gap: 4px; min-height: 56px; padding: 12px 16px; border-radius: 20px; border: 2px solid var(--edge); background: var(--cream); font-weight: 800; cursor: pointer; transition: transform var(--fast) ease-out; }
.sizes span { justify-items: center; text-align: center; min-height: 120px; }
.opts small { font-size: 14px; font-weight: 400; color: var(--ink-dim); }
.opts input:checked + span { background: var(--mint); border-color: var(--ink); transform: rotate(-1.5deg); }
.opts input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.sz { fill: var(--fur-dark); color: var(--fur-dark); }
.sz-s { width: 28px; height: 28px; } .sz-m { width: 36px; height: 36px; } .sz-l { width: 44px; height: 44px; } .sz-xl { width: 52px; height: 52px; }
.nav { display: flex; gap: 8px; margin-top: 16px; }
.next, .back { display: none; }
.stepper-on .next, .stepper-on .back { display: inline-flex; }
.next, .back, .go { align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: 40px; font: 700 20px var(--display); cursor: pointer; border: 0; transition: transform var(--fast) ease-out; }
.go { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 0 var(--ink); }
.next { background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.go { display: inline-flex; flex: 1; }
.stepper-on fieldset .next { margin-top: 16px; }
.nav .next { margin-top: 0; flex: 1; }
.back { background: var(--cream-2); color: var(--ink); }
.next:active, .back:active, .go:active { transform: translateY(2px); }

/* tilted service cards */
.menu { padding: 48px 16px 16px; }
.menu h2, .hours h2, .area h2 { font: 700 40px/1 var(--display); margin-bottom: 16px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card { padding: 24px; border-radius: 28px; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); transition: transform var(--mid) ease-out; }
.card h3 { font: 700 26px var(--display); }
.card .price { margin-top: 8px; font: 700 22px var(--display); }
.c1 { background: var(--mint); transform: rotate(-1.5deg); }
.c2 { background: var(--butter); transform: rotate(1.2deg); }
.c3 { background: var(--sky); transform: rotate(-1deg); }
.c4 { background: var(--white); transform: rotate(1.5deg); }
.card:hover { transform: rotate(0) translateY(-4px); }

/* reviews, hours, area */
.row { display: grid; gap: 24px; padding: 32px 16px; }
.bubble { position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 32px; padding: 24px; text-align: center; }
.bubble::after { content: ""; position: absolute; left: 48px; bottom: -16px; width: 32px; height: 32px; background: var(--white); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.score { font: 700 96px/1 var(--display); color: var(--brand); }
.bubble a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; }
.hours { background: var(--white); border-radius: 32px; padding: 24px; }
.now { display: inline-block; background: var(--mint); border-radius: 40px; padding: 4px 16px; font-weight: 800; margin-bottom: 12px; }
.hours dl { margin: 0; display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 16px; }
.hours dt { font-weight: 800; } .hours dd { margin: 0; }
.hours .is-today { background: var(--cream-2); box-shadow: inset 0 0 0 2px var(--ink); }
.area ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area li { background: var(--sky); padding: 8px 20px; border-radius: 40px 40px 40px 8px; font: 600 20px var(--display); }
.area li:nth-child(even) { background: var(--mint); border-radius: 40px 40px 8px 40px; }

/* text us */
.chat { display: none; }
.chat:target { display: grid; place-items: end center; position: fixed; inset: 0; z-index: 40; background: var(--shade); padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.chat-card { width: 100%; max-width: 480px; max-height: 100%; overflow: auto; background: var(--cream); border-radius: 32px; padding: 24px; animation: pop var(--slow) cubic-bezier(.3, 1.4, .5, 1); }
.chat-head { display: flex; justify-content: space-between; align-items: center; }
.chat-head h2 { font: 700 36px var(--display); }
.chat-head a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-weight: 800; }
.chat form { display: grid; gap: 8px; margin-top: 12px; }
.chat label { font-weight: 800; }
.chat input:not([type=checkbox]), .chat textarea { font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--edge); border-radius: 16px; min-height: 52px; padding: 8px 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--brand); }

.foot { padding: 32px 16px; text-align: center; display: grid; gap: 4px; }
.foot-name { font: 700 28px var(--display); }
.foot a { display: inline-flex; align-items: center; min-height: 48px; margin: 0 8px; }

/* floating dock */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: grid; grid-template-columns: 2fr 1fr; gap: 4px; padding: 4px; border-radius: 40px; background: var(--ink); }
.dock a { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 40px; font: 700 22px var(--display); text-decoration: none; }
.d-book { background: var(--brand); color: var(--on-brand); }
.d-call { background: var(--cream); color: var(--ink); }

/* the one page-load reveal: the photo and the pup bounce in, then the stickers pop on */
.photo-blob { animation: drop 620ms cubic-bezier(.3, 1.4, .5, 1) both; }
.pup { animation: bounce 700ms 220ms cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 50% 100%; }
.sticker-a { animation: pop 420ms 520ms cubic-bezier(.3, 1.6, .5, 1) both; }
.hero h1 span { animation: drop 520ms cubic-bezier(.3, 1.4, .5, 1) both; }
.hero h1 .h-bold { animation-delay: 120ms; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px) rotate(-3deg); } }
@keyframes bounce { from { opacity: 0; transform: scale(.4); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .top { max-width: 1200px; margin: 0 auto; padding: 24px 32px; }
  .hero { max-width: 1200px; margin: 0 auto; padding: 24px 32px 48px; grid-template-columns: 1fr 1fr; grid-template-areas: "tag art" "h art" "lede art" "call art"; align-content: center; column-gap: 48px; }
  .tag { grid-area: tag; align-self: end; } .hero h1 { grid-area: h; } .lede { grid-area: lede; } .hero-call { grid-area: call; } .hero-art { grid-area: art; }
  .h-light { font-size: 56px; } .h-bold { font-size: 112px; }
  .book { max-width: 880px; margin: 0 auto; padding: 40px 48px; }
  .menu { max-width: 1200px; margin: 0 auto; padding: 64px 32px 16px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .row { max-width: 1200px; margin: 0 auto; grid-template-columns: 1fr 1.2fr 1fr; align-items: start; padding: 48px 32px; }
  .chat:target { place-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-blob, .pup, .sticker-a, .hero h1 span, .chat-card { animation: none; }
  .card, .opts span, .next, .back, .go { transition: none; }
  .card:hover { transform: none; }
}
