/* Jan's Grooming & School
   Palette: first-place ribbon blue, rosette gold, show-ring sky, salon blush. */
:root {
  --ink: #18213F;
  --muted: #4E5775;
  --blue: #2A49B8;
  --blue-deep: #1C2F7A;
  --gold: #E7B23A;
  --sky: #E8EEFB;
  --sky-deep: #D3DEF7;
  --blush: #F8E6EA;
  --paper: #FFFFFF;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  background: var(--blue); color: #fff;
  border: 2px solid var(--blue); border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sky-deep);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.brand-name span { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--blue); }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex; min-height: 44px; padding: 8px 18px;
    border: 2px solid var(--ink); border-radius: 999px; background: none;
    font: 600 1rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--sky-deep);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--sky); }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero: the show ring */
.hero {
  background: var(--sky);
  padding-top: clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero-copy { max-width: 860px; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.hero h1 { max-width: 14ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 56ch; }

.ring {
  position: relative;
  margin-top: clamp(24px, 4vw, 48px);
  height: clamp(220px, 34vw, 420px);
}
/* The ring mat the dogs stand on */
.ring::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: var(--sky-deep);
  border-top: 3px solid var(--blue);
}
.lineup {
  position: absolute; inset: 0 0 6% 0;
  display: flex; align-items: flex-end; justify-content: center;
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  z-index: 1;
}
.lineup img {
  height: var(--h); width: auto; max-width: none;
  margin: 0 -1.2%;
  filter: drop-shadow(0 10px 6px rgba(24, 33, 63, .18));
}
/* The single orchestrated moment: the dogs walk into the ring on load. */
@media (prefers-reduced-motion: no-preference) {
  .lineup img { animation: enter .7s cubic-bezier(.2,.8,.2,1) both; }
  .lineup img:nth-child(2) { animation-delay: .08s; }
  .lineup img:nth-child(3) { animation-delay: .16s; }
  .lineup img:nth-child(4) { animation-delay: .24s; }
  .lineup img:nth-child(5) { animation-delay: .32s; }
  .lineup img:nth-child(6) { animation-delay: .40s; }
  @keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  .lineup img:nth-child(1), .lineup img:nth-child(2), .lineup img:nth-child(6) { display: none; }
  .ring { height: 240px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.note { color: var(--muted); font-size: .98rem; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 800px) {
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .feature-dog { order: 2; }
}
.feature-dog { margin: 0; position: relative; display: flex; justify-content: center; }
.feature-dog::before {
  content: ""; position: absolute; inset: 12% 4% 0; border-radius: 50% 50% var(--radius) var(--radius);
  background: var(--blush);
}
.feature-dog img { position: relative; max-height: 520px; width: auto; }

.services { list-style: none; padding: 0; margin: 28px 0 20px; display: grid; gap: 0; }
.services li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--sky-deep); position: relative; }
.services li::before {
  content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #FBEFD2;
}

/* Visit steps: a real sequence, so it is numbered */
.visit { margin-top: clamp(48px, 7vw, 80px); background: var(--sky); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px;
  border-radius: 50%; background: var(--blue); color: #fff; font: 600 1.05rem var(--sans);
}
.step-title { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* School */
.section-school { background: var(--ink); color: #E6EAF6; }
.section-school h2, .section-school h3 { color: #fff; }
.section-school .section-lede { color: #C3CAE2; }
.school-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 760px) { .school-grid { grid-template-columns: 1fr; } }
.school-card { border: 1px solid #33406B; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px;
  border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg);
}
.pull { margin: clamp(48px, 7vw, 72px) auto 0; text-align: center; }
.pull p { max-width: 24ch; margin: 0 auto; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; color: var(--gold); }

/* Training */
#training p { max-width: 60ch; }

/* About */
.section-about { background: var(--blush); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.bio { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.bio h3 { font-size: 2rem; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-left: 3px solid var(--sky-deep); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--blue); border: 3px solid #fff;
}
.when { display: block; font-weight: 700; color: var(--blue); }
.jo-dog { margin: 16px auto 0; max-height: 240px; width: auto; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.gallery li { display: flex; flex-direction: column; gap: 10px; }
.gallery button {
  aspect-ratio: 4 / 5; width: 100%; padding: 8% 8% 0; border: 0; border-radius: var(--radius);
  background: var(--sky); cursor: zoom-in;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.gallery li:nth-child(even) button { background: var(--blush); }
.gallery button img { max-height: 100%; width: auto; object-fit: contain; transition: transform .25s ease; }
.gallery button:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery button img { transition: none; } }
.gallery span { font-weight: 600; font-size: .98rem; padding-left: 4px; }

.lightbox {
  border: 0; border-radius: var(--radius); padding: 24px; max-width: min(92vw, 720px);
  background: var(--sky); color: var(--ink);
}
.lightbox::backdrop { background: rgba(24, 33, 63, .7); }
.lightbox img { max-height: 72vh; width: auto; margin: 0 auto; }
.lightbox-caption { text-align: center; font-weight: 600; margin: 12px 0 0; }
.lightbox .close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* Contact */
.section-contact { background: var(--sky); }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
.phone {
  display: inline-block; margin-top: 8px;
  font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1;
  color: var(--blue); text-decoration: none;
}
.phone:hover { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hours { margin: 0; background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.hours div { padding: 14px 0; border-bottom: 1px solid var(--sky-deep); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 2px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #C3CAE2; padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; }
.footer-tagline { font-family: var(--serif); color: #fff; font-size: 1.15rem; }

/* Contact additions */
.phone-word { color: var(--muted); margin-top: 4px; }
.map {
  display: block; width: 100%; height: clamp(260px, 36vw, 380px);
  margin-top: clamp(32px, 5vw, 56px); border: 0; border-radius: var(--radius);
  background: var(--sky-deep);
}
