/* ---------- Design tokens ---------- */
:root {
  --brand-green: #344C3D;
  --brand-green-dark: #1f2e25;
  --brand-sage: #b7c8b5;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --section-space: clamp(3.5rem, 8vw, 6rem);
  --text-width: 70ch;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.6s;
  --distance: clamp(16px, 3vw, 40px);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--brand-green);
  line-height: 1.6;
  background-color: white;
}

.wrapper {
  --max-width: 1000px;
  --gutter: clamp(1rem, 4vw, 2rem);
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  margin: var(--space-lg) 0 var(--space-md);
}

h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin-bottom: var(--space-lg);
}

p {
  margin-bottom: var(--space-sm);
}

/* ---------- Sections ---------- */
section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-space);
}


section:not(.section-sage) + section:not(.section-sage) {
  padding-top: 0;
}

.section-sage {
  background-color: var(--brand-sage);
}

.wrapper > :last-child,
.text-block > :last-child {
  margin-bottom: 0;
}

.text-block {
  max-width: var(--text-width);
  margin-inline: auto;
}

.section-intro::before {
  display: none;
}

@media (max-width: 576px) {
  section::before { width: 70vw; }
  section:nth-of-type(odd)::before { left: -30%; }
  section:nth-of-type(even)::before { right: -30%; }
}

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: var(--space-md);
  border-bottom: 1px solid rgb(52 76 61 / 0.15);
  margin-bottom: var(--space-lg);
  box-shadow: 0 1px 0 rgb(52 76 61 / 0.15), 100vmax 1px 0 rgb(52 76 61 / 0.15), -100vmax 1px 0 rgb(52 76 61 / 0.15);
}

.logo {
  grid-column: 1;
}

.logo img {
  height: clamp(48px, 7vw, 68px);
  width: auto;
  max-width: 100%;
  display: block;
}

nav[aria-label="Main"] {
  grid-column: 2;
  justify-self: center;
}

.nav {
  --bs-nav-link-color: var(--brand-green);
  --bs-nav-link-hover-color: var(--brand-green-dark);
  --bs-nav-link-padding-x: 0.9rem;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-link.active {
  font-weight: 600;
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--brand-green);
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--brand-sage);
  outline-offset: 3px;
}

/* Tablet/desktop: nav always visible, toggle hidden */
@media (min-width: 577px) {
  .nav-toggle {
    display: none;
  }

  nav[aria-label="Main"] .collapse {
    display: block !important;
  }
}

/* Mobile: hamburger layout */
@media (max-width: 576px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .logo {
    grid-column: 1;
  }

  .nav-toggle {
    display: block;
    grid-column: 2;
  }

  nav[aria-label="Main"] {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding-top: var(--space-sm);
  }

  .collapse:not(.show) {
    display: none;
  }
}

/* ---------- Intro ---------- */
.section-intro {
  padding-top: 0;
}

.hero-img {
  display: block;
  width: 70%;
  max-width: 800px;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  max-height: 70vh;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .hero-img { width: 100%; }
}

@media (min-width: 768px) {
  .hero-img { aspect-ratio: 16 / 9; }
}

@media (min-width: 1200px) {
  .hero-img { aspect-ratio: 21 / 9; }
}

.intro {
  max-width: var(--text-width);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn-brand {
  --bs-btn-bg: var(--brand-green);
  --bs-btn-color: #fff;
  --bs-btn-border-color: var(--brand-green);
  --bs-btn-hover-bg: var(--brand-green-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: var(--brand-green-dark);
  --bs-btn-active-bg: var(--brand-green-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-padding-x: 2.5rem;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 8px;
  display: block;
  width: fit-content;
  margin: var(--space-lg) auto 0;
}

/* ---------- Services ---------- */
.service-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--brand-green);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}

/* Green accent bar that slides in along the top on hover */
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--brand-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgb(52 76 61 / 0.18);
  }
  .service-card:hover::after {
    transform: scaleX(1);
  }
  .service-card:hover h3 {
    color: var(--brand-green-dark);
  }
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgb(52 76 61 / 0.12);
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list strong {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-list small {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
}

.service-note {
  margin-top: auto;
  padding-top: var(--space-sm);
  margin-bottom: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ---------- Experience ---------- */
.experience-card {
  background: #fff;
  padding: clamp(1rem, 4vw, 2rem);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-sm);
}

@media (min-width: 992px) {
  .experience-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .experience-list { grid-template-columns: 1fr; }
}

.experience-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  max-width: 32ch;
  margin-inline: auto;
}

