/* =========================================================
   Jamie's Dog Grooming — styles
   Mobile-first, static, no framework.
   ========================================================= */

:root {
  --blue: #3763B7;
  --blue-deep: #1E3B82;
  --blue-soft: #EAF0FF;
  --blue-ink: #0F2657;

  --cream: #FFF8F0;
  --cream-deep: #FDEFDF;
  --blush: #FDE4D4;
  --sun: #FFB84D;
  --mint: #D6F1E4;

  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --ink-muted: #6B6B6B;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 6px rgba(15, 38, 87, .06), 0 1px 2px rgba(15, 38, 87, .04);
  --shadow-md: 0 10px 30px rgba(15, 38, 87, .08), 0 2px 6px rgba(15, 38, 87, .05);
  --shadow-lg: 0 24px 50px rgba(15, 38, 87, .12), 0 6px 14px rgba(15, 38, 87, .06);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-hand: "Caveat", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

em { font-style: italic; color: var(--blue-deep); font-weight: 700; }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 18px 36px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .2s;
  position: relative;
  isolation: isolate;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(55, 99, 183, .35), inset 0 -4px 0 rgba(0,0,0,.08);
}
.btn--primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px) scale(1.02);
  color: #fff;
}
.btn--primary:active { transform: translateY(0) scale(.99); }

.btn--xl { padding: 20px 44px; font-size: 18px; }
@media (max-width: 420px) {
  .btn--xl { padding: 18px 28px; font-size: 16px; letter-spacing: .04em; }
}

.btn__paw {
  color: #fff;
  animation: wag 2.6s ease-in-out infinite;
  transform-origin: 50% 70%;
}
@keyframes wag {
  0%, 60%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(-18deg); }
  80% { transform: rotate(16deg); }
  90% { transform: rotate(-10deg); }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px 100px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 20% -10%, var(--blush) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, var(--blue-soft) 0%, transparent 55%),
    linear-gradient(180deg, #FFFDFA 0%, var(--cream) 100%);
}
/* older browsers fallback */
@supports not (min-height: 100svh) {
  .hero { min-height: 100vh; }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  top: -60px; left: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--blush) 0%, transparent 70%);
}
.hero::after {
  bottom: 40px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--blue-soft) 0%, transparent 70%);
}

.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.brand__logo {
  width: clamp(140px, 30vw, 180px);
  aspect-ratio: 1792 / 1847;
  color: var(--blue);
  animation: floaty 5s ease-in-out infinite;
}
.brand__logo svg { width: 100%; height: 100%; display: block; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

.brand__name {
  font-family: var(--font-head);
  margin: 0;
  line-height: .95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.brand__jamie {
  font-weight: 900;
  font-size: clamp(72px, 14vw, 116px);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  line-height: 1;
}
.brand__sub {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(20px, 4vw, 26px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero__tag {
  font-size: clamp(19px, 2.6vw, 22px);
  color: var(--ink-2);
  max-width: 640px;
  margin: 26px auto 32px;
  line-height: 1.5;
}
.hero__city { font-weight: 800; color: var(--blue-deep); white-space: nowrap; }
.hero__underline {
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: var(--ink);
}
.hero__underline::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  bottom: -6px;
  height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'><path d='M2 6 C 25 1, 50 11, 75 5 S 115 1, 118 5' stroke='%23FFB84D' stroke-width='3' stroke-linecap='round' fill='none'/></svg>") center/100% 100% no-repeat;
}

.hero__meta {
  margin-top: 26px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 22px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15, 38, 87, .08);
  border-radius: 999px;
  font-size: clamp(15px, 1.7vw, 16px);
  color: var(--ink-2);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.hero__meta .dot { color: var(--blue); }
@media (max-width: 440px) {
  .hero__meta { flex-direction: column; gap: 4px; padding: 14px 22px; }
  .hero__meta .dot { display: none; }
}

/* bubbles */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bubbles span {
  position: absolute;
  left: var(--x);
  bottom: -60px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95) 0%, rgba(230, 238, 255, .7) 40%, rgba(55,99,183,.15) 100%);
  border: 1px solid rgba(55,99,183,.18);
  transform: scale(var(--s));
  opacity: 0;
  animation: rise var(--t) linear infinite;
  animation-delay: var(--d);
  box-shadow: inset 2px 2px 4px rgba(255,255,255,.8);
}
@keyframes rise {
  0%   { transform: translateY(0) scale(var(--s)); opacity: 0; }
  8%   { opacity: .9; }
  90%  { opacity: .7; }
  100% { transform: translateY(-110vh) scale(var(--s)); opacity: 0; }
}

/* wave divider */
.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 70px;
  display: block;
  z-index: 2;
}
.wave--cream path { fill: var(--cream); }

