/* =============================================================
   Pawsh Mobile Grooming — Charlotte Dusk
   Premium mobile-first, WCAG AA compliant
   ============================================================= */

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }

/* ---------- Tokens ---------- */
:root {
  --espresso:        #1F1A17;
  --terracotta:      #A85E3A;
  --terracotta-hov:  #93502F;
  --moss:            #3E5142;
  --brass:           #8A6E3F;
  --oat:             #E8DCC8;
  --cream:           #F7F1E8;
  --cream-soft:      #FBF6EE;
  --line:            #D9CFBF;
  --muted:           #6B6258;

  --container: 1180px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(31,26,23,.06), 0 2px 8px rgba(31,26,23,.06);
  --shadow-2: 0 8px 24px rgba(31,26,23,.10);
  --shadow-3: 0 18px 50px rgba(31,26,23,.14);

  --ease: cubic-bezier(.2,.7,.2,1);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); font-weight: 600; }
p  { margin: 0 0 1rem; }

::selection { background: var(--terracotta); color: var(--cream); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--espresso); color: var(--cream);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout ---------- */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

section { padding-block: clamp(64px, 8vw, 112px); }

.section-head { max-width: 760px; margin: 0 auto 56px; }
.section-head.center { text-align: center; }
.eyebrow, .hero-eyebrow {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 12px;
}
.lede { font-size: 1.1rem; color: var(--muted); margin-top: 12px; }
.accent { color: var(--terracotta); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 2px solid transparent;
  text-align: center;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }

.btn-primary {
  background: var(--terracotta); color: #FFFFFF;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--terracotta-hov); box-shadow: var(--shadow-2); }

.btn-ghost {
  background: transparent; color: var(--espresso);
  border-color: var(--espresso);
}
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }

.btn-on-dark {
  background: var(--cream); color: var(--espresso);
}
.btn-on-dark:hover { background: #FFFFFF; }

.btn svg { width: 18px; height: 18px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), padding .25s var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
  transition: padding .25s var(--ease);
}
.site-header[data-scrolled="true"] .header-inner { padding-block: 10px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--espresso); font-family: var(--font-head);
  font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em;
}
.brand-icon { width: 28px; height: 28px; color: var(--terracotta); }

.header-nav {
  display: none;
  gap: 28px; justify-self: center;
  font-weight: 500; color: var(--espresso);
}
.header-nav a { position: relative; padding: 8px 2px; }
.header-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.header-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: inline-flex; align-items: center; gap: 12px; justify-self: end;
}
.header-phone {
  display: none; align-items: center; gap: 6px;
  color: var(--espresso); font-weight: 600;
}
.header-phone svg { width: 16px; height: 16px; color: var(--terracotta); }
.header-cta { padding: 10px 18px; min-height: 44px; }

@media (min-width: 860px) {
  .header-nav { display: inline-flex; }
  .header-phone { display: inline-flex; }
}

/* ---------- HERO ---------- */
.hero {
  padding-block: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(168,94,58,.10), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(62,81,66,.10), transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
}

.hero-title { font-size: clamp(2.3rem, 4.4vw + 1rem, 4.25rem); margin-bottom: .25em; }
.hero-sub { font-size: 1.18rem; color: var(--muted); max-width: 520px; }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin: 28px 0 28px;
}

.hero-signal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  color: var(--muted); font-size: .95rem;
}
.hero-signal .stars { color: var(--terracotta); letter-spacing: 1px; }
.hero-signal strong { color: var(--espresso); }
.hero-signal .dot { color: var(--brass); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.hero-badge {
  position: absolute; left: -12px; bottom: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-2);
  display: grid;
  font-size: .92rem;
}
.hero-badge strong { color: var(--espresso); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.hero-badge span { color: var(--moss); font-weight: 600; }

/* ---------- TRUST STRIP ---------- */
.trust-strip {
  background: var(--cream-soft);
  border-block: 1px solid var(--line);
  padding-block: 28px;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}
@media (min-width: 720px) { .trust-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-row { grid-template-columns: repeat(6, 1fr); } }
.trust-item {
  display: grid; gap: 2px;
  border-left: 2px solid var(--terracotta);
  padding-left: 14px;
}
.trust-item strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: .88rem; }

/* ---------- SERVICE AREA ---------- */
.service-area { background: var(--cream); }
.service-area-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .service-area-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

.service-area-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.service-area-map svg { width: 100%; height: auto; display: block; }

.service-area-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.pill:hover { background: var(--oat); transform: translateY(-1px); }
.pill-muted { color: var(--muted); border-style: dashed; }

/* ---------- HOW IT WORKS ---------- */
.how-it-works { background: var(--cream-soft); }
.steps {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.step h3 { font-family: var(--font-head); margin-top: 8px; }
.step p { color: var(--muted); margin-bottom: 0; }
.step-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--oat);
  color: var(--moss);
  border-radius: 14px;
  margin-bottom: 16px;
}
.step-icon svg { width: 28px; height: 28px; }

/* ---------- SERVICES & PRICING ---------- */
.services { background: var(--cream); }
.pricing-table-wrap {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-1);
}
.pricing-table {
  width: 100%;
  min-width: 640px;
  font-size: .98rem;
}
.pricing-table th, .pricing-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.pricing-table thead th {
  background: var(--oat);
  font-family: var(--font-head); font-weight: 600;
  font-size: 1.05rem;
  color: var(--espresso);
  letter-spacing: -.005em;
}
.tier-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.pricing-table tbody th { font-weight: 600; }
.pricing-table tbody th span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.pricing-table td {
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
  color: var(--espresso);
}
.pricing-table tr:last-child th,
.pricing-table tr:last-child td { border-bottom: none; }
.quoted { font-family: var(--font-body) !important; font-weight: 500 !important; color: var(--muted) !important; font-size: 1rem !important; }

