/**
 * WAGGLE — original Tunai theme for pet grooming, daycare & vet-adjacent shops.
 * Cream canvas, sticker cards with offset ink shadows, blob-masked photos,
 * wavy section dividers, bouncy hovers. Scoped under .waggle-theme.
 */

.waggle-theme {
  --wg-bg: #fdf7ee;
  --wg-bg-alt: #ffefdd;
  --wg-ink: #33261f;
  --wg-muted: #8a7364;
  --wg-coral: #ff6b4a;
  --wg-teal: #17b3a6;
  --wg-sun: #ffc531;
  --wg-card: #ffffff;
  --fx-accent: var(--wg-coral);
  --fx-spot: rgba(255, 107, 74, 0.1);
  --wg-display: "Fredoka", sans-serif;
  --wg-body: "Nunito", sans-serif;

  background: var(--wg-bg);
  color: var(--wg-ink);
  font-family: var(--wg-body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

.waggle-theme *,
.waggle-theme *::before,
.waggle-theme *::after {
  box-sizing: border-box;
}

.waggle-theme img {
  max-width: 100%;
  display: block;
}

.waggle-theme a {
  color: inherit;
  text-decoration: none;
}

.wg-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Confetti paw dots floating on the page background. */
.wg-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle 5px at 8% 18%, rgba(255, 107, 74, 0.18) 98%, transparent),
    radial-gradient(circle 4px at 88% 12%, rgba(23, 179, 166, 0.2) 98%, transparent),
    radial-gradient(circle 6px at 94% 64%, rgba(255, 197, 49, 0.25) 98%, transparent),
    radial-gradient(circle 4px at 4% 78%, rgba(23, 179, 166, 0.16) 98%, transparent),
    radial-gradient(circle 5px at 72% 92%, rgba(255, 107, 74, 0.14) 98%, transparent);
}

.waggle-theme > * {
  position: relative;
  z-index: 1;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.wg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 26px;
  background: rgba(253, 247, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(51, 38, 31, 0.08);
}

.wg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: 21px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wg-logo-paw {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--wg-coral);
  color: #fff;
  border-radius: 12px 12px 12px 4px;
  font-size: 17px;
  transform: rotate(-8deg);
}

.wg-nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 800;
  font-size: 15px;
}

.wg-nav-links a {
  color: var(--wg-muted);
  transition: color 0.2s;
}

.wg-nav-links a:hover {
  color: var(--wg-coral);
}

/* Sticker button: thick ink border + offset shadow, springs on hover. */
.wg-btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--wg-coral);
  color: #fff;
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: 16px;
  border: 2.5px solid var(--wg-ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--wg-ink);
  transition: transform 0.16s, box-shadow 0.16s;
  cursor: pointer;
}

.wg-btn:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0 var(--wg-ink);
}

.wg-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--wg-ink);
}

.wg-btn--teal {
  background: var(--wg-teal);
}