/* =========================================================
   Bouncing tennis-ball scroll cue (mobile only)
   ========================================================= */
.tennis-ball {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 52px;
  height: 52px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
  will-change: transform;
}
@media (max-width: 719px) {
  .tennis-ball {
    display: block;
    animation: tennis-roll 4.6s linear 1.4s 1 forwards;
    transform: translate(120vw, 30svh);
  }
}
/* Per-keyframe easing for soft bounce peaks:
   ease-in while falling (accelerates to ground),
   ease-out while rising (decelerates at apex). */
@keyframes tennis-roll {
  0%   { transform: translate(120vw, 30svh) rotate(0deg);              opacity: 0; animation-timing-function: ease-in; }
  3%   { transform: translate(110vw, 35svh) rotate(40deg);             opacity: 1; animation-timing-function: ease-in; }
  26%  { transform: translate(68vw, calc(100svh - 70px)) rotate(260deg);          animation-timing-function: ease-out; }   /* first landing */
  44%  { transform: translate(48vw, 50svh) rotate(420deg);                        animation-timing-function: ease-in; }    /* peak — softened */
  66%  { transform: translate(28vw, calc(100svh - 70px)) rotate(620deg);          animation-timing-function: ease-in; }    /* second landing, rolls from here */
  85%  { transform: translate(6vw, 98svh) rotate(820deg);              opacity: 1; animation-timing-function: linear; }    /* rolling off */
  100% { transform: translate(-25vw, 115svh) rotate(1000deg);          opacity: 0; }                                       /* gone */
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Feature section (In-Home)
   ========================================================= */
.feature {
  padding: 80px 20px 60px;
  position: relative;
}
.feature__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.feature__badge svg { color: var(--blue); }

.feature__heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.feature__sub {
  color: var(--blue);
  font-weight: 500;
  font-style: italic;
  font-size: .75em;
}

.swash {
  position: relative;
  display: inline-block;
  color: var(--blue-deep);
}
.swash::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 14px;
  background: var(--sun);
  opacity: .35;
  z-index: -1;
  border-radius: 4px;
}

.feature__body {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 30px;
}