.addons { margin-top: 40px; }
.addons h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 16px; color: var(--muted); font-weight: 500; }
.addons-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.addon {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .92rem;
}
.addon strong { font-weight: 600; }
.addon span { color: var(--terracotta); font-weight: 700; }

.services-cta { text-align: center; margin-top: 40px; }

/* ---------- THE VAN ---------- */
.van { background: var(--oat); }
.van-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .van-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.van-media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.van-features { display: grid; gap: 10px; margin-top: 18px; }
.van-features li { display: flex; align-items: flex-start; gap: 12px; }
.check {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  background: var(--terracotta); color: #FFFFFF;
  border-radius: 999px; font-weight: 700; font-size: .82rem;
  flex-shrink: 0; margin-top: 2px;
}

/* ---------- GALLERY ---------- */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.gallery-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gallery-item figcaption {
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- REVIEWS ---------- */
.reviews { background: var(--cream-soft); }
.reviews-meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  margin-top: 12px; color: var(--muted);
}
.reviews-meta .stars { color: var(--terracotta); letter-spacing: 1.5px; font-size: 1.1rem; }
.reviews-meta strong { color: var(--espresso); }
.reviews-meta a { color: var(--terracotta); font-weight: 600; }
.reviews-meta a:hover { text-decoration: underline; }
.dot { color: var(--brass); }

.reviews-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.review-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.review-card .stars { color: var(--terracotta); letter-spacing: 1.5px; margin-bottom: 10px; }
.review-card p { color: var(--espresso); }
.review-card footer { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.review-card footer strong { color: var(--espresso); margin-right: 6px; }

/* ---------- ABOUT ---------- */
.about { background: var(--cream); }
.about-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; }
}
.about-media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.credentials {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.credentials li {
  padding: 8px 16px;
  background: var(--oat);
  color: var(--moss);
  border-radius: 999px;
  font-weight: 600; font-size: .88rem;
}

/* ---------- BOOK (Calendar) ---------- */
.book {
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(168,94,58,.06), transparent 60%),
    var(--cream-soft);
}
.book-layout {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .book-layout { grid-template-columns: 300px 1fr; gap: 40px; }
}
.book-trust ul { display: grid; gap: 12px; }
.book-trust li {
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.book-trust li strong { color: var(--terracotta); }

.book-calendar { position: relative; }
.ghl-calendar-wrapper {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
@media (max-width: 640px) {
  .ghl-calendar-wrapper iframe { min-height: 1100px !important; }
}

/* Placeholder shown if iframe src isn't replaced */
.ghl-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--cream);
  border: 2px dashed var(--brass);
  border-radius: var(--radius);
  pointer-events: none;
  padding: 24px;
}
.ghl-placeholder-inner { text-align: center; max-width: 420px; color: var(--muted); }
.ghl-placeholder strong { display: block; font-size: 1.1rem; color: var(--espresso); margin-bottom: 8px; }
.ghl-placeholder code { background: var(--oat); padding: 2px 6px; border-radius: 4px; font-size: .85rem; }
/* Hide placeholder once iframe is loaded with a real ID (script.js toggles this) */
.ghl-calendar-wrapper.loaded + .ghl-placeholder { display: none; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-list { max-width: 820px; margin: 0 auto; }

details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details:first-child { border-top: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  position: relative;
  color: var(--espresso);
  transition: color .18s var(--ease);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 14px; height: 14px;
  border-right: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s var(--ease);
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
summary:hover { color: var(--terracotta); }
details p {
  padding: 0 4px 22px;
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(168,94,58,.25), transparent 60%),
    radial-gradient(600px 400px at 80% 80%, rgba(62,81,66,.25), transparent 60%),
    var(--espresso);
  color: var(--cream);
  text-align: center;
}
.final-cta-inner { max-width: 720px; margin: 0 auto; }
.final-cta h2 {
  font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem);
  color: var(--cream);
}
.final-cta p { color: rgba(247, 241, 232, 0.85); font-size: 1.1rem; }
.final-cta .btn { margin-top: 12px; }
.final-cta-sub { margin-top: 18px; font-size: .95rem; }
.final-cta-sub a { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--espresso);
  color: rgba(247, 241, 232, 0.78);
  padding: 64px 0 24px;
}
.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand-col .brand { color: var(--cream); }
.footer-brand-col .brand-icon { color: var(--terracotta); }
.footer-brand-col p { margin-top: 14px; max-width: 320px; font-size: .95rem; }
.footer-col ul li { margin-bottom: 8px; font-size: .95rem; }
.footer-col a { color: rgba(247, 241, 232, 0.85); }
.footer-col a:hover { color: var(--cream); text-decoration: underline; }
.footer-col address { font-style: normal; font-size: .95rem; }
.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 241, 232, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: rgba(247, 241, 232, 0.6);
}
.footer-base a { color: rgba(247, 241, 232, 0.6); text-decoration: underline; }

/* ---------- STICKY MOBILE BOTTOM CTA ---------- */
.sticky-mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex; gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0)) 14px;
  background: rgba(247, 241, 232, 0.96);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(31,26,23,.08);
}
.sticky-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 72px; min-height: 48px;
  padding: 0 16px;
  background: var(--cream);
  border: 2px solid var(--espresso);
  border-radius: 999px;
  font-weight: 600;
  color: var(--espresso);
}
.sticky-call svg { width: 18px; height: 18px; color: var(--terracotta); }
.sticky-book { flex: 1; min-height: 48px; }

@media (min-width: 760px) {
  .sticky-mobile-cta { display: none; }
}

/* Avoid sticky CTA covering bottom content on mobile */
@media (max-width: 759px) {
  body { padding-bottom: 84px; }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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