/* Animal Hospital & Dental Clinic (mockup, home page)
   CONCEPT: the posted price list. A clinic whose specialty is teeth and who publishes what a cleaning costs; the page is
   built around that sheet, and its one drawn object is a row of teeth: each tooth is a month since the last cleaning,
   so the sooner the pet comes back, the shorter the teal run and the lower the price beside it. Form from their world:
   their own maintenance schedule ($199 first, then $149 / $129 / $109 / $89 at 12 / 9 / 6 / 3 months) and the printed
   price card on a clinic counter. The hero is lit by its own window: the photograph dissolves into the page on the left.
   COLOR: sampled from our placeholder wordmark and the exam-room photographs, not a default.
   TYPE: Fraunces (soft, round-shouldered old-style serif, set with SOFT 100 so the terminals read like the rounded edge
   of a molar; the same family as the placeholder wordmark, so the header and the headlines speak one voice) +
   Hanken Grotesk (a plain, open grotesque with true tabular figures, for a price table read on a phone). */

:root {
  /* color */
  --ink: #13304D;        /* wordmark navy */
  --teal: #127A80;       /* wordmark ampersand, the scrubs in shadow: white on it 5.6:1 */
  --teal-deep: #0D5C61;  /* scrubs in deep shadow: text on sand 5.7:1 */
  --sand: #E8DCC6;       /* golden-retriever undercoat, the stucco of the storefront */
  --steel: #B5C2C5;      /* the exam table in daylight (the empty teeth) */
  --paper: #F4F6F5;      /* the exam-room wall, a cool white with a touch of teal */
  --muted: #4A5A68;      /* secondary text on paper 6.5:1 */
  --white: #FFFFFF;
  --focus: #B3541E;      /* focus ring on light grounds (3:1+ on paper and sand) */
  --focus-dark: #F2C27A; /* focus ring on navy */
  --rule: #D5DCDC;

  /* type */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.5rem, 4.6vw + .5rem, 4.75rem);   /* 40 on a phone, ~64 at 1280, 76 max */
  --fs-h2: clamp(2rem, 2.4vw + 1rem, 2.75rem);        /* 32 to 44 */
  --fs-quote: clamp(1.625rem, 2vw + 1rem, 2.5rem);
  --fs-body: clamp(1.0625rem, .25vw + 1rem, 1.1875rem); /* 17 to 19 */
  --fs-small: .9375rem;

  /* space */
  --gutter: 16px;
  --max: 1280px;
  --space: clamp(64px, 9vw, 140px);
  --header-h: 60px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--fs-h2); }
p { margin: 0; }
a { color: var(--teal-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--focus-dark); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 34em; }

/* the one primary action */
.btn-call {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  background: var(--teal); color: var(--white);
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  border-radius: 999px;
}
.btn-call:hover { background: var(--teal-deep); }
.btn-call svg { width: 20px; height: 20px; flex: none; }
.textlink { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- header (sticky, under 64px) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__bar {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px;
}
.brand {
  display: block; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.05;
  margin-right: auto; padding-block: 6px;
}
.brand span { display: block; }
.brand em { font-style: normal; color: var(--teal); }
.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  font: 600 .9375rem/1 var(--body); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  background: var(--teal); color: var(--white); text-decoration: none;
  font-weight: 700; font-size: .9375rem; border-radius: 999px;
}
.header-call:hover { background: var(--teal-deep); }
.header-call svg { width: 18px; height: 18px; }
.header-call .num { display: none; }

/* navigation: a stacked list without JavaScript, a panel with it, a row on wide screens */
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.site-nav a:hover { color: var(--teal-deep); }

