/* ==========================================================================
   Bubbles & Bows Pet Salon — Design System
   Soft & sweet: blush pink + sky blue pastels on white, bubble motifs,
   rounded typography (Fredoka + Nunito).
   Edit the tokens below to re-theme the entire site.
   ========================================================================== */

:root {
  /* Brand color tokens */
  --white: #ffffff;
  --cream: #fff7fa;          /* blush-tinted section background */
  --sky-50: #f2fafe;         /* sky-tinted section background */
  --sky-100: #e2f3fb;
  --sky-200: #c5e7f6;
  --sky-300: #9fd6ee;
  --sky-600: #27749b;        /* accessible blue for links / secondary */
  --sky-700: #1f6286;
  --pink-50: #fdf0f5;
  --pink-100: #fbe2ec;
  --pink-200: #f6c8db;
  --pink-300: #efa7c4;
  --rose-600: #c2417a;       /* primary CTA — 4.9:1 on white */
  --rose-700: #a93267;
  --ink: #3f3d4d;            /* body text */
  --ink-strong: #2d2b3a;     /* headings */
  --ink-soft: #686577;       /* muted text — 4.6:1 on white */

  /* Type */
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(194, 65, 122, 0.10);
  --shadow-card: 0 6px 24px rgba(45, 43, 58, 0.08);
  --shadow-lift: 0 16px 40px rgba(45, 43, 58, 0.14);

  /* Layout */
  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a { color: var(--sky-600); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--sky-700); }

ul { padding-left: 1.3em; }

:focus-visible {
  outline: 3px solid var(--sky-600);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--pink-200); color: var(--ink-strong); }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--rose-600); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: 0.95rem 1.9rem; min-height: 48px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}
.btn svg { flex: none; }

.btn-primary { background: var(--rose-600); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--rose-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-secondary { background: var(--white); color: var(--sky-700); border-color: var(--sky-200); }
.btn-secondary:hover { background: var(--sky-50); color: var(--sky-700); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--rose-600); border-color: var(--pink-200); }
.btn-ghost:hover { background: var(--pink-50); color: var(--rose-700); }

.btn-lg { padding: 1.15rem 2.4rem; font-size: 1.12rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pink-100);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.32rem; color: var(--ink-strong); text-decoration: none;
  line-height: 1.05;
}
.logo:hover { color: var(--rose-600); }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo small {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rose-600);
}

.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.main-nav a {
  font-weight: 700; font-size: 0.99rem; color: var(--ink);
  text-decoration: none; padding: 0.55rem 0.85rem; border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--sky-100); color: var(--sky-700); }
.main-nav a[aria-current="page"] { background: var(--pink-100); color: var(--rose-700); }

.header-cta { display: flex; align-items: center; gap: 0.7rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 800; color: var(--sky-700); text-decoration: none;
  padding: 0.55rem 0.9rem; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.header-phone:hover { background: var(--sky-100); }
.header-cta .btn { padding: 0.7rem 1.4rem; min-height: 44px; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--pink-200);
  border-radius: var(--radius-sm); padding: 0.55rem; cursor: pointer;
  color: var(--ink-strong); min-width: 48px; min-height: 48px;
}

/* Mobile drawer */
@media (max-width: 980px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.3rem;
    background: var(--white); padding: 1.2rem 1.4rem 1.6rem;
    border-bottom: 1px solid var(--pink-100);
    box-shadow: var(--shadow-lift);
    transform: translateY(-130%); transition: transform 0.3s ease;
    z-index: 90;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 0.85rem 1rem; font-size: 1.08rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta .btn-book-desktop { display: none; }
}

@media (max-width: 560px) {
  .header-phone span { display: none; } /* icon-only on tiny screens */
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-cream { background: var(--cream); }
.section-sky { background: var(--sky-50); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose-600); background: var(--pink-50);
  border: 1.5px solid var(--pink-200);
  padding: 0.4rem 1.05rem; border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Wave dividers */
.wave { display: block; width: 100%; height: 70px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem 1.6rem 1.7rem; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: var(--ink-soft); font-size: 0.99rem; margin-bottom: 0.9rem; }
.card-link {
  font-family: var(--font-display); font-weight: 600;
  color: var(--rose-600); text-decoration: none;
}
.card-link:hover { color: var(--rose-700); text-decoration: underline; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- AEO: quick answer, key facts, TOC ---------- */
.quick-answer {
  background: var(--sky-50); border: 2px solid var(--sky-200);
  border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; margin: 0 0 2rem;
}
.quick-answer h2 {
  font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sky-700); margin-bottom: 0.5rem;
}
.quick-answer p { margin: 0; font-size: 1.06rem; }

.key-facts { width: 100%; border-collapse: collapse; margin: 0 0 2rem; font-size: 1rem; }
.key-facts th, .key-facts td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1.5px solid var(--pink-100); }
.key-facts th { font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); white-space: nowrap; width: 38%; }

