/* ============================================================
   The Fur Baby Club — sticker-book brand
   Palette from the business card + hero video:
   periwinkle #8F94F2 · ink #17141B · cream #F6F0E1 · chartreuse #DBF227
   ============================================================ */

:root {
  --peri: #8F94F2;
  --peri-soft: #C6C8FA;
  --peri-tint: #ECEDFD;
  --ink: #17141B;
  --cream: #F6F0E1;
  --cream-bright: #FDFAF1;
  --chart: #DBF227;
  --radius: 24px;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --font-display: "Bagel Fat One", "Cooper Black", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --p: 0; /* hero scroll progress, set by JS */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* clip alone would zero out overflow-y too — pair it explicitly */
  overflow-x: clip;
  overflow-y: auto;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

.container { width: min(1160px, 92vw); margin-inline: auto; }
.container--narrow { width: min(860px, 92vw); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin-bottom: .5em; letter-spacing: .01em; }
h3 { font-size: 1.45rem; margin-bottom: .4em; }
p + p { margin-top: 1em; }

.kicker {
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  background: var(--ink);
  color: var(--cream);
  padding: .35em 1em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.lede { font-size: 1.2rem; max-width: 46ch; margin-bottom: 2.2rem; }

.hl {
  background-image: linear-gradient(transparent 58%, var(--chart) 58%, var(--chart) 94%, transparent 94%);
  padding-inline: .06em;
}

.paw { width: 1.2em; height: 1.2em; flex: 0 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  padding: .8em 1.5em;
  min-height: 48px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  background: var(--cream-bright);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 rgba(23, 20, 27, .28); }
.btn--chart { background: var(--chart); }
.btn--cream { background: var(--cream-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--chart); color: var(--ink); font-weight: 800;
  padding: .8em 1.4em; border: var(--border); border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: var(--border);
  transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 4px 0 rgba(23, 20, 27, .12); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.nav__logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.nav__logo .paw { width: 1.5em; height: 1.5em; color: var(--peri); }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1rem;
  padding: .4em .1em; border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav__cta { white-space: nowrap; }
.nav__links a:not(.btn):hover { border-bottom-color: var(--chart); }
.nav__cta { padding: .55em 1.2em; min-height: 44px; box-shadow: 3px 3px 0 var(--ink); }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav__burger span { width: 26px; height: 3.5px; background: var(--ink); border-radius: 3px; transition: transform .2s ease, opacity .2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { height: 340vh; background: var(--peri); }
.hero__sticky {
  position: sticky; top: 0;
  height: 100svh; min-height: 540px;
  overflow: clip;
  display: flex; align-items: center;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;
  background: var(--peri);
}
.hero__content {
  position: relative; z-index: 2;
  transform: translateY(calc(var(--p) * -24vh));
  opacity: calc(1 - max(0, var(--p) - 0.32) * 2.4);
}
.hero__title {
  font-size: clamp(3.4rem, 10.5vw, 8.5rem);
  line-height: .92;
  letter-spacing: .005em;
  margin: .18em 0 .22em;
  max-width: 7ch;
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { margin-left: .35em; }
.hero__sub { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 700; max-width: 34ch; margin-bottom: 1.6em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--cream-bright); border: var(--border); border-radius: 999px;
  font-weight: 800; font-size: .92rem; padding: .4em 1.1em;
  box-shadow: var(--shadow-sm);
}
.hero__cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  opacity: calc(1 - var(--p) * 6);
}
.hero__cue .paw { width: 1.7em; height: 1.7em; animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- ticker ---------- */
.ticker {
  background: var(--chart);
  border-block: var(--border);
  transform: rotate(-1.2deg) scaleX(1.04);
  margin-top: -2.4rem;
  position: relative; z-index: 5;
  overflow: clip;
}
.ticker__track { display: flex; width: max-content; animation: ticker 26s linear infinite; }
.ticker__set {
  display: flex; align-items: center; gap: 2.2rem;
  padding: .65rem 1.1rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 1.02rem;
  white-space: nowrap;
}
.ticker__set .paw { width: 1.35em; height: 1.35em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--tint { background: var(--peri-tint); border-block: var(--border); }
.section--peri { background: var(--peri); border-block: var(--border); }

.note {
  margin-top: 2.6rem;
  display: inline-block;
  background: var(--cream-bright);
  border: var(--border); border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: .9em 1.3em; font-size: 1.05rem;
}

/* ---------- service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 1rem;
}
.card {
  background: var(--cream-bright);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem 1.6rem;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--ink); }
.card__icon {
  width: 64px; height: 64px;
  background: var(--peri);
  border: var(--border); border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  color: var(--ink);
}
.card__icon svg { width: 38px; height: 38px; }
.card:hover .card__icon { animation: wiggle .5s ease; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -7deg; } 65% { rotate: 6deg; } }
.card p { font-size: 1rem; }
.card .price {
  margin-top: auto; padding-top: 1.1rem;
  align-self: flex-start;
}
.price {
  display: inline-block;
  background: var(--chart);
  border: var(--border); border-radius: 999px;
  font-weight: 900; font-size: .95rem;
  padding: .3em .95em;
}
.card .price { margin-top: 1.1rem; padding: .3em .95em; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; padding-bottom: 5.5rem; padding-right: 8%; }
.badge-years {
  position: absolute; left: -3%; top: -1.2rem; z-index: 2;
  background: var(--chart); border: var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 900; font-size: 1rem; padding: .5em 1.1em;
  rotate: -4deg;
}
.polaroid--peek {
  position: absolute; z-index: 1;
  width: 54%; right: -4%; bottom: 0;
  rotate: 5deg;
  padding: .6rem .6rem 0;
}
/* keep the main caption readable in the zone the peek doesn't cover */
.about__media > .polaroid:not(.polaroid--peek) figcaption {
  text-align: left;
  padding-left: .8rem;
  padding-right: 44%;
}
.polaroid--peek figcaption { font-size: .95rem; padding: .5rem .2rem .6rem; }
.polaroid--peek:hover { rotate: 2deg; transform: translateY(-4px); }
.creds {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
  margin-top: 1.8rem;
}
.creds li {
  display: flex; align-items: center; gap: .6rem;
  background: var(--cream-bright);
  border: var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: .98rem;
  padding: .7em .9em;
}
.creds svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--peri); }

/* ---------- polaroid frames ---------- */
.polaroid {
  background: var(--cream-bright);
  border: var(--border); border-radius: 18px;
  box-shadow: var(--shadow);
  padding: .9rem .9rem 0;
  rotate: -2deg;
  transition: rotate .25s ease, transform .25s ease;
}
.polaroid:hover { rotate: 0deg; transform: translateY(-4px); }
.polaroid img { border: var(--border); border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.polaroid figcaption {
  font-family: var(--font-display);
  text-align: center; font-size: 1.15rem;
  padding: .7rem .2rem .8rem;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; margin-top: 1.5rem; }
.gallery .polaroid:nth-child(3n+2) { rotate: 1.8deg; }
.gallery .polaroid:nth-child(3n) { rotate: -1deg; }
.gallery .polaroid:hover { rotate: 0deg; }

/* crop helpers for photos whose subject sits off-centre */
.pos-low { object-position: center 78%; }
.pos-mid-low { object-position: center 62%; }
.pos-high { object-position: center 28%; }
.join-tile {
  background: var(--chart);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: .6rem; padding: 2rem;
  rotate: 1deg;
}
.join-tile .paw { width: 46px; height: 46px; }
.join-tile .btn { margin-top: .6rem; }

/* ---------- reviews ---------- */
.section--peri .kicker { background: var(--ink); color: var(--chart); }
.reviews-grid {
  columns: 2;
  column-gap: 1.8rem;
  margin-bottom: 2.2rem;
}
.review-card {
  background: var(--cream-bright);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.8rem;
  break-inside: avoid;
}
.reviews-grid .review-card:nth-child(odd) { rotate: -.5deg; }
.reviews-grid .review-card:nth-child(even) { rotate: .5deg; }
.reviews-grid .review-card:hover { rotate: 0deg; }
.stars { display: flex; gap: .25rem; color: var(--ink); margin-bottom: 1rem; }
.stars svg { width: 26px; height: 26px; fill: var(--chart); stroke: var(--ink); stroke-width: 1.5; }
.review-card__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .6rem; }
.review-card footer { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; }
.review-card cite { font-style: normal; font-weight: 900; }
.review-card footer span { font-size: .92rem; font-weight: 700; opacity: .75; }

/* ---------- faq ---------- */
.faqs { display: grid; gap: 1rem; margin-top: 1rem; }
.faqs details {
  background: var(--cream-bright);
  border: var(--border); border-radius: 18px; box-shadow: var(--shadow-sm);
  overflow: clip;
}
.faqs summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  font-weight: 900; font-size: 1.08rem;
  padding: 1.05rem 1.3rem;
  min-height: 48px;
}
.faqs summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 22px; height: 22px; flex: 0 0 auto; }
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--ink); border-radius: 3px;
  transition: transform .2s ease;
}
.faq-toggle::before { width: 100%; height: 3.5px; }
.faq-toggle::after { width: 3.5px; height: 100%; }
.faqs details[open] .faq-toggle::after { transform: rotate(90deg); }
.faqs details p { padding: 0 1.3rem 1.2rem; max-width: 60ch; }

