/* Fraserhood Dental
   Palette from the clinic itself: the blade sign's slate face and cyan edge light,
   the seafoam turtle logo, and the blue-grey walls inside the office. */

@font-face {
  font-family: "Besley";
  src: url("/assets/fonts/besley.woff2?v=58c2a253d1") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next.woff2?v=04327e57a2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-italic.woff2?v=af1fbc5db8") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --slate: #25323b;
  --slate-deep: #1a242b;
  --ink: #25323b;
  --ink-soft: #4f5f69;
  --rim: #22a7d9;
  --rim-ink: #0b6f98;
  --seafoam: #8bb2b1;
  --wall: #e4edf0;
  --mist: #eef4f4;
  --line: #d3dee1;
  --line-strong: #b8c8cd;
  --paper: #ffffff;
  --open: #1f8a5b;
  --soon: #b7791f;
  --error: #b42318;

  --font-display: "Besley", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--rim-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--slate); color: #fff;
  padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lg { padding: 15px 28px; font-size: 1.075rem; }
.btn-primary { background: var(--slate); color: #fff; }
.btn-primary:hover { background: var(--rim-ink); color: #fff; }
.btn-outline { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-outline:hover { background: var(--slate); color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--slate);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand-mark { width: 46px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.005em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current] { border-bottom-color: var(--rim); }
.nav-actions { display: flex; flex-shrink: 0; align-items: center; gap: 18px; }
.nav-phone {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nav-phone:hover { color: var(--rim-ink); }

/* Between the full header and the menu button: tighten spacing, then drop the
   phone number from the bar (it stays in the hero, footer and mobile menu). */
@media (min-width: 1081px) and (max-width: 1279px) {
  .header-inner { gap: 16px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; }
  .brand-name { font-size: 1.2rem; }
  .site-nav { gap: 20px; }
  .nav-links { gap: 18px; }
  .nav-actions { gap: 14px; }
}
@media (min-width: 1081px) and (max-width: 1139px) {
  .nav-phone { display: none; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 2px solid var(--slate);
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(26, 36, 43, 0.35);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:hover, .nav-links a[aria-current] { border-bottom-color: var(--line); color: var(--rim-ink); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; }
  .nav-phone { padding: 6px 0; font-size: 1.15rem; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--wall);
  padding-block: clamp(40px, 5vw, 68px) clamp(130px, 15vw, 190px);
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 12em;
  margin: 22px 0 22px;
  text-wrap: balance;
}
@media (min-width: 1100px) {
  .hero-title .line { display: block; }
}
/* The clinic's welcome paragraph: long for a hero, so it is set at body size on a wide measure. */
.hero-welcome {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.17rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}
.open-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8a99a1;
}
.open-status[data-state="open"] .open-dot { background: var(--open); box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.18); }
.open-status[data-state="later"] .open-dot { background: var(--soon); box-shadow: 0 0 0 4px rgba(183, 121, 31, 0.18); }

/* The sign hangs from a bracket that runs off the right edge of the page,
   the way it projects from the building at Fraser and 39th. */
.hero-sign {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: min(100%, 400px);
}
.hero-sign::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 80%;
  top: 55.25%;
  height: 5.5%;
  width: calc(20% + (100vw - min(100vw - 2 * var(--gutter), var(--wrap))) / 2 + 4px);
  background: #39474f;
  box-shadow: 0 14px 18px -6px rgba(26, 36, 43, 0.25);
}
.sign {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 22px rgba(26, 36, 43, 0.24));
}
.sign-collar { fill: #2b363d; }
.sign-drum { fill: #11181d; }
.sign-edge { fill: #1a242b; }
.sign-rim {
  fill: none;
  stroke: var(--rim);
  stroke-width: 5;
  filter: drop-shadow(0 0 5px rgba(34, 167, 217, 0.75));
}
.sign-type {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 4.5px;
  fill: #f1f4f5;
}
.sign use, .sign path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.neon-tube { stroke: rgba(205, 216, 221, 0.38); stroke-width: 3.2; }
.neon-halo { stroke: rgba(150, 215, 255, 0.85); stroke-width: 9; }
.neon-bloom { stroke: #e3f6ff; stroke-width: 5; }
.neon-core { stroke: #fff; stroke-width: 2.2; }
.neon-cap { fill: #66747c; }

@media (prefers-reduced-motion: no-preference) {
  .neon-lit { animation: neon-on 1.7s 0.6s both; }
}
@keyframes neon-on {
  0%   { opacity: 0; animation-timing-function: steps(1, end); }
  9%   { opacity: 0.8; animation-timing-function: steps(1, end); }
  13%  { opacity: 0.08; animation-timing-function: steps(1, end); }
  24%  { opacity: 0.95; animation-timing-function: steps(1, end); }
  28%  { opacity: 0.3; animation-timing-function: steps(1, end); }
  40%  { opacity: 1; animation-timing-function: steps(1, end); }
  44%  { opacity: 0.6; animation-timing-function: ease-out; }
  56%, 100% { opacity: 1; }
}

/* ---------- Photo band under the hero ---------- */

.photo-band {
  display: grid;
  grid-template-columns: 6fr 4fr 2.3fr;
  gap: 12px;
  margin-top: calc(-1 * clamp(96px, 11vw, 150px));
  position: relative;
}
.photo { margin: 0; }
.photo img {
  width: 100%;
  height: clamp(220px, 29vw, 380px);
  object-fit: cover;
  border-radius: 8px;
}
.photo-tall img { object-position: 50% 70%; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-mist { background: var(--mist); }

.section-head { max-width: 40rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 1.2rem; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.95rem, 1.35rem + 1.9vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin-bottom: 0.45em;
  text-wrap: balance;
}

/* ---------- Dentists ---------- */

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.doc { position: relative; }
.portrait {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1;
  padding: 5px;
  border: 3px solid var(--rim);
  border-radius: 50%;
  background: var(--paper);
  margin-bottom: 22px;
  transition: box-shadow 0.25s;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.doc:hover .portrait, .doc:focus-within .portrait {
  box-shadow: 0 0 0 5px rgba(34, 167, 217, 0.16), 0 0 28px rgba(34, 167, 217, 0.45);
}
.doc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 4px;
}
.doc h3 a { color: var(--ink); text-decoration: none; }
.doc h3 a::after { content: ""; position: absolute; inset: 0; }
.doc h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--rim); }
.doc-days { color: var(--rim-ink); font-weight: 700; margin-bottom: 10px; }
.doc p:not(.doc-days) { color: var(--ink-soft); max-width: 32ch; }
/* Dr. Bethel, retired: the same portrait and type as the dentists above, set apart in a row of his own. */
.doc-retired {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  max-width: 34rem;
  margin-top: clamp(44px, 5vw, 68px);
}
.doc-retired .portrait { grid-row: span 3; width: 112px; margin: 0; padding: 3px; border-width: 2px; }
.doc-retired h3 { font-size: 1.3rem; margin-top: 6px; }
.doc-retired .doc-days { color: var(--ink-soft); }
/* Wherever a card is a grid (Dr. Bethel's; every card on phones), text stays in the column beside the portrait,
   however many lines it has. */
.doc > :not(.portrait) { grid-column: 2; }
/* Links inside a card sit above the card-wide link on the name. */
.doc p a { position: relative; }

.team-compact .portrait { width: min(100%, 150px); margin-bottom: 16px; }
.team-compact h3 { font-size: 1.3rem; }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.services-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.services-intro p { color: var(--ink-soft); max-width: 38ch; }
.service-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 44px);
}
.service { padding: 22px 0 26px; border-top: 1px solid var(--line-strong); }
.service dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.25;
  margin-bottom: 8px;
}
.service dt span { white-space: nowrap; }
.service dd { margin: 0; color: var(--ink-soft); }

/* ---------- Perks ---------- */

.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.perks svg {
  width: 58px;
  height: 58px;
  padding: 12px;
  border-radius: 50%;
  background: var(--slate);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--rim);
  margin: 5px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perks h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 18px 0 8px;
}
.perks p { color: var(--ink-soft); max-width: 34ch; }
.perks-more { margin-top: clamp(36px, 4vw, 52px); }

/* ---------- Visit ---------- */

.visit { border-top: 1px solid var(--line); }
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.visit-address {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
.visit-info > p:not(.visit-address):not(.visit-actions) { color: var(--ink-soft); }
.visit-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 36px 0 10px;
}
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.visit-media {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  height: clamp(420px, 48vw, 620px);
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.visit-corner { margin: 0; position: relative; height: 100%; }
.visit-corner img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.visit-corner figcaption {
  position: absolute;
  left: 10px; bottom: 10px; right: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(26, 36, 43, 0.82);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.map { height: 100%; border-radius: 8px; overflow: hidden; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.plain-list li:first-child { border-top: 0; padding-top: 0; }
.plain-list strong { color: var(--ink); }

/* Hours table: today's row gets a marker, filled in by site.js */
.hours { width: 100%; border-collapse: collapse; margin: 22px 0 0; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 700; width: 9.5em; }
.hours td { color: var(--ink-soft); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours tr.is-today { background: var(--mist); }
.hours tr.is-today th { box-shadow: inset 3px 0 0 var(--rim); }
.hours tr.is-today td { color: var(--ink); }
.today-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--slate);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate);
  color: #e6edef;
  padding-top: clamp(56px, 7vw, 88px);
  font-size: 1rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.1fr 1fr;
  gap: 40px;
}
.footer-brand img { width: 60px; margin-bottom: 14px; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 6px;
}
.footer-brand p:not(.footer-name) { color: #c4d1d6; max-width: 26ch; }
.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--seafoam);
  margin-bottom: 12px;
}
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer p { margin-bottom: 0.8em; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-base {
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #a9b8be;
  font-size: 0.92rem;
}

/* ---------- Mobile action bar ---------- */

.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .action-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--slate);
    border-top: 2px solid var(--rim);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px 11px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
  }
  .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .action-bar svg {
    width: 24px; height: 24px;
    fill: none; stroke: #fff; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
  }
}