.perks {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 640px;
}
.perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid rgba(15, 38, 87, .08);
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.perks__dot {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

/* =========================================================
   Paw trail between sections — walks across on scroll
   ========================================================= */
.paw-trail {
  position: relative;
  height: 100px;
  overflow: hidden;
  pointer-events: none;
}
.paw-trail__paw {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 30px;
  height: 30px;
  color: var(--blue);
  opacity: 0;
  transform: translate(-50%, calc(-50% + var(--y, 0))) rotate(var(--r)) scale(.5);
  transition:
    opacity 1s cubic-bezier(.2,.8,.25,1),
    transform 1s cubic-bezier(.2,.8,.25,1.25);
  transition-delay: var(--d, 0s);
}
/* stagger up/down like alternating footprints */
.paw-trail__paw:nth-child(odd)  { --y: -10px; }
.paw-trail__paw:nth-child(even) { --y:  10px; }

.paw-trail.is-walking .paw-trail__paw {
  opacity: .22;
  transform: translate(-50%, calc(-50% + var(--y, 0))) rotate(var(--r)) scale(1);
}
.paw-trail.is-walking .paw-trail__paw:nth-child(1) { transition-delay: .1s; }
.paw-trail.is-walking .paw-trail__paw:nth-child(2) { transition-delay: .45s; }
.paw-trail.is-walking .paw-trail__paw:nth-child(3) { transition-delay: .80s; }
.paw-trail.is-walking .paw-trail__paw:nth-child(4) { transition-delay: 1.15s; }
.paw-trail.is-walking .paw-trail__paw:nth-child(5) { transition-delay: 1.50s; }
.paw-trail.is-walking .paw-trail__paw:nth-child(6) { transition-delay: 1.85s; }
.paw-trail.is-walking .paw-trail__paw:nth-child(7) { transition-delay: 2.20s; }

/* =========================================================
   Section shared
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
  padding: 6px 14px;
  background: var(--blue-soft);
  border-radius: 999px;
}

.section-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}
.handwrite {
  font-family: var(--font-hand);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.1em;
  display: inline-block;
  transform: rotate(-3deg);
  white-space: nowrap;
}

/* =========================================================
   Services grid
   ========================================================= */
.services {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--blue-soft) 100%);
  position: relative;
}
.services__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}
@media (min-width: 600px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 960px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

.service {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 38, 87, .06);
  transition: transform .35s cubic-bezier(.2,.9,.25,1.15), box-shadow .35s ease, border-color .25s ease;
  position: relative;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(55, 99, 183, .25);
}
.service:hover .service__icon {
  animation: wiggle .6s ease;
  background: var(--blue);
  color: #fff;
}
.service__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 16px;
  transition: background .25s, color .25s;
}
.service__icon svg { width: 32px; height: 32px; }
@keyframes wiggle {
  0%   { transform: rotate(0) scale(1); }
  30%  { transform: rotate(-8deg) scale(1.05); }
  60%  { transform: rotate(6deg) scale(1.05); }
  100% { transform: rotate(0) scale(1); }
}
.service h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--ink);
}
.service p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Full-groom callout */
.full-groom {
  margin-top: 48px;
  padding: 26px 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px dashed rgba(55, 99, 183, .35);
  text-align: left;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.full-groom__ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.full-groom__ribbon svg { color: #fff; }
.full-groom p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   Testimonials (text-message style)
   ========================================================= */
.tmonials {
  padding: 80px 20px;
  background: var(--cream);
}
.tmonials__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.bubbles-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.chat {
  max-width: 85%;
  padding: 16px 20px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  position: relative;
}
.chat p { margin: 0 0 6px; font-size: 16px; line-height: 1.55; }
.chat__who { font-size: 13px; color: var(--ink-muted); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 13px; }
.chat--right .stars { color: #FFD76A; }

.chat--left {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 38, 87, .08);
  border-bottom-left-radius: 6px;
}
.chat--right {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat--right .chat__who { color: rgba(255,255,255,.85); }
.chat--right em { color: #fff; background: rgba(255,255,255,.18); padding: 0 4px; border-radius: 4px; font-style: italic; }

.chat__who { color: var(--ink-muted); }
.chat--left .chat__who { color: var(--ink-muted); }

/* =========================================================
   Service area pills
   ========================================================= */
.area {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
}
.area__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.pill-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pill-grid li {
  padding: 10px 18px;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 38, 87, .05);
  transition: transform .2s, background .2s, color .2s;
}
.pill-grid li:hover {
  transform: translateY(-3px) rotate(-2deg);
  background: var(--blue);
  color: #fff;
}
.area__note {
  margin-top: 24px;
  color: var(--ink-muted);
}

/* =========================================================
   Big CTA
   ========================================================= */
.bigcta {
  padding: 100px 20px;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(55,99,183,.18) 0%, transparent 70%),
    radial-gradient(600px 300px at 80% 80%, rgba(255, 184, 77, .25) 0%, transparent 70%),
    var(--blue-deep);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bigcta__inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.bigcta h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 60px);
  margin: 10px 0 10px;
}
.bigcta p {
  font-size: 18px;
  color: rgba(255,255,255,.88);
  margin: 0 0 30px;
}
.bigcta .btn--primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.bigcta .btn--primary:hover {
  background: var(--sun);
  color: var(--blue-deep);
}
.bigcta .btn__paw { color: var(--blue-deep); }

.bigcta__paw {
  width: 64px; height: 64px;
  color: rgba(255,255,255,.25);
  display: block;
  margin: 0 auto 10px;
  animation: floaty 4s ease-in-out infinite;
}

.bigcta .bigcta__vax {
  margin: 56px 0 0;
  font-size: 15px;
  color: rgba(255,255,255,.78);
}
.vax-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s;
}
.vax-link:hover { color: var(--sun); }