.toc {
  background: var(--pink-50); border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem; margin-bottom: 2.2rem;
}
.toc strong { font-family: var(--font-display); color: var(--ink-strong); display: block; margin-bottom: 0.5rem; }
.toc ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.35rem; }
@media (max-width: 640px) { .toc ul { columns: 1; } }

/* ---------- Pricing ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.price-table th, .price-table td { padding: 0.95rem 1.2rem; text-align: left; }
.price-table thead th { background: var(--sky-100); font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); }
.price-table tbody tr:nth-child(even) { background: var(--sky-50); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.price-note {
  font-size: 0.95rem; color: var(--ink-soft); background: var(--pink-50);
  border-left: 4px solid var(--pink-300); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.2rem; margin: 1.4rem 0 0;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 1.8rem 1.9rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.review-stars { color: #e8a33d; letter-spacing: 2px; font-size: 1.05rem; }
.review-card blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); }
.review-card figcaption { font-weight: 800; color: var(--ink-strong); }
.review-card figcaption span { display: block; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--white); border: 2px solid var(--pink-100);
  border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; padding: 1.15rem 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  color: var(--ink-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--rose-600); flex: none;
  transition: transform 0.25s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--pink-50); }
.faq-body { padding: 0.4rem 1.5rem 1.3rem; color: var(--ink); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 800; font-size: 0.95rem; color: var(--ink-strong); }
.form-field .req { color: var(--rose-600); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink);
  border: 2px solid var(--sky-200); border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; background: var(--white); min-height: 48px;
  transition: border-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--rose-600);
}
.form-field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.form-error { color: #b3261e; font-size: 0.88rem; font-weight: 700; display: none; }
.form-field.invalid .form-error { display: block; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: #b3261e; }
.form-status { margin-top: 1.2rem; }
.form-status .success {
  background: #e7f6ec; border: 2px solid #9ad7b0; color: #1c5f37;
  border-radius: var(--radius-md); padding: 1.1rem 1.4rem; font-weight: 700;
}
.form-status .failure {
  background: #fdebea; border: 2px solid #f0b5b1; color: #8c2520;
  border-radius: var(--radius-md); padding: 1.1rem 1.4rem; font-weight: 700;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 0.6rem 0.4rem; text-align: left; border-bottom: 1.5px dashed var(--sky-200); font-size: 1rem; }
.hours-table th { font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); }
.hours-table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hours-table .closed td { color: var(--rose-600); }

/* ---------- Badges / trust ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); border: 2px solid var(--sky-200);
  border-radius: var(--radius-pill); padding: 0.5rem 1.1rem;
  font-weight: 800; font-size: 0.92rem; color: var(--sky-700);
}
.badge svg { color: var(--rose-600); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rose-600); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-strong); font-weight: 700; }

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sky-100); margin-top: 0; }
.footer-wave { background: var(--white); }
.section-cream + .site-footer .footer-wave { background: var(--cream); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding: 3.2rem 0 2.6rem;
}
.footer-inner h3 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin-bottom: 0.55rem; }
.footer-inner a { color: var(--ink); text-decoration: none; font-weight: 700; }
.footer-inner a:hover { color: var(--rose-600); text-decoration: underline; }
.footer-brand p { color: var(--ink-soft); font-size: 0.96rem; }
.footer-bottom {
  border-top: 1.5px solid var(--sky-200); padding: 1.2rem 0 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  font-size: 0.9rem; color: var(--ink-soft);
}
@media (max-width: 980px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Decorative bubbles ---------- */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(197,231,246,0.45) 55%, rgba(246,200,219,0.35));
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.6), 0 4px 14px rgba(159,214,238,0.25);
  animation: bubble-float 14s ease-in-out infinite;
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-22px) translateX(8px); }
  66% { transform: translateY(-8px) translateX(-10px); }
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--pink-100);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  gap: 0.7rem;
}
.mobile-call-bar .btn { flex: 1; padding: 0.8rem 1rem; }
@media (max-width: 760px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
