/* Capstone Dental — visual system sampled from the live site:
   charcoal #131718, pale field #dedede / #e8e8ea, JetBrains Mono labels,
   thin geometric headlines (Outfit standing in for commercial Bicyclette). */

:root {
  --ink: #131718;
  --paper: #dedede;
  --line: #b3b3b380;
  --line-mobile: #b3b3b333;
  --white: #fff;
  --muted: #d7d7da;
  --focus: #f4f1ea;
  --section-gap: 3rem;
  --card-gap: 1.35rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* 4 vertical rules matching live .page_grid-lines > .grid_line
     (display:flex; justify-content:space-around; 1px #b3b3b380). */
  background-image:
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line));
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: 12.5% 0, 37.5% 0, 62.5% 0, 87.5% 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100%;
}
@media (max-width: 479px) {
  body {
    background-image:
      linear-gradient(var(--line-mobile), var(--line-mobile)),
      linear-gradient(var(--line-mobile), var(--line-mobile)),
      linear-gradient(var(--line-mobile), var(--line-mobile)),
      linear-gradient(var(--line-mobile), var(--line-mobile));
  }
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

.stage {
  position: relative;
  margin: 0.9rem;
  min-height: 78vh;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: #1b2022;
}
.stage.is-home { min-height: 92vh; }
.stage-media,
.stage-media video,
.stage-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage.is-doctor .stage-media img {
  object-position: center 22%;
}

.stage-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 23, 24, 0.28) 0%, rgba(19, 23, 24, 0.72) 100%);
}
.stage-ui {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: 1.4rem 1.5rem 5.5rem;
  min-height: 78vh;
}
.stage.is-home .stage-ui { min-height: 92vh; }
.logo {
  justify-self: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.logo img { width: 148px; height: auto; margin: 0 auto; }
.corner {
  justify-self: start;
  align-self: center;
  margin-top: 1.6rem;
  background: none;
  border: 0;
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.45rem;
  cursor: pointer;
  padding: 0.4rem 0;
}
.corner.right { justify-self: end; }
.stage-copy {
  grid-column: 1 / -1;
  align-self: end;
  text-align: center;
  padding: 0 4vw 1.5rem;
}
.eyebrow, .stage-copy h1.page-title {
  margin: 0 0 0.8rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.3vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 5.15rem);
  line-height: 0.95;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.stage-copy h1.page-title.as-display {
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
}

.pop {
  position: absolute;
  top: 4.6rem;
  z-index: 5;
  background: rgba(19, 23, 24, 0.94);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  min-width: min(320px, 86vw);
  padding: 0.45rem;
  display: none;
}
.pop.open { display: grid; }
.pop.left { left: 1rem; }
.pop.right { right: 1rem; }
.pop a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
}
.pop a:hover { background: rgba(255,255,255,0.08); }
.pop strong { display: block; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }
.pop span, .pop small { display: block; color: #d5d5d5; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.02em; }

.menu-pill {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #1a1e20;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.menu-pill .bars {
  width: 0.95rem;
  display: grid;
  gap: 0.18rem;
}
.menu-pill .bars i {
  display: block;
  height: 1px;
  background: #fff;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(19, 23, 24, 0.94);
  color: #fff;
  display: none;
  padding: 5rem 8vw 6rem;
  overflow: auto;
}
.nav-overlay.open { display: block; }
.nav-overlay nav {
  display: grid;
  gap: 1.4rem 2rem;
  max-width: 920px;
  margin: 0 auto;
}
.nav-overlay nav > div {
  display: grid;
  gap: 0.55rem;
}
.nav-overlay a {
  display: block;
  font-weight: 300;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 0.15rem 0;
}
.nav-overlay a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }
.nav-overlay .sub {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid;
  gap: 0.45rem;
}
.nav-overlay .sub a { font-size: clamp(1.15rem, 2vw, 1.6rem); }
.nav-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
}