/* ---------- Inner pages ---------- */

.page-head {
  background: var(--wall);
  padding-block: clamp(44px, 6vw, 80px) clamp(36px, 5vw, 64px);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.page-lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 46ch; }
.page-head-404 { padding-block: clamp(64px, 10vw, 140px); }
.page-head-404 .hero-actions { margin-top: 28px; }

.prose { max-width: 66ch; }
.prose p { line-height: 1.68; }
.prose-page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 1.8em 0 0.5em;
}
.prose-page h2:first-child { margin-top: 0; }

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 96px);
}
.two-col p { color: var(--ink-soft); max-width: 48ch; }

/* Dentist bio */
.bio { padding-block: clamp(40px, 6vw, 88px); }
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.bio-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
/* A headshot that only exists as a circle (Dr. Bethel's): shown round, in the same ring as the team portraits. */
.bio-photo-round .portrait { width: min(100%, 400px); margin: 0; padding: 6px; border-width: 4px; }
.bio-photo-round .portrait img { aspect-ratio: 1; border-radius: 50%; }
.crumb { margin-bottom: 12px; font-weight: 600; font-size: 1rem; }
.bio-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.bio-facts { margin: 0 0 32px; border-top: 1px solid var(--line-strong); }
.bio-facts > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.bio-facts dt { font-weight: 700; }
.bio-facts dd { margin: 0; color: var(--ink-soft); }
.bio-body .prose { margin-bottom: 36px; }
.bio-next { margin-top: 24px; color: var(--ink-soft); }

