/* ITS DOG GROOMING — styles
   Palette and contrast ratios are documented in CLAUDE.md. Pastels = backgrounds only. */

:root {
  --cream: #FFF8F0;
  --blush: #FBDDE6;
  --lavender: #E9E1F7;
  --mint: #D6F3E7;
  --white: #FFFFFF;
  --plum: #4A1F4F;
  --berry: #8E1F52;
  --berry-dark: #701740;
  --highlight: #FFE45C;

  --font-display: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(74, 31, 79, 0.10);
  --shadow-hover: 0 14px 36px rgba(74, 31, 79, 0.16);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 1140px;
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%238E1F52'%3E%3Cellipse cx='32' cy='42' rx='13' ry='11'/%3E%3Cellipse cx='15' cy='27' rx='6' ry='7.5'/%3E%3Cellipse cx='25' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='39' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='49' cy='27' rx='6' ry='7.5'/%3E%3C/g%3E%3C/svg%3E");
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24c120 16 240 24 360 16S600 8 720 8s240 16 360 24 240 8 360-8v24H0z' fill='%23000'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--plum);
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--berry); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--berry-dark); }
ul { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--berry); color: var(--white); padding: 0.75rem 1.25rem;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Draft tags ---------- */
.nci {
  background: var(--highlight);
  color: var(--plum);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.1em 0.45em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
p.needs, div.needs { margin: 0.75rem 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--berry);
  background: var(--berry); color: var(--white);
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(142, 31, 82, 0.22);
  transition: transform 0.25s var(--bounce), background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible {
  background: var(--berry-dark); border-color: var(--berry-dark); color: var(--white);
  transform: translateY(-3px); box-shadow: 0 10px 22px rgba(142, 31, 82, 0.28);
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--outline { background: var(--white); color: var(--berry); box-shadow: none; }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--berry); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 31, 79, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; border-radius: 12px; }
.brand img { width: 168px; height: auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nav a {
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: 999px;
  color: var(--plum); font-weight: 700; text-decoration: none;
  transition: background-color 0.2s, transform 0.25s var(--bounce);
}
.nav a:hover, .nav a:focus-visible { background: var(--blush); transform: translateY(-2px); color: var(--plum); }
.nav a[aria-current="page"] { background: var(--lavender); box-shadow: inset 0 -3px 0 var(--berry); }
.header-cta { display: none; }

@media (max-width: 759px) {
  .site-header { position: relative; }
  .header-inner { justify-content: center; padding-bottom: 0.3rem; }
  .brand img { width: 150px; }
  .nav { width: 100%; }
  .nav ul { justify-content: center; }
  .nav a { padding: 0.45rem 0.75rem; font-size: 0.98rem; }
}
@media (min-width: 760px) {
  .header-cta { display: inline-flex; min-height: 44px; padding: 0.55rem 1.2rem; }
  .nav { margin-left: auto; }
}

/* Phone: sticky bottom action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 20px rgba(74, 31, 79, 0.12);
}
.mobile-bar .btn { width: 100%; padding-inline: 0.75rem; }
body { padding-bottom: 76px; }
@media (min-width: 760px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Bands & waves ---------- */
.band { position: relative; padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.band--cream { background: var(--cream); }
.band--blush { background: var(--blush); }
.band--lavender { background: var(--lavender); }
.band--mint { background: var(--mint); }
.band--white { background: var(--white); }
.wavy::before {
  content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px;
  background: inherit;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat;
  mask: var(--wave) center / 100% 100% no-repeat;
  pointer-events: none;
}
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--berry); background: var(--white); padding: 0.35rem 0.9rem; border-radius: 999px;
  margin-bottom: 1rem; box-shadow: var(--shadow);
}
.lead { font-size: 1.15rem; }

/* Paw-print accents (decorative, pseudo-elements only) */
.paws { position: relative; }
.paws::after {
  content: ""; position: absolute; width: 74px; height: 74px; right: 4%; top: 1.5rem;
  background: var(--paw) center / contain no-repeat; opacity: 0.10; transform: rotate(18deg);
  pointer-events: none;
}
.paws--left::after { right: auto; left: 3%; transform: rotate(-16deg); }