.wg-btn--ghost {
  background: var(--wg-card);
  color: var(--wg-ink);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.wg-hero {
  padding: 84px 0 40px;
}

.wg-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.wg-kicker {
  display: inline-block;
  padding: 7px 18px;
  background: var(--wg-sun);
  border: 2.5px solid var(--wg-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--wg-ink);
  font-weight: 800;
  font-size: 14px;
  transform: rotate(-2deg);
  margin: 0 0 26px;
}

.wg-hero h1 {
  margin: 0 0 18px;
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: calc(clamp(40px, 5.6vw, 68px) * var(--tx-scale, 1));
  line-height: 1.06;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.wg-hero h1 .wg-wavy {
  color: var(--wg-coral);
  text-decoration: underline wavy var(--wg-teal) 4px;
  text-underline-offset: 8px;
}

.wg-hero-motto {
  margin: 0 0 32px;
  color: var(--wg-muted);
  font-size: 18px;
  max-width: 46ch;
}

.wg-hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Blob-framed hero photo with a badge sticker. */
.wg-hero-art {
  position: relative;
}

.wg-blob {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  border: 3px solid var(--wg-ink);
  border-radius: 58% 42% 45% 55% / 52% 48% 52% 48%;
  box-shadow: 10px 10px 0 rgba(23, 179, 166, 0.6);
  background: var(--wg-bg-alt);
}

.wg-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wg-hero-badge {
  position: absolute;
  bottom: 6%;
  left: -4%;
  background: var(--wg-card);
  border: 2.5px solid var(--wg-ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--wg-ink);
  padding: 12px 20px;
  transform: rotate(3deg);
  font-weight: 800;
  font-size: 14.5px;
}

.wg-hero-badge b {
  color: var(--wg-coral);
}

/* ── Wavy divider ────────────────────────────────────────────────────────── */
.wg-wave {
  display: block;
  width: 100%;
  height: 44px;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.wg-section {
  padding: 84px 0;
}

.wg-section--alt {
  background: var(--wg-bg-alt);
}

.wg-sec-head {
  text-align: center;
  margin-bottom: 52px;
}

.wg-sec-head .wg-tag {
  display: inline-block;
  padding: 5px 16px;
  background: var(--wg-teal);
  color: #fff;
  border: 2.5px solid var(--wg-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--wg-ink);
  font-weight: 800;
  font-size: 13px;
  transform: rotate(1.5deg);
  margin-bottom: 18px;
}

.wg-sec-head h2 {
  margin: 0;
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.01em;
}

.wg-sec-head p {
  margin: 10px auto 0;
  color: var(--wg-muted);
  max-width: 52ch;
}

/* ── Services: tilted sticker cards ──────────────────────────────────────── */
.wg-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px 26px;
}

.wg-service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--wg-card);
  border: 2.5px solid var(--wg-ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--wg-ink);
  padding: 26px 24px 22px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.wg-service:nth-child(3n + 1) {
  transform: rotate(-1.1deg);
}

.wg-service:nth-child(3n + 2) {
  transform: rotate(0.9deg);
}

.wg-service:nth-child(3n) {
  transform: rotate(-0.4deg);
}

.wg-service:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 8px 10px 0 var(--wg-ink);
}

.wg-service-emoji {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--wg-bg-alt);
  border: 2px solid var(--wg-ink);
  border-radius: 14px;
}

.wg-service h3 {
  margin: 4px 0 0;
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wg-service-meta {
  color: var(--wg-muted);
  font-size: 14px;
  font-weight: 700;
}

.wg-service-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wg-price {
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--wg-teal);
  white-space: nowrap;
}

.wg-service .wg-mini-btn {
  padding: 8px 18px;
  background: var(--wg-coral);
  color: #fff;
  border: 2px solid var(--wg-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--wg-ink);
  font-weight: 800;
  font-size: 13.5px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.wg-service:hover .wg-mini-btn {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--wg-ink);
}

/* ── Gallery: polaroid scatter ───────────────────────────────────────────── */
.wg-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px 26px;
}

.wg-polaroid {
  background: var(--wg-card);
  border: 2.5px solid var(--wg-ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--wg-ink);
  padding: 10px 10px 26px;
  transition: transform 0.2s;
}

.wg-polaroid:nth-child(even) {
  transform: rotate(1.6deg);
}

.wg-polaroid:nth-child(odd) {
  transform: rotate(-1.4deg);
}

.wg-polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  z-index: 2;
}

.wg-polaroid img {
  width: 100%;
  aspect-ratio: 1 / 0.95;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(51, 38, 31, 0.15);
}

/* ── Team ────────────────────────────────────────────────────────────────── */
.wg-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 28px 24px;
}

.wg-member {
  text-align: center;
  background: var(--wg-card);
  border: 2.5px solid var(--wg-ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--wg-ink);
  padding: 28px 20px 24px;
  transition: transform 0.18s;
}

.wg-member:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.wg-member img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--wg-sun);
  margin: 0 auto 14px;
}

.wg-member h3 {
  margin: 0 0 2px;
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.wg-member p {
  margin: 0;
  color: var(--wg-muted);
  font-size: 13.5px;
  font-weight: 700;
}

/* ── Classes ─────────────────────────────────────────────────────────────── */
.wg-classes {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}

.wg-class {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--wg-card);
  border: 2.5px solid var(--wg-ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--wg-ink);
  padding: 18px 24px;
  transition: transform 0.16s;
}

.wg-class:hover {
  transform: translate(-2px, -2px);
}

.wg-class b {
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: 17px;
}

.wg-class-when {
  display: block;
  color: var(--wg-muted);
  font-size: 13.5px;
  font-weight: 700;
}