/* Office gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px 16px;
}
.gallery li { display: flex; flex-direction: column; }
.gallery a { display: block; flex: 1; min-height: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery a:hover img { transform: scale(1.02); }
.g-wide img { aspect-ratio: 4 / 3; }
.g-caption { margin: 10px 0 0; font-weight: 600; font-size: 1rem; color: var(--ink-soft); }

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(94vw, 1100px);
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(17, 24, 29, 0.88); }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 8px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 12px; font-weight: 600; }
.lightbox-close {
  position: absolute;
  top: -52px;
  right: 0;
  padding: 9px 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}

/* Booking */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.request-form { max-width: 680px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  border: 0; margin: 0; padding: 0; min-width: 0;
}
.field { margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 1.0625rem/1.4 var(--font-body);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rim-ink);
  box-shadow: 0 0 0 3px rgba(34, 167, 217, 0.28);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.98rem; font-weight: 600; margin: 6px 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field .choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 16px 9px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.field .choice input { accent-color: var(--slate); width: 18px; height: 18px; margin: 0; }
.field .choice:has(input:checked) { border-color: var(--slate); background: var(--mist); }
.field .choice:has(input:focus-visible) { outline: 3px solid var(--rim); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.form-hint { margin: 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 30ch; }
.form-result {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--mist);
  box-shadow: inset 4px 0 0 var(--rim);
}
.form-result p { margin-bottom: 0.5em; }

