/* ============================================================
   BARK & BUBBLE — Mobile Dog Grooming
   friendly / capable / muddy-paws

   Palette
     bg:       #faf8f4  warm cream
     text:     #3d3830  warm charcoal
     accent:   #c47a3c  warm terracotta
     alt-bg:   #f3efe7  slightly warmer cream
     cards:    #ffffff
     muted:    #8a8278
     border:   #e8e0d6
     green:    #5b8c5a  soft grass green

   Type: Fraunces (headings) + Inter (body)
   ============================================================ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f3efe7;
  --card: #ffffff;
  --text: #3d3830;
  --text-muted: #8a8278;
  --accent: #c47a3c;
  --accent-hover: #b06a2f;
  --green: #5b8c5a;
  --green-hover: #4a7349;
  --border: #e8e0d6;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1040px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(61,56,48,0.06);
  --shadow-md: 0 6px 24px rgba(61,56,48,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-weight: 500; }
.text-accent { color: var(--accent); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Focus */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px; height: 64px;
}
.logo {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: 0.02em;
  display: flex; flex-direction: column; line-height: 1.2;
}
.logo span {
  color: var(--text-muted); font-size: 0.6rem;
  font-family: var(--font-body); font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-menu { display: flex; list-style: none; gap: 36px; align-items: center; }
.nav-menu a {
  color: var(--text-muted); text-decoration: none; font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.05em; transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: 0.3s; }

.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999; padding: 32px 24px;
}
.mobile-nav.active { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 1.1rem; font-weight: 400; letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding: 100px 0 60px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 35% 50%, rgba(196,122,60,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 75% 60%, rgba(91,140,90,0.03) 0%, transparent 70%);
}
.hero-content {
  position: relative; display: flex; align-items: center; gap: 72px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.hero-text { flex: 1; text-align: left; }
.hero-text h1 {
  margin-bottom: 6px; font-weight: 700;
  background: linear-gradient(135deg, var(--text) 0%, #5a4f44 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2px;
  font-family: var(--font-body); font-weight: 400;
}
.hero-area {
  font-size: 0.85rem; color: var(--accent);
  font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-tagline {
  font-size: 1rem; color: var(--text-muted); margin-bottom: 36px;
  font-weight: 400; line-height: 1.7; max-width: 440px;
}
.hero-visual { flex-shrink: 0; }
.hero-image {
  width: 380px; height: 500px; border-radius: var(--radius);
  object-fit: cover; border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.hero-buttons { display: flex; gap: 14px; margin-top: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  text-decoration: none; font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.02em; transition: all 0.25s;
  cursor: pointer; border: none; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(196,122,60,0.25); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); transition: all 0.25s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 16px 40px; font-size: 0.95rem; }

/* ---- Sections ---- */
.section { padding: 96px 24px; }
.section.bg-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p {
  color: var(--text-muted); font-size: 0.95rem;
  max-width: 480px; margin: 0 auto; line-height: 1.6;
}

/* ============================================================
   BEFORE & AFTER SLIDER — Signature Move
   ============================================================ */
.ba-wrapper { max-width: 800px; margin: 0 auto; }

.ba-container {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  background: var(--bg-alt);
}

.ba-images { position: relative; width: 100%; height: 100%; }

.ba-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.ba-img-before {
  filter: saturate(0.85) brightness(1.02);
}

.ba-img-after {
  clip-path: inset(0 50% 0 0);
  filter: saturate(1.05);
}

.ba-range {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: ew-resize;
  z-index: 10; margin: 0;
  touch-action: pan-y;
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 52px; height: 52px;
  background: none;
  cursor: ew-resize;
  border: none;
  box-shadow: none;
  margin-top: -26px;
  pointer-events: none;
}

.ba-range::-moz-range-thumb {
  width: 52px; height: 52px;
  background: none;
  border: none;
  cursor: ew-resize;
  pointer-events: none;
}

/* The visible drag line */
.ba-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 12px rgba(0,0,0,0.08);
  pointer-events: none; z-index: 5;
  transition: none;
  transform: translateX(-50%);
}

/* The paw handle on the line */
.ba-handle {
  position: absolute; top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(61,56,48,0.15);
  z-index: 6;
  pointer-events: none;
  color: var(--accent);
}

.ba-paw {
  width: 30px; height: 30px;
  display: block;
}

/* Before/After labels */
.ba-labels {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 20px; z-index: 8; pointer-events: none;
}
.ba-label {
  font-family: var(--font-body); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px; border-radius: 4px;
}
.ba-label-before { color: var(--text-muted); background: rgba(255,255,255,0.85); }
.ba-label-after { color: var(--green); background: rgba(255,255,255,0.85); }

/* ============================================================
   SERVICES — 3-col card grid
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
  display: flex; flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.service-card.featured {
  border-left: 4px solid var(--accent);
}
.service-icon {
  width: 28px; height: 28px; color: var(--accent);
  margin-bottom: 14px; opacity: 0.8;
}
.service-name {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.service-price {
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 500;
  color: var(--accent); margin-bottom: 12px;
}
.service-desc {
  font-size: 0.83rem; color: var(--text-muted);
  line-height: 1.6; flex: 1;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px; align-items: start;
  max-width: 920px; margin: 0 auto;
}
.about-image img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.about-text h3 {
  margin-bottom: 16px; color: var(--text);
}
.about-text p {
  color: var(--text-muted); margin-bottom: 13px;
  font-size: 0.92rem; line-height: 1.7;
}
.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px; margin-top: 24px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.about-detail {
  display: flex; flex-direction: column; gap: 3px;
}
.detail-label {
  color: var(--text-muted);
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 500;
}
.detail-value {
  color: var(--text); font-size: 0.85rem; font-weight: 500;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 960px; margin: 0 auto;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-sm); }
.testimonial-stars {
  display: flex; gap: 2px; margin-bottom: 14px;
}
.star { width: 16px; height: 16px; color: var(--accent); }
.testimonial-card blockquote {
  color: var(--text); font-size: 0.88rem;
  line-height: 1.65; margin-bottom: 16px;
  font-weight: 400; font-style: normal;
  position: relative; padding-top: 8px;
}
.testimonial-card blockquote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 2.2rem; color: var(--accent);
  position: absolute; top: -14px; left: -2px;
  opacity: 0.5; line-height: 1;
}
.testimonial-author strong {
  color: var(--text); display: block;
  font-size: 0.82rem; font-weight: 600;
}
.testimonial-author span {
  color: var(--text-muted); font-size: 0.75rem;
}

/* ---- Service Area ---- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; max-width: 760px; margin: 0 auto;
  text-align: center;
}
.area-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.area-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.area-icon {
  width: 28px; height: 28px; color: var(--accent);
  margin: 0 auto 12px; display: block;
}
.area-name {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 600;
  color: var(--text);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; max-width: 820px; margin: 0 auto;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 {
  font-size: 1.05rem; margin-bottom: 16px;
  font-weight: 600;
}
.contact-list {
  list-style: none;
}
.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-label {
  font-size: 0.68rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted);
}
.contact-list a {
  color: var(--text); text-decoration: none; font-size: 0.92rem;
  transition: color 0.2s;
}
.contact-list a:hover { color: var(--accent); }
.contact-list span { font-size: 0.92rem; color: var(--text); }

.contact-tips {
  list-style: none;
}
.contact-tips li {
  color: var(--text-muted); font-size: 0.85rem;
  padding: 6px 0; padding-left: 20px; position: relative; line-height: 1.5;
}
.contact-tips li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.contact-cta {
  text-align: center; margin-top: 36px;
}

/* ---- Footer ---- */
.footer {
  background: var(--text);
  color: #c4bbb0;
  padding: 48px 24px 28px;
}
.footer-content {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.footer-brand { max-width: 320px; }
.footer-logo {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-weight: 700; color: #fff; letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.footer-brand p { color: #9e9488; font-size: 0.82rem; line-height: 1.5; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  color: #9e9488; text-decoration: none;
  font-size: 0.8rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-bottom p { color: #9e9488; font-size: 0.72rem; }
.footer-credit a { color: var(--accent); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ---- Mobile Sticky Bar ---- */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1001;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  justify-content: center; gap: 12px;
}
.mobile-bar .btn { flex: 1; text-align: center; padding: 12px 14px; font-size: 0.85rem; }

/* ---- Animations ---- */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-content { flex-direction: column-reverse; gap: 36px; text-align: center; }
  .hero-text { text-align: center; }
  .hero-tagline { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-image { width: 300px; height: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-image { max-width: 360px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; }
  .contact-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { flex-direction: column; gap: 24px; }
}

@media (max-width: 640px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 80px 0 48px; }
  .hero-image { width: 240px; height: 340px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-tagline { font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .about-details { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 18px; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.7rem; }
  .ba-container { aspect-ratio: 4/3; }
  .ba-handle { width: 44px; height: 44px; }
  .ba-paw { width: 24px; height: 24px; }
  .ba-line { width: 2px; }
  .ba-label { font-size: 0.65rem; padding: 4px 10px; }
  .footer { padding: 36px 18px 24px; }
  .footer-links { gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  body { padding-bottom: 66px; }
}

@media (max-width: 500px) {
  .navbar { height: 56px; }
  .nav-container { height: 56px; padding: 0 16px; }
  .logo { font-size: 1.05rem; }
  .mobile-nav { top: 56px; }
  .mobile-bar { display: flex; }
  .section { padding: 48px 16px; }
  .services-grid { gap: 14px; }
  .service-card { padding: 22px 18px; }
  .contact-card { padding: 24px 20px; }
  .testimonials-grid { gap: 14px; }
  .hero-image { width: 200px; height: 280px; }
}
