/* Julie's Dog Grooming — variant A (skill-a-anthropic)
   Palette: Suds White #FAF9F6 · Bath Blue #D7E7EF · Bandana Navy #22334B
            Harbor Slate #52657D · Bandana Red #AF3B2B · Punch Manila #F2E6C8 */

:root {
  --suds: #FAF9F6;
  --bath: #D7E7EF;
  --navy: #22334B;
  --slate: #52657D;
  --red: #AF3B2B;
  --red-dark: #93301F;
  --manila: #F2E6C8;
  --font-display: ui-rounded, "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

body {
  background: var(--suds);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  overflow-x: clip;
}

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

a { color: var(--navy); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- type ---------- */

h1, h2, .brand, .visit-h {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.5vw + 0.8rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.4vw + 0.7rem, 2.1rem); margin-bottom: 0.6em; }

.eyebrow,
.hero-hours,
figcaption,
.hours,
.pc-note,
cite {
  font-family: var(--font-mono);
  font-size: 0.8125rem; /* 13px */
  letter-spacing: 0.02em;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-lead { color: var(--slate); margin-bottom: 26px; max-width: 46ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-call {
  background: var(--red);
  color: #fff;
  padding: 13px 24px;
  min-height: 44px;
}
.btn-call:hover { background: var(--red-dark); }

.btn-header { padding: 11px 18px; font-size: 0.95rem; }
.btn-call-short { display: none; }

.btn-big { font-size: 1.15rem; padding: 16px 30px; }

/* ---------- header ---------- */

.site-header {
  background: var(--suds);
  border-bottom: 1px solid #E7E3DA;
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand { font-size: 1.05rem; white-space: nowrap; }

@media (max-width: 480px) {
  .btn-call-long { display: none; }
  .btn-call-short { display: inline; }
  .btn-header { padding: 11px 22px; }
}

/* ---------- hero ---------- */

.hero { padding: 44px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero-sub {
  color: var(--slate);
  max-width: 46ch;
  margin: 18px 0 26px;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.link-sms { color: var(--slate); padding: 11px 0; }

.hero-hours { color: var(--slate); margin-top: 18px; }

.hero-photo {
  background: var(--bath);
  border-radius: 22px;
  padding: 14px;
  max-width: 460px;
}
.hero-photo img { border-radius: 12px; }
.hero-photo figcaption { color: var(--slate); padding-top: 10px; text-align: center; }

@media (min-width: 800px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-photo { justify-self: end; }
}

/* ---------- section rhythm ---------- */

.section { padding: 56px 0; }
@media (min-width: 800px) {
  .section { padding: 76px 0; }
}

/* ---------- services ---------- */

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.service {
  background: #fff;
  border: 1px solid #E7E3DA;
  border-radius: 14px;
  padding: 20px 22px;
}
.service dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.service dd { color: var(--slate); }

.services-note {
  color: var(--slate);
  margin-top: 22px;
  max-width: 52ch;
}

@media (min-width: 680px) {
  .service-list { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---------- tough cases ---------- */

.tough { background: var(--navy); color: #fff; }
.tough h2 { color: #fff; }
.tough-lead { color: var(--bath); max-width: 50ch; margin-bottom: 22px; }

.tough-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.tough-list li {
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(215, 231, 239, 0.12);
  border: 1px solid rgba(215, 231, 239, 0.4);
  border-radius: 999px;
  padding: 10px 18px;
}
.tough-fineprint { color: var(--bath); max-width: 54ch; }

/* ---------- loyalty / punch card ---------- */

.loyalty { background: var(--bath); }

.loyalty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.loyalty-copy p { max-width: 48ch; }

.quote { margin-top: 22px; }
.quote p { font-size: 1.05rem; }
.quote cite { display: block; margin-top: 10px; color: var(--slate); font-style: normal; }

.punchcard-slot { display: flex; justify-content: center; }

.punchcard {
  background: var(--manila);
  border-radius: 14px;
  padding: 22px 22px 18px;
  width: min(340px, 100%);
  transform: rotate(-2deg);
  box-shadow: 0 12px 28px rgba(34, 51, 75, 0.22), 0 2px 6px rgba(34, 51, 75, 0.14);
}
.pc-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.pc-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 3px;
}

.pc-holes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0 16px;
}
.pc-holes li {
  aspect-ratio: 1;
  border: 2px dashed rgba(34, 51, 75, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--navy);
}
.pc-holes li.discount {
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
}
.pc-holes li.punched { border-style: solid; }
.pc-hole {
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.45);
}
.pc-note { color: var(--red); }

@media (min-width: 800px) {
  .loyalty-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* ---------- gallery ---------- */

.gallery-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gallery-grid img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.gallery-grid figcaption {
  color: var(--slate);
  padding-top: 8px;
}

@media (min-width: 680px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ---------- reviews ---------- */

.reviews { background: #fff; border-top: 1px solid #E7E3DA; border-bottom: 1px solid #E7E3DA; }

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.quote.card {
  background: var(--suds);
  border: 1px solid #E7E3DA;
  border-radius: 14px;
  padding: 22px;
  margin-top: 0;
}

.price-note {
  margin-top: 26px;
  color: var(--slate);
  max-width: 56ch;
}
.price-cite { font-family: var(--font-mono); font-size: 0.8125rem; }

@media (min-width: 680px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- visit ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.visit-address a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
  display: inline-block;
  padding: 4px 0;
}
.visit-note { color: var(--slate); margin-top: 14px; max-width: 40ch; }
.visit-note a {
  color: var(--slate);
  display: inline-block;
  padding: 10px 0;
  margin: -7px 0;
}

.visit-h { font-size: 1.05rem; margin-bottom: 12px; }

.hours { border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 8px 0; }
.hours th { padding-right: 28px; font-weight: 400; color: var(--slate); }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid #E7E3DA; }

.visit-sms { margin-top: 14px; }
.visit-sms a { color: var(--slate); display: inline-block; padding: 10px 0; margin: -4px 0; }

@media (min-width: 800px) {
  .visit-grid { grid-template-columns: 1.2fr 0.9fr 1fr; gap: 40px; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--bath);
  padding: 26px 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.site-footer a { color: #fff; padding: 13px 0; margin: -10px 0; display: inline-block; }

/* ---------- motion (all gated behind html.js) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* punch pop-in: holes scale up once the card is .visible */
html.js .punchcard .pc-hole {
  transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html.js .punchcard-slot.visible .pc-hole { transform: scale(1); }
html.js .punchcard-slot.visible li:nth-child(1) .pc-hole { transition-delay: 0.10s; }
html.js .punchcard-slot.visible li:nth-child(2) .pc-hole { transition-delay: 0.22s; }
html.js .punchcard-slot.visible li:nth-child(3) .pc-hole { transition-delay: 0.34s; }
html.js .punchcard-slot.visible li:nth-child(4) .pc-hole { transition-delay: 0.46s; }

/* kill switches: ?noanim=1 and reduced motion */
html.noanim .reveal,
html.noanim .punchcard .pc-hole {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .punchcard .pc-hole {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