.book-aside { display: grid; gap: 0; }
.aside-block { padding: 22px 0; border-top: 1px solid var(--line); }
.aside-block:first-child { border-top: 0; padding-top: 0; }
.aside-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.aside-block p { color: var(--ink-soft); }
.aside-block .hours { margin-top: 8px; font-size: 1rem; }
.aside-block .hours th { width: 7.5em; padding-left: 8px; }
.book-aside .aside-urgent {
  padding: 24px 26px;
  border: 0;
  border-radius: 12px;
  background: var(--slate);
  color: #fff;
  margin-bottom: 8px;
}
.aside-urgent h2 { color: #fff; }
.aside-urgent p { color: #d6e0e3; }
.aside-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: #fff;
  text-decoration: none;
}
.aside-phone:hover { text-decoration: underline; text-decoration-color: var(--rim); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .services { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-media { position: static; height: clamp(360px, 70vw, 520px); }
  .book-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 1.0625rem; }
  .header-inner { gap: 12px; }
  .brand-mark { width: 38px; }
  .brand-name { font-size: 1.15rem; }
  .nav-toggle-label { font-size: 0.95rem; }

  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-sign { order: -1; width: min(52vw, 220px); }
  /* "neighbourhood" is about 7.7em wide: shrink the headline on the narrowest phones so it never
     pushes the column (and the paragraph and buttons under it) past the edge of the screen. */
  .hero-title { margin-top: 18px; font-size: min(2.5rem, (100vw - 2 * var(--gutter)) / 7.9); }
  .hero-actions .btn { flex: 1 1 100%; }

  .photo-band { grid-template-columns: 1.4fr 1fr; gap: 8px; }
  .photo-wide { grid-column: 1 / -1; }
  .photo img { height: clamp(150px, 42vw, 260px); }
  .photo-wide img { height: clamp(200px, 58vw, 340px); }

  .team { grid-template-columns: 1fr; gap: 40px; }
  .doc { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .doc .portrait { grid-row: span 3; width: 112px; margin: 0; padding: 3px; border-width: 2px; }
  .doc h3 { font-size: 1.3rem; margin-top: 4px; }
  .team-compact .portrait { width: 88px; }
  .team-compact .doc { grid-template-columns: 88px minmax(0, 1fr); }
  .doc-retired { column-gap: 20px; margin-top: 40px; }
  .doc-retired h3 { margin-top: 4px; }

  .service-list { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; gap: 28px; }
  .perks li { display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 16px; }
  .perks svg { grid-row: span 2; }
  .perks h3 { margin-top: 6px; }

  .visit-media { grid-template-columns: 1fr; height: auto; }
  .visit-corner { display: none; }
  .map { height: 340px; }
  .hours th { width: 7.5em; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { position: static; max-width: 340px; }
  .bio-photo-round .portrait { width: 240px; padding: 4px; border-width: 3px; }
  .bio-facts > div { grid-template-columns: 1fr; gap: 2px; }

  .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 4 / 3; height: auto; }
  .g-tall img { aspect-ratio: 3 / 4; }

  .two-col { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* Narrow phones: icon-only menu button (its label stays available to screen readers). */
@media (max-width: 420px) {
  .nav-toggle { padding: 11px; }
  .nav-toggle-label {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 359px) {
  .brand-name { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