.wg-class-seats {
  padding: 6px 14px;
  background: var(--wg-sun);
  border: 2px solid var(--wg-ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.wg-class-seats.is-full {
  background: var(--wg-bg-alt);
  color: var(--wg-muted);
}

/* ── Visit ───────────────────────────────────────────────────────────────── */
.wg-visit-card {
  background: var(--wg-card);
  border: 3px solid var(--wg-ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--wg-coral);
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.wg-visit-card h2 {
  margin: 0 0 12px;
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
}

.wg-visit-card p {
  margin: 0 0 8px;
  color: var(--wg-muted);
  font-weight: 700;
}

.wg-visit-card a:not(.wg-btn) {
  color: var(--wg-teal);
  font-weight: 800;
}

.wg-outlets {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-weight: 700;
}

.wg-outlets li {
  margin-bottom: 6px;
}

.wg-outlets a {
  color: var(--wg-muted) !important;
}

.wg-outlets a:hover {
  color: var(--wg-coral) !important;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.wg-footer {
  padding: 40px 0 48px;
  text-align: center;
  color: var(--wg-muted);
  font-size: 14px;
  font-weight: 700;
}

.wg-footer a:hover {
  color: var(--wg-coral);
}

.wg-footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.wg-footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--wg-card);
  border: 2.5px solid var(--wg-ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--wg-ink);
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.15s;
}

.wg-footer-social a:hover {
  transform: translate(-2px, -2px) rotate(-4deg);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
.wg-mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  .wg-nav-links,
  .wg-nav > .wg-btn {
    display: none;
  }

  .wg-hero {
    padding-top: 48px;
  }

  .wg-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .wg-visit-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .wg-section {
    padding: 64px 0;
  }

  .wg-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(253, 247, 238, 0.94);
    backdrop-filter: blur(10px);
    border-top: 2.5px solid var(--wg-ink);
    justify-content: center;
  }

  .wg-mobile-bar .wg-btn {
    width: 100%;
    text-align: center;
  }

  .wg-footer {
    padding-bottom: 120px;
  }
}

/* Specificity guard: `.waggle-theme a` outranks `.wg-btn`; re-state colours. */
.waggle-theme .wg-btn,
.waggle-theme .wg-mini-btn {
  color: #fff;
}

.waggle-theme .wg-btn--ghost {
  color: var(--wg-ink);
}

/* ── Motion (ThemeFX) — springy pop-ins; `translate`/`scale` so the sticker
   tilt transforms are untouched. */
.tfx .waggle-theme [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  scale: 0.93;
  transition:
    opacity 0.45s ease,
    translate 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tfx .waggle-theme [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* The hero blob breathes. */
.waggle-theme .wg-blob {
  animation: wg-morph 16s ease-in-out infinite;
}

@keyframes wg-morph {
  0%, 100% { border-radius: 58% 42% 45% 55% / 52% 48% 52% 48%; }
  33% { border-radius: 46% 54% 58% 42% / 44% 58% 42% 56%; }
  66% { border-radius: 55% 45% 42% 58% / 56% 44% 56% 44%; }
}

/* The paw waves hello. */
.waggle-theme .wg-logo:hover .wg-logo-paw {
  animation: wg-wave 0.6s ease-in-out;
}

@keyframes wg-wave {
  0%, 100% { transform: rotate(-8deg); }
  30% { transform: rotate(10deg); }
  60% { transform: rotate(-16deg); }
}

/* Hero pops in on load. */
.waggle-theme .wg-hero-grid > * {
  animation: wg-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.waggle-theme .wg-hero-grid > *:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes wg-pop {
  from {
    opacity: 0;
    translate: 0 30px;
    scale: 0.95;
  }
}

.waggle-theme ::selection {
  background: var(--wg-sun);
  color: var(--wg-ink);
}

@media (prefers-reduced-motion: reduce) {
  .waggle-theme .wg-blob,
  .waggle-theme .wg-hero-grid > * {
    animation: none;
  }
  .tfx .waggle-theme [data-reveal] {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: none;
  }
}

/* ── Sticker-book joy enhancement layer ─────────────────────────────────────
   Bouncier hovers, richer blob frame, tape-topped polaroids, shine sweeps. */

html:has(.waggle-theme) {
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: #ff6b4a #fdf7ee;
}

/* The badge sticker rides on top of the blob photo, never behind it. */
.wg-hero-badge {
  z-index: 2;
}

/* View-all controls: ghost sticker button like the rest of the theme. */
.waggle-theme .theme-view-more {
  margin-top: 30px;
  padding: 11px 22px;
  font-family: var(--wg-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--wg-ink);
  background: var(--wg-card);
  border: 2.5px solid var(--wg-ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--wg-ink);
  opacity: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waggle-theme .theme-view-more:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--wg-ink);
}

.waggle-theme .theme-view-more-icon {
  border-width: 2px;
  border-color: var(--wg-ink);
  background: var(--wg-sun);
  color: var(--wg-ink);
  opacity: 1;
}

.wg-hero h1,
.wg-sec-head h2,
.wg-visit-card h2 {
  text-wrap: balance;
}

.wg-kicker,
.wg-sec-head .wg-tag {
  letter-spacing: 0.03em;
}

/* More confetti scattered across the page. */
.wg-dots {
  background-image:
    radial-gradient(circle 5px at 8% 18%, rgba(255, 107, 74, 0.18) 98%, transparent),
    radial-gradient(circle 4px at 88% 12%, rgba(23, 179, 166, 0.2) 98%, transparent),
    radial-gradient(circle 6px at 94% 64%, rgba(255, 197, 49, 0.25) 98%, transparent),
    radial-gradient(circle 4px at 4% 78%, rgba(23, 179, 166, 0.16) 98%, transparent),
    radial-gradient(circle 5px at 72% 92%, rgba(255, 107, 74, 0.14) 98%, transparent),
    radial-gradient(circle 3px at 28% 8%, rgba(51, 38, 31, 0.1) 98%, transparent),
    radial-gradient(circle 4px at 46% 96%, rgba(255, 197, 49, 0.2) 98%, transparent),
    radial-gradient(circle 3px at 62% 30%, rgba(255, 107, 74, 0.12) 98%, transparent),
    radial-gradient(circle 5px at 16% 52%, rgba(255, 197, 49, 0.16) 98%, transparent);
}

/* Richer blob frame: stitched outline, second sun shadow, deco blobs behind. */
.wg-blob {
  position: relative;
  z-index: 1;
  outline: 3px dashed rgba(51, 38, 31, 0.22);
  outline-offset: 12px;
  box-shadow:
    10px 10px 0 rgba(23, 179, 166, 0.6),
    20px 20px 0 rgba(255, 197, 49, 0.28);
}

.wg-hero-art::before {
  content: "";
  position: absolute;
  top: -6%;
  right: -5%;
  width: 30%;
  aspect-ratio: 1;
  background: var(--wg-sun);
  border: 3px solid var(--wg-ink);
  border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
  z-index: 0;
}

.wg-hero-art::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -5%;
  width: 15%;
  aspect-ratio: 1;
  background: var(--wg-teal);
  border: 3px solid var(--wg-ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--wg-ink);
  z-index: 0;
}

/* Wavy dividers cast a soft paper shadow. */
.wg-wave {
  filter: drop-shadow(0 3px 0 rgba(51, 38, 31, 0.06));
}

/* Shine sweep across sticker buttons. */
.wg-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wg-btn::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.45s ease;
  pointer-events: none;
}

.wg-btn:hover::after {
  left: 135%;
}

/* Bouncier card hovers. */
.wg-service {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wg-service:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.015);
  box-shadow: 9px 12px 0 var(--wg-ink);
}

