/* ==========================================================================
   Amherst Plaza Animal Clinic
   Design system + site styles. No framework, no build step.
   Palette and type derived from the original brand (see BRAND.md).
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* brand — sky blue from the logo wordmark */
  --sky-100: #e4f4ff;
  --sky-200: #c4e8ff;
  --sky-300: #8ad3ff;
  --sky-500: #38b6ff;
  --sky-600: #1d9be8;
  --sky-700: #0b7fc4;

  /* brand — amber from the logo animals + original CTA orange */
  --amber-100: #fff3e0;
  --amber-300: #ffdda0;
  --amber-400: #ffc059;
  --amber-500: #ffa028;
  --amber-600: #e8871a;
  --amber-700: #bf6a0c;

  /* brand — navy used through the original footer and headings */
  --ink-900: #10243f;
  --ink-800: #1a2c4e;
  --ink-700: #22355c;
  --ink-600: #35486d;
  --ink-500: #4a5f82;
  --ink-400: #6b7e9e;

  /* neutrals */
  --cream-50: #fff8ec;
  --cream-100: #feedcf;
  --mist: #f4f7fa;
  --paper: #ffffff;
  --line: #e3e9f0;

  /* semantic */
  --bg: var(--paper);
  --bg-alt: var(--mist);
  --text: var(--ink-800);
  --text-muted: var(--ink-500);
  --heading: var(--ink-900);
  --accent: var(--amber-500);
  --accent-ink: var(--amber-700);
  --primary: var(--sky-600);

  /* type */
  --font-display: 'League Spartan', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito Sans', 'Average Sans', system-ui, -apple-system, sans-serif;

  /* scale */
  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.32rem + 0.65vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.75rem + 2.2vw, 3.6rem);

  /* space */
  --gap: 1.25rem;
  --pad-section: clamp(3.5rem, 7vw, 6.5rem);
  --wrap: 1180px;
  --wrap-narrow: 820px;

  /* form */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 63, 0.06), 0 4px 12px rgba(16, 36, 63, 0.05);
  --shadow: 0 10px 30px -12px rgba(16, 36, 63, 0.22);
  --shadow-lg: 0 28px 60px -24px rgba(16, 36, 63, 0.3);
  --ring: 0 0 0 3px rgba(56, 182, 255, 0.45);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sky-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* -------------------------------------------------------------- layout --- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--pad-section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--mist { background: var(--bg-alt); }
.section--cream { background: linear-gradient(180deg, var(--cream-50), #fff); }
.section--ink { background: var(--ink-900); color: #cfe0f2; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: var(--amber-500);
}
.section--ink .eyebrow { color: var(--amber-400); }

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--text-muted); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.01em; line-height: 1;
  padding: 0.95rem 1.6rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
              color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  background: var(--amber-500); color: var(--ink-900);
  box-shadow: 0 10px 22px -10px rgba(255, 160, 40, 0.9);
}
.btn--primary:hover { background: var(--amber-400); color: var(--ink-900); }

