/* Julie's Dog Grooming — variant D (skill-d-reference v1.0)
   Palette: fresh blue-family calm (proven direction, hexes ours).
   One accent (--blue) owns every interactive element (proven). */

:root {
  --ink: #1F2E3D;
  --ink-soft: #4A6076;
  --blue: #1D6FB8;
  --blue-deep: #15507F;
  --sky: #EAF2F9;
  --sky-edge: #D7E6F2;
  --gold: #E39A2E;
  --paper: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(31, 46, 61, 0.10);
  --font: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.12rem; line-height: 1.3; }

.section { padding-block: 76px; }
.section-sky { background: var(--sky); }
.section-lede {
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 2.2rem;
}
.center { text-align: center; }

section[id] { scroll-margin-top: 84px; }

/* ---------- Buttons: the one accent owns them all ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  min-height: 46px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 200ms ease, transform 200ms ease;
}
.btn:hover { background: var(--blue-deep); }
.btn-lg { padding: 15px 28px; min-height: 52px; font-size: 1.05rem; }
.btn-ghost {
  background: var(--paper);
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}
.btn-ghost:hover { background: var(--sky); }
.btn-invert { background: #fff; color: var(--blue); }
.btn-invert:hover { background: var(--sky); }
.btn-outline {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Sticky nav (proven) — tiny, Floof-style ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sky-edge);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}
.brand {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding-block: 10px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 10px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--blue); background: var(--sky); }
.btn-nav { font-size: 0.92rem; padding: 10px 16px; min-height: 44px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #F6FAFD 100%);
  border-bottom: 1px solid var(--sky-edge);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-block: 64px;
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  margin-bottom: 1rem;
}
.lede {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.6rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.micro {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-photo {
  justify-self: center;
  max-width: 400px;
  width: 100%;
}
.hero-photo img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Proof strip ---------- */
.proof {
  border-bottom: 1px solid var(--sky-edge);
}
.proof-inner {
  padding-block: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stars { font-size: 1rem; color: var(--ink); }
.star {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  vertical-align: -4px;
  margin-right: 1px;
}
.proof blockquote p { font-weight: 600; max-width: 44ch; }
.proof cite,
.quote-card cite,
.review-card cite,
.price-grid cite {
  display: block;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.45rem;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.price-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 2rem; }
.review-grid { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--sky-edge);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.section-sky .card { border-color: transparent; box-shadow: 0 6px 18px rgba(31, 46, 61, 0.07); }
.card-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue);
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 28px; height: 28px; }

/* ---------- Gentle-with chips ---------- */
.gentle { margin-top: 2.4rem; }
.gentle-label { font-weight: 700; margin-bottom: 0.8rem; }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  background: var(--sky);
  color: var(--ink);
  border: 1px solid var(--sky-edge);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 999px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(31, 46, 61, 0.08);
}

/* ---------- Split bands (cats, about) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.split-photo { max-width: 420px; width: 100%; justify-self: center; }
.split-photo img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split-copy > p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.4rem; }
.quote-card {
  background: var(--paper);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 6px 18px rgba(31, 46, 61, 0.07);
  padding: 20px 22px;
  font-weight: 600;
}
#about .quote-card { background: var(--sky); box-shadow: none; font-weight: 600; }

/* ---------- Reviews ---------- */
.stars-line { font-weight: 700; color: var(--ink); }
.review-card p { color: var(--ink); }
.review-source {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue) !important;
  margin-bottom: 0.6rem;
}

/* ---------- FAQ (native details/summary — JS-free) ---------- */
.faq-wrap { max-width: 760px; }
.faq-wrap h2 { margin-bottom: 1.4rem; }
details {
  border: 1px solid var(--sky-edge);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--paper);
}
details[open] { border-color: var(--blue); }
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 48px 16px 20px;
  min-height: 48px;
  list-style: none;
  position: relative;
  border-radius: var(--radius);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  text-align: center;
  padding-block: 76px;
}
.cta-band h2 { color: #fff; }
.cta-band > .container > p { opacity: 0.92; margin-bottom: 1.6rem; }
.cta-row.center { justify-content: center; }
.cta-address { margin-top: 1.6rem; font-size: 0.98rem; }
.cta-address a {
  color: #fff;
  font-weight: 600;
  display: inline-block;
  padding-block: 10px;
  margin-block: -8px;
}
.cta-band a:focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 56px 28px;
  font-size: 0.95rem;
}
.footer a {
  color: #fff;
  overflow-wrap: anywhere;
  display: inline-block;
  padding-block: 10px;
  margin-block: -6px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-grid p { margin-bottom: 0.5rem; }
.footer-brand { font-weight: 800; font-size: 1.05rem; color: #fff; }
.footer-h {
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.footer-fine {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Reveal animation — gated behind html.js (house rule) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
}
html.noanim .reveal,
html.js.noanim .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn, summary::after { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 48px;
  }
  .hero-photo { max-width: 340px; }
  .split, .split-flip { grid-template-columns: 1fr; gap: 32px; }
  .split-flip .split-photo { order: -1; }
  .split-photo { max-width: 340px; }
  .section { padding-block: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 720px) {
  .review-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { gap: 10px; justify-content: space-between; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  /* house lesson: shrink phone button + nowrap so nav never wraps at 375px */
  .brand { font-size: 0.95rem; }
  .btn-nav { font-size: 0.88rem; padding: 10px 13px; }
  .btn-lg { padding: 14px 22px; font-size: 1rem; }
}