.experience-list .bi {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: rgb(183 200 181 / 0.45);
  color: var(--brand-green);
  font-size: 1.15rem;
}

/* ---------- Reviews ---------- */
.review-img {
  display: block;
  width: 80%;
  max-width: 360px;
  height: auto;
  object-fit: cover;
  margin-inline: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
}

@media (max-width: 576px) {
  .review-img {
    max-width: 300px;
  }
}

/* ---------- Pet stays ---------- */
.pet-photos {
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

@media (max-width: 576px) {
  .pet-photos {
    max-width: 300px;
  }
}

.ratio-4x5 {
  --bs-aspect-ratio: 125%;
}

.pet-image {
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
}

.image-hero {
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
}

/* ---------- About your pet accordion ---------- */
.pet-accordion {
  --bs-accordion-color: var(--brand-green);
  --bs-accordion-bg: #fff;
  --bs-accordion-border-color: rgb(52 76 61 / 0.2);
  --bs-accordion-border-radius: 12px;
  --bs-accordion-inner-border-radius: 11px;
  --bs-accordion-btn-color: var(--brand-green);
  --bs-accordion-btn-bg: var(--brand-sage);
  --bs-accordion-active-color: var(--brand-green-dark);
  --bs-accordion-active-bg: var(--brand-sage);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgb(52 76 61 / 0.25);
  --bs-accordion-btn-padding-x: var(--space-md);
  --bs-accordion-btn-padding-y: var(--space-sm);
  --bs-accordion-body-padding-x: var(--space-md);
  --bs-accordion-body-padding-y: var(--space-sm);
  margin-bottom: var(--space-md);
}

.pet-accordion .accordion-header {
  margin: 0;
}

.pet-accordion .accordion-button {
  font-weight: 600;
}

.pet-accordion ul {
  margin: 0;
  padding-left: 1.25rem;
}

.pet-accordion li + li {
  margin-top: 0.35rem;
}

.pet-note {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---------- Contact ---------- */
.contact-section {
  text-align: center;
  background-color:#1f2e25;
  color: white;
}

.contact-section h2 {
  margin-bottom: var(--space-sm);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--distance));
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.book-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background-color: var(--brand-green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(31 46 37 / 0.3);

  /* Hidden until the script shows it */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out),
              transform 0.35s var(--ease-out),
              background-color 0.2s ease;
}

.book-float.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.book-float .bi {
  font-size: 1.15rem;
}

.book-float:hover,
.book-float:focus-visible {
  background-color: var(--brand-green-dark);
  color: #fff;
}

.book-float:focus-visible {
  outline: 3px solid var(--brand-sage);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .book-float:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 400px) {
  .book-float {
    padding: 0;
    width: 3.5rem;
    height: 3.5rem;
    justify-content: center;
  }
  .book-float span {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card,
  .service-card::after { transition: none; }
  .book-float { transition: opacity 0.2s linear; transform: none; }
}

.call-out-pet {
  background-color:#344C3D;
  color: white;
  padding: var(--space-md);
  border: none;
  width: 100%;
}

.logo-footer {
  width: clamp(80px, 15vw, 160px);
  height: auto;
}

.hero-img + .intro,
.text-block + .pet-photos {
  margin-top: var(--space-lg);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: white;
  color: black;
  padding-block: var(--space-lg) var(--space-md);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-logo img {
  width: clamp(80px, 12vw, 110px);
  height: auto;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-md);
}

.site-footer a {
  text-decoration: none;
  color: black;
  font-weight: 400;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact {
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-contact .bi {
  margin-right: 0.3rem;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgb(255 255 255 / 0.15);
  width: 100%;
}

.booking-form {
  background-color: rgb(183 200 181 / 0.35);
  padding: 30px;
  font-size: 1.1rem;
  font-weight: 300;
  border-radius: 12px;
  color:#1f2e25;
}

video.hero-img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