@media (max-width: 1319.98px) {
  .site-nav { border-top: 1px solid var(--rule); flex-basis: 100%; order: 3; }
  .site-nav ul { max-width: var(--max); margin-inline: auto; padding: 4px var(--gutter) 8px; display: flex; flex-wrap: wrap; column-gap: 20px; }
  .js .menu-btn { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; margin-inline: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 32px -24px rgba(19, 48, 77, .35);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { display: block; padding: 8px var(--gutter) 16px; }
  .js .site-nav li + li { border-top: 1px solid var(--rule); }
  .js .site-nav a { min-height: 52px; font-size: 1.125rem; }
}
@media (max-width: 379.98px) {
  /* 320 px reflow: the menu button keeps its name "Menu" for screen readers and shows only its icon */
  .site-header__bar { gap: 0 8px; }
  .brand { font-size: 1rem; }
  .js .menu-btn { font-size: 0; gap: 0; width: 44px; padding: 0; }
  .header-call { padding: 0 12px; }
}
@media (min-width: 420px) {
  .brand { font-size: 1.1875rem; }
}
@media (min-width: 700px) {
  .brand span { display: inline; }
  .header-call .num { display: inline; }
  .header-call .word { display: none; }
}
@media (min-width: 1320px) {
  .site-header__bar { gap: 28px; }
  .brand { margin-right: 0; font-size: 1.25rem; flex: none; }
  .brand span { display: block; }
  .site-nav { margin-left: auto; }
  .site-nav ul { display: flex; gap: 18px; }
  .site-nav a { font-size: .9375rem; }
}

/* ---------- hero: the photograph lit by its own window ---------- */
.hero { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 52% 42%;
}
.hero__text { padding: 28px var(--gutter) 56px; max-width: 40rem; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.02; }
.hero h1 .then { color: var(--teal); display: block; }
.hero__deck { margin-top: 20px; max-width: 30em; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hero__hours { margin-top: 20px; font-size: var(--fs-small); color: var(--muted); max-width: 30em; }

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-in .9s ease-out both; }
  @keyframes hero-in { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
}
@media (min-width: 700px) {
  .hero__media img { aspect-ratio: 16 / 9; object-position: 55% 45%; }
  .hero__text { padding-top: 40px; }
}
@media (min-width: 1024px) {
  .hero { min-height: min(calc(100vh - var(--header-h)), 780px); display: flex; align-items: center; }
  .hero__media { position: absolute; inset: 0 0 0 34%; }
  .hero__media img {
    height: 100%; aspect-ratio: auto; object-position: 62% 45%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%);
    mask-image: linear-gradient(to right, transparent 0, #000 40%);
  }
  .hero__text {
    position: relative; z-index: 1;
    width: min(34vw, 500px);
    margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    padding: 48px 0 64px;
  }
  .hero h1 { font-size: clamp(3.5rem, 3.6vw + .5rem, 4.75rem); }
}

/* ---------- dentistry: the cleaning, bled to the left edge ---------- */
.dental { padding-top: var(--space); display: grid; gap: 32px; }
.dental__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% 50%; }
.dental__text { padding-inline: var(--gutter); }
.dental__text p + p { margin-top: 16px; }
.dental h2 { margin-bottom: 20px; }
.said {
  margin: 32px 0 0; padding: 0 0 0 20px;
  border-left: 3px solid var(--teal);
}
.said p { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.375rem; line-height: 1.35; font-weight: 500; }
.said cite { display: block; margin-top: 10px; font-style: normal; font-size: var(--fs-small); color: var(--muted); }
.said + p { margin-top: 16px; }
@media (min-width: 1024px) {
  .dental {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 64px;
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .dental__text { padding-inline: 0; }
  .dental__media img { aspect-ratio: 5 / 4; }
}

/* ---------- the price list (the signature) ---------- */
.prices { margin-top: var(--space); background: var(--sand); padding-bottom: var(--space); }
.prices__band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%; }
.prices__grid { display: grid; gap: 32px; padding-top: 32px; }
.prices__lead p { margin-top: 18px; }
.prices__lead h2 { color: var(--ink); }
.sheet {
  background: var(--white);
  border-top: 6px solid var(--teal);
  padding: 24px 20px 28px;
  box-shadow: 0 1px 0 rgba(19, 48, 77, .08), 0 22px 44px -28px rgba(19, 48, 77, .5);
}
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.sheet__head p { font-size: var(--fs-small); color: var(--muted); }
.sheet__name { font-weight: 700; color: var(--ink) !important; letter-spacing: .06em; text-transform: uppercase; font-size: .8125rem !important; }
.pricelist { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; margin-top: 8px; }
.pricelist caption {
  text-align: left; caption-side: top;
  font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600;
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.875rem); line-height: 1.15;
  padding: 18px 0 6px;
}
.pricelist caption span { display: block; font-family: var(--body); font-size: var(--fs-small); font-weight: 500; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.pricelist thead th { font-size: .875rem; font-weight: 600; color: var(--muted); padding: 14px 0 8px; text-align: left; border-bottom: 1px solid var(--rule); }
.pricelist thead th:last-child { text-align: right; }
.pricelist tbody th { text-align: left; font-weight: 600; padding: 16px 12px 16px 0; vertical-align: top; }
.pricelist tbody td {
  text-align: right; vertical-align: top; padding: 10px 0 14px; white-space: nowrap;
  font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600;
  font-size: clamp(1.875rem, 1.6vw + 1.3rem, 2.5rem); line-height: 1.1;
}
.pricelist tbody tr { border-bottom: 1px solid var(--rule); }
.pricelist tbody tr.first td { color: var(--teal-deep); }
.pricelist .sub { display: block; font-weight: 500; font-size: var(--fs-small); color: var(--muted); }

/* the row of teeth: twelve teeth, one per month since the last cleaning; the teal run is how long they waited */
.teeth {
  display: block; margin-top: 12px;
  width: min(100%, 16.5rem); height: 20px;
  background: linear-gradient(to right, var(--teal) calc(var(--m) / 12 * 100%), var(--steel) 0);
  -webkit-mask: radial-gradient(40% 100% at 50% 0, #000 96%, transparent 100%) 0 0 / calc(100% / 12) 100% repeat-x;
  mask: radial-gradient(40% 100% at 50% 0, #000 96%, transparent 100%) 0 0 / calc(100% / 12) 100% repeat-x;
}
.sheet__legend { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
.sheet__legend .teeth { width: 18px; margin: 0; flex: none; background: var(--teal); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.sheet__fine { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); }

@media (min-width: 700px) {
  .sheet { padding: 28px 32px 32px; }
}
@media (min-width: 1024px) {
  .prices__band img { aspect-ratio: 3 / 1; object-position: 50% 52%; }
  .prices__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px;
    align-items: start; padding-top: 0;
  }
  .prices__lead { padding-top: 64px; }
  .sheet { margin-top: -140px; position: relative; padding: 32px 40px 36px; }
}

/* ---------- puppies and kittens ---------- */
.young { padding-top: var(--space); }
.young__grid { display: grid; gap: 28px; }
.young__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 34% 60%; }
.young__text p { margin-top: 18px; }
@media (min-width: 1024px) {
  .young__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 8%; align-items: end; }
  .young__media { grid-column: 2; grid-row: 1; }
  .young__text { grid-column: 1; grid-row: 1; padding-bottom: 24px; }
}

/* ---------- a client's word, on navy ---------- */
.voice { margin-top: var(--space); background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 112px); }
.voice__grid { display: grid; gap: 28px; }
.voice blockquote { margin: 0; }
.voice blockquote p { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: var(--fs-quote); line-height: 1.22; text-wrap: balance; }
.voice blockquote p + p { margin-top: 16px; font-family: var(--body); font-size: var(--fs-body); font-weight: 400; line-height: 1.6; color: #D9E1E4; text-wrap: pretty; }
.voice mark { background: none; color: var(--sand); }
.voice__who { font-size: var(--fs-small); color: #D9E1E4; }
.voice__who strong { display: block; color: var(--white); font-size: var(--fs-body); }
.voice__who p + p { margin-top: 16px; }
@media (min-width: 1024px) {
  .voice__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 8%; align-items: end; }
}

/* ---------- Dr. Keller ---------- */
.doctor { padding-top: var(--space); display: grid; gap: 32px; }
.doctor__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 40% 50%; }
.doctor__text { padding-inline: var(--gutter); }
.doctor__text > p { margin-top: 18px; }
.chart { margin: 28px 0 0; border-top: 2px solid var(--ink); }
.chart div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.chart dt { font-size: var(--fs-small); color: var(--muted); font-weight: 600; }
.chart dd { margin: 0; }
@media (min-width: 1024px) {
  .doctor {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center;
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .doctor__text { padding-inline: 0; }
  .doctor__media { grid-column: 2; grid-row: 1; }
  .doctor__text { grid-column: 1; grid-row: 1; }
  .doctor__media img { aspect-ratio: 4 / 3; }
}

/* ---------- under one roof ---------- */
.roof { padding-top: var(--space); }
.roof__band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; }
.roof__grid { display: grid; gap: 32px; padding-top: 32px; }
.roof__grid h2 { margin-bottom: 16px; }
.services { list-style: none; margin: 24px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.services li { break-inside: avoid; padding: 8px 0; border-top: 1px solid var(--rule); font-weight: 500; }
.visits { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.visits caption { text-align: left; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.5rem; padding-bottom: 8px; }
.visits th, .visits td { padding: 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.visits th { text-align: left; font-weight: 500; padding-right: 12px; }
.visits td { text-align: right; font-weight: 700; white-space: nowrap; }
.visits tr:last-child th, .visits tr:last-child td { border-bottom: 2px solid var(--ink); }
.roof__more { margin-top: 12px; }
@media (min-width: 1024px) {
  .roof__band img { aspect-ratio: 21 / 8; }
  .roof__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 8%; padding-top: 56px; }
  .services { columns: 3; }
}

/* ---------- visit ---------- */
.visit { padding-block: var(--space); display: grid; gap: 32px; }
.visit__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 60%; }
.visit__text { padding-inline: var(--gutter); }
.visit__addr { margin-top: 16px; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.hours { margin: 24px 0 0; border-top: 2px solid var(--ink); }
.hours div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
.visit__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.visit__note { margin-top: 20px; font-size: var(--fs-small); color: var(--muted); }
.visit .said { margin-top: 32px; }
@media (min-width: 1024px) {
  .visit {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center;
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .visit__text { padding-inline: 0; }
}

/* ---------- stub pages ---------- */
.stub { padding-block: clamp(56px, 10vw, 128px); }
.stub h1 { font-size: clamp(2.5rem, 3.6vw + 1rem, 4rem); }
.stub p { margin-top: 20px; max-width: 32em; }
.stub .hero__actions { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9E1E4; padding-block: 56px 32px; font-size: var(--fs-small); }
.site-footer a { color: var(--white); }
.footer__grid { display: grid; gap: 28px; }
.footer__brand { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.375rem; color: var(--white); line-height: 1.15; }
.footer__brand em { font-style: normal; color: var(--sand); }
.site-footer address { font-style: normal; margin-top: 12px; line-height: 1.7; }
.site-footer address a { display: inline-flex; align-items: center; min-height: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__mock { margin-top: 40px; padding-top: 16px; border-top: 1px solid rgba(217, 225, 228, .3); font-size: .8125rem; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
}
