/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #fbf7ef;
  --bg-sand:     #f2e8d6;
  --paper:       #ffffff;

  --teal:        #12a3b4;
  --teal-deep:   #0c7c8c;
  --teal-dark:   #0a5560;
  --teal-tint:   #e3f4f4;

  --coral:       #ff8c61;
  --coral-deep:  #e8703f;

  --urgent:      #e1483a;
  --urgent-deep: #c33526;

  --ink:         #1f2a2e;
  --ink-soft:    #3a4a4f;
  --ink-mute:    #6b7c80;
  --cream-text:  #fbf7ef;

  --line:        rgba(31, 42, 46, 0.12);
  --line-light:  rgba(251, 247, 239, 0.25);

  --display: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --script: "Caveat", cursive;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 45px -20px rgba(18, 41, 46, 0.28);
  --shadow-card: 0 12px 30px -14px rgba(18, 41, 46, 0.22);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; font-family: var(--display); }
ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--teal); color: var(--cream-text); }

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream-text);
  z-index: 9999; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.kicker {
  font-family: var(--script);
  font-size: 1.4rem;
  color: var(--teal-deep);
  margin-bottom: .35rem;
  display: inline-block;
}
.kicker--light { color: var(--teal-tint); }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--cream { background: var(--bg); }
.section--sand   { background: var(--bg-sand); }
.section--teal   {
  background: linear-gradient(165deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--cream-text);
}
.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}
.section__title--light { color: var(--cream-text); }
.section__lead {
  max-width: 58ch;
  color: var(--ink-mute);
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
}

.link-underline {
  display: inline-block;
  font-weight: 600;
  color: var(--teal-deep);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.link-underline:hover { color: var(--coral-deep); border-color: var(--coral); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: .7rem; }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(18, 163, 180, 0.55);
}
.btn-primary:hover { background: var(--teal-deep); box-shadow: 0 14px 28px -10px rgba(18, 163, 180, 0.65); }

.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-tint); }
.btn-outline--light {
  color: var(--cream-text);
  border-color: var(--line-light);
}
.btn-outline--light:hover { background: rgba(251,247,239,0.12); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { color: var(--teal-deep); }

.btn-urgent {
  background: var(--urgent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(225, 72, 58, 0.55);
}
.btn-urgent:hover { background: var(--urgent-deep); }

/* =============================================================
   5. Urgent top bar
   ============================================================= */
.urgent-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--urgent);
  color: #fff;
}
.urgent-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding-block: .45rem;
  font-size: .85rem;
  font-weight: 600;
  flex-wrap: wrap;
}
.urgent-bar__text { display: inline-flex; align-items: center; gap: .5rem; letter-spacing: .02em; }
.urgent-bar__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.3); }
}
.urgent-bar__link {
  font-weight: 800;
  border-bottom: 1.5px solid rgba(255,255,255,.6);
}
.urgent-bar__link:hover { border-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .urgent-bar__pulse { animation: none; }
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 247, 239, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav { background: rgba(251, 247, 239, 0.96); }
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(18,41,46,0.35);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .7rem;
}
.nav__brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav__logo { width: 40px; height: 40px; }
.nav__wordmark { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--teal-dark); }
.nav__wordmark-dash { color: var(--coral); }

.nav__links {
  display: none;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: .96rem;
  margin-inline: auto;
}
.nav__links a { position: relative; padding-block: .3rem; }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--teal);
  transition: right .28s var(--ease-out);
}
.nav__links a:hover::after { right: 0; }

.nav__actions { display: none; align-items: center; gap: .7rem; margin-left: auto; }
.nav__call { font-size: .9rem; padding: .7rem 1rem; }
.nav__call-text { display: none; }