/* ---------- Floating bubbles ---------- */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubbles span {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.35) 45%, rgba(233,225,247,0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset -4px -6px 12px rgba(233, 225, 247, 0.7);
  animation: float-up 16s linear infinite;
  opacity: 0.8;
}
.bubbles span:nth-child(1) { left: 6%;  width: 26px; height: 26px; animation-duration: 15s; }
.bubbles span:nth-child(2) { left: 18%; width: 14px; height: 14px; animation-duration: 12s; animation-delay: -6s; }
.bubbles span:nth-child(3) { left: 38%; width: 34px; height: 34px; animation-duration: 19s; animation-delay: -3s; }
.bubbles span:nth-child(4) { left: 58%; width: 18px; height: 18px; animation-duration: 14s; animation-delay: -9s; }
.bubbles span:nth-child(5) { left: 74%; width: 40px; height: 40px; animation-duration: 21s; animation-delay: -12s; }
.bubbles span:nth-child(6) { left: 90%; width: 20px; height: 20px; animation-duration: 13s; animation-delay: -4s; }
@keyframes float-up {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(14px, -55vh); }
  100% { transform: translate(-6px, -110vh); }
}
.band > .wrap { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }
.hero h1 { margin-bottom: 0.35em; }
.hero .tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; margin-bottom: 0.75rem; }
.hero .btn-row { margin: 1.5rem 0 0; }
.hero-photo { position: relative; }
.hero-photo picture, .hero-photo img { border-radius: var(--radius-lg); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); border: 6px solid var(--white); }
.hero-photo::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 120px; height: 120px; z-index: -1;
  border-radius: 50%; background: var(--lavender);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow); transition: transform 0.3s var(--bounce), box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blush); color: var(--berry); margin-bottom: 1rem;
}
.icon-badge svg { width: 28px; height: 28px; }
.card:nth-child(4n+2) .icon-badge { background: var(--lavender); }
.card:nth-child(4n+3) .icon-badge { background: var(--mint); }
.card:nth-child(4n+4) .icon-badge { background: var(--cream); }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.note { font-weight: 700; color: var(--berry); }

/* Split layout (text + media) */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--flip > :first-child { order: 2; }
}
.split img, .split picture img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Photo placeholders ---------- */
.ph {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; width: 100%; padding: 1.25rem;
  border-radius: var(--radius-lg); border: 2px dashed rgba(74, 31, 79, 0.45);
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.7) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 70%, rgba(255,255,255,0.6) 0 26px, transparent 27px),
    var(--lavender);
  color: var(--plum); font-weight: 800; letter-spacing: 0.04em;
}
.ph--blush { background-color: var(--blush); }
.ph--mint { background-color: var(--mint); }
.ph--square { aspect-ratio: 1 / 1; }
.ph span { background: rgba(255,255,255,0.85); padding: 0.4rem 0.9rem; border-radius: 999px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(5, 1fr); } }
.gallery li[hidden] { display: none; }
.thumb {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); transition: transform 0.3s var(--bounce), box-shadow 0.25s;
}
.thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.thumb:hover, .thumb:focus-visible { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-hover); }
.gallery-actions { display: flex; justify-content: center; margin-top: 1.75rem; }
.gallery-status { text-align: center; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--white);
}
.lightbox::backdrop { background: rgba(45, 15, 48, 0.92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 0.75rem; gap: 0.5rem; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox-counter { font-weight: 700; color: var(--white); margin: 0; }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 11rem); width: auto; height: auto; border-radius: var(--radius); object-fit: contain; }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: 0.75rem; max-width: 46rem; font-size: 1rem; }
.lightbox-nav { display: flex; justify-content: center; gap: 1rem; padding-bottom: env(safe-area-inset-bottom); }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--berry); display: grid; place-items: center;
  transition: transform 0.25s var(--bounce), background-color 0.2s;
}
.round-btn svg { width: 24px; height: 24px; }
.round-btn:hover, .round-btn:focus-visible { background: var(--blush); transform: scale(1.08); }
.lightbox :focus-visible { outline-color: var(--white); }

/* ---------- Owners / story ---------- */
.owner { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 760px) { .owner { grid-template-columns: 280px 1fr; gap: 2.25rem; } }
.owner + .owner { margin-top: 3rem; }
.owner .role { font-weight: 700; color: var(--berry); margin-top: -0.25rem; }

/* ---------- Visit / hours / map ---------- */
.info-list { display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; }
.info-list .icon-badge { width: 44px; height: 44px; margin: 0; }
.info-list .icon-badge svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.hours { display: grid; gap: 0.2rem; margin: 0; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; max-width: 22rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); background: var(--white); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

.callout {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; box-shadow: var(--shadow);
  border-left: 8px solid var(--berry);
}
.callout p { font-size: 1.2rem; font-family: var(--font-display); font-weight: 500; margin: 0; }

.insta {
  text-align: center; display: grid; justify-items: center; gap: 0.5rem;
}
.insta .handle { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; }

.final-cta { text-align: center; }
.final-cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--white); padding: 3.5rem 0 2rem; position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px; background: var(--plum);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--blush); }
.site-footer :focus-visible { outline-color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.6rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin: 0 0 0.25rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.2); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.95rem; }
.site-footer .hours div { max-width: none; }
.site-footer .nci { color: var(--plum); }

.load-error { background: var(--white); border: 2px solid var(--berry); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem auto; max-width: 40rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .btn:hover, .btn:focus-visible, .card:hover, .thumb:hover, .thumb:focus-visible,
  .nav a:hover, .nav a:focus-visible, .round-btn:hover, .round-btn:focus-visible { transform: none; }
  .bubbles span { bottom: auto; }
  .bubbles span:nth-child(odd) { top: 18%; }
  .bubbles span:nth-child(even) { top: 62%; }
}