/* ---------- booking panel ---------- */
.book-panel {
  background: var(--peri);
  border: var(--border); border-radius: 32px; box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4.5vw, 3.5rem);
}
.book-panel__head { max-width: 60ch; }
.book-panel .lede { margin-bottom: 2rem; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.book-col {
  background: var(--cream-bright);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.7rem 1.6rem;
}
.booking-slot { min-height: 380px; display: grid; }
.booking-slot iframe { display: block; width: 100%; min-height: 720px; border: var(--border); border-radius: 16px; background: #fff; }
.booking-placeholder {
  border: 3px dashed var(--ink); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .6rem;
  padding: 2rem 1.4rem;
  background: var(--peri-tint);
}
.booking-placeholder svg { width: 54px; height: 54px; margin-bottom: .4rem; }
.booking-placeholder .btn-row { justify-content: center; margin-top: .8rem; }

form label { display: block; font-weight: 900; font-size: .95rem; margin: 1rem 0 .35rem; }
form label:first-of-type { margin-top: .2rem; }
input, select, textarea {
  width: 100%;
  font: inherit; font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: var(--border); border-radius: 12px;
  padding: .65em .9em;
  min-height: 48px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--chart); outline-offset: 0; }
form .btn { margin-top: 1.3rem; width: 100%; }
.form-hint { font-size: .9rem; margin-top: .8rem; opacity: .85; }
.form-hint a { color: var(--ink); font-weight: 800; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin-top: 1rem;
  font-weight: 800;
  border: var(--border); border-radius: 14px;
  padding: .8em 1.1em;
  background: var(--chart);
}
.form-status.is-error { background: var(--peri-tint); }
.form-status a { color: var(--ink); }

.contact-chips {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-top: 1.8rem;
}
.contact-chips li, .contact-chips a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; color: var(--ink); text-decoration: none;
}
.contact-chips li {
  background: var(--cream-bright);
  border: var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
  padding: .55em 1.1em; min-height: 44px;
}
.contact-chips svg { width: 20px; height: 20px; }
.contact-chips a:hover span { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--cream); border-top: var(--border); }
.footer a { color: var(--cream); text-decoration: none; font-weight: 700; }
.footer a:hover { color: var(--chart); }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer__grid nav, .footer__grid div { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.footer__logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: 1.4rem;
}
.footer__logo .paw { color: var(--chart); width: 1.4em; height: 1.4em; }
.footer__head { font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--peri-soft); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  border-top: 2px solid rgba(246, 240, 225, .25);
  padding: 1.3rem 0 1.6rem;
  font-size: .9rem; font-weight: 700;
}
.footer__credit { margin-left: auto; } /* keeps the credit bottom-right even when the row wraps */

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) and (min-width: 701px) {
  .hero__video { object-position: 84% center; }
}

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .join-tile { grid-column: span 2; align-items: center; text-align: center; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .badge-years { left: 0; }
  .book-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: var(--border);
    display: none;
    padding: .5rem 4vw 1.2rem;
  }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: .9em 0; border-bottom: 2px solid rgba(23, 20, 27, .12); }
  .nav__links .btn { margin-top: 1rem; justify-content: center; }
  .nav__burger { display: flex; }

  /* Stacked hero: headline on flat periwinkle, video banner below (still scrubbed) */
  .hero { height: 260vh; }
  .hero__sticky { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; }
  .hero__video { position: static; order: 2; width: 100%; height: auto; flex: 1 1 auto; object-fit: cover; object-position: 62% center; min-height: 0; }
  .hero__content { order: 1; padding-top: max(4.5rem, 9vh); padding-bottom: 1.5rem; }
  .hero__title { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .hero__sub { font-size: 1.05rem; }
  .hero__cue { display: none; }

  .cards { grid-template-columns: 1fr; }
  .reviews-grid { columns: 1; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .gallery .polaroid { padding: .55rem .55rem 0; }
  .gallery .polaroid figcaption { font-size: .92rem; padding: .5rem .2rem .6rem; }
  .join-tile { grid-column: span 2; }
  .creds { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .badge-years { left: 0; }
  .ticker__set { font-size: .85rem; gap: 1.4rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: auto; min-height: 100svh; }
  .hero__cue .paw { animation: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: 100%; }
  .ticker { transform: none; }
  .ticker__set:nth-child(2) { display: none; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .card, .btn, .polaroid { transition: none; }
  .card:hover .card__icon { animation: none; }
}
