/* ==========================================================================
   HAPPY TAILS DOG GROOMING & DAYCARE — COMPLETE OVERHAUL (v5)
   Warm, cozy, low-glare palette (no stark white walls), fixed header,
   3 uniform centered horizontal hero images, interactive service tabs,
   and auto-rotating horizontal Meet the Team carousel.
   ========================================================================== */

:root {
  /* Warm, Cozy, Non-White Surfaces */
  --bg-page:         #F2E9DC;   /* Rich warm oatmeal background */
  --bg-section-alt:  #E6EFE9;   /* Soft backyard sage green */
  --bg-section-warm: #EFE3D0;   /* Deeper warm biscuit tone */
  --bg-card:         #FAF5ED;   /* Soft warm parchment card (not stark white) */
  --bg-card-inner:   #F3EADA;   /* Nested warm surface */
  --bg-honey:        #FCEFD2;   /* Warm honey highlight */

  /* Brand Accents (from the Happy Tails Cottage Logo) */
  --brand-red:       #C0432A;   /* Cottage roof terracotta red */
  --brand-red-dark:  #9E331D;
  --brand-red-soft:  #F9E2DC;

  --brand-gold:      #D98816;   /* Warm goldenrod */
  --brand-gold-soft: #F7C86A;

  --brand-green:     #234E36;   /* Deep meadow pine green */
  --brand-green-mid: #2F6848;
  --brand-green-soft:#D9E9DF;

  /* Text Colors */
  --text-dark:       #261C14;   /* Deep espresso bark */
  --text-body:       #43362B;
  --text-muted:      #6E5D4F;

  /* Borders & Shadows */
  --border-warm:     #DCCFBE;
  --border-strong:   #C8B7A1;
  --shadow-sm:       0 6px 18px rgba(38, 28, 20, 0.08);
  --shadow-md:       0 12px 28px rgba(38, 28, 20, 0.12);
  --shadow-lg:       0 18px 40px rgba(38, 28, 20, 0.15);

  /* Typography */
  --font-heading:    'Fraunces', Georgia, serif;
  --font-body:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & Layout */
  --radius-sm:       10px;
  --radius-md:       16px;
  --radius-lg:       22px;
  --radius-xl:       28px;
  --radius-pill:     999px;

  --container-max:   1140px;
  --container-pad:   clamp(1rem, 4vw, 2rem);
}

/* ── Reset & Critical [hidden] Fix ────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.62;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-pad {
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(1.5rem, 3.5vw, 2.25rem);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-honey);
  color: #8A5004;
  border: 1px solid rgba(217, 136, 22, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.18;
}

.section-lead {
  margin-top: 0.65rem;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  color: var(--text-body);
  line-height: 1.6;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(192, 67, 42, 0.28);
}
.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--brand-green);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(35, 78, 54, 0.24);
}
.btn-green:hover {
  background: var(--brand-green-mid);
  transform: translateY(-2px);
}

.btn-call {
  background: var(--bg-honey);
  color: var(--text-dark);
  border-color: rgba(217, 136, 22, 0.5);
}
.btn-call:hover {
  background: #F9E2B2;
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-dark);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* ── Clean Single Sticky Header (No Overlapping Ribbon!) ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-green);
  color: #FFFFFF;
  border-bottom: 3px solid var(--brand-gold);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0.65rem clamp(0.85rem, 2.5vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-round {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-gold-soft);
  background: var(--bg-card);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-gold-soft);
  margin-top: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 0.45rem 0.68rem;
  border-radius: var(--radius-pill);
  font-size: 0.87rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--brand-gold-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-call-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.46rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--brand-gold-soft);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-call-pill:hover {
  background: #FFE08C;
}

.nav-text-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.46rem 0.78rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-text-pill:hover {
  background: rgba(255, 255, 255, 0.28);
}

.nav-book-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.92rem;
  border-radius: var(--radius-pill);
  background: var(--brand-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.83rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-book-pill:hover {
  background: var(--brand-red-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger {
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  position: relative;
  display: block;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 580px) {
  .nav-call-pill {
    display: none;
  }
}

/* ── Mobile Navigation Drawer ─────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(330px, 86vw);
  background: var(--bg-card);
  z-index: 200;
  padding: 1.35rem;
  box-shadow: -10px 0 36px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-warm);
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  font-size: 1.05rem;
  cursor: pointer;
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-dark);
  background: var(--bg-page);
}

.drawer-link:hover {
  background: var(--bg-honey);
  color: var(--brand-red);
}

.drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-warm);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 28, 20, 0.55);
  z-index: 190;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.drawer-backdrop.is-open {
  opacity: 1;
}

/* ── HOME HERO (Centered Copy + 3 Horizontal Same-Size Images) ── */
.hero-home {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  background: linear-gradient(180deg, var(--bg-section-warm) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-warm);
}

.hero-centered-box {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2rem;
}

.hero-vibe-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  padding: 0.38rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 0.45rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--brand-red);
  margin-bottom: 1rem;
}

.hero-intro {
  font-size: 1.02rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 0.7rem;
  line-height: 1.62;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (max-width: 520px) {
  .hero-buttons .btn {
    width: 100%;
  }
}

/* First Three Images: Horizontal, Centered & Exact Same Size! */
.hero-trio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .hero-trio-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}

@media (max-width: 480px) {
  .hero-trio-row {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

.hero-trio-card {
  background: var(--bg-card);
  padding: 0.55rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.hero-trio-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 230px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-section-warm);
}

@media (max-width: 720px) {
  .hero-trio-img-wrap {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .hero-trio-img-wrap {
    height: 210px;
  }
}

.hero-trio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.hero-trio-caption {
  padding: 0.5rem 0.35rem 0.15rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
}