.wg-member {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wg-member:hover {
  transform: translateY(-8px) rotate(-1.5deg);
  box-shadow: 7px 9px 0 var(--wg-ink);
}

.wg-member img {
  box-shadow: 3px 3px 0 rgba(51, 38, 31, 0.18);
}

.wg-class {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wg-class:hover {
  transform: translate(-2px, -3px) rotate(-0.3deg);
  box-shadow: 6px 7px 0 var(--wg-ink);
}

.wg-polaroid {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wg-polaroid:hover {
  transform: rotate(0deg) scale(1.05) translateY(-4px);
  box-shadow: 8px 10px 0 var(--wg-ink);
}

/* Washi-tape strips holding the polaroids down. */
.wg-polaroid::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 78px;
  height: 24px;
  translate: -50% 0;
  rotate: -4deg;
  background: rgba(255, 197, 49, 0.72);
  border: 2px solid rgba(51, 38, 31, 0.16);
  border-radius: 3px;
  z-index: 2;
}

.wg-polaroid:nth-child(even)::before {
  rotate: 4deg;
  background: rgba(23, 179, 166, 0.5);
}

.wg-footer-social a {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Big faded paw sticker on the visit card. */
.wg-visit-card {
  position: relative;
  overflow: hidden;
}

.wg-visit-card::after {
  content: "🐾";
  position: absolute;
  right: -10px;
  top: -16px;
  font-size: 96px;
  line-height: 1;
  opacity: 0.08;
  rotate: -18deg;
  pointer-events: none;
}

/* Decorative wiggles + badge bob, gated for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .wg-service:hover .wg-service-emoji {
    animation: wg-wiggle 0.55s ease-in-out;
  }

  .wg-member:hover img {
    animation: wg-wiggle 0.55s ease-in-out;
  }

  .wg-hero-badge {
    animation: wg-bob 5s ease-in-out infinite;
  }

  .wg-hero-art::before {
    animation: wg-morph 16s ease-in-out -6s infinite;
  }
}

@keyframes wg-wiggle {
  0%, 100% { rotate: 0deg; }
  30% { rotate: 9deg; }
  60% { rotate: -7deg; }
}

@keyframes wg-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* Considered keyboard focus everywhere. */
.waggle-theme a:focus-visible,
.waggle-theme button:focus-visible {
  outline: 3px solid var(--wg-teal);
  outline-offset: 3px;
}

.waggle-theme .wg-btn:focus-visible,
.wg-footer-social a:focus-visible {
  outline-color: var(--wg-ink);
}

@media (max-width: 900px) {
  .wg-mobile-bar {
    box-shadow: 0 -10px 30px -16px rgba(51, 38, 31, 0.35);
  }
}

@media (max-width: 640px) {
  .wg-hero h1 {
    font-size: calc(clamp(34px, 9.6vw, 44px) * var(--tx-scale, 1));
  }

  .wg-services {
    gap: 22px 18px;
  }

  .wg-gallery {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 26px 18px;
  }
}

/* ── Themed backdrop: paw prints and bones ──────────────────────────────
   A page-wide motif tile pinned behind every section, so the canvas reads as
   paw prints and bones the way the seasonal themes carry their own festive
   backdrop. `::before` is left to the existing colour wash; this rides on
   `::after` at z-index -1, which keeps it above the page background but under
   every in-flow section without having to restack the theme's own children.
   `isolation` makes the root a stacking context so the -1 layer stays inside it
   (above the root's own background) instead of sinking behind the page. */
.waggle-theme {
  isolation: isolate;
}

.waggle-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='116'%20height='116'%3E%20%3Cg%20fill='none'%20stroke='%2333261f'%20stroke-opacity='.075'%20stroke-width='1.3'%20stroke-linecap='round'%3E%20%3Cellipse%20cx='24'%20cy='30'%20rx='7'%20ry='6'/%3E%3Cellipse%20cx='14'%20cy='19'%20rx='3.4'%20ry='4.4'%20transform='rotate(-18%2014%2019)'/%3E%20%3Cellipse%20cx='22'%20cy='15'%20rx='3.4'%20ry='4.6'/%3E%3Cellipse%20cx='30'%20cy='16'%20rx='3.4'%20ry='4.6'%20transform='rotate(12%2030%2016)'/%3E%20%3Cellipse%20cx='37'%20cy='22'%20rx='3.2'%20ry='4.2'%20transform='rotate(28%2037%2022)'/%3E%20%3Cellipse%20cx='86'%20cy='86'%20rx='7'%20ry='6'/%3E%3Cellipse%20cx='76'%20cy='75'%20rx='3.4'%20ry='4.4'%20transform='rotate(-18%2076%2075)'/%3E%20%3Cellipse%20cx='84'%20cy='71'%20rx='3.4'%20ry='4.6'/%3E%3Cellipse%20cx='92'%20cy='72'%20rx='3.4'%20ry='4.6'%20transform='rotate(12%2092%2072)'/%3E%20%3Cellipse%20cx='99'%20cy='78'%20rx='3.2'%20ry='4.2'%20transform='rotate(28%2099%2078)'/%3E%20%3Cpath%20d='M64%2026c-3-4%201-9%205-6%203-3%208%200%206%205l16%208c4-3%209%201%206%206%202%204-3%208-7%204l-16-8c-4%203-9-2-6-6z'%20stroke-opacity='.055'/%3E%20%3Cpath%20d='M18%2092c-3-4%201-9%205-6%203-3%208%200%206%205l14%207c4-3%209%201%206%206%202%204-3%208-7%204l-14-7c-4%203-9-2-6-6z'%20stroke-opacity='.05'/%3E%20%3C/g%3E%3C/svg%3E");
  background-size: 116px 116px;
  background-repeat: repeat;
}

/* ── Ambient deco: paw trail, bones, tennis balls, confetti ─────────────────
   A fixed full-viewport layer rendered as the root's first child. Like the
   motif tile above it rides at z-index -1 inside the isolated root, so it
   plays above the page background but under every section, nav and card
   without touching the theme's own stacking. */
.wg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Confetti: candy dots drifting gently down the page. */
.wg-confetti {
  position: absolute;
  top: -10px;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wg-coral);
  opacity: 0.3;
  animation: wg-confetti-fall linear infinite;
}

.wg-confetti:nth-child(3n) { background: var(--wg-teal); }
.wg-confetti:nth-child(3n + 1) { background: var(--wg-sun); border-radius: 2px; }

@keyframes wg-confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.3; }
  50% { transform: translate(14px, 55vh) rotate(180deg); }
  92% { opacity: 0.3; }
  100% { transform: translate(-10px, 110vh) rotate(360deg); opacity: 0; }
}