.watch {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  width: calc((100% - 2.3rem) * 0.75);
  max-width: 710px; /* 75% of previous 950px cap */
  margin: var(--section-gap) auto;
  grid-template-columns: auto 1fr;
}
.watch-open {
  width: 210px;
  height: 210px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  color: var(--ink);
}
.watch-open svg { width: 100%; height: 100%; }
.watch-open text {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 3px;
  fill: currentColor;
}
.play-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.watch-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  min-height: 220px;
}
.watch-frame video {
  width: 100%;
  height: min(52vw, 460px);
  object-fit: cover;
  background: #111;
}

.band {
  display: grid;
  width: calc((100% - 2.3rem) * 0.75);
  max-width: 1080px; /* ~75% of 1403px rendered at 1440 */
  margin: 0 auto;
  min-height: 380px;
  background: transparent; /* dark fill lives on .band-copy so photo/panel heights can differ */
  color: #fff;
}
.band + .band { margin-top: var(--section-gap); }
.band-copy {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
  background: var(--ink);
  color: #fff;
}
.band h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
}
.band p { margin: 0; max-width: 36rem; color: #e6e6e6; }
.band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: flex-start;
  margin-top: 0.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.3rem 0.35rem 0.3rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}
.pill .circ {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.pill.solid {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.pill.ghost { color: #fff; }

.quote-block, .panel {
  width: calc((100% - 2.3rem) * 0.75);
  max-width: 1080px;
  margin: var(--section-gap) auto;
  background: var(--ink);
  color: #f3f3f3;
  border-radius: 0;
  padding: clamp(1.6rem, 3vw, 2.5rem);
}
.panel {
  max-width: 1080px;
}
.quote-block h2, .panel h2 {
  margin: 0 0 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.quote-block p { font-size: 1.15rem; max-width: 48rem; }
.quote-block footer { color: #c8c8c8; font-family: "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }

.page-body {
  width: calc((100% - 2.3rem) * 0.75);
  max-width: 1080px;
  margin: 0 auto 4.5rem;
  padding-top: 1.5rem;
}
.page-body .wrap, .wrap { width: min(950px, 100%); margin-inline: auto; }
.page-body h2, .prose h2, .prose h3 {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.8rem; }
.prose h3 { font-size: 1.15rem; letter-spacing: 0.06em; }
.prose { max-width: 46rem; }
.crumbs { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs a { text-underline-offset: 0.2em; }
.note {
  background: #fff;
  border: 1px solid #cfcfd2;
  padding: 0.85rem 1rem;
}
blockquote.voice {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--ink);
}

.cards { display: grid; gap: var(--card-gap); }
.card {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(19,23,24,0.12);
  padding: 1.1rem 1.15rem 1.25rem;
}
.office-name, .card h2, .card h3 {
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hours { list-style: none; padding: 0; margin: 0.6rem 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(19,23,24,0.12);
  padding: 0.28rem 0;
  font-size: 0.95rem;
}
.actions, .card .actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.lede { font-size: 1.12rem; max-width: 40rem; }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.05rem; }
.steps li {
  background: rgba(255,255,255,0.62);
  padding: 0.85rem 1rem 0.85rem 3.4rem;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 0.85rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}
.article-list { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.article-list a {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(19,23,24,0.1);
  padding: 0.95rem 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.article-list span {
  display: block;
  margin-top: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #333;
}
.team-grid, .cards.three, .cards.two { display: grid; gap: var(--card-gap); }
.fine { color: #333; font-size: 0.95rem; }
form.contact { display: grid; gap: 0.55rem; max-width: 34rem; }
label { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #bdbdc2;
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
textarea { min-height: 8rem; }
.map-link { font-weight: 500; }

.site-foot {
  width: calc((100% - 1.8rem) * 0.75);
  max-width: 1080px;
  margin: var(--section-gap) auto 5.5rem;
  padding: 1.6rem 0.4rem 1rem;
  color: var(--ink);
}
.brand-once {
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
}
.foot-grid {
  display: grid;
  gap: 1.65rem;
}
.site-foot h2 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-foot p { margin: 0.15rem 0; }
.site-foot a { text-underline-offset: 0.15em; }
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(19,23,24,0.15);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; font-family: "JetBrains Mono", monospace; }

@media (max-width: 991px) {
  .watch,
  .band,
  .quote-block,
  .panel,
  .page-body {
    width: calc(100% - 2.3rem);
    max-width: none;
  }
  .site-foot {
    width: calc(100% - 1.8rem);
    max-width: none;
  }
  .band-copy,
  .quote-block,
  .panel {
    padding: clamp(1.6rem, 4vw, 3.2rem);
  }
}
@media (min-width: 800px) {
  .watch { grid-template-columns: 240px 1fr; }
  .cards.three, .team-grid, .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .nav-overlay nav { grid-template-columns: 1.3fr 0.8fr; }
  .nav-overlay .sub { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (max-width: 700px) {
  :root {
    --section-gap: 1.75rem;
    --card-gap: 1rem;
  }
  .watch { margin: 2rem auto 1.75rem; }
  .page-body { margin-bottom: 2.5rem; padding-top: 1rem; }
  .article-list { gap: 0.65rem; }
  .steps { gap: 0.8rem; }
  .foot-grid { gap: 1.2rem; }
  .team-list { gap: 1.75rem; }
  .stage { margin: 0.45rem; border-radius: 14px; min-height: 100svh; }
  .stage.is-home { min-height: 100svh; }
  .stage-ui, .stage.is-home .stage-ui { min-height: 100svh; padding: 1rem 0.8rem 5rem; }
  .stage.is-office { height: auto; min-height: 100svh; }
  .office-facts .hours-line { white-space: normal; }
  .logo img { width: 112px; }
  .corner {
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-top: 0.6rem;
    min-height: 44px;
    padding: 0.7rem 0.15rem;
    display: inline-flex;
    align-items: center;
  }
  .pill, .btn, button.btn { min-height: 44px; }
  .watch { grid-template-columns: 1fr; justify-items: center; }
  .watch-open { width: 170px; height: 170px; }
  .pop.left, .pop.right { left: 0.5rem; right: 0.5rem; }
}
@media (max-width: 480px) {
  .stage-ui, .stage.is-home .stage-ui {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .stage-ui .logo { grid-column: 1 / -1; grid-row: 1; }
  .stage-ui .corner { grid-row: 2; grid-column: 1; justify-self: start; }
  .stage-ui .corner.right { grid-column: 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.faq-list { display: grid; gap: var(--card-gap); max-width: 48rem; }
.faq-item {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(19,23,24,0.12);
  padding: 1.1rem 1.15rem 1.2rem;
}
.faq-item h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
}
.faq-item p { margin: 0; }

.stage.is-office {
  min-height: calc(100vh - 1.8rem);
  height: calc(100vh - 1.8rem);
}
.stage.is-office .stage-ui {
  min-height: 100%;
  height: 100%;
  padding: 1.15rem 1.4rem 4.75rem;
}
.stage.is-office .stage-copy { padding-bottom: 0.15rem; }
.office-facts { max-width: 52rem; margin-inline: auto; }
.office-facts h1.page-title.as-display {
  font-size: clamp(2rem, 4vw, 3.45rem);
  margin: 0 0 0.45rem;
}
.office-facts p { margin: 0.12rem 0; }
.office-facts a { color: #fff; }
.office-facts .addr,
.office-facts .hours-line,
.office-facts .phone-line {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}
.office-facts .hours-line { white-space: nowrap; }
.office-facts .book-row { margin-top: 0.75rem; }
.office-facts .pill { margin-top: 0; }
.panel a { color: #fff; }
.svc-links { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.7rem; }
.svc-links a { font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 700px) {
  .stage.is-office { height: auto; min-height: 100svh; }
  .stage.is-office .stage-ui { height: auto; min-height: 100svh; }
  .office-facts .hours-line { white-space: normal; }
}

.team-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:3rem}
.team-list img{width:100%;height:auto;display:block;margin-bottom:.75rem}

/* Homepage Locations menu: Downtown booking + phone grouped as one entry */
.pop .pop-group { display: grid; border-radius: inherit; }
.pop .pop-group > a:first-child { padding-bottom: 0.15rem; }
.pop .pop-group > a.pop-tel { padding-top: 0.15rem; color: #d5d5d5; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.02em; }

/* Locations menu: small calendar icon beside each "Book" label */
.pop strong.book-label { display: flex; align-items: center; gap: 6px; }
.pop .book-ico { width: 14px; height: 14px; flex: none; }

/* --------------------------------------------------------------------------
   2026-11-10 preview polish (CSS only)
   1) Uneven homepage band heights
   2) Homepage internal pill hover, matching /difference .btn:hover colors
   3) Footer legal links as icons / button / clean links
   4) Office info cards in site black
   -------------------------------------------------------------------------- */

/* 1. Homepage bands: organic, uneven heights on desktop; stack at 991px.
   The wrapper is transparent so the page gray and grid lines show in the
   gap where the shorter of the text panel or photo ends. */
@media (min-width: 992px) {
  .band {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .band.flip {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .band.flip .band-copy {
    order: 2;
  }
  .band-photo {
    overflow: hidden;
  }
  /* Only the four varied homepage bands shrink to their content; other bands keep the default min-height. */
  main > section.band:nth-of-type(2),
  main > section.band:nth-of-type(3),
  main > section.band:nth-of-type(4),
  main > section.band:nth-of-type(5) {
    min-height: 0;
  }

  /* Modern: dark text panel is two-thirds the photo height, vertically centered
     so the photo extends above and below the panel. */
  main > section.band:nth-of-type(2) .band-photo {
    height: 36rem;
  }
  main > section.band:nth-of-type(2) .band-copy {
    height: 24rem; /* 24 / 36 = 2/3 */
    align-self: center;
  }

  /* Skilled: text panel a bit taller than the photo (three doctor links),
     photo aligned to the top so gray shows under the image. */
  main > section.band:nth-of-type(3) .band-photo {
    height: 28rem;
    align-self: start;
  }
  main > section.band:nth-of-type(3) .band-copy {
    height: 33rem;
    align-self: start;
    justify-content: center;
  }

  /* Advanced: photo taller than the panel; panel aligned to the top so the
     photo extends below it. */
  main > section.band:nth-of-type(4) .band-photo {
    height: 34rem;
  }
  main > section.band:nth-of-type(4) .band-copy {
    height: 25rem;
    align-self: start;
  }

  /* Streamlined: patient-walking photo clearly taller; panel sits at the
     bottom so the photo extends above the text box. */
  main > section.band:nth-of-type(5) .band-photo {
    height: 42rem;
  }
  main > section.band:nth-of-type(5) .band-copy {
    height: 26rem;
    align-self: end;
  }
}

@media (max-width: 991px) {
  .band,
  .band.flip {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: stretch;
  }
  .band.flip .band-copy {
    order: 0;
  }
  main > section.band:nth-of-type(2) .band-copy,
  main > section.band:nth-of-type(2) .band-photo,
  main > section.band:nth-of-type(3) .band-copy,
  main > section.band:nth-of-type(3) .band-photo,
  main > section.band:nth-of-type(4) .band-copy,
  main > section.band:nth-of-type(4) .band-photo,
  main > section.band:nth-of-type(5) .band-copy,
  main > section.band:nth-of-type(5) .band-photo {
    height: auto;
    align-self: stretch;
  }
  .band-photo img {
    height: auto;
    min-height: 240px;
  }
}

/* 2. Homepage internal-link pills invert on hover, reusing /difference
      .btn:hover colors: background var(--ink) (#131718) and color #fff.
      On the dark bands the resting state is already white-on-ink, so the
      inverted hover swaps those same two colors (white fill, ink text). */
.band a.pill[href^="/"] {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.band a.pill[href^="/"]:hover,
.band a.pill[href^="/"]:focus-visible {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* Footer tagline: 1.5rem more space below so it does not sit on the office labels. */
.site-foot .brand-once {
  margin-bottom: 2.7rem; /* 1.2rem original + 1.5rem */
}

/* 3. Footer legal row: icon buttons, FAQ pill, clean text links. */
.site-foot .legal {
  align-items: center;
}
.site-foot .legal a[href*="facebook"],
.site-foot .legal a[href*="instagram"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.15rem;
  text-decoration: none;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-foot .legal a[href*="facebook"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23131718%22 d=%22M14 8h3V4h-3c-2.2 0-4 1.8-4 4v2H8v4h2v8h4v-8h3l1-4h-4V8c0-.6.4-1 1-1z%22/%3E%3C/svg%3E");
}
.site-foot .legal a[href*="instagram"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23131718%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Ccircle cx=%2217.4%22 cy=%226.6%22 r=%221.05%22 fill=%22%23131718%22 stroke=%22none%22/%3E%3C/svg%3E");
}
.site-foot .legal a[href*="facebook"]:hover,
.site-foot .legal a[href*="facebook"]:focus-visible {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23fff%22 d=%22M14 8h3V4h-3c-2.2 0-4 1.8-4 4v2H8v4h2v8h4v-8h3l1-4h-4V8c0-.6.4-1 1-1z%22/%3E%3C/svg%3E");
}
.site-foot .legal a[href*="instagram"]:hover,
.site-foot .legal a[href*="instagram"]:focus-visible {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Ccircle cx=%2217.4%22 cy=%226.6%22 r=%221.05%22 fill=%22%23fff%22 stroke=%22none%22/%3E%3C/svg%3E");
}
.site-foot .legal a[href*="facebook"]:focus-visible,
.site-foot .legal a[href*="instagram"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.site-foot .legal a[href="/faq/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.site-foot .legal a[href="/faq/"]:hover,
.site-foot .legal a[href="/faq/"]:focus-visible {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.site-foot .legal a[href*="indeed"],
.site-foot .legal a[href*="privacy-policy"],
.site-foot .legal a[href*="terms-and-conditions"] {
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.site-foot .legal a[href*="indeed"]:hover,
.site-foot .legal a[href*="indeed"]:focus-visible,
.site-foot .legal a[href*="privacy-policy"]:hover,
.site-foot .legal a[href*="privacy-policy"]:focus-visible,
.site-foot .legal a[href*="terms-and-conditions"]:hover,
.site-foot .legal a[href*="terms-and-conditions"]:focus-visible {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .site-foot .legal a[href*="facebook"],
  .site-foot .legal a[href*="instagram"],
  .site-foot .legal a[href="/faq/"] {
    min-height: 44px;
  }
  .site-foot .legal a[href*="facebook"],
  .site-foot .legal a[href*="instagram"] {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
}

/* 4. Office info blocks (cards with .office-name) use the site black, --ink #131718.
      Text, links and buttons invert for contrast. */
.card:has(.office-name) {
  background: var(--ink);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.card:has(.office-name) a {
  color: #fff;
}
.card:has(.office-name) .fine {
  color: #e6e6e6;
}
.card:has(.office-name) .hours li {
  border-top-color: rgba(255, 255, 255, 0.2);
}
.card:has(.office-name) .btn,
.card:has(.office-name) .btn.btn-line {
  color: #fff;
  border-color: #fff;
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.card:has(.office-name) .btn:hover,
.card:has(.office-name) .btn:focus-visible,
.card:has(.office-name) .btn.btn-line:hover,
.card:has(.office-name) .btn.btn-line:focus-visible {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* Office location map (Leaflet + OpenStreetMap, no API key) */
.office-map-wrap {
  margin: 1.2rem 0 1.6rem;
}
.office-map {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--muted);
  border: 1px solid rgba(19, 23, 24, 0.12);
}
.office-map-caption {
  margin: 0.65rem 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: #333;
}
.office-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: "Outfit", "Segoe UI", sans-serif;
  background: var(--muted);
}
.office-map .leaflet-popup-content-wrapper {
  border-radius: 10px;
  color: var(--ink);
}
.office-map .leaflet-popup-content {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0.7rem 0.85rem;
}
.office-map .leaflet-popup-content strong {
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}
.office-map .leaflet-popup-content a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}
@media (max-width: 700px) {
  .office-map {
    border-radius: 14px;
  }
  .office-map .leaflet-popup-content {
    margin: 0.55rem 0.7rem;
    font-size: 0.88rem;
    max-width: 200px;
  }
}

/* ---- Nov 15 2026: S8E8 photography placed to mirror the live site ---- */
.card.has-photo { display: flex; flex-direction: column; }
.card-photo { margin: -1.1rem -1.15rem 1rem; aspect-ratio: 3 / 2; overflow: hidden; background: #0E272F; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prose-photo { margin: 2rem 0 1.5rem; aspect-ratio: 16 / 10; overflow: hidden; background: #0E272F; }
.prose-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.media-split { display: grid; gap: var(--card-gap, 1rem); align-items: stretch; }
.media-split .card { max-width: none !important; }
.split-photo { margin: 0; overflow: hidden; min-height: 260px; background: #0E272F; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 992px) { .media-split { grid-template-columns: 1.1fr 0.9fr; } }
.article-list a.has-thumb { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.article-thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (min-width: 700px) {
  .article-list a.has-thumb { grid-template-columns: 220px 1fr; align-items: center; column-gap: 1.1rem; }
  .article-list a.has-thumb .article-thumb { grid-row: 1 / span 2; }
}

/* ---- Nov 15 2026: doctor profile headers (tablet/desktop) — photo beside the text, never under it ---- */
@media (min-width: 701px) {
  .stage.is-office.is-doctor {
    background: #0E272F;
    min-height: 0;
    height: min(calc(100vh - 1.8rem), 70vw);
  }
  .stage.is-doctor .stage-media { left: 50%; right: 0; width: 50%; }
  .stage.is-doctor .stage-media img { object-position: center 18%; }
  .stage.is-doctor .stage-media img[src*="jana"] { object-position: 62% 30%; }
  .stage.is-doctor .stage-media img[src*="snipes"] { object-position: center 12%; }
  .stage.is-doctor .stage-shade {
    background: linear-gradient(180deg, rgba(14, 39, 47, 0.45) 0%, rgba(14, 39, 47, 0) 22%);
  }
  .stage.is-office.is-doctor .stage-ui { height: 100%; min-height: 100%; }
  .stage.is-doctor .stage-copy.office-facts {
    grid-column: 1 / -1;
    justify-self: start;
    align-self: center;
    width: 50%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding: 0 3.5vw 0 2vw;
    text-align: center;
  }
  .stage.is-doctor .office-facts h1.page-title.as-display { font-size: clamp(1.7rem, 3.4vw, 3.2rem); }
  .stage.is-doctor .office-facts .hours-line,
  .stage.is-doctor .office-facts .addr { white-space: normal; }
}

/* ---- Nov 15 2026: Services menu group + new service pages ---- */
.nav-overlay .nav-label {
  margin: 0 0 0.2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.nav-overlay .nav-services { gap: 0.3rem; }
.nav-overlay .nav-services a {
  font-size: clamp(0.98rem, 1.45vw, 1.2rem);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
@media (min-width: 800px) {
  .nav-overlay nav {
    grid-template-areas: "main svc" "main sub";
    align-items: start;
  }
  .nav-overlay nav > div:first-child { grid-area: main; }
  .nav-overlay nav > .nav-services { grid-area: svc; }
  .nav-overlay nav > .sub:not(.nav-services) { grid-area: sub; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.15); }
}
.faq-item h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
}
.prose .faq-list { margin: 0.6rem 0 1.6rem; }
.cards.one { display: grid; max-width: 26rem; }
.feature-3d { border-left: 4px solid #14454F; }
.feature-3d h2 { margin-top: 0.2rem; }
.pill.ghost.dark { color: #0E272F; }

/* Hero with a visible caption under it (AI illustration disclosure) */
.stage.has-caption { overflow: visible; margin-bottom: 2.4rem; }
.stage.has-caption .stage-media { margin: 0; border-radius: inherit; }
.stage.has-caption .stage-media img,
.stage.has-caption .stage-shade { border-radius: inherit; }
.stage-caption {
  position: absolute;
  top: 100%;
  right: 0.2rem;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #4a5154;
}
.stage-figure img[src*="3dprint-illus"] { object-position: 10% center; }

/* Location H1: "Dentist in" kicker above the town name */
.page-title .h1-kicker { display: block; font-size: 0.34em; letter-spacing: 0.16em; line-height: 1.2; margin-bottom: 0.35em; opacity: 0.92; }
