/* ============================================================
   Julie's Dog Grooming — variant B ("Classic", skill-b-classic v1.0)
   Brand hue #2E5A75 sampled from the shop's post-groom bandanas.
   All neutrals tinted toward the blue. No gradients. One shadow
   direction (down). Serif for display+body, humanist sans for UI.
   ============================================================ */

:root {
  --accent: #2E5A75;        /* bandana blue — links, primary button, small highlights ONLY */
  --accent-deep: #274E66;   /* hover */
  --ink: #1E2A33;           /* near-black, blue-tinted */
  --ink-soft: #4E6270;      /* secondary text, 6:1 on bg */
  --bg: #F7F9FA;            /* near-white, blue-tinted */
  --tint: #EAF0F3;          /* section background shift */
  --card: #FFFFFF;          /* cards on tinted sections only */
  --shadow: 0 2px 8px rgba(30, 42, 51, 0.14);
  --shadow-sm: 0 1px 3px rgba(30, 42, 51, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, Seravek, "Gill Sans", "Trebuchet MS", Verdana, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }

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

body {
  font-family: var(--serif);
  font-size: 18px;             /* body 16–21px per skill */
  line-height: 1.45;           /* 120–145% per skill, ≈1.5 per QA */
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- shared ---------- */
.container {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}
@media (min-width: 720px) {
  .container { width: min(1080px, 100% - 64px); }
}

.section { padding: 64px 0; scroll-margin-top: 96px; }
@media (min-width: 720px) { .section { padding: 96px 0; } }
.section-tint { background: var(--tint); }

.label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;      /* 5–12% window */
  text-transform: uppercase;
  color: var(--accent);        /* small highlight — allowed accent use */
  margin-bottom: 12px;
}

h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1 {
  font-size: clamp(2.125rem, 5.5vw + 1rem, 3.25rem);  /* 34 → 52px */
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
h2 {
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.25rem);  /* 28 → 36px */
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
h3 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }

p { max-width: 65ch; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  font-family: var(--sans);
  z-index: 100;
}
.skip-link:focus { left: 0; }

.section-head { margin-bottom: 40px; }
.section-sub { color: var(--ink-soft); margin-top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 24px;          /* ≥ 44px tall */
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-deep); color: #FFFFFF; }
.btn-quiet {
  background: var(--tint);
  color: var(--ink);
}
.btn-quiet:hover { background: #DEE7EC; color: var(--ink); }
.btn-large { font-size: 19px; padding: 16px 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;                   /* house lesson: tight gap so nothing wraps on phones */
  padding: 12px 0;
}
.wordmark {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: none; }
@media (min-width: 720px) {
  .site-nav { display: flex; gap: 4px; }
  .site-nav a {
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    text-decoration: none;
    padding: 13px 12px;        /* ≥ 44px tap target */
    border-radius: 4px;
  }
  .site-nav a:hover { background: var(--tint); }
}
.btn-header { font-size: 15px; padding: 13px 16px; }  /* ≥ 44px tall */
@media (max-width: 419px) {
  .btn-header { font-size: 14px; padding: 14px 12px; }
  .wordmark { font-size: 17px; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-photo { justify-self: center; }
.hero-photo img {
  width: min(380px, 100%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lead { font-size: 20px; color: var(--ink-soft); }
.proof-line {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 20px;
}
@media (min-width: 820px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .hero-photo img { width: min(420px, 100%); }
}

/* ---------- services ---------- */
.card-grid { display: grid; gap: 24px; }
@media (min-width: 600px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.card-body { padding: 20px 20px 24px; }
.card-body p { font-size: 17px; line-height: 1.45; color: var(--ink-soft); }

.note-card {
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-top: 40px;
}
.note-card p { color: var(--ink-soft); }

.pricing-note { margin-top: 40px; text-align: center; }
.pricing-note p { margin-inline: auto; }
.pricing-note .attributed {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ---------- photos strip ---------- */
.gallery-grid { display: grid; gap: 20px; }
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.strip-quote { margin: 48px auto 0; text-align: center; max-width: 60ch; }
.strip-quote p { font-size: 21px; font-style: italic; line-height: 1.4; margin-inline: auto; }
.strip-quote footer, .review footer {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 12px;
}
cite { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------- reviews ---------- */
.review-grid { display: grid; gap: 24px; }
@media (min-width: 600px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.review p { font-size: 18px; line-height: 1.45; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-copy p { margin-bottom: 16px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-photo img { border-radius: 8px; box-shadow: var(--shadow); }
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

/* ---------- visit ---------- */
.visit-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }
.visit-block h3 { margin-bottom: 12px; }
.visit-block p, .visit-block table { font-size: 18px; line-height: 1.6; }
.visit-sub { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.hours th {
  text-align: left;
  font-weight: 600;
  padding-right: 20px;
  padding-bottom: 4px;
  white-space: nowrap;
}
.hours td { padding-bottom: 4px; }
.visit-cta { margin-top: 48px; text-align: center; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 40px 0;
  font-size: 16px;
}
.site-footer a { color: var(--bg); }
.site-footer .footer-sub {
  font-family: var(--sans);
  font-size: 14px;
  color: #A9BAC4;
  margin-top: 8px;
}

/* ============================================================
   Motion — gated behind html.js; content visible without JS.
   240ms ease-out, opacity/transform only (skill: 150–300ms).
   ============================================================ */
html.js:not(.noanim) .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}
html.js:not(.noanim) .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