.wg-confetti--1 { left: 4%; animation-duration: 16s; }
.wg-confetti--2 { left: 12%; width: 5px; height: 5px; animation-duration: 21s; animation-delay: -9s; }
.wg-confetti--3 { left: 20%; animation-duration: 18s; animation-delay: -14s; }
.wg-confetti--4 { left: 29%; width: 8px; height: 8px; animation-duration: 23s; animation-delay: -4s; }
.wg-confetti--5 { left: 37%; animation-duration: 17s; animation-delay: -11s; }
.wg-confetti--6 { left: 46%; width: 5px; height: 5px; animation-duration: 22s; animation-delay: -17s; }
.wg-confetti--7 { left: 54%; animation-duration: 19s; animation-delay: -2s; }
.wg-confetti--8 { left: 62%; width: 8px; height: 8px; animation-duration: 24s; animation-delay: -13s; }
.wg-confetti--9 { left: 70%; animation-duration: 16.5s; animation-delay: -7s; }
.wg-confetti--10 { left: 78%; width: 5px; height: 5px; animation-duration: 20s; animation-delay: -16s; }
.wg-confetti--11 { left: 85%; animation-duration: 18.5s; animation-delay: -5s; }
.wg-confetti--12 { left: 92%; width: 6px; height: 6px; animation-duration: 25s; animation-delay: -19s; }
.wg-confetti--13 { left: 25%; width: 4px; height: 4px; animation-duration: 27s; animation-delay: -21s; }
.wg-confetti--14 { left: 66%; animation-duration: 19.5s; animation-delay: -10s; }