/* =========================================================
   Footer
   ========================================================= */
.foot {
  padding: 60px 20px 120px;
  background: #0F1B33;
  color: rgba(255,255,255,.85);
}
@media (min-width: 640px) {
  .foot { padding-bottom: 60px; }
}
.foot__inner { max-width: 1100px; margin: 0 auto; }

.foot__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  text-align: center;
}
@media (min-width: 640px) {
  .foot__brand {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
  }
}
.foot__paw {
  width: 60px;
  height: 60px;
  color: var(--sun);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .foot__paw { width: 52px; height: 52px; }
}
.foot__brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
}
.foot__brand span {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.6);
}

.foot__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
@media (min-width: 640px) {
  .foot__cols { grid-template-columns: repeat(3, 1fr); text-align: left; }
}
.foot__col a, .foot__col span { color: #fff; font-weight: 700; text-decoration: none; }
.foot__col a:hover { color: var(--sun); }
.foot__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 6px;
  font-weight: 800;
}
@media (min-width: 640px) {
  .foot__label { justify-content: flex-start; }
}
.foot__label svg { width: 16px; height: 16px; color: var(--sun); }

.foot__copy {
  text-align: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.foot__paw-mini {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  color: var(--sun);
  margin: 0 2px;
}

/* =========================================================
   Sticky mobile CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0) + 14px);
  transform: translate(-50%, 120%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(15, 38, 87, .35), 0 4px 10px rgba(15, 38, 87, .2);
  z-index: 50;
  transition: transform .45s cubic-bezier(.2,.9,.25,1.2), background .25s ease;
  will-change: transform;
  white-space: nowrap;
}
.sticky-cta.is-shown {
  transform: translate(-50%, 0);
  animation: heartbeat 4.5s ease-in-out 1s infinite;
}
.sticky-cta:hover { background: var(--blue-deep); color: #fff; }
.sticky-cta__paw {
  color: #fff;
  flex-shrink: 0;
}
@keyframes heartbeat {
  0%, 92%, 100% { box-shadow: 0 14px 36px rgba(15,38,87,.35), 0 4px 10px rgba(15,38,87,.2), 0 0 0 0 rgba(55,99,183,.45); }
  95%           { box-shadow: 0 14px 36px rgba(15,38,87,.35), 0 4px 10px rgba(15,38,87,.2), 0 0 0 14px rgba(55,99,183, 0); }
}

/* show sticky only on mobile */
@media (min-width: 720px) {
  .sticky-cta { display: none; }
}

/* =========================================================
   Confetti paw burst (JS injects)
   ========================================================= */
.paw-burst {
  position: fixed;
  pointer-events: none;
  z-index: 99;
  width: 20px; height: 20px;
  color: var(--blue);
  animation: burst .9s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes burst {
  0%   { transform: translate(-50%, -50%) scale(.3) rotate(0); opacity: 1; }
  70%  { opacity: 1; }
  100% {
    transform:
      translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)))
      scale(1) rotate(var(--rot, 180deg));
    opacity: 0;
  }
}

/* =========================================================
   Waiver form page
   ========================================================= */