.nav__burger {
  margin-left: auto;
  width: 42px; height: 42px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 12px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .25s var(--ease-out); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: .9rem;
  padding: 1rem 1.25rem 1.6rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.nav__mobile a { font-weight: 600; padding-block: .3rem; }
.nav__mobile hr { border: none; border-top: 1px solid var(--line); margin-block: .3rem; }
.nav__mobile.is-open { display: flex; }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav__call-text { display: inline; }
  .nav__burger { display: none; }
  .nav__mobile { display: none !important; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: 6rem;
  background: linear-gradient(180deg, var(--teal-tint) 0%, var(--bg) 78%);
  overflow: clip;
}
.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -2px;
  width: 100%; height: 140px;
  z-index: 1;
}
.hero__blob {
  position: absolute;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  filter: blur(2px);
  opacity: .5;
  animation: blobMorph 22s ease-in-out infinite;
}
.hero__blob--1 {
  width: 340px; height: 340px;
  top: -80px; right: -60px;
  background: radial-gradient(circle at 30% 30%, var(--coral) 0%, transparent 70%);
  opacity: .35;
}
.hero__blob--2 {
  width: 260px; height: 260px;
  bottom: 40px; left: -80px;
  background: radial-gradient(circle at 60% 40%, var(--teal) 0%, transparent 70%);
  opacity: .3;
  animation-delay: -8s;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 60% 40% 35% 65% / 55% 65% 35% 45%; transform: rotate(20deg) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 3.6rem);
  color: var(--teal-dark);
  max-width: 14ch;
}
.hero__title em { font-style: normal; color: var(--coral-deep); }
.hero__sub {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__rating {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .6rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  box-shadow: var(--shadow-card);
}
.hero__rating-stars { color: var(--coral); letter-spacing: 1px; }
.hero__rating-sep { color: var(--ink-mute); }
.hero__cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.hero__photo { display: flex; justify-content: center; }

.photo-card {
  background: var(--paper);
  padding: .6rem .6rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  max-width: 420px;
  transition: transform .4s var(--ease-out);
}
.photo-card img { border-radius: 12px; width: 100%; object-fit: cover; }
.photo-card figcaption {
  font-family: var(--script);
  font-size: 1.15rem;
  color: var(--ink-soft);
  text-align: center;
  padding-top: .5rem;
}
.photo-card--tilt { transform: rotate(-3deg); }
.photo-card--tilt:hover { transform: rotate(0deg) scale(1.02); }

/* =============================================================
   8. Wave dividers between sections
   ============================================================= */
.wave-divider {
  display: block;
  width: 100%;
  height: 90px;
  margin-bottom: -1px;
}
.wave-divider--flip { transform: scaleY(-1); }

/* =============================================================
   9. Services
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 22px 40px -18px rgba(18,41,46,0.3);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  font-size: 1.6rem;
  color: var(--teal-deep);
  border-radius: 50% 45% 55% 48% / 48% 55% 45% 52%;
  background: var(--teal-tint);
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: .4rem; color: var(--ink); }
.service-card p { color: var(--ink-mute); font-size: .96rem; }
.service-card--urgent { background: #fff3f1; }
.service-card--urgent .service-card__icon { background: #ffe1dc; }

/* =============================================================
   10. About
   ============================================================= */
.about {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about__p { margin-top: 1.1rem; max-width: 56ch; opacity: .92; }
.about__note {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1.5px dashed var(--line-light);
  border-radius: var(--radius-md);
  font-size: .95rem;
  max-width: 56ch;
}
.about__note em { opacity: .85; }
.about .link-underline { margin-top: 1.4rem; color: var(--cream-text); border-color: var(--cream-text); }
.about .link-underline:hover { color: var(--coral); border-color: var(--coral); }

.about__photos {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}
.photo-card--float {
  position: relative;
  max-width: 240px;
  transform: rotate(-6deg);
  animation: floatY 6s ease-in-out infinite;
}
.photo-card--offset {
  position: absolute;
  left: 46%;
  top: 18%;
  transform: rotate(7deg);
  animation-delay: -3s;
  z-index: 2;
}
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* =============================================================
   11. Schedule
   ============================================================= */
.schedule {
  display: grid;
  gap: 2.5rem;
}
.hours-table { margin-top: 1.3rem; max-width: 420px; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.hours-table td { text-align: right; color: var(--ink-soft); font-weight: 500; }
.hours-table__closed { color: var(--ink-mute); }
.schedule__urgent-note {
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  background: #fff3f1;
  border-radius: var(--radius-md);
  color: var(--urgent-deep);
  font-weight: 500;
  max-width: 460px;
}

.schedule__cta {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.schedule__cta h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.schedule__cta p { color: var(--ink-mute); margin-bottom: 1.2rem; }

/* =============================================================
   12. Gallery
   ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background: var(--paper);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item--pet { aspect-ratio: 3 / 4; }
.gallery-item:last-child { aspect-ratio: 4 / 3; grid-column: span 2; }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: .8rem .9rem .6rem;
  font-size: .85rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(10,20,22,.72), transparent);
}

/* =============================================================
   13. Location
   ============================================================= */
.location {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}
.location__p { margin-top: 1.1rem; max-width: 50ch; opacity: .95; }
.location__list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .7rem; font-weight: 500; }
.location__list a { border-bottom: 1px solid var(--line-light); }
.location__list a:hover { border-color: var(--coral); color: var(--coral); }
.location__info .btn { margin-top: 1.6rem; }
.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-soft);
}

/* =============================================================
   14. Footer
   ============================================================= */
.footer { background: var(--ink); color: var(--cream-text); padding-block: 3rem 1.5rem; }
.footer__inner {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(251,247,239,0.12);
}
.footer__brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer__name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.footer__addr { color: rgba(251,247,239,0.65); font-size: .92rem; margin-top: .3rem; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; font-size: .95rem; }
.footer__col h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); margin-bottom: .3rem; }
.footer__col a:hover { color: var(--coral); }
.footer__bottom {
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between;
  font-size: .82rem; color: rgba(251,247,239,0.55);
}

/* =============================================================
   15. Reveal-on-scroll
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .about { grid-template-columns: 1.1fr .9fr; }
  .schedule { grid-template-columns: 1fr 1fr; }
  .location { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}

@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   17. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__blob { animation: none; }
  .photo-card--float { animation: none; }
  .urgent-bar__pulse { animation: none; }
}