/* A paw trail padding diagonally across the page, toes alternating. */
.wg-paw {
  position: absolute;
  width: 30px;
  height: 30px;
  color: var(--wg-ink);
  opacity: 0.09;
  animation: wg-paw-step 8s ease-in-out infinite alternate;
}

.wg-paw--1 { bottom: 8%; left: 6%; rotate: 24deg; }
.wg-paw--2 { bottom: 16%; left: 13%; rotate: 44deg; width: 26px; height: 26px; animation-delay: -2s; }
.wg-paw--3 { bottom: 22%; left: 21%; rotate: 24deg; animation-delay: -4s; }
.wg-paw--4 { top: 14%; right: 14%; rotate: -30deg; width: 26px; height: 26px; animation-delay: -1s; }
.wg-paw--5 { top: 22%; right: 8%; rotate: -12deg; animation-delay: -3s; }

@keyframes wg-paw-step {
  from { opacity: 0.06; }
  to { opacity: 0.13; }
}

/* Bones see-sawing at the page edges. */
.wg-bone {
  position: absolute;
  color: var(--wg-card);
  filter: drop-shadow(0 3px 0 rgba(51, 38, 31, 0.12));
  animation: wg-bone-seesaw ease-in-out infinite alternate;
}

.wg-bone--1 {
  top: 44%;
  left: -12px;
  width: 74px;
  height: 32px;
  rotate: -18deg;
  opacity: 0.55;
  animation-duration: 12s;
}