.btn--sky {
  background: var(--sky-500); color: #04283f;
  box-shadow: 0 10px 22px -10px rgba(56, 182, 255, 0.9);
}
.btn--sky:hover { background: var(--sky-300); color: #04283f; }

.btn--ghost { background: transparent; color: var(--ink-800); border-color: var(--ink-800); }
.btn--ghost:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

.btn--sm { padding: 0.65rem 1.15rem; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* -------------------------------------------------------------- header --- */
.topbar {
  background: var(--ink-900); color: #d5e6f7;
  font-size: 0.86rem; letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 42px; flex-wrap: wrap;
}
/* margin:0 matters — this is a <p>, and the global bottom margin makes flex
   centre the margin box, sitting the text half a margin above true centre. */
.topbar__tag {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.topbar__tag svg { width: 1em; height: 1em; color: var(--amber-400); }
.topbar__links { display: flex; align-items: center; gap: 1.4rem; }
.topbar a { color: #d5e6f7; text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a:hover { color: var(--amber-400); }
.topbar svg { width: 1em; height: 1em; }
@media (max-width: 860px) {
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; }
}

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 116px; padding-block: 0.55rem;
}
.brand { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.brand__logo { display: block; line-height: 0; border-radius: var(--radius-sm); }
/* The lockup is 250x150, so width drives header height — 176px lands the header
   at ~124px, up from ~109px, without the sticky bar eating the viewport. */
.brand__logo img { width: 176px; height: auto; }
.brand__meta {
  display: none; font-size: 0.84rem; line-height: 1.45; color: var(--text-muted);
  padding: 0.35rem 0 0.35rem 1.1rem; border-left: 1px solid var(--line);
  text-decoration: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color 0.16s ease;
}
.brand__meta strong {
  display: block; font-family: var(--font-display); font-size: 1.06rem;
  color: var(--ink-900); font-weight: 600; letter-spacing: -0.01em;
  transition: color 0.16s ease;
}
.brand__meta:hover { color: var(--accent-ink); }
.brand__meta:hover strong { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1080px) { .brand__meta { display: block; } }

/* Keep the taller header from eating the viewport on phones. */
@media (max-width: 720px) {
  .site-header__inner { min-height: 84px; padding-block: 0.45rem; }
  .brand__logo img { width: 132px; }
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: inline-block; position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  color: var(--ink-800); text-decoration: none;
  padding: 0.6rem 0.85rem; border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__list a::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem;
  height: 2px; border-radius: 2px; background: var(--amber-500);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.nav__list a:hover { color: var(--sky-700); }
.nav__list a:hover::after,
.nav__list a[aria-current='page']::after { transform: scaleX(1); }
.nav__list a[aria-current='page'] { color: var(--ink-900); font-weight: 600; }
.nav__cta { margin-left: 0.75rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; place-items: center; color: var(--ink-900);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  /* Height follows the content — anchoring to bottom:0 made the panel full
     height and gave it a scroll container even with six short links in it. */
  .nav {
    position: fixed; left: 0; right: 0; bottom: auto; top: var(--header-h, 84px);
    background: #fff; border-top: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.75rem 1.25rem 1.5rem; margin: 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    max-height: calc(100dvh - var(--header-h, 84px));
    overflow-y: auto; overscroll-behavior: contain;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { padding: 0.85rem 0.25rem; font-size: 1.06rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a::after { display: none; }
  .nav__list li:last-child a { border-bottom: 0; }
  .nav__cta { margin: 0.9rem 0 0; }
  .btn.nav__cta { width: 100%; }
}

/* Stop the page scrolling behind the open menu. */
body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero --- */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--cream-50) 0%, #fff 55%); }
.hero::before {
  content: ''; position: absolute; z-index: 0;
  width: 620px; height: 620px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.18), transparent 68%);
  border-radius: 50%;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2.2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em { font-style: normal; color: var(--sky-600); }
.hero__copy > p { max-width: 56ch; color: var(--text-muted); }
.hero__copy > p:first-of-type { font-size: var(--step-1); color: var(--text); }
.hero .btn-row { margin-top: 1.8rem; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: -14px; bottom: -22px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.95rem 1.25rem; display: flex; align-items: center; gap: 0.85rem;
  border: 1px solid var(--line); max-width: 270px;
}
.hero__badge svg { width: 34px; height: 34px; color: var(--amber-500); flex: none; }
.hero__badge b {
  display: block; font-family: var(--font-display); font-size: 1.35rem;
  color: var(--ink-900); line-height: 1;
}
.hero__badge span { font-size: 0.84rem; color: var(--text-muted); line-height: 1.35; }
@media (max-width: 899px) { .hero__badge { left: 12px; bottom: -18px; } }

/* --------------------------------------------------------- trust strip --- */
.trust {
  border-block: 1px solid var(--line); background: #fff;
}
.trust__inner {
  display: grid; gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-block: 1.6rem;
}
.trust__item { display: flex; align-items: flex-start; gap: 0.8rem; }
.trust__item svg { width: 26px; height: 26px; color: var(--sky-600); flex: none; margin-top: 2px; }
.trust__item b {
  display: block; font-family: var(--font-display); font-weight: 600;
  color: var(--ink-900); font-size: 1.02rem; line-height: 1.25;
}
.trust__item span { font-size: 0.88rem; color: var(--text-muted); line-height: 1.45; }

/* ------------------------------------------------------------ services --- */
.svc-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.svc-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: var(--sky-200); color: inherit;
}
.svc-card__img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--mist); }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.svc-card:hover .svc-card__img img { transform: scale(1.06); }
.svc-card__body { padding: 1.15rem 1.3rem 1.45rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.svc-card h3 { font-size: 1.22rem; margin: 0; }
.svc-card p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }
.svc-card__more {
  margin-top: auto; padding-top: 0.9rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: 0.4rem;
}
.svc-card__more svg { width: 0.95em; height: 0.95em; transition: transform 0.2s ease; }
.svc-card:hover .svc-card__more svg { transform: translateX(4px); }

/* --------------------------------------------------- alternating detail -- */
.detail {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
@media (min-width: 880px) { .detail { grid-template-columns: 1fr 1fr; } }
.detail + .detail { border-top: 1px solid var(--line); }
.detail__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
@media (min-width: 880px) { .detail--flip .detail__media { order: -1; } }
.detail h2 { margin-bottom: 0.4em; }
.detail__intro { color: var(--text-muted); }

.checklist { list-style: none; padding: 0; margin: 1.35rem 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; line-height: 1.5; }
.checklist li::before {
  content: ''; flex: none; width: 21px; height: 21px; margin-top: 3px;
  border-radius: 50%; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7fc4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist--warm li::before {
  background-color: var(--amber-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bf6a0c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- reviews --- */
.reviews__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.2rem;
}
.rating { display: flex; align-items: center; gap: 1rem; }
.rating__score { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: #fff; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 19px; height: 19px; color: var(--amber-400); }
.rating__meta { font-size: 0.9rem; color: #a9c3dc; }
.rating__meta b { color: #fff; font-family: var(--font-display); letter-spacing: 0.06em; }

.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px);
  gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1.1rem; margin-inline: calc(-1 * max(1.25rem, (100vw - var(--wrap)) / 2));
  padding-inline: max(1.25rem, (100vw - var(--wrap)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--ink-600) transparent;
}
.reviews__track::-webkit-scrollbar { height: 7px; }
.reviews__track::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 99px; }
.review {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.review .stars svg { width: 15px; height: 15px; }
/* Every card in a single-row grid stretches to the tallest one, so one long
   review made the whole strip enormous. Clamp the quote instead. */
.review p {
  font-size: 0.93rem; line-height: 1.58; color: #d9e6f3; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7;
  line-clamp: 7; overflow: hidden;
}
.review__by {
  margin-top: auto; padding-top: 0.5rem;
  font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.review__by svg { width: 15px; height: 15px; }
.review__by span { font-family: var(--font-body); font-weight: 400; color: #8fa9c4; font-size: 0.8rem; }

/* ---------------------------------------------------------------- team --- */
.team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.member__img { aspect-ratio: 1; background: var(--mist); }
.member__img img { width: 100%; height: 100%; object-fit: cover; }
.member__body { padding: 1.2rem 1.35rem 1.5rem; }
.member h3 { font-size: 1.18rem; margin-bottom: 0.15rem; }
.member__role {
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 0.75rem;
}
.member p { font-size: 0.93rem; color: var(--text-muted); }

.doctor {
  display: grid; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.6rem); box-shadow: var(--shadow);
}
@media (min-width: 820px) { .doctor { grid-template-columns: 320px 1fr; } }
.doctor__img img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center;
  border-radius: var(--radius);
}

/* ------------------------------------------------------------ patients --- */
/* Mosaic collage: a dense 4-column grid where two tiles take double width and
   height, so the wall reads as a scrapbook rather than a uniform avatar row. */
.collage {
  display: grid; gap: 0.7rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
}
.collage img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.collage a, .collage > div { display: block; overflow: hidden; border-radius: var(--radius); }
.collage img:hover { transform: scale(1.04); box-shadow: var(--shadow); }

.collage .is-wide { grid-column: span 2; }
.collage .is-tall { grid-row: span 2; }
.collage .is-big { grid-column: span 2; grid-row: span 2; }
.collage .is-big img, .collage .is-tall img { aspect-ratio: auto; }
.collage .is-wide img { aspect-ratio: 2 / 1; }

@media (max-width: 860px) {
  .collage { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .collage { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .collage .is-big { grid-column: span 2; grid-row: span 2; }
  .collage .is-wide { grid-column: span 2; }
  .collage .is-wide img { aspect-ratio: 2 / 1; }
}

/* -------------------------------------------------------------- clinic --- */
.clinic { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 880px) { .clinic { grid-template-columns: 1fr 1.05fr; } }
.clinic__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hours-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.5rem; box-shadow: var(--shadow-sm); margin-top: 1.6rem;
}
.hours-card h3 {
  font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.85rem;
}
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.42rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours dt, .hours span:first-child { color: var(--text-muted); }
.hours b { font-family: var(--font-display); font-weight: 500; color: var(--ink-900); }
.hours li.is-today { color: var(--ink-900); }
.hours li.is-today span:first-child::after {
  content: 'Today'; margin-left: 0.5rem; font-family: var(--font-display); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber-100);
  color: var(--accent-ink); padding: 0.15rem 0.45rem; border-radius: var(--radius-pill);
}
.hours li.is-today b { color: var(--accent-ink); }

/* The map is injected by JS after window.load — see main.js. Embedding the
   iframe directly leaves the tab's loading spinner running indefinitely,
   because the Google Maps embed never fires its load event. */
.map-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  background: var(--mist); overflow: hidden;
}
.map-embed iframe { border: 0; width: 100%; height: 100%; display: block; }
.map-embed__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center;
  gap: 0.5rem; justify-items: center; text-align: center; padding: 1.5rem;
  color: var(--text-muted); font-size: 0.9rem;
}
.map-embed__placeholder svg { width: 30px; height: 30px; color: var(--sky-500); }

/* ------------------------------------------------------------ pharmacy --- */
.pharmacy {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--sky-600), var(--sky-700));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.9rem, 4.5vw, 3rem);
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 780px) { .pharmacy { grid-template-columns: 1fr auto; } }
.pharmacy::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.09);
}
.pharmacy > * { position: relative; z-index: 1; }
.pharmacy h2 { color: #fff; font-size: var(--step-2); margin-bottom: 0.35em; }
.pharmacy p { color: rgba(255, 255, 255, 0.92); margin: 0; max-width: 54ch; }

/* ----------------------------------------------------------------- CTA --- */
.cta-band {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-band h2 { color: var(--ink-900); margin-bottom: 0.5rem; }
.cta-band p { color: #6b4508; max-width: 56ch; margin-inline: auto; font-size: var(--step-1); }
.cta-band .btn-row { justify-content: center; margin-top: 1.8rem; }

/* ---------------------------------------------------------------- form --- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.5rem); box-shadow: var(--shadow);
}
.field-grid { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label, .fieldset legend {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--ink-900); letter-spacing: 0.005em;
}
.field .req { color: var(--amber-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; color: var(--ink-900);
  padding: 0.78rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; width: 100%; transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky-500); box-shadow: var(--ring);
}
.field .hint { font-size: 0.82rem; color: var(--text-muted); }
.field .error { font-size: 0.82rem; color: #b42318; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d92d20; }
.field.is-invalid .error { display: block; }

.fieldset { border: 0; padding: 0; margin: 0 0 1.05rem; grid-column: 1 / -1; }
.fieldset legend { padding: 0; margin-bottom: 0.55rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.62rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
  cursor: pointer; font-size: 0.95rem; transition: all 0.16s ease; background: #fff;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:hover { border-color: var(--sky-300); }
.choice:has(input:checked) {
  border-color: var(--sky-500); background: var(--sky-100); color: var(--sky-700); font-weight: 600;
}
.choice:has(input:focus-visible) { box-shadow: var(--ring); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none; margin-top: 1.2rem; padding: 1rem 1.2rem;
  border-radius: var(--radius-sm); font-size: 0.95rem;
}
.form-status.is-ok { display: block; background: #e7f6ec; border: 1px solid #a6e0b8; color: #14562c; }
.form-status.is-err { display: block; background: #fdeceb; border: 1px solid #f5b5b0; color: #8e1f16; }

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.25fr 0.75fr; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.info-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--sky-600); flex: none; margin-top: 4px; }
.info-list b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.1rem;
}
.info-list a { color: var(--ink-900); text-decoration: none; font-size: 1.02rem; }
.info-list a:hover { color: var(--accent-ink); text-decoration: underline; }

/* -------------------------------------------------------------- footer --- */
.site-footer { background: var(--ink-900); color: #a9c3dc; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2.8rem;
}
.footer-brand img {
  width: 170px; background: #fff; border-radius: 12px; padding: 0.55rem 0.7rem;
}
.footer-brand p { margin: 1rem 0 1.2rem; font-size: 0.92rem; max-width: 30ch; }
.site-footer h2 {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.1rem; font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.62rem; }
.site-footer a { color: #a9c3dc; text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { color: var(--amber-400); }
.footer-hours li { display: flex; justify-content: space-between; gap: 0.85rem; font-size: 0.9rem; }
.footer-hours b { color: #fff; font-family: var(--font-display); font-weight: 500; }
.footer-hours li.is-today b { color: var(--amber-400); }
.footer-contact li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.94rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--sky-500); flex: none; margin-top: 4px; }

.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.socials a:hover { background: var(--amber-500); color: var(--ink-900); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 1.35rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between; font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------- page-header -- */
.page-header {
  background: linear-gradient(150deg, var(--ink-900), var(--ink-700));
  color: #cfe0f2; padding-block: clamp(2.75rem, 6vw, 4.5rem); position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; right: -120px; bottom: -170px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(56, 182, 255, 0.24), transparent 70%);
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: 0.35em; }
.page-header p { max-width: 62ch; color: #b9d0e6; font-size: var(--step-1); }
.crumbs {
  display: flex; gap: 0.5rem; align-items: center; list-style: none;
  margin: 0 0 1.1rem; padding: 0; font-size: 0.85rem; color: #8fa9c4;
}
.crumbs a { color: #8fa9c4; text-decoration: none; }
.crumbs a:hover { color: var(--amber-400); }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: #56708c; }

/* ------------------------------------------------------------- utility --- */
.jump-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--line);
  position: sticky; top: var(--header-h, 84px); background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px); z-index: 40;
}
/* Keep the jump bar one row on narrow screens — a wrapped sticky bar would eat
   most of the viewport. */
@media (max-width: 780px) {
  .jump-nav {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    padding-block: 0.8rem;
    /* bleed to the viewport edges so the last pill can scroll fully into view */
    margin-inline: calc(-1 * max(1.25rem, (100vw - var(--wrap)) / 2));
    padding-inline: max(1.25rem, (100vw - var(--wrap)) / 2);
  }
  .jump-nav::-webkit-scrollbar { display: none; }
}
.jump-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.88rem;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--ink-700); text-decoration: none;
  transition: all 0.16s ease; white-space: nowrap;
}
.jump-nav a:hover { background: var(--sky-100); border-color: var(--sky-300); color: var(--sky-700); }

[id] { scroll-margin-top: calc(var(--header-h, 84px) + 68px); }

/* Reveal-on-scroll is opt-in from JS: the hidden state only applies once
   main.js has confirmed it can observe and un-hide. Without that class the
   content renders normally, so no-JS and observer failures can never leave a
   section blank. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