.waiver-body { background: var(--cream); }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.waiver-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 38, 87, .08);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.waiver-head__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.waiver-head__paw {
  width: 40px; height: 40px;
  color: var(--blue);
  flex-shrink: 0;
}
.waiver-head__brand strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.waiver-head__brand em {
  display: block;
  font-style: normal;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 2px;
}
.waiver-head__back {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
}
.waiver-head__back:hover { background: var(--blue); color: #fff; }

.waiver {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.waiver__intro { text-align: center; margin-bottom: 30px; }
.waiver__intro h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  margin: 10px 0 12px;
}
.waiver__lede {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
}

.waiver-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 38, 87, .08);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  margin: 0;
}
.form-card legend {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--blue-deep);
  padding: 0 4px;
  margin-left: -4px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.field-row > .field { flex: 1 1 180px; margin-top: 0; }
.field-row > .field--flex   { flex: 2 1 220px; }
.field-row > .field--narrow { flex: 0 1 100px; }

.field label, .field-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
}
.req { color: #C94A3A; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid rgba(15, 38, 87, .15);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(55, 99, 183, .16);
}
.field textarea { resize: vertical; min-height: 96px; font-family: inherit; }

/* checkbox grid */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
@media (min-width: 500px) { .check-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid rgba(15, 38, 87, .12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-2);
  transition: border-color .15s, background .15s;
  user-select: none;
}
.check:hover { border-color: var(--blue); }
.check input { accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.check input:checked ~ span { color: var(--blue-deep); }
.check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

.check--agree {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--cream-deep);
  border-color: rgba(15, 38, 87, .18);
  align-items: flex-start;
}
.check--agree span { line-height: 1.5; font-size: 15px; }

/* legal text block */
.legal {
  font-size: 14px;
  color: var(--ink-muted);
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 12px;
  line-height: 1.6;
}
.legal p { margin: 0 0 10px; }
.legal p:last-child { margin-bottom: 0; }

/* signature pad */
.sigpad {
  position: relative;
  margin-top: 4px;
}
.sigpad__canvas {
  display: block;
  width: 100%;
  height: 180px;
  background: #FDFCF9;
  border: 1.5px dashed rgba(15, 38, 87, .25);
  border-radius: 14px;
  touch-action: none;
  cursor: crosshair;
}
.sigpad__canvas:hover { border-color: var(--blue); }
.sigpad__hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink-muted);
  font-size: 13px;
  font-style: italic;
  pointer-events: none;
  opacity: .6;
}
.sigpad__canvas:focus-within ~ .sigpad__hint,
.sigpad:has(canvas:active) .sigpad__hint { opacity: 0; }
.sigpad__clear {
  position: absolute;
  top: 10px; right: 10px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid rgba(15, 38, 87, .15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
}
.sigpad__clear:hover { color: var(--blue-deep); border-color: var(--blue); }

.form-error {
  background: #FFE9E0;
  color: #A03A2A;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.waiver-form > .btn {
  align-self: center;
  margin-top: 8px;
}

.waiver__assure {
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  margin: 0;
}

.waiver-foot {
  padding: 30px 20px 50px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}
.waiver-foot a { color: var(--blue); font-weight: 700; text-decoration: none; }
.waiver-foot a:hover { color: var(--blue-deep); }

/* =========================================================
   Thanks page
   ========================================================= */
.thanks-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 400px at 20% 20%, var(--blush) 0%, transparent 70%),
    radial-gradient(600px 400px at 80% 80%, var(--blue-soft) 0%, transparent 70%),
    var(--cream);
  padding: 40px 20px;
}
.thanks__card {
  background: #fff;
  border-radius: 28px;
  padding: 44px 32px;
  max-width: 460px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 38, 87, .08);
}
.thanks__check {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(55, 99, 183, .35);
}
.thanks__card h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 36px;
  margin: 0 0 10px;
  color: var(--ink);
}
.thanks__card p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}
.thanks__redirect {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}
.thanks__redirect a { color: var(--blue); font-weight: 700; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bubbles span { display: none; }
}