.wg-bone--2 {
  bottom: 26%;
  right: -14px;
  width: 60px;
  height: 26px;
  rotate: 14deg;
  opacity: 0.45;
  animation-duration: 15s;
  animation-delay: -6s;
}

@keyframes wg-bone-seesaw {
  from { translate: 0 0; }
  to { translate: 6px -14px; }
}

/* Tennis balls bouncing lazily in the corners. */
.wg-ball {
  position: absolute;
  color: var(--wg-sun);
  animation: wg-ball-bounce ease-in-out infinite alternate;
}

.wg-ball--1 {
  bottom: 5%;
  right: 22%;
  width: 26px;
  height: 26px;
  opacity: 0.35;
  animation-duration: 5s;
}

.wg-ball--2 {
  top: 34%;
  left: 10%;
  width: 18px;
  height: 18px;
  opacity: 0.25;
  animation-duration: 7s;
  animation-delay: -3s;
}

@keyframes wg-ball-bounce {
  from { translate: 0 0; rotate: -20deg; }
  to { translate: 4px -22px; rotate: 25deg; }
}

/* ── Anchored ornaments: peeking pup, hung leash + collar, bone charm ───────
   Large illustrated pieces pinned to the viewport edges, clear of the
   central content column. */

/* A pup peeking up over the bottom-left corner, paws on the edge. */
.wg-pup {
  position: absolute;
  bottom: -6px;
  left: -18px;
  width: 210px;
  height: 166px;
  opacity: 0.92;
  filter: drop-shadow(0 6px 0 rgba(51, 38, 31, 0.14));
  animation: wg-pup-peek 7s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}

@keyframes wg-pup-peek {
  from { translate: 0 10px; rotate: -2deg; }
  to { translate: 0 0; rotate: 2deg; }
}

/* Leash coiled on a hook with its collar, hung from the top-right. */
.wg-leash {
  position: absolute;
  top: -4px;
  right: 4%;
  width: 104px;
  height: 208px;
  opacity: 0.85;
  filter: drop-shadow(0 4px 0 rgba(51, 38, 31, 0.12));
  animation: wg-hang-sway 8s ease-in-out infinite;
  transform-origin: 50% 0;
}

/* Bone charm swinging on its rope from the top-left. */
.wg-charm {
  position: absolute;
  top: -4px;
  left: 8%;
  width: 84px;
  height: 158px;
  opacity: 0.8;
  filter: drop-shadow(0 4px 0 rgba(51, 38, 31, 0.1));
  animation: wg-hang-sway 6s ease-in-out infinite;
  animation-delay: -2.4s;
  transform-origin: 50% 0;
}

@keyframes wg-hang-sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* A trail of big tennis balls bouncing down the right margin. */
.wg-bigball {
  position: absolute;
  color: var(--wg-sun);
  filter: drop-shadow(0 4px 0 rgba(51, 38, 31, 0.14));
  animation: wg-bigball-bounce ease-in-out infinite alternate;
}

.wg-bigball--1 {
  top: 46%;
  right: 2%;
  width: 56px;
  height: 56px;
  opacity: 0.75;
  animation-duration: 4.5s;
}

.wg-bigball--2 {
  top: 66%;
  right: 7%;
  width: 40px;
  height: 40px;
  opacity: 0.6;
  animation-duration: 6s;
  animation-delay: -2s;
}

@keyframes wg-bigball-bounce {
  from { translate: 0 0; rotate: -15deg; }
  to { translate: -5px -26px; rotate: 20deg; }
}

@media (max-width: 720px) {
  .wg-leash,
  .wg-bigball--2 {
    display: none;
  }

  .wg-pup { width: 136px; height: 108px; left: -14px; }
  .wg-charm { width: 62px; height: 116px; }
  .wg-bigball--1 { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-confetti,
  .wg-paw,
  .wg-bone,
  .wg-ball,
  .wg-pup,
  .wg-leash,
  .wg-charm,
  .wg-bigball {
    animation: none;
  }
}
