/* =========================================================
   Dr Phillips Dental Care — main stylesheet
   ========================================================= */

:root {
  --navy: #13294b;
  --navy-dark: #0d1d36;
  --navy-hover: #1c3863;
  --slate: #5d7c9c;
  --ink: #1b2536;
  --bg: #f6f4ef;
  --cream: #efece5;
  --cream-hover: #e8e4db;
  --white: #ffffff;
  --off-white: #fafaf9;
  --border: #e4e2dc;
  --border-warm: #e2ded5;
  --border-soft: #ebe8e1;
  --muted: #4a5466;
  --muted-2: #5b6577;
  --blue-1: #9fb3c9;
  --blue-2: #b9c8d9;
  --blue-3: #c9d3e2;
  --blue-4: #e3e8ef;
  --footer-muted: #8fa1ba;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Montserrat, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s;
}

a:hover {
  color: var(--slate);
}

input,
select,
textarea,
button {
  font-family: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
}

em {
  font-style: italic;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Eyebrow labels */
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--slate);
}

.eyebrow-light {
  color: var(--blue-2);
}

/* Buttons */
.btn {
  display: inline-block;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--slate);
  color: var(--white);
}

.btn-slate {
  background: var(--slate);
  color: var(--white);
}

.btn-slate:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: #dfe6ee;
  color: var(--navy);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .6);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-block {
  display: block;
  width: 100%;
}

.text-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}

.text-link:hover {
  color: var(--slate);
}

/* Image placeholders (swap for <img> when photos are ready) */
.img-slot {
  position: relative;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, #d9d6cf 0 10px, #e2dfd8 10px 20px);
  overflow: hidden;
}

.img-slot::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #7a8394;
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-slot:has(img)::after {
  display: none;
}

.img-slot-dark {
  background: repeating-linear-gradient(135deg, #1c2f4d 0 10px, #213658 10px 20px);
}

.img-slot-dark::after {
  color: #8fa1ba;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px 32px;
}

/* =========================================================
   Utility bar
   ========================================================= */
.utility {
  background: var(--navy-dark);
  color: var(--blue-3);
  font-size: 11px;
  letter-spacing: .08em;
}

.utility-inner {
  max-width: 1440px;
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  align-items: center;
}

.utility a {
  color: var(--blue-3);
  white-space: nowrap;
}

.utility a:hover {
  color: var(--white);
}

.utility-right {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  align-items: center;
}

.utility-right span {
  white-space: nowrap;
}

.utility .utility-phone {
  color: var(--white);
  font-weight: 600;
}

/* Language switcher (Google Translate) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lang-switch span {
  opacity: .5;
}

.lang-switch button {
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--blue-3);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.lang-switch button:hover {
  color: var(--white);
}

.lang-switch button.active {
  color: var(--white);
  font-weight: 600;
  border-bottom-color: rgba(255, 255, 255, .6);
}

/* Hide Google Translate's own toolbar, tooltips and highlight so the site looks normal */
body>.skiptranslate,
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

font[style] {
  background: none !important;
  box-shadow: none !important;
}

/* =========================================================
   Header + mega menu
   ========================================================= */
.site-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -20px rgba(13, 29, 54, .35);
}

.header-inner {
  max-width: 1440px;
  padding-top: 6px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  flex-shrink: 0;
  display: block;
}

.logo img {
  height: 88px;
  width: auto;
  mix-blend-mode: multiply;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-top {
  padding: 34px 12px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.nav-top::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 26px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}

.nav-item:hover>.nav-top,
.nav-item:focus-within>.nav-top {
  color: var(--slate);
}

.nav-item.active>.nav-top::after,
.nav-item:hover>.nav-top::after {
  transform: scaleX(1);
}

.nav-item.active>.nav-top {
  color: var(--slate);
}

.nav-caret {
  font-size: 8px;
  opacity: .6;
  transition: transform .3s;
}

.nav-item:hover .nav-caret {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 600px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--navy);
  box-shadow: 0 30px 60px -24px rgba(13, 29, 54, .3);
  padding: 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}

.nav-item.mega-right .mega {
  left: auto;
  right: 0;
  transform: translate(0, 10px);
}

/* First menu opens to the right so it never goes past the left edge of the screen */
.nav-item.mega-left .mega {
  left: 0;
  transform: translate(0, 10px);
}

.nav-item.has-mega:hover .mega,
.nav-item.has-mega:focus-within .mega,
.nav-item.has-mega.open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}

.nav-item.mega-right.has-mega:hover .mega,
.nav-item.mega-right.has-mega:focus-within .mega,
.nav-item.mega-right.has-mega.open .mega,
.nav-item.mega-left.has-mega:hover .mega,
.nav-item.mega-left.has-mega:focus-within .mega,
.nav-item.mega-left.has-mega.open .mega {
  transform: translate(0, 0);
}

/* Section title */
/* Links */
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  padding: 14px 16px 16px;
}

.mega-item>a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  transition: background-color .2s, color .2s;
}

.mega-item>a::after {
  content: '→';
  font-size: 12px;
  color: var(--slate);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}

.mega-item>a:hover,
.mega-item>a:focus-visible {
  background: var(--bg);
  color: var(--navy);
}

.mega-item>a:hover::after,
.mega-item>a:focus-visible::after {
  opacity: 1;
  transform: none;
}

.mega-item>a.current {
  color: var(--navy);
  font-weight: 600;
  background: var(--bg);
}

.mega-item>a.current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--navy);
}

/* Items with sub-pages (e.g. Care and Comfort) */
.mega-item.has-sub>a {
  font-weight: 600;
  color: var(--navy);
}

.mega-sub {
  margin: 2px 0 8px 12px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.mega-sub a {
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--muted-2);
  transition: background-color .2s, color .2s;
}

.mega-sub a:hover,
.mega-sub a:focus-visible,
.mega-sub a.current {
  background: var(--bg);
  color: var(--navy);
}

.mega-sub a.current {
  font-weight: 600;
}

/* Mouse users: sub-pages open as a fly-out when hovering the parent.
   They open to the right (or to the left if there's no room on screen).
   Touch screens keep the list above. */
@media (hover: hover) {
  .mega-item.has-sub {
    position: relative;
  }

  .mega-item.has-sub>a::after {
    content: '›';
    font-size: 17px;
    line-height: 1;
    opacity: 1;
    transform: none;
  }

  .mega-item.has-sub:hover>a,
  .mega-item.has-sub:focus-within>a {
    background: var(--bg);
  }

  .mega-sub {
    position: absolute;
    top: -8px;
    left: 100%;
    z-index: 2;
    min-width: 240px;
    margin: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 2px solid var(--navy);
    box-shadow: 0 22px 44px -20px rgba(13, 29, 54, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }

  .mega-sub a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .mega-item.has-sub:hover>.mega-sub,
  .mega-item.has-sub:focus-within>.mega-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
  }

  /* Fly-outs open to the right. js/main.js adds .flip only when one would run past
     the right edge of the screen, so it opens to the left instead. */
  .mega-item.has-sub.flip>.mega-sub {
    left: auto;
    right: 100%;
    border-left: 1px solid var(--border);
    border-right: 2px solid var(--navy);
    transform: translateX(6px);
  }

  .mega-item.has-sub.flip:hover>.mega-sub,
  .mega-item.has-sub.flip:focus-within>.mega-sub {
    transform: none;
  }
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.header-actions .btn {
  padding: 13px 22px;
  letter-spacing: .12em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: background-color .25s;
}

.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  transition: background-color .25s;
}

.nav-toggle:hover {
  background: var(--navy);
}

.nav-toggle:hover span {
  background: var(--white);
}

/* =========================================================
   Mobile drawer (≤1199px)
   ========================================================= */
.mnav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 29, 54, .5);
  z-index: 90;
  opacity: 0;
  transition: opacity .35s;
}

.mnav-overlay.show {
  opacity: 1;
}

.mnav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 88vw);
  background: var(--off-white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  box-shadow: -20px 0 50px -20px rgba(13, 29, 54, .4);
  visibility: hidden;
}

.mnav.open {
  transform: translateX(0);
  visibility: visible;
}

.mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.mnav-logo img {
  height: 60px;
  width: auto;
  mix-blend-mode: multiply;
}

.mnav-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mnav-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
  stroke-width: 1.6;
  fill: none;
}

.mnav-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 20px;
}

.mnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mnav-list>li {
  border-bottom: 1px solid var(--border-soft);
}

.mnav-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.mnav-link.active {
  color: var(--slate);
}

.mnav-chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s;
}

.mnav-group.open>.mnav-toggle .mnav-chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.mnav-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}

.mnav-group.open .mnav-sub {
  grid-template-rows: 1fr;
}

.mnav-sub-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mnav-sub-inner a {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 0;
}

/* Space under the last link (a margin, so a closed section still collapses fully) */
.mnav-sub-inner>:last-child {
  margin-bottom: 12px;
}

.mnav-sub-inner a:hover,
.mnav-sub-inner a.current {
  color: var(--navy);
}

.mnav-sub-inner a.current {
  font-weight: 600;
}

.mnav-sub-inner .mnav-all {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  padding-top: 0;
}

/* Parent with sub-pages (e.g. Dental Implants): name + small arrow; sub-pages slide open */
.mnav-kid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mnav-kid-row a {
  flex: 1;
  font-weight: 600;
  color: var(--navy);
}

.mnav-kid-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.mnav-kid-toggle:hover,
.mnav-kid.open .mnav-kid-toggle {
  background: var(--cream);
  border-color: var(--border-warm);
}

.mnav-kid-toggle .mnav-chevron {
  width: 7px;
  height: 7px;
}

.mnav-kid.open .mnav-kid-toggle .mnav-chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.mnav-grands {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}

.mnav-kid.open .mnav-grands {
  grid-template-rows: 1fr;
}

.mnav-grands-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-left: 2px;
  padding-left: 14px;
  border-left: 1px solid #dfe4ea;
}

.mnav-sub-inner .mnav-grand {
  font-size: 12.5px;
  color: var(--muted-2);
}

.mnav-kid.open .mnav-grands-inner {
  margin-bottom: 6px;
}

.mnav-foot {
  padding: 18px 20px 24px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
}

body.mnav-locked {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Used by js/main.js for a moment while checking whether the menu fits */
.nav-measuring .mega {
  display: none;
}

/* Set by js/main.js when the full menu doesn't fit (e.g. after translation) */
.nav-collapsed .main-nav {
  display: none;
}

.nav-collapsed .nav-toggle {
  display: flex;
}

/* =========================================================
   Home — hero
   ========================================================= */
.hero {
  position: relative;
  height: 680px;
  background: #1c2f4d;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media .img-slot {
  animation: heroZoom 14s ease-out both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 29, 54, .82) 0%, rgba(13, 29, 54, .55) 45%, rgba(13, 29, 54, 0) 80%);
}

.hero-inner {
  position: relative;
  max-width: 1440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.04;
  color: var(--white);
  max-width: 760px;
}

/* Hero slider lines: one line at a time, fading in turn (4 lines, 5s each) */
.hero .hero-lines {
  position: relative;
  display: grid;
  max-width: 520px;
  margin: 24px 0 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--blue-4);
}

.hero-lines span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: heroLine 20s infinite;
}

.hero-lines span:nth-child(2) {
  animation-delay: 5s;
}

.hero-lines span:nth-child(3) {
  animation-delay: 10s;
}

.hero-lines span:nth-child(4) {
  animation-delay: 15s;
}

@keyframes heroLine {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  4% {
    opacity: 1;
    transform: none;
  }

  22% {
    opacity: 1;
    transform: none;
  }

  25% {
    opacity: 0;
    transform: translateY(-6px);
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lines span {
    animation: none;
  }

  .hero-lines span:first-child {
    opacity: 1;
  }
}

.hero p {
  margin: 24px 0 36px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--blue-4);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 15px 26px;
}

.hero-anim>* {
  opacity: 0;
  animation: heroUp .9s var(--ease) forwards;
}

.hero-anim>*:nth-child(1) {
  animation-delay: .15s;
}

.hero-anim>*:nth-child(2) {
  animation-delay: .3s;
}

.hero-anim>*:nth-child(3) {
  animation-delay: .45s;
}

.hero-anim>*:nth-child(4) {
  animation-delay: .6s;
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

/* Feature strip */
.features {
  background: var(--cream);
  border-bottom: 1px solid var(--border-warm);
}

.features-inner {
  max-width: 1440px;
  padding-top: 44px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature {
  display: block;
  text-align: center;
  padding: 10px 20px;
  border-left: 1px solid #dcd7cc;
  color: inherit;
}

.feature:hover {
  background: var(--cream-hover);
  color: inherit;
}

.feature-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--slate);
  line-height: 1;
}

.feature-title {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}

.feature-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
}

/* Experience */
.experience {
  background: var(--off-white);
}

.experience-inner {
  padding-top: 120px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 72px;
  align-items: center;
}

.experience-copy {
  max-width: 520px;
}

.experience h2 {
  margin: 16px 0 24px;
  font-size: 48px;
  line-height: 1.08;
}

.experience p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  text-wrap: pretty;
}

.experience p:last-of-type {
  margin-bottom: 30px;
}

.experience p a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.experience-media {
  height: 440px;
  box-shadow: 0 40px 60px -40px rgba(13, 29, 54, .4);
}

/* Section headings */
.section-title {
  margin: 14px 0 0;
  font-size: 48px;
  line-height: 1.05;
}

.section-title em {
  color: inherit;
}

.center {
  text-align: center;
}

/* Services bento */
.services {
  background: var(--cream);
}

.services-inner {
  padding-top: 110px;
  padding-bottom: 110px;
}

.services-head {
  margin-bottom: 40px;
}

.services-head p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.services-head p+p {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 500;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 170px;
  gap: 14px;
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento>.tile:last-child {
    grid-column: span 2;
  }
}

.tile {
  background: var(--white);
  border: 1px solid var(--border-warm);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}

.tile:hover {
  border-color: var(--navy);
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -30px rgba(13, 29, 54, .5);
}

.tile-cat {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--slate);
}

.tile-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  color: var(--navy);
}

.tile-feature {
  grid-row: span 2;
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  padding: 36px;
  justify-content: flex-end;
}

.tile-feature:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.tile-feature .tile-cat {
  color: var(--blue-1);
  margin-bottom: auto;
}

.tile-feature .tile-title {
  font-size: 44px;
  line-height: 1;
  color: var(--white);
}

.tile-arrow {
  margin-top: 22px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color .25s, transform .25s;
}

.tile-feature:hover .tile-arrow {
  background: rgba(255, 255, 255, .12);
  transform: translateX(4px);
}

/* Doctors */
.doctors {
  background: var(--off-white);
}

.doctors-inner {
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: center;
}

.doctors h2 {
  margin: 14px 0 52px;
  font-size: 52px;
}

.doctors h2 em,
.reviews h2 em {
  color: var(--slate);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.doctor {
  display: block;
  background: var(--navy);
  box-shadow: 0 30px 50px -36px rgba(13, 29, 54, .6);
  color: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s;
}

.doctor:hover {
  transform: translateY(-4px);
  color: var(--white);
  box-shadow: 0 40px 60px -36px rgba(13, 29, 54, .7);
}

.doctor-photo {
  height: 360px;
  background: #e6e3dc;
  overflow: hidden;
}

.doctor-photo .img-slot {
  transition: transform .6s var(--ease);
}

.doctor-photo img {
  object-position: center top;
}

.request-bg img {
  object-position: center 40%;
}

.hero-media img {
  object-position: center 30%;
}

.doctor:hover .doctor-photo .img-slot {
  transform: scale(1.04);
}

.doctor-info {
  padding: 24px 20px 26px;
}

.doctor-name {
  font-family: var(--serif);
  font-size: 24px;
}

.doctor-cred {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--blue-1);
}

.doctors .btn {
  margin-top: 44px;
}

/* New patients band */
.np-band {
  background: var(--navy);
  color: var(--white);
}

.np-inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.np-band .eyebrow {
  color: var(--blue-1);
}

.np-band h2 {
  margin: 12px 0 0;
  font-size: 42px;
  line-height: 1.05;
  color: var(--white);
}

.np-band h2 em {
  color: var(--blue-2);
}

.np-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}

.np-links a {
  background: var(--navy);
  padding: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.np-links a span {
  color: var(--blue-1);
  transition: transform .25s;
}

.np-links a:hover {
  background: var(--navy-hover);
  color: var(--white);
}

.np-links a:hover span {
  transform: translateX(4px);
}

/* Reviews */
.reviews {
  background: var(--off-white);
}

.reviews-inner {
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: center;
}

.reviews h2 {
  margin: 14px 0 18px;
  font-size: 48px;
}

.reviews-intro {
  margin: 0 auto 40px;
  max-width: 600px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.reviews-inner {
  padding-bottom: 0;
}

.reviews-intro {
  margin-bottom: 48px;
}

.reviews-foot {
  padding-top: 0;
  padding-bottom: 110px;
}

/* Review cards */
.review-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border-warm);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  transition: border-color .25s, box-shadow .3s;
}

.review-card:hover {
  border-color: var(--navy);
  box-shadow: 0 24px 44px -32px rgba(13, 29, 54, .45);
}

.review-stars {
  color: #c9a24a;
  font-size: 15px;
  letter-spacing: .18em;
}

.review-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.review-text {
  --lines: 6;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  height: calc(1.5em * var(--lines));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines);
  overflow: hidden;
}

.review-card.expanded .review-text {
  display: block;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-1) transparent;
}

.review-card.expanded .review-text::-webkit-scrollbar {
  width: 4px;
}

.review-card.expanded .review-text::-webkit-scrollbar-thumb {
  background: var(--blue-1);
}

.review-more {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

.review-more:hover {
  color: var(--navy);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 20px;
}

.review-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.review-meta {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Slider */
.slider {
  --per-view: 3;
  --gap: 20px;
}

.slider-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 10px;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}

.slider-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.slider-btn:disabled {
  opacity: .3;
  cursor: default;
  background: transparent;
  color: var(--navy);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #cfd6df;
  transition: width .25s, background-color .25s;
}

.slider-dot.active {
  width: 26px;
  background: var(--navy);
}

@media (max-width: 960px) {
  .slider {
    --per-view: 2;
  }
}

@media (max-width: 640px) {
  .slider {
    --per-view: 1;
  }
}

.reviews-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.reviews-actions .btn {
  padding: 14px 24px;
}

/* =========================================================
   Interior pages
   ========================================================= */
.page-hero {
  background: var(--navy);
  color: var(--white);
}

.page-hero-inner {
  padding-top: 64px;
  padding-bottom: 70px;
}

.crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: flex;
  gap: 10px;
}

.crumbs li+li::before {
  content: '/';
  opacity: .5;
}

.crumbs a {
  color: var(--blue-1);
}

.crumbs a:hover {
  color: var(--white);
}

.page-hero h1 {
  margin: 26px 0 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.02;
  color: var(--white);
}

.page-hero-anim>* {
  opacity: 0;
  animation: heroUp .8s var(--ease) forwards;
}

.page-hero-anim>*:nth-child(2) {
  animation-delay: .15s;
}

.page-body {
  background: var(--off-white);
}

.page-body-inner {
  padding-top: 72px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.page-body-inner.no-side {
  grid-template-columns: minmax(0, 1fr);
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.page-feature {
  height: 380px;
}

.page-copy {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.page-copy h2 {
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.page-copy p {
  margin: 0 0 16px;
}

.page-copy-placeholder {
  border: 1px dashed #c9cfd8;
  background: var(--white);
  padding: 32px;
}

.page-copy-placeholder .note {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #7a8394;
  margin-bottom: 22px;
}

.page-copy-placeholder .lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-copy-placeholder .lines span {
  height: 10px;
  background: #eceae5;
}

.related .eyebrow {
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border-warm);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  min-height: 110px;
  transition: border-color .25s, transform .3s var(--ease);
}

.related-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
}

.related-card strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  color: var(--navy);
}

.related-card span {
  color: var(--slate);
  transition: transform .25s;
}

.related-card:hover span {
  transform: translateX(4px);
}

/* =========================================================
   Request a visit (shared)
   ========================================================= */
.request {
  position: relative;
  background: #1c2f4d;
  overflow: hidden;
}

.request-bg {
  position: absolute;
  inset: 0;
}

.request-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 29, 54, .15) 0%, rgba(13, 29, 54, .75) 70%);
}

.request-inner {
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  align-items: center;
}

.request-card {
  background: var(--off-white);
  padding: 40px 36px;
  max-width: 660px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .6);
}

.request-title {
  margin: 10px 0 26px;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--navy);
  font-weight: 400;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-form .eyebrow+.request-title {
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.field input,
.field select,
.field textarea {
  border: 1px solid #dcd8cf;
  background: var(--white);
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 4px;
  color: var(--ink);
  min-width: 0;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(93, 124, 156, .15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-error {
  display: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #b3261e;
}

.field.invalid input {
  border-color: #b3261e;
}

.field.invalid .field-error {
  display: block;
}

.form-send-error {
  display: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #b3261e;
}

.request-form.send-failed .form-send-error {
  display: block;
}

.request-form .btn-block {
  margin-top: 6px;
  padding: 16px;
  letter-spacing: .16em;
}

.request-form .btn-block[disabled] {
  opacity: .6;
  cursor: wait;
}

.request-thanks {
  padding: 40px 0;
  text-align: center;
}

.request-thanks .request-title {
  font-size: 36px;
  margin: 0;
}

.request-thanks p {
  margin: 12px auto 24px;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--navy);
}

.request-copy {
  color: var(--white);
}

.request-copy h2 {
  margin: 14px 0 20px;
  font-style: italic;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.02;
  color: var(--white);
}

.request-copy p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--blue-4);
  max-width: 480px;
}

.request-copy a {
  color: var(--white);
  font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-dark);
  color: var(--blue-3);
}

/* Brand + contact row */
.footer-top {
  padding-top: 36px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(201, 211, 226, .14);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  display: inline-block;
  width: 128px;
  background: var(--off-white);
  padding: 8px 12px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.footer-tagline {
  margin: 14px 0 6px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.15;
  color: var(--white);
}

.footer-tagline em {
  color: var(--blue-2);
}

.footer-note {
  margin: 0 0 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--footer-muted);
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-left: 28px;
  border-left: 1px solid rgba(201, 211, 226, .14);
}

.footer-contact {
  gap: 22px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-1);
}

.footer-info-main {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
}

.footer-info-main:hover {
  color: var(--blue-2);
}

.footer-phone {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.1;
  color: var(--white);
}

.footer-phone:hover {
  color: var(--blue-2);
}

.footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(201, 211, 226, .16);
}

.footer-hours li:last-child {
  border-bottom: 0;
}

.footer-hours span {
  color: var(--footer-muted);
  white-space: nowrap;
}

.footer-hours strong {
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

/* Square map (last column of the contact row) */
.footer-map-box {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(201, 211, 226, .2);
  overflow: hidden;
}

.footer-map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.85) contrast(1.05);
  transition: filter .5s;
}

.footer-map:hover {
  filter: none;
}

/* Social media icons */
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-links-footer a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 211, 226, .3);
  color: var(--blue-3);
}

.social-links-footer svg {
  width: 15px;
  height: 15px;
}

.social-links-footer a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.social-links-mnav {
  justify-content: center;
  margin-top: 4px;
}

.social-links-mnav a {
  border: 1px solid var(--border-warm);
  color: var(--navy);
}

.social-links-mnav a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Site links */
.footer-links {
  padding-top: 40px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-col a {
  font-size: 12.5px;
  color: #a9b7ca;
  transition: color .2s, transform .2s;
}

.footer-col a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-col .footer-col-title {
  position: relative;
  margin-bottom: 6px;
  padding-bottom: 9px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
  color: var(--white);
}

.footer-col .footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: var(--slate);
}

.footer-col .footer-col-title:hover {
  color: var(--blue-2);
  transform: none;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(201, 211, 226, .14);
}

.footer-bottom-inner {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--footer-muted);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

@media (max-width: 1150px) {

  /* Tablet: logo on top, then Visit/Call | Office Hours, then a wide map */
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-map-box {
    grid-column: 1 / -1;
  }

  .footer-map-box {
    aspect-ratio: 21 / 9;
  }

  .footer-info:nth-child(2) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   Legal pages (Privacy Policy, Terms & Conditions)
   ========================================================= */
.legal-content {
  padding-top: 72px;
  padding-bottom: 100px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.legal-updated {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 24px;
}

.legal-content h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}

.legal-content h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 28px 0 8px;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li::marker {
  color: var(--slate);
}

.legal-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--blue-1);
}

.legal-content a:hover {
  color: var(--slate);
}

@media (max-width: 760px) {
  .legal-content {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .legal-content h2 {
    font-size: 26px;
    margin-top: 36px;
    padding-top: 22px;
  }
}

/* =========================================================
   Contact Us page
   ========================================================= */
.page-hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-call svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-grid {
  padding-top: 72px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Office details (navy card) */
.contact-details {
  position: sticky;
  top: 130px;
  background: var(--navy);
  color: var(--blue-3);
  padding: 40px 36px;
  box-shadow: 0 40px 70px -45px rgba(13, 29, 54, .7);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-1);
}

.contact-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-1);
}

.contact-details .contact-details-intro {
  margin: 22px 0 30px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--white);
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.contact-row>div {
  min-width: 0;
}

.contact-row-wide {
  flex: 1;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-1);
}

.contact-details p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--blue-3);
}

.contact-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}

.contact-link:hover {
  color: var(--blue-2);
}

.contact-phone {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  color: var(--white);
}

.contact-phone:hover {
  color: var(--blue-2);
}

.contact-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.9;
}

.contact-hours-row span {
  color: var(--blue-3);
}

.contact-hours-row strong {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

/* Form card */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-warm);
  padding: 44px 48px;
  box-shadow: 0 30px 60px -45px rgba(13, 29, 54, .35);
}

.contact-form-card h2 {
  margin: 12px 0 10px;
  font-size: 40px;
  line-height: 1.1;
}

.contact-form-text {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-consent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--border-warm);
}

.consent-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
  cursor: pointer;
}

.consent-check input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.contact-policies {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
}

.contact-policies a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Same consent box inside the home page "Request Your Visit" card */
.request-form .contact-consent {
  padding: 14px 16px;
  gap: 12px;
}

.contact-form.send-failed .form-send-error {
  display: block;
}

.contact-submit {
  align-self: flex-start;
  padding: 16px 30px;
  letter-spacing: .16em;
}

.contact-submit span {
  display: inline-block;
  margin-left: 6px;
  transition: transform .25s;
}

.contact-submit:hover span {
  transform: translateX(4px);
}

.contact-submit[disabled] {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 1000px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-details {
    position: static;
    order: 2;
  }
}

@media (max-width: 760px) {
  .contact-grid {
    padding-top: 40px;
    padding-bottom: 64px;
    gap: 24px;
  }

  .contact-details {
    padding: 32px 22px;
  }

  .contact-details .contact-details-intro {
    font-size: 20px;
  }

  .contact-form-card {
    padding: 32px 22px;
  }

  .contact-form-card h2 {
    font-size: 32px;
  }

  .contact-submit {
    align-self: stretch;
  }
}

/* =========================================================
   Doctor + team pages (about-us/<page>/index.php)
   ========================================================= */

/* Profile header: framed photo + name, role, highlights */
.doc-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 8px 0 56px;
}

.doc-hero-photo {
  position: relative;
  margin: 0 24px 24px 0;
}

/* navy offset frame behind the photo */
.doc-hero-photo::before {
  content: '';
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--slate);
  background: var(--cream);
}

.doc-hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 30px 50px -30px rgba(13, 29, 54, .55);
}

.doc-hero-info h2 {
  margin: 12px 0 10px;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.02;
}

.doc-hero-role {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
}

.doc-cred {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}

.doc-highlights {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.doc-highlights li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  font-size: 14px;
  color: var(--ink);
}

.doc-highlight-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-highlight-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doc-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Bio + At a Glance */
.doc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.doc-bio {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.doc-bio .eyebrow {
  margin-bottom: 18px;
}

.doc-bio p {
  margin: 0 0 20px;
}

/* first paragraph a little larger */
.doc-bio .eyebrow+p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
}

.doc-quote {
  margin: 32px 0;
  padding: 28px 32px;
  background: var(--navy);
  color: var(--white);
  border-left: 3px solid var(--blue-2);
}

.doc-quote-title {
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-1);
}

.doc-quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--white);
}

.doc-glance {
  position: sticky;
  top: 130px;
  padding: 30px 28px;
  background: var(--cream);
  border: 1px solid var(--border-warm);
}

.doc-glance-title {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-warm);
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
}

.doc-glance-group {
  margin-bottom: 22px;
}

.doc-glance-group h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}

.doc-glance-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-glance-group li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.doc-glance-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 1px;
  background: var(--slate);
}

/* Other doctors */
.doc-team {
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.doc-team-head h2 {
  margin: 12px 0 28px;
  font-size: 38px;
  line-height: 1.1;
}

.doc-team-head h2 em {
  color: var(--slate);
}

.doc-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.doc-team-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  color: var(--ink);
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}

.doc-team-card:hover {
  border-color: var(--navy);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -32px rgba(13, 29, 54, .5);
}

.doc-team-photo {
  flex-shrink: 0;
  width: 110px;
  background: var(--navy);
}

.doc-team-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.doc-team-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-team-info strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: var(--navy);
}

.doc-team-info span {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted-2);
}

.doc-team-info em {
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Meet the Doctors page */
.team-intro {
  max-width: 720px;
  margin-bottom: 40px;
}

.team-intro h2 {
  margin: 12px 0 14px;
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1.05;
}

.team-intro h2 em,
.team-cta h2 em {
  color: var(--slate);
}

.team-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-warm);
  color: var(--ink);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}

.team-card:hover {
  color: var(--ink);
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 34px 60px -40px rgba(13, 29, 54, .55);
}

.team-card-photo {
  display: block;
  overflow: hidden;
  background: var(--navy);
}

.team-card-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s var(--ease);
}

.team-card:hover .team-card-photo img {
  transform: scale(1.04);
}

.team-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
}

.team-card-name {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--navy);
}

.team-card-role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

.team-card-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.team-card-highlights span {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.team-card-highlights span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--slate);
}

.team-card-link {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}

.team-card-link span {
  display: inline-block;
  transition: transform .25s;
}

.team-card:hover .team-card-link span {
  transform: translateX(4px);
}

.team-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 40px 44px;
  background: var(--navy);
}

.team-cta h2 {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.1;
  color: var(--white);
}

.team-cta h2 em {
  color: var(--blue-2);
}

.team-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Meet The Staff page */
.staff-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}

.staff-intro .team-intro {
  margin-bottom: 0;
}

.staff-stats {
  display: flex;
  border: 1px solid var(--border-warm);
  background: var(--white);
}

.staff-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  padding: 22px 26px;
}

.staff-stats div+div {
  border-left: 1px solid var(--border-warm);
}

.staff-stats strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--navy);
}

.staff-stats span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* row of everyone - jumps to their bio */
.staff-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 64px;
}

.staff-thumb {
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.staff-thumb:hover {
  color: var(--ink);
}

.staff-thumb-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 14px;
  background: var(--navy);
}

.staff-thumb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s var(--ease);
}

.staff-thumb-photo::after {
  content: 'Read Bio \2193';
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background: rgba(19, 41, 75, .88);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}

.staff-thumb:hover .staff-thumb-photo img {
  transform: scale(1.05);
}

.staff-thumb:hover .staff-thumb-photo::after,
.staff-thumb:focus-visible .staff-thumb-photo::after {
  transform: none;
}

.staff-thumb-name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  color: var(--navy);
}

.staff-thumb-role {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.5;
  color: var(--muted-2);
}

.staff-initials {
  font-family: var(--serif);
  font-size: 56px;
  letter-spacing: .04em;
  color: var(--blue-2);
}

/* one section per person */
.staff-list {
  border-top: 1px solid var(--border);
}

.staff-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 120px;
}

/* every other person: photo on the right */
.staff-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.staff-row:nth-child(even) .staff-photo {
  order: 2;
}

.staff-photo {
  position: sticky;
  top: 130px;
  padding: 0 22px 22px 0;
}

.staff-row:nth-child(even) .staff-photo {
  padding: 0 0 22px 22px;
}

/* offset frame behind the photo (like the doctor pages) */
.staff-photo::before {
  content: '';
  position: absolute;
  inset: 22px 0 0 22px;
  border: 1px solid var(--slate);
  background: var(--cream);
}

.staff-row:nth-child(even) .staff-photo::before {
  inset: 22px 22px 0 0;
}

.staff-photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--navy);
  box-shadow: 0 30px 50px -30px rgba(13, 29, 54, .55);
}

.staff-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.staff-num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .2em;
  color: var(--slate);
}

.staff-num::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 1px;
  margin-left: 12px;
  background: var(--slate);
}

.page-copy .staff-body h2 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 3.4vw, 46px);
  line-height: 1.05;
}

.staff-role {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navy);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}

.staff-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 28px;
  border: 1px solid var(--border-warm);
  background: var(--white);
}

.staff-facts div {
  padding: 14px 18px;
}

.staff-facts div+div {
  border-left: 1px solid var(--border-warm);
}

.staff-facts dt {
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}

.staff-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.staff-bio {
  max-width: 760px;
}

.page-copy .staff-bio p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.page-copy .staff-bio p:last-child {
  margin-bottom: 0;
}

.staff-list+.team-cta {
  margin-top: 64px;
}

/* Patient Reviews page */

.rv-videos-head h2 em {
  color: var(--slate);
}

/* reviews in staggered columns, full text */
.rv-wall {
  columns: 3;
  column-gap: 20px;
}

.rv-wall .review-card {
  height: auto;
  margin-bottom: 20px;
  break-inside: avoid;
}

.rv-wall .review-text {
  height: auto;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 20px;
}

/* video testimonials */
.rv-videos-head {
  margin: 44px 0 24px;
}

.page-copy .rv-videos-head h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.05;
}

.rv-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rv-video {
  margin: 0;
}

.rv-video-play,
.rv-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--navy);
}

.rv-video-play {
  position: relative;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.rv-video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: transform .6s var(--ease), opacity .3s;
}

.rv-video-play:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.rv-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px -12px rgba(13, 29, 54, .6);
  transition: transform .3s var(--ease);
}

.rv-video-play:hover .rv-video-icon {
  transform: scale(1.08);
}

.rv-video-icon svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  fill: currentColor;
}

.rv-video figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
}

/* Patient Information landing page */
.pi-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  /* photo left, text right */
  gap: 72px;
  align-items: center;
}

.pi-intro .eyebrow {
  margin-bottom: 18px;
}

.pi-media {
  position: relative;
  margin: 0 22px 22px 0;
}

/* offset frame behind the photo (same as the doctor/staff pages) */
.pi-media::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--slate);
  background: var(--cream);
}

.pi-media img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;   /* section photos are 3:2 landscape: shown whole, not cropped */
  object-fit: cover;
  object-position: center 40%;
  box-shadow: 0 30px 50px -30px rgba(13, 29, 54, .55);
}

.page-copy .pi-lead {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
}

/* the section's pages, as a two-column link list beside the photo */
.pi-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin: 6px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.pi-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: color .2s, padding .25s var(--ease);
}

.pi-list a span {
  color: var(--slate);
  transition: transform .25s var(--ease);
}

.pi-list a:hover {
  color: var(--slate);
  padding-left: 6px;
}

.pi-list a:hover span {
  transform: translateX(4px);
}

.pi-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.pi-cta p {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* buttons under the intro text (image-left first section) */
.pi-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* New Patients page */
.page-copy .np-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.1;
  color: var(--navy);
}

.np-visit {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  margin-top: 80px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  box-shadow: 0 30px 60px -48px rgba(13, 29, 54, .45);
}

.np-visit-quote {
  position: relative;
  padding: 48px 48px 52px;
  background: var(--navy);
  overflow: hidden;
}

.np-visit-quote blockquote {
  position: relative;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.35;
  color: var(--white);
}

.np-visit-text {
  display: flex;
  align-items: center;
  padding: 48px 52px;
}

.np-visit-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.np-contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
  margin-top: 80px;
}

.np-contact-copy {
  position: sticky;
  top: 130px;
}

.np-contact-copy h3 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.08;
  color: var(--navy);
}

.np-contact-copy>p {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* the three ways to get in touch */
.np-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.np-option {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 16px 16px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}

.np-option:hover {
  color: var(--ink);
  border-color: var(--navy);
  transform: translateX(4px);
  box-shadow: 0 20px 36px -30px rgba(13, 29, 54, .5);
}

.np-option-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, color .25s;
}

.np-option:hover .np-option-icon {
  background: var(--navy);
  color: var(--white);
}

.np-option-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.np-option-text strong {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: .04em;
}

.np-option-text em {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--slate);
}

.np-option-arrow {
  color: var(--slate);
  transition: transform .25s var(--ease);
}

.np-option:hover .np-option-arrow {
  transform: translateX(4px);
}

#requestForm {
  scroll-margin-top: 140px;
}

.np-contact .request-card {
  max-width: none;
  border: 1px solid var(--border-warm);
  box-shadow: 0 30px 60px -44px rgba(13, 29, 54, .45);
}

/* =========================================================
   Content pages (Patient Information sub-pages, built from the content doc)
   ========================================================= */
.page-copy .pi-intro h3,
.pi-intro .page-copy h3 {
  margin: 4px 0 10px;
  font-size: 24px;
  color: var(--navy);
}

/* check-mark list; "Term:" lead-ins are bold */

/* insurance plans */

/* highlighted note */

/* office hours table */
.pc-hours {
  margin: 4px 0 22px;
  border: 1px solid var(--border-warm);
  background: var(--white);
}

.pc-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--ink);
}

.pc-hours-row+.pc-hours-row {
  border-top: 1px solid var(--border-soft);
}

.pc-hours-row span:first-child {
  font-weight: 600;
  color: var(--navy);
}

/* Home Instructions: one panel per topic */

/* closing line (Dental Anxiety page) */

/* Scheduling page: "staying on schedule" + call panel */
.sched-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* both halves the same width */
  margin-top: 80px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  box-shadow: 0 30px 60px -48px rgba(13, 29, 54, .45);
}

.sched-note-text {
  display: flex;
  align-items: center;
  padding: 44px 48px;
}

.sched-note-text .eyebrow {
  margin: 4px 0 12px;
}

.sched-note-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.sched-note-call {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 44px 48px;
  background: var(--navy);
}

.sched-note-call h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--white);
}

.sched-note-call h3 a {
  color: var(--white);
  white-space: nowrap;
  border-bottom: 1px solid var(--blue-2);
}

/* First Visit page */
.fv-bring {
  margin-top: 80px;
}

.fv-bring h2 {
  max-width: 820px;
  margin: 0 0 26px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  color: var(--navy);
}

.fv-bring-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fv-card {
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.fv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -32px rgba(13, 29, 54, .45);
}

.fv-card p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.fv-alert {
  margin-top: 56px;
}

.fv-alert .sched-note-call h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
}

/* colors swapped vs the panel above: white left, navy right */
.fv-xrays .sched-note-call {
  background: var(--white);
}

.fv-xrays .sched-note-call h2 {
  margin: 0;
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 1.05;
  color: var(--navy);
}

.fv-xrays .sched-note-text {
  background: var(--navy);
}

.fv-xrays .sched-note-text p {
  color: var(--blue-4);
}

.fv-xrays+.team-cta {
  margin-top: 64px;
}

/* Insurance & Payment Options page — open layout, payment first */
.pay-ways h2,
.pay-plans h2 {
  margin: 0;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.12;
  color: var(--navy);
}

/* four ways to pay, divided by thin lines (no boxes) */
.pay-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pay-method {
  padding: 32px 28px 30px;
}

.pay-method+.pay-method {
  border-left: 1px solid var(--border);
}

.pay-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}

.pay-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pay-method h3 {
  margin: 18px 0 8px;
  font-size: 26px;
  line-height: 1.15;
  color: var(--navy);
}

.pay-method p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.pay-method a,
.pay-claims a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.pay-due {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
}

/* accepted insurance plans: heading left, names in three columns */
.pay-plans {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr);
  gap: 48px;
  align-items: start;
}

.pay-plans ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  margin: 0;
  padding: 0;
}

.pay-plans li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

/* claims + help: plain two columns */
.pay-claims {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 56px;
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.pay-claims p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.pay-claims-help p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
}

.page-content .pay-claims-phone {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--slate);
}

/* VIP in-house plan: like the first section (.pi-intro) but flipped — text left, flyer right */
.pi-intro.pi-intro-flip {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

/* frame offset to the left so it sits on the outer side */
.pi-intro-flip .pi-media {
  margin: 0 0 22px 22px;
}

.pi-intro-flip .pi-media::before {
  inset: 22px 22px -22px -22px;
}

/* the flyer is landscape: show it whole, not cropped square */
.ins-vip .pi-media a {
  display: block;
  position: relative;
}

.ins-vip .pi-media img {
  aspect-ratio: auto;
  object-fit: contain;
}

.page-copy .ins-vip-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.12;
  color: var(--navy);
}

/* landing pages: one card per child page */

.sched-note+.np-contact,
.np-contact+.team-cta {
  margin-top: 64px;
}

/* Why Choose Us page: the six reasons */
.wcu-heading {
  margin: 72px 0 28px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  color: var(--navy);
}

.wcu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wcu-card {
  padding: 32px 30px 30px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}

.wcu-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -32px rgba(13, 29, 54, .45);
}

.wcu-num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .2em;
  color: var(--slate);
}

.wcu-num::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: 1px;
  margin-left: 12px;
  background: var(--slate);
}

.wcu-card h2 {
  margin: 14px 0 12px;
  font-size: 26px;
  line-height: 1.15;
  color: var(--navy);
}

.wcu-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.team-cta h2 a {
  color: inherit;
  border-bottom: 1px solid var(--blue-2);
}

.team-cta p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--blue-3);
}

@media (max-width: 1000px) {
  .doc-hero {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 44px;
  }

  .doc-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .doc-glance {
    position: static;
  }

  .doc-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .staff-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-row,
  .staff-row:nth-child(even) {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 44px;
  }

  .staff-row:nth-child(even) .staff-photo {
    order: 0;
    padding: 0 22px 22px 0;
  }

  .staff-row:nth-child(even) .staff-photo::before {
    inset: 22px 0 0 22px;
  }

  .rv-wall {
    columns: 2;
  }

  .pi-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .pi-media {
    max-width: 520px;
  }

  .wcu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .np-visit {
    grid-template-columns: minmax(0, 1fr);
  }

  .np-contact-copy {
    position: static;
  }

  .sched-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .fv-bring-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pay-method:nth-child(3) {
    border-left: 0;
  }

  .pay-method:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }

  .pay-plans,
  .pay-claims {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* stacked: flyer first, like the other image sections */
  .pi-intro.pi-intro-flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .pi-intro-flip .pi-media {
    order: -1;
  }
}

@media (max-width: 760px) {
  .doc-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-cta {
    padding: 30px 24px;
  }

  .team-cta h2 {
    font-size: 28px;
  }

  .doc-hero-photo {
    max-width: 300px;
  }

  .doc-hero {
    padding-bottom: 40px;
  }

  .doc-body {
    padding: 40px 0;
  }

  .doc-bio .eyebrow+p,
  .doc-quote p {
    font-size: 19px;
  }

  .doc-quote {
    padding: 22px 22px;
  }

  .doc-team-head h2 {
    font-size: 30px;
  }

  .doc-team-photo {
    width: 88px;
  }

  .doc-team-info strong {
    font-size: 22px;
  }

  .staff-stats {
    width: 100%;
  }

  .staff-stats div {
    flex: 1;
    min-width: 0;
    padding: 16px 14px;
  }

  .staff-stats strong {
    font-size: 34px;
  }

  .staff-stats span {
    font-size: 9px;
    letter-spacing: .1em;
  }

  .staff-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 40px;
  }

  .staff-thumb-name {
    font-size: 21px;
  }

  .staff-row,
  .staff-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 44px 0;
  }

  .staff-photo {
    position: relative;
    top: auto;
    max-width: 280px;
  }

  .staff-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-facts div+div {
    border-left: 0;
    border-top: 1px solid var(--border-warm);
  }

  .rv-wall {
    columns: 1;
  }

  .rv-wall .review-text {
    font-size: 18px;
  }

  .rv-videos {
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-video-icon {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
  }

  .page-copy .pi-lead {
    font-size: 20px;
  }

  .pi-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .wcu-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wcu-heading {
    margin-top: 48px;
  }

  .wcu-card {
    padding: 26px 22px;
  }

  .np-visit-quote,
  .np-visit-text {
    padding: 30px 22px;
  }

  .np-option {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
  }

  .np-option-icon {
    width: 40px;
    height: 40px;
  }

  .np-contact .request-card {
    padding: 28px 20px;
  }

  .sched-note-text {
    padding: 28px 22px;
  }

  .sched-note-call {
    padding: 30px 22px;
  }

  .pay-methods {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay-method {
    padding: 26px 22px;
  }

  .pay-method+.pay-method {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .pay-plans ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}

/* =========================================================
   Sitemap page
   ========================================================= */
/* =========================================================
   Sitemap: page count + jump links, then one row per section
   (number / title / count left, link rows right)
   ========================================================= */
.smap-top {
  display: grid;
  gap: 18px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-warm);
}

.smap-top-count {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.2;
  color: var(--navy);
}

.smap-top-count strong {
  font-weight: 600;
}

.smap-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smap-jump a {
  padding: 8px 16px;
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  transition: background .2s, color .2s, border-color .2s;
}

.smap-jump a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.smap-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border-warm);
  scroll-margin-top: 120px;
}

.smap-head {
  align-self: start;
  position: sticky;
  top: 130px;
}

.smap-num {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--slate);
}

.smap-head h2 {
  margin: 4px 0 8px;
  font-size: 34px;
  line-height: 1.1;
}

.smap-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

.smap-overview {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(93, 124, 156, .55);
  text-underline-offset: 4px;
}

.smap-overview:hover {
  color: var(--slate);
}

.smap-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.smap-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
  transition: color .2s, padding .25s var(--ease);
}

.smap-link svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .45;
  transition: opacity .2s, transform .25s var(--ease);
}

.smap-link:hover {
  color: var(--navy);
  padding-left: 8px;
}

.smap-link:hover svg {
  opacity: 1;
  transform: translateX(3px);
}

.smap-group {
  margin-top: 30px;
  padding: 24px 28px 8px;
  background: var(--cream);
}

.smap-body > .smap-group:first-child {
  margin-top: 0;
}

.smap-group h3 {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--navy);
}

.smap-group h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(93, 124, 156, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.smap-group .smap-link {
  border-bottom-color: var(--border-warm);
}

@media (max-width: 900px) {
  .smap-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 0;
  }

  .smap-head {
    position: static;
  }

  .smap-head h2 {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .smap-links {
    grid-template-columns: 1fr;
  }

  .smap-group {
    padding: 20px 18px 6px;
  }

  .smap-top-count {
    font-size: 26px;
  }
}

/* =========================================================
   404 page: big "404" above the message, centred
   ========================================================= */
.nf-intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 0 40px;
  text-align: center;
}

.nf-code {
  font-family: var(--serif);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -.02em;
  color: var(--navy);
}

.nf-text {
  margin-top: 40px;
}

.nf-text h2 {
  margin: 6px 0 14px;
  font-size: 40px;
  line-height: 1.1;
}

.nf-text p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 600px) {
  .nf-text h2 {
    font-size: 32px;
  }

  .nf-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal-stagger>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal-stagger.in>* {
  opacity: 1;
  transform: none;
}

.js .reveal-stagger.in>*:nth-child(2) {
  transition-delay: .08s;
}

.js .reveal-stagger.in>*:nth-child(3) {
  transition-delay: .16s;
}

.js .reveal-stagger.in>*:nth-child(4) {
  transition-delay: .24s;
}

.js .reveal-stagger.in>*:nth-child(5) {
  transition-delay: .32s;
}

.js .reveal-stagger.in>*:nth-child(6) {
  transition-delay: .4s;
}

.js .reveal-stagger.in>*:nth-child(7) {
  transition-delay: .48s;
}

.js .reveal-stagger.in>*:nth-child(8) {
  transition-delay: .56s;
}

.reveal-off .reveal,
.reveal-off .reveal-stagger>* {
  opacity: 1 !important;
  transform: none !important;
}

/* Hover lift on stagger children must not wait for the reveal delay */
.js .reveal-stagger.in>.tile:hover,
.js .reveal-stagger.in>.doctor:hover,
.js .reveal-stagger.in>.related-card:hover {
  transform: translateY(-3px);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .reveal-stagger>*,
  .hero-anim>*,
  .page-hero-anim>* {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .page-body-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .utility-inner {
    justify-content: center;
    text-align: center;
  }

  .utility-address {
    display: none;
  }

  .logo img {
    height: 64px;
  }

  .header-actions .btn {
    padding: 11px 16px;
    font-size: 10px;
    letter-spacing: .1em;
  }

  .hero {
    height: auto;
    min-height: 560px;
  }

  .hero-inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(13, 29, 54, .6) 0%, rgba(13, 29, 54, .85) 100%);
  }

  .features-inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 28px;
    padding-bottom: 28px;
    row-gap: 20px;
  }

  .feature {
    padding: 10px 12px;
  }

  .feature:nth-child(odd) {
    border-left: 0;
  }

  .experience-inner,
  .services-inner,
  .doctors-inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .reviews-inner {
    padding-top: 72px;
  }

  .reviews-foot {
    padding-bottom: 72px;
  }

  .experience-inner {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .experience-media {
    height: 300px;
    order: -1;
  }

  .experience h2,
  .section-title,
  .reviews h2 {
    font-size: 38px;
  }

  .doctors h2 {
    font-size: 40px;
    margin-bottom: 36px;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(150px, auto);
  }

  .bento>.tile:last-child {
    grid-column: auto;
  }

  .tile-feature {
    grid-row: span 1;
    min-height: 280px;
  }

  .tile-feature .tile-title {
    font-size: 38px;
  }

  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .np-inner {
    grid-template-columns: 1fr;
  }

  .np-band h2 {
    font-size: 34px;
  }

  .np-links {
    grid-template-columns: 1fr;
  }

  .request-inner {
    grid-template-columns: 1fr;
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 36px;
  }

  .request-card {
    padding: 30px 22px;
    max-width: none;
  }

  .request-copy {
    order: -1;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .page-hero-inner {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .page-body-inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .page-feature {
    height: 240px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .footer-info,
  .footer-info:nth-child(2) {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid rgba(201, 211, 226, .14);
  }

  .footer-map-box {
    aspect-ratio: 4 / 3;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .header-actions .btn {
    display: none;
  }

  .features-inner {
    grid-template-columns: 1fr;
  }

  .feature {
    border-left: 0;
    border-top: 1px solid #dcd7cc;
    padding-top: 18px;
  }

  .feature:first-child {
    border-top: 0;
  }

}

/* =========================================================
   Pages built from the content doc (every page whose first section is the
   image-left .pi-intro): each section is a full-width background band,
   alternating white / cream — 1st white, 2nd cream, 3rd white …
   The band colour is painted edge to edge with box-shadow + clip-path,
   so nothing overflows the page. The navy "Book a Visit" box is not a band.
   ========================================================= */
.page-body:has(.page-content > .pi-intro) .page-body-inner {
  padding-top: 0;
}

.page-content:has(> .pi-intro) {
  --section-gap: 80px;
  gap: 0;
}

.page-content:has(> .pi-intro)> :not(.team-cta) {
  --band: var(--white);
  margin-top: 0;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}

.page-content:has(> .pi-intro)> :nth-child(even):not(.team-cta) {
  --band: #eeebe45c;
  /* light cream band */
}

.page-content:has(> .pi-intro)>.team-cta {
  margin-top: var(--section-gap);
}

/* sections that are a white panel themselves: the band colour goes around the panel
   (the band reaches one section-gap above and below it) and the panel keeps its look */
.page-content:has(> .pi-intro)>.sched-note,
.page-content:has(> .pi-intro)>.np-visit {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
  background: var(--white);
  clip-path: inset(calc(var(--section-gap) * -1) -100vmax);
}

/* a panel's band already leaves one section-gap below it — don't add another before the CTA */
.page-content:has(> .pi-intro) > :is(.sched-note, .np-visit) + .team-cta {
  margin-top: 0;
}

/* the heading that introduces the Why Choose Us cards sits right above them */
.wcu-section .wcu-heading {
  margin-top: 0;
}

/* boxes on a cream band are solid white so they stand out from the band */
.page-content:has(> .pi-intro)> :nth-child(even) :is(.pay-methods, .fv-card, .wcu-card, .pc-hours, .np-option, .request-card) {
  background: var(--white);
}

/* the payment methods row becomes one white box with dividers */
.page-content:has(> .pi-intro)> :nth-child(even) .pay-methods {
  border: 1px solid var(--border);
}

/* the photo frame is cream; on a cream band give it the page tone so it still shows */
.page-content:has(> .pi-intro)> :nth-child(even) .pi-media::before {
  background: var(--bg);
}

@media (max-width: 1000px) {
  .page-content:has(> .pi-intro) {
    --section-gap: 64px;
  }
}

@media (max-width: 760px) {
  .page-content:has(> .pi-intro) {
    --section-gap: 52px;
  }
}

/* First section with a video (Insurance & Payment Options): equal columns, 16:9 frame */
.pi-intro.pi-intro-video {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pi-video iframe {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--navy);
  box-shadow: 0 30px 50px -30px rgba(13, 29, 54, .55);
}

@media (max-width: 1000px) {
  .pi-intro.pi-intro-video {
    grid-template-columns: minmax(0, 1fr);
  }

  .pi-intro-video .pi-media {
    max-width: 640px;
  }
}

/* Patient Education: RevenueWell library (Articles / Videos pickers + the loaded entry) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rw-library {
  scroll-margin-top: 110px;
}

.rw-pickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rw-picker {
  display: block;
  padding: 30px 30px 32px;
  background: var(--white);
  border: 1px solid var(--border-warm);
}

.rw-picker-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  color: var(--navy);
}

.rw-picker-label svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.rw-picker select {
  width: 100%;
  padding: 15px 44px 15px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  border: 1px solid var(--border-warm);
  border-radius: 0;
  appearance: none;
  cursor: pointer;
}

.rw-picker select:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.rw-content {
  margin-top: 28px;
  padding: 44px 48px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  scroll-margin-top: 110px;
}

.rw-content[hidden] {
  display: none;
}

.rw-status {
  margin: 0;
  color: var(--muted);
}

.rw-entry>h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  color: var(--navy);
  outline: none;
}

.rw-entry h2:not(:first-child),
.rw-entry h3 {
  margin: 30px 0 12px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy);
}

.rw-entry p,
.rw-entry li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.rw-entry ul,
.rw-entry ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.rw-entry img {
  max-width: 100%;
  height: auto;
}

.rw-entry .video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.rw-entry .wistia_embed {
  position: absolute;
  inset: 0;
}

.rw-return-top {
  display: inline-block;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}

@media (max-width: 760px) {
  .rw-pickers {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .rw-picker {
    padding: 24px 22px;
  }

  .rw-picker-label {
    font-size: 24px;
  }

  .rw-content {
    padding: 28px 22px;
  }
}

/* Infection Control page */
.ic-standards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.ic-standards-copy .eyebrow {
  margin-bottom: 18px;
}

.ic-standards-copy>p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.5;
  color: var(--ink);
}

.ic-agencies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-warm);
}

.ic-agencies li {
  padding: 20px 18px 0 0;
}

.ic-agencies li+li {
  padding-left: 18px;
  border-left: 1px solid var(--border-warm);
}

.ic-agencies strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}

.ic-agencies span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.ic-measures {
  padding: 40px 42px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--navy);
  box-shadow: 0 30px 60px -48px rgba(13, 29, 54, .45);
}

.ic-measures h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--navy);
}

.ic-measures ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ic-measures li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.ic-measures li+li {
  border-top: 1px solid var(--border-soft);
}

.ic-measure-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
}

.ic-measure-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-steril .sched-note-call h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.08;
  color: var(--white);
}

.ic-steril .sched-note-call .eyebrow {
  margin: 0;
}

.ic-steril .sched-note-text p {
  font-size: 17px;
  line-height: 1.85;
}

.ic-closing {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.ic-closing p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.ic-closing .ic-closing-lead {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  color: var(--navy);
}

@media (max-width: 1000px) {
  .ic-standards {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .ic-measures {
    padding: 28px 22px;
  }

  .ic-agencies strong {
    font-size: 28px;
  }

  .ic-agencies li {
    padding-right: 10px;
  }

  .ic-agencies li+li {
    padding-left: 12px;
  }
}
/* Advanced Technology page */
.at-compare .eyebrow {
  margin-bottom: 22px;
}

.at-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.at-compare-card {
  padding: 40px 42px;
  background: var(--white);
  border: 1px solid var(--border-warm);
}

.at-compare-card p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.at-compare-tag {
  display: inline-block;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
}

.at-compare-card--ours {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 30px 60px -40px rgba(13, 29, 54, .6);
}

.page-content:has(> .pi-intro) > :nth-child(even) .at-compare-card--ours {
  background: var(--navy);
}

.at-compare-card--ours p {
  color: var(--blue-4);
}

.at-compare-card--ours .at-compare-tag {
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}

.at-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.at-chips li {
  padding: 9px 16px;
  font-size: 13px;
  color: var(--navy);
  background: var(--white);
  border-radius: 999px;
}

.at-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 64px;
  align-items: center;
  scroll-margin-top: 110px;
}

.at-feature-flip {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.at-feature-flip .at-aside {
  order: -1;
}

.at-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .08em;
  color: var(--slate);
}

.at-num::after {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
}

.at-feature-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.1;
  color: var(--navy);
}

.at-feature-copy p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.at-feature-copy p:last-child {
  margin-bottom: 0;
}

.at-aside {
  padding: 40px 38px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--navy);
  box-shadow: 0 30px 60px -48px rgba(13, 29, 54, .45);
}

.at-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-soft);
}

.at-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}

.at-stats sup {
  font-size: .45em;
}

.at-stats span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.at-aside h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--navy);
}

.at-aside p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.at-scanner .sched-note-call h2 {
  margin: 0;
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 1.05;
  color: var(--white);
}

.at-scanner .at-num {
  margin: 0;
  color: var(--blue-4);
}

.at-scanner .sched-note-text p {
  font-size: 16px;
  line-height: 1.85;
}

@media (max-width: 1000px) {
  .at-feature,
  .at-feature-flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .at-feature-flip .at-aside {
    order: 0;
  }
}

@media (max-width: 760px) {
  .at-compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .at-compare-card,
  .at-aside {
    padding: 28px 22px;
  }
}

/* Shared section pieces (Home Instructions, Dental Anxiety, Nitrous Oxide, Oral Sedation) */
.sec-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.12;
  color: var(--navy);
}

.sec-intro {
  max-width: 860px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}

.sec-sub {
  margin: 0 0 24px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--navy);
}

.sec-title + .sec-sub {
  margin-top: 4px;
}

.sec-title + .at-compare-grid,
.sec-title + .fv-bring-grid {
  margin-top: 28px;
}

.at-feature-copy .sec-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.5;
  color: var(--ink);
}

.card-section .fv-card h3 {
  margin: 14px 0 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy);
}

.card-section .fv-card h3 + p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.fv-bring-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.at-compare .eyebrow + .sec-title {
  margin-top: 0;
}

.hi-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hi;
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--navy);
}

.hi-steps li {
  position: relative;
  padding: 26px 34px 26px 84px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  counter-increment: hi;
}

.hi-steps li + li {
  border-top: 1px solid var(--border-soft);
}

.hi-steps li::before {
  content: counter(hi, decimal-leading-zero);
  position: absolute;
  top: 28px;
  left: 34px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--slate);
}

.hi-steps a {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

/* Nitrous Oxide: 4 numbers */
.at-stats--4 {
  row-gap: 30px;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.at-stats small {
  margin-left: 3px;
  font-size: .4em;
  letter-spacing: .04em;
}

.sched-note-text .sn-tip {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  color: var(--navy);
  font-weight: 500;
}

/* Oral Sedation: the two types of benzodiazepines — white + navy cards side by side */
.at-feature.os-pills {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.os-types h3 {
  margin: 0 0 22px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--navy);
}

.os-types .at-compare-grid {
  gap: 18px;
}

.os-type-card {
  padding: 32px 30px;
}

.os-type-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
}

.at-compare-card--ours .os-type-icon {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

.os-type-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-type-card h4 {
  margin: 20px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}

.os-type-card.at-compare-card--ours h4 {
  color: var(--white);
}

.os-type-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

/* stack a little earlier than other sections so the two cards keep a good width */
@media (max-width: 1200px) {
  .at-feature.os-pills {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .os-type-card {
    padding: 26px 22px;
  }
}

.ic-closing > p:first-child {
  margin-bottom: 10px;
}

@media (max-width: 1000px) {
  .card-section .fv-bring-grid,
  .fv-bring-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .card-section .fv-bring-grid,
  .fv-bring-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hi-steps li {
    padding: 22px 20px 22px 58px;
  }

  .hi-steps li::before {
    left: 20px;
    top: 24px;
  }
}

/* Advanced Technology: optional photo with the facts card overlapping it */
.at-media {
  position: relative;
}

.at-feature-flip .at-media {
  order: -1;
}

/* photos use the same square .pi-media frame as the intro photo */

/* the card sits below the photo (clear of the photo's offset frame), not on top of it */
.at-media .at-aside {
  position: relative;
  margin: 50px 0 0;
}

@media (max-width: 1000px) {
  .at-feature-flip .at-media {
    order: 0;
  }
}

@media (max-width: 760px) {
  .at-media .at-aside {
    margin-top: 44px;
  }
}

/* Advanced Technology: facts and quote sit inside the text column (no box) */
.at-stats--inline {
  margin: 30px 0 28px;
  padding: 26px 0;
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.at-feature-copy h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--navy);
}

.at-feature-copy .at-quote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--navy);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  color: var(--navy);
}

.at-feature:has(> .at-media) {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.at-feature-flip:has(> .at-media) {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

@media (max-width: 1000px) {
  .at-feature:has(> .at-media),
  .at-feature-flip:has(> .at-media) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Home Instructions: the four topics as tabs */
.hi-tabs {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
  scroll-margin-top: 90px;
}

.hi-tabs-side {
  position: sticky;
  top: 130px;
}

.hi-tabs-side .eyebrow {
  margin-bottom: 18px;
}

.hi-tablist {
  display: grid;
  gap: 10px;
}

.hi-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-warm);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}

.hi-tab small {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

.hi-tab > span:last-child {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}

.hi-tab-num {
  flex: none;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--slate);
}

.hi-tab:hover {
  border-color: var(--navy);
}

.hi-tab.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.hi-tab.is-active small,
.hi-tab.is-active .hi-tab-num {
  color: var(--blue-4);
}

.hi-tab:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.hi-panels {
  scroll-margin-top: 110px;
}

.hi-panel + .hi-panel {
  margin-top: 40px;
}

.js-tabs .hi-panel {
  display: none;
}

.js-tabs .hi-panel.is-active {
  display: block;
  margin-top: 0;
}

.hi-panel h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.15;
  color: var(--navy);
}

.hi-panel .hi-steps li {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
}

.hi-panel .hi-steps li::before {
  top: 22px;
}

@media (max-width: 1000px) {
  .hi-tabs {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hi-tabs-side {
    position: static;
  }

  .hi-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hi-tablist {
    grid-template-columns: minmax(0, 1fr);
  }

  .hi-tab {
    padding: 13px 16px;
  }

  .hi-tab > span:last-child {
    font-size: 19px;
  }
}

/* Home Instructions: video under the topic tabs */
.hi-tabs-side .hi-video {
  margin: 34px 22px 22px 0;
}

@media (max-width: 1000px) {
  .hi-tabs-side .hi-video {
    max-width: 520px;
  }
}

/* the tabs + video only stay in view when the screen is tall enough to show all of it */
@media (max-height: 820px) {
  .hi-tabs-side {
    position: static;
  }
}

/* Dental Anxiety closing: the opening line is a sentence, so it reads as text rather than an uppercase label */
.da-closing .eyebrow {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

/* text-left image sections: same photo size as the intro photo (mirror of the intro's columns) */
.pi-intro.pi-intro-flip:is(.da-closing, .os-info-img, .tc-hygiene) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

@media (max-width: 1000px) {
  .pi-intro.pi-intro-flip:is(.da-closing, .os-info-img, .tc-hygiene) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Oral Sedation info section: two body paragraphs */
.os-info-img .page-copy p,
.tc-proc .page-copy p,
.oh-pro .page-copy p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.os-info-img .page-copy p:last-child,
.tc-proc .page-copy p:last-child,
.oh-pro .page-copy p:last-child {
  margin-bottom: 0;
}

/* Teeth Cleaning & Dental Checkups */
.tc-card h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--navy);
}

.tc-card.at-compare-card--ours h2 {
  color: var(--white);
}

.tc-card > p {
  margin: 0 0 18px;
}

.tc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.tc-list li + li {
  border-top: 1px solid var(--border-soft);
}

.tc-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.at-compare-card--ours .tc-list li {
  color: var(--blue-4);
}

.at-compare-card--ours .tc-list li + li {
  border-top-color: rgba(255, 255, 255, .14);
}

.at-compare-card--ours .tc-list svg {
  stroke: var(--white);
}

.tc-answer {
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.5;
  color: var(--ink);
}

.tc-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Teeth Cleaning: oral hygiene steps under the text, beside the photo */
.tc-hygiene .page-copy > p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

/* open list on the band — no box, just thin dividers */
.tc-hygiene .hi-steps {
  background: none;
  border: 0;
}

.tc-hygiene .hi-steps li {
  padding: 14px 0 14px 46px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.tc-hygiene .hi-steps li + li {
  border-top-color: var(--border-warm);
}

.tc-hygiene .hi-steps li::before {
  top: 15px;
  left: 0;
}

/* Teeth Cleaning: kinds of cleanings */
.tc-kinds-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-warm);
}

.tc-kinds-head h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.1;
  color: var(--navy);
}

.tc-kinds-head .tc-answer {
  margin: 0;
}

.tc-kinds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tc-kind {
  transition: transform .3s var(--ease), box-shadow .3s, border-color .25s;
}

.tc-kind:hover {
  transform: translateY(-3px);
  border-color: var(--navy);
  box-shadow: 0 24px 44px -32px rgba(13, 29, 54, .45);
}

.tc-kind p {
  color: var(--muted);
}

@media (max-width: 1000px) {
  .tc-kinds-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .tc-kinds-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Oral Hygiene */
.oh-tabs-title {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.15;
  color: var(--navy);
}

.oh-panel-intro {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.oh-note {
  margin: 20px 0 0;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  border-left: 3px solid var(--navy);
}

.oh-note a {
  font-weight: 600;
  white-space: nowrap;
}

.oh-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
  .oh-products {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Video popup: play button over each Vimeo preview, and the modal it opens */
.pi-video {
  position: relative;
}

.video-pop {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: rgba(13, 29, 54, .12);
  border: 0;
  cursor: pointer;
  transition: background-color .25s;
}

.pi-media.pi-video .video-pop {
  inset: 0 0 auto 0;
  height: auto;
  aspect-ratio: 16 / 9;
}

.video-pop:hover {
  background: rgba(13, 29, 54, .28);
}

.video-pop-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 16px 34px -14px rgba(13, 29, 54, .6);
  transition: transform .25s var(--ease);
}

.video-pop:hover .video-pop-icon,
.video-pop:focus-visible .video-pop-icon {
  transform: scale(1.08);
}

.video-pop:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -6px;
}

.video-pop-icon svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  fill: var(--navy);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 34, .86);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-box {
  position: relative;
  width: min(1100px, 100%);
}

.video-modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}

.video-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 1;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  cursor: pointer;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  background: rgba(255, 255, 255, .25);
}

html.video-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .video-pop-icon {
    width: 58px;
    height: 58px;
  }

  .video-pop-icon svg {
    width: 22px;
    height: 22px;
  }

  .video-modal {
    padding: 12px;
  }
}

/* Children's Dentistry: baby-teeth timeline */
.cd-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 34px;
  list-style: none;
}

.cd-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 1px;
  background: var(--border-warm);
}

.cd-timeline li {
  position: relative;
}

.cd-timeline li + li {
  margin-top: 34px;
}

.cd-timeline li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -34px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 5px var(--cream);
}

.cd-timeline strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
}

.cd-timeline p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.cd-baby .sec-lead {
  margin: 0;
}

/* Dental Sealants */
.ds-label {
  margin-bottom: 24px;
}

.tc-kind .os-type-icon + p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
}

/* videos recorded at 5:4 (e.g. the Dental Sealants animation) — frame matches so there are no black bars */
.pi-video--5x4 iframe,
.pi-video.pi-video--5x4 video,
.pi-media.pi-video--5x4 .video-pop {
  aspect-ratio: 5 / 4;
}

/* autoplaying inline video: no dark layer or play icon, just a small expand icon top-right
   (top, so it doesn't sit on Vimeo's own controls along the bottom edge) */
.video-pop--preview {
  place-items: start end;
  padding: 14px;
  background: none;
  cursor: zoom-in;
}

.video-pop--preview:hover {
  background: rgba(13, 29, 54, .1);
}

.video-pop-hint {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--navy);
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: 0 10px 24px -14px rgba(13, 29, 54, .6);
  transition: transform .25s var(--ease);
}

.video-pop--preview:hover .video-pop-hint,
.video-pop--preview:focus-visible .video-pop-hint {
  transform: scale(1.1);
}

.video-pop-hint svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* local video files in the same frame as the Vimeo players */
.pi-video video {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy);
  box-shadow: 0 30px 50px -30px rgba(13, 29, 54, .55);
}

.video-modal-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Arestin */
.ar-list {
  margin: 4px 0 26px;
}

.ar-stats {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.ar-refs .eyebrow {
  margin-bottom: 12px;
}

.ar-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ar-ref {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--navy);
}

.ar-ref-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  background: var(--cream);
  border-radius: 50%;
}

.ar-ref-title {
  flex: 1;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--navy);
}

.ar-ref-authors {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.ar-ref-journal {
  margin: 0;
  padding-top: 12px;
  font-size: 12px;
  font-style: italic;
  letter-spacing: .02em;
  color: var(--slate);
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 1000px) {
  .ar-ref-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Periodontal Maintenance: short risk-factor cards */
.pm-factor p {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  color: var(--navy);
}

/* Deep Teeth Cleaning: scaling / root planing cards — animation across the top, text below */
.at-compare-card.dc-proc {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.dc-anim-wrap {
  display: grid;
  place-items: center;
  padding: 26px 20px;
  background: #050505;
}

.dc-anim {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.dc-proc-body {
  flex: 1;
  padding: 34px 40px 38px;
}

.dc-proc-body h2 {
  margin: 0 0 14px;
}

.dc-proc-body p {
  margin: 0;
}

@media (max-width: 760px) {
  .dc-proc-body {
    padding: 26px 22px 30px;
  }
}

/* In-text internal links (the live site's links inside page copy): clearly marked, not just a colour change.
   Buttons, cards, section link lists and other classed links keep their own styles. */
.page-content :is(p, li, span) a:not([class]):not(.pi-list a),
.page-content .hi-steps a:not([class]) {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(93, 124, 156, .55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.page-content :is(p, li, span) a:not([class]):not(.pi-list a):hover,
.page-content :is(p, li, span) a:not([class]):not(.pi-list a):focus-visible {
  color: var(--slate);
  text-decoration-color: currentColor;
}

/* links inside navy cards / panels stay readable (same selector weight as the rule above, plus the navy container) */
.page-content :is(.at-compare-card--ours, .sched-note-call, .fv-xrays .sched-note-text) :is(p, li, span) a:not([class]):not(.pi-list a) {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, .5);
}

.page-content :is(.at-compare-card--ours, .sched-note-call, .fv-xrays .sched-note-text) :is(p, li, span) a:not([class]):not(.pi-list a):hover {
  color: var(--blue-4);
  text-decoration-color: currentColor;
}

/* Restorative Dentistry */
.pi-list-title {
  margin: 26px 0 6px;
  font-size: 22px;
  color: var(--navy);
}

.tc-list.oh-open {
  margin: 18px 0 0;
}

.dc-tips-card {
  padding: 18px 36px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--navy);
}

.dc-tips-list {
  columns: 2;
  column-gap: 48px;
}

.dc-tips-list li {
  break-inside: avoid;
}

@media (max-width: 760px) {
  .dc-tips-card {
    padding: 10px 22px;
  }

  .dc-tips-list {
    columns: 1;
  }
}

/* numbered steps beside a photo (image sections) are an open list — no box, thin dividers (same as Teeth Cleaning) */
.pi-intro .hi-steps {
  margin-top: 8px;
  background: none;
  border: 0;
}

.pi-intro .hi-steps li {
  padding: 14px 0 14px 46px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.pi-intro .hi-steps li + li {
  border-top-color: var(--border-warm);
}

.pi-intro .hi-steps li::before {
  top: 15px;
  left: 0;
}

/* Dental Fillings closing image section */
.rd-closing .page-copy > p:not(.pi-lead) {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

/* Tooth Extractions: "Sectioning a Tooth" sub-heading inside the process text */
.te-process .page-copy h3 {
  margin: 26px 0 10px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy);
}

/* Tooth Extractions aftercare cards: longer text, so a bit smaller */
.te-after .eyebrow {
  margin-bottom: 12px;
}

.te-after .fv-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

/* Implant Retained Dentures: option cards with their animation across the top */
.at-compare-card.ird-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.ird-anim {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.ird-anim iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.ird-body {
  flex: 1;
  padding: 26px 28px 30px;
}

.ird-body h4 {
  margin-top: 0;
}

/* tablet: one card per row, animation beside the text; phone: animation on top again */
@media (max-width: 1000px) {
  .tc-kinds-grid:has(.ird-card) {
    grid-template-columns: minmax(0, 1fr);
  }

  .at-compare-card.ird-card {
    flex-direction: row;
  }

  .ird-card .ird-anim {
    flex: 0 0 44%;
    align-self: center;
    margin-left: 22px;
  }
}

@media (max-width: 600px) {
  .at-compare-card.ird-card {
    flex-direction: column;
  }

  .ird-card .ird-anim {
    flex: none;
    align-self: stretch;
    margin-left: 0;
  }
}

/* Office Tour: Matterport 3D tour in the media frame */
.ot-tour iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  background: var(--navy);
  box-shadow: 0 30px 50px -30px rgba(13, 29, 54, .55);
}

.pi-intro.ot-intro {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}

@media (max-width: 1000px) {
  .pi-intro.ot-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .ot-intro .ot-tour {
    max-width: 760px;
  }
}

/* Office Tour: the embedded tour is a preview — a click opens the full tour in a new tab */
.ot-tour .ot-open {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 16 / 10;
  z-index: 2;
  display: grid;
  place-items: end end;
  padding: 18px;
  background: rgba(13, 29, 54, 0);
  cursor: pointer;
  transition: background-color .25s;
}

.ot-tour .ot-open:hover {
  background: rgba(13, 29, 54, .15);
}

.ot-open-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 10px 24px -14px rgba(13, 29, 54, .6);
}

.ot-tour .ot-open:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -6px;
}

/* Patient Reviews: Trustindex widget area */
.rv-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 8px 0 28px;
  padding: 18px 24px;
  border: 1px solid var(--line, #e3e3e3);
  background: #fff;
}

.rv-summary-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 16px;
}

.rv-summary-g svg { display: block; width: 28px; height: 28px; }
.rv-summary-stars { color: #f5b301; font-size: 20px; letter-spacing: 2px; }

.rv-wall[hidden] {
  display: none;
}

/* Smile Gallery */
.sg-section .eyebrow {
  margin-bottom: 12px;
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 28px;
  margin-top: 28px;
}

.sg-item {
  margin: 0;
}

/* a single photo is shown large and centred instead of stretched across a grid */
.sg-item:only-child {
  justify-self: center;
  width: min(100%, 980px);
}

.sg-item a {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--border-warm);
  padding: 12px;
  box-shadow: 0 30px 50px -36px rgba(13, 29, 54, .5);
  transition: box-shadow .3s, transform .3s var(--ease);
}

.sg-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 56px -34px rgba(13, 29, 54, .55);
}

.sg-item img {
  display: block;
  width: 100%;
  height: auto;
}

.sg-zoom {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--navy);
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: 0 10px 24px -14px rgba(13, 29, 54, .6);
}

.sg-zoom svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-item figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Zoom Whitening FAQ: sticky side panel + numbered question cards */
.faq2 {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: 56px;
  align-items: start;
}

.faq2-side {
  position: sticky;
  top: 120px;
}

.faq2-side .eyebrow {
  margin-bottom: 12px;
}

.faq2-side .sec-title {
  margin-bottom: 26px;
}

.faq2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.faq2-filter {
  padding: 9px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.faq2-filter:hover {
  border-color: var(--navy);
}

.faq2-filter.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.faq2-filter:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.faq2-help {
  padding: 28px 28px 30px;
  background: var(--navy);
  color: var(--white);
}

.faq2-help h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
}

.faq2-help p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--blue-4);
}

.faq2-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq2-list {
  display: grid;
  gap: 12px;
}

.faq2-item {
  background: var(--white);
  border: 1px solid var(--border-warm);
  transition: border-color .25s, box-shadow .25s;
}

.faq2-item[hidden] {
  display: none;
}

.faq2-item:hover {
  border-color: rgba(19, 41, 75, .35);
}

.faq2-item[open] {
  border-color: var(--navy);
  box-shadow: 0 24px 44px -34px rgba(13, 29, 54, .5);
}

.faq2-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
}

.faq2-item summary::-webkit-details-marker {
  display: none;
}

.faq2-item summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

.faq2-num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--slate);
}

.faq2-q {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--navy);
}

/* round +/- button */
.faq2-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-warm);
  border-radius: 50%;
  transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}

.faq2-icon::before,
.faq2-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .25s;
}

.faq2-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq2-item[open] .faq2-icon {
  background: var(--navy);
  border-color: var(--navy);
}

.faq2-item[open] .faq2-icon::before,
.faq2-item[open] .faq2-icon::after {
  background: var(--white);
}

.faq2-item[open] .faq2-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq2-answer {
  padding: 0 24px 24px 64px;
  animation: faq2-in .3s var(--ease);
}

.faq2-answer p {
  margin: 0 0 12px;
  padding-top: 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

.faq2-answer p + p {
  padding-top: 0;
  border-top: 0;
}

.faq2-answer p:last-child {
  margin-bottom: 0;
}

@keyframes faq2-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq2-answer {
    animation: none;
  }
}

@media (max-width: 1000px) {
  .faq2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .faq2-side {
    position: static;
  }

  .faq2-help {
    display: none;
  }
}

@media (max-width: 600px) {
  .faq2-item summary {
    gap: 12px;
    padding: 16px 16px;
  }

  .faq2-q {
    font-size: 18px;
  }

  .faq2-answer {
    padding: 0 16px 18px;
  }
}

/* =========================================================
   HOME PAGE — Figma redesign (file "figma-mcp", frame 59:159, Oct 2026)
   Everything is scoped to .hv (index.php only). Headings: Urbanist, text: DM Sans
   (loaded by index.php through $extra_head). Copy is unchanged from the previous home page.
   ========================================================= */
.hv {
  --hv-navy: #13294b;
  --hv-text: #4a5466;
  --hv-muted: #5b6577;
  --hv-page: #f1f1ef;
  --hv-icon: #dde7f0;
  --hv-panel: #f4f5f6;
  --hv-band: #dbe5ee;
  --hv-head: 'Urbanist', 'Montserrat', sans-serif;
  --hv-body: 'DM Sans', 'Montserrat', sans-serif;
  background: var(--hv-page);
  font-family: var(--hv-body);
  color: var(--hv-text);
}

.hv h1,
.hv h2 {
  font-family: var(--hv-head);
  font-weight: 500;
  color: var(--hv-navy);
  letter-spacing: 0;
}

.hv h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}

.hv h1 em,
.hv h2 em {
  font-style: normal;
}

.hv-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.hv-wrap-narrow { max-width: 880px; }
.hv-wrap-mid { max-width: 960px; }
.hv-wrap-banner { max-width: 1000px; }
.hv-wrap-wide { max-width: 1100px; }

.hv-eyebrow {
  margin-bottom: 10px;
  font-family: var(--hv-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

.hv-eyebrow-light { color: #c9d3e2; }

/* centered section heading + intro (design: h2 36px, p 14px / 22.4px) */
.hv-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hv-head p {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hv-text);
}

/* buttons: navy pill + outline pill */
.hv-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
}

.hv-btns-center { justify-content: center; }

.hv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--hv-navy);
  border-radius: 999px;
  font-family: var(--hv-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s;
}

.hv-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.hv-btn-navy { background: var(--hv-navy); color: #fff; }
.hv-btn-navy:hover { background: #1c3863; color: #fff; box-shadow: 0 14px 26px -16px rgba(19, 41, 75, .7); }
.hv-btn-line { background: transparent; color: var(--hv-navy); }
.hv-btn-line:hover { background: var(--hv-navy); color: #fff; }

.hv-text-link {
  font-size: 13px;
  color: var(--hv-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.hv-text-link:hover { color: var(--slate); }

/* ---------- Hero ---------- */
.hv-hero { padding: 72px 0 80px; }

.hv-hero-inner {
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 456px) 400px;
  gap: 76px;
  align-items: center;
  justify-content: center;
}

.hv-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hv-hero h1 {
  margin: 0;
  font-size: 60px;
  line-height: 1.08;
}

.hv .hv-hero-lines {
  display: grid;
  margin: 0;
  font-family: var(--hv-body);
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.65;
  color: var(--hv-text);
}

.hv-hero-media { position: relative; }

.hv-hero-photo {
  height: 500px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 28px;
  background: #e4e6e8;
  box-shadow: 0 30px 60px -36px rgba(19, 41, 75, .45);
}

.hv-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;   /* waiting-room photo: centred */
}

/* ---------- Icon cards (features + treatments) ---------- */
.hv-features { padding: 0 0 88px; }

.hv-cards {
  display: grid;
  gap: 16px;
}

.hv-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hv-cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 36px; }
.hv-cards-5 .hv-card { min-height: 0; }

.hv-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 237px;
  padding: 22px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
}

.hv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -28px rgba(19, 41, 75, .45);
}

.hv-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--hv-icon);
  font-size: 22px;
  color: var(--hv-navy);
}

.hv-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

.hv-card-title {
  font-family: var(--hv-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--hv-navy);
}

.hv-card-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--hv-text);
}

.hv-card-more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  color: var(--hv-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Welcome: light panel + navy card (the design's "Insurance & payment" block) ---------- */
.hv-welcome {
  padding: 80px 0;
  background: #fff;
}

.hv-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.hv-panel {
  display: flex;
  align-items: center;
  padding: 32px 34px;
  border-radius: 16px;
  background: var(--hv-panel);
}

.hv-panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--hv-text);
}

.hv-navy-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 30px 26px;
  border-radius: 16px;
  background: var(--hv-navy);
  text-align: center;
}

.hv-navy-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #c9d3e2;
}

.hv-navy-card a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hv-navy-card .hv-navy-link {
  margin-top: 4px;
  font-size: 13px;
}

/* ---------- What Sets Us Apart ---------- */
.hv-services { padding: 88px 0; }

/* ---------- Doctors ---------- */
.hv-doctors { padding: 0 0 88px; }

.hv-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hv-doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.hv-doctor {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.hv-doctor-photo {
  display: block;
  height: 300px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 16px;
  background: #e4e6ec;
}

.hv-doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .5s var(--ease);
}

.hv-doctor:hover .hv-doctor-photo img { transform: scale(1.03); }

.hv-doctor-name {
  font-family: var(--hv-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--hv-navy);
}

.hv-doctor-cred {
  font-size: 13px;
  color: var(--hv-muted);
}

/* ---------- New Patients banner (photo + navy card) ---------- */
.hv-np { padding: 0 0 88px; }

.hv-banner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  min-height: 320px;
}

.hv-banner-photo {
  position: relative;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 22px;
  background: #d9dde2;
}

.hv-banner-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-banner-shade {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 310px;
  padding: 0 40px;
  box-sizing: border-box;
  background: linear-gradient(90deg, rgba(19, 41, 75, .55), rgba(19, 41, 75, 0) 70%);
}

.hv .hv-banner-shade h2 {
  max-width: 340px;
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
}

.hv-banner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-radius: 22px;
  background: var(--hv-navy);
}

.hv-pill-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 230px;
}

.hv-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--hv-icon);
  font-size: 13px;
  font-weight: 600;
  color: var(--hv-navy);
  text-decoration: none;
  transition: background-color .2s;
}

.hv-pill:hover { background: #fff; }

/* ---------- Reviews ---------- */
.hv-reviews {
  padding: 80px 0;
  background: var(--hv-band);
}

.hv-reviews h2 {
  font-size: 34px;
  font-weight: 400;
}

.hv-reviews h2 strong { font-weight: 600; }

.hv-slider {
  --per-view: 3;
  --gap: 16px;
  margin-top: 28px;
}

.hv .review-card.hv-review {
  gap: 14px;
  padding: 28px 24px;
  border: 0;
  border-radius: 16px;
}

.hv .review-card.hv-review:hover { box-shadow: 0 22px 40px -30px rgba(19, 41, 75, .5); }

.hv-quote {
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: .8;
  color: var(--hv-navy);
}

.hv .hv-review .review-text {
  --lines: 7;
  font-family: var(--hv-body);
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  height: calc(1.6em * var(--lines));
  color: var(--hv-text);
}

.hv-review-foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hv .hv-review .review-meta {
  margin: 0;
  font-size: 10px;
  letter-spacing: .08em;
  color: #8a94a6;
}

/* progress bar instead of arrows + dots (each page of reviews is one segment) */
.hv-slider .slider-controls { margin-top: 24px; }
.hv-slider .slider-btn { display: none; }

.hv-slider .slider-dots {
  flex: 1;
  gap: 0;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: #c4d2df;
}

.hv-slider .slider-dot,
.hv-slider .slider-dot.active {
  flex: 1;
  width: auto;
  height: 3px;
  border-radius: 2px;
  background: transparent;
}

.hv-slider .slider-dot.active { background: var(--hv-navy); }

.hv-reviews .hv-btns { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hv-cards-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hv-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hv-hero-media { max-width: 420px; }
  .hv-hero-photo { height: 420px; }
  .hv-hero h1 { font-size: 48px; }
  .hv-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-split,
  .hv-banner { grid-template-columns: 1fr; }
  .hv-slider { --per-view: 2; }
}

@media (max-width: 640px) {
  .hv-hero { padding: 48px 0 56px; }
  .hv-hero h1 { font-size: 38px; }
  .hv .hv-hero-lines { font-size: 17px; }
  .hv-hero-photo { height: 340px; }
  .hv h2 { font-size: 30px; }
  .hv .hv-banner-shade h2 { font-size: 32px; }
  .hv-cards-4,
  .hv-cards-5 { grid-template-columns: 1fr; }
  .hv-card { min-height: 0; }
  .hv-doctor-grid { grid-template-columns: 1fr; }
  .hv-doctor-photo { height: 340px; }
  .hv-welcome,
  .hv-reviews { padding: 60px 0; }
  .hv-services { padding: 64px 0; }
  .hv-features,
  .hv-doctors,
  .hv-np { padding-bottom: 64px; }
  .hv-panel { padding: 26px 22px; }
  .hv-slider { --per-view: 1; }
  .hv-btn { justify-content: center; }
}

/* =========================================================
   SITE HEADER + FOOTER — Figma redesign (header 59:482, footer 59:378, Oct 2026)
   Overrides the earlier header / footer styles above. Same menu and footer content.
   Text: DM Sans, headings: Urbanist (loaded in includes/header.php).
   ========================================================= */
:root {
  --sf-navy: #13294b;
  --sf-text: #4a5466;
  --sf-muted: #5b6577;
  --sf-line: #eef0f2;
  --sf-pill: #dde7f0;
  --sf-body: 'DM Sans', 'Montserrat', sans-serif;
  --sf-head: 'Urbanist', 'Montserrat', sans-serif;
}

/* the home page background runs behind the floating header */
body:has(.hv) { background: #f1f1ef; }

/* ---------- Top bar: white, small text ---------- */
.utility {
  background: #fff;
  color: var(--sf-text);
  border-bottom: 1px solid var(--sf-line);
  font-family: var(--sf-body);
  font-size: 12px;
  letter-spacing: 0;
}

.utility-inner {
  max-width: 1260px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.utility a,
.lang-switch button { color: var(--sf-text); }

.utility a:hover,
.lang-switch button:hover { color: var(--sf-navy); }

.lang-switch button.active {
  color: var(--sf-navy);
  border-bottom-color: var(--sf-navy);
}

.utility .utility-phone {
  color: var(--sf-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header: floating white rounded bar ---------- */
.site-header {
  padding: 14px 20px 0;
  background: transparent;
  border-bottom: 0;
}

.site-header.scrolled { box-shadow: none; }

.header-inner.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 6px 14px 6px 18px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px -12px rgba(19, 41, 75, .18);
  transition: box-shadow .3s;
}

.site-header.scrolled .header-inner.container { box-shadow: 0 12px 30px -16px rgba(19, 41, 75, .35); }

.logo img { height: 64px; }

.main-nav ul { gap: 2px; }

.nav-item { padding: 12px 0; }

.nav-top {
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--sf-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sf-navy);
  gap: 5px;
  transition: background-color .2s, color .2s;
}

.nav-top::after { display: none; }

.nav-item:hover > .nav-top,
.nav-item:focus-within > .nav-top,
.nav-item.active > .nav-top {
  background: #eef3f8;
  color: var(--sf-navy);
}

.nav-caret {
  font-size: 12px;
  line-height: 1;
  opacity: .7;
  transform: translateY(-2px);
}

.nav-item:hover .nav-caret { transform: translateY(1px) rotate(180deg); }

/* dropdowns: rounded white panel */
.mega {
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(19, 41, 75, .35);
  font-family: var(--sf-body);
}

.header-actions .btn {
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sf-pill);
  color: var(--sf-navy);
  font-family: var(--sf-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.header-actions .btn:hover {
  background: var(--sf-navy);
  color: #fff;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-color: var(--sf-pill);
  background: var(--sf-pill);
}

/* ---------- Footer: white rounded card ---------- */
.sf {
  padding: 64px 20px 24px;
  background: transparent;
  color: var(--sf-text);
  font-family: var(--sf-body);
}

.sf-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 36px 22px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 22px;
}

.sf a { color: inherit; text-decoration: none; }
.sf a:hover { color: var(--sf-navy); }

/* row 1: practice details + map */
.sf-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--sf-line);
}

.sf-place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.sf-title {
  font-family: var(--sf-head);
  font-size: 22px;
  font-weight: 500;
  color: var(--sf-navy);
}

.sf-lines {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.sf .sf-phone { color: var(--sf-navy); }

.sf .sf-book {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sf-map {
  grid-column: 2 / span 2;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid #c9cfd8;
  border-radius: 14px;
  background: #f4f5f6;
}

.sf-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  border: 0;
}

/* row 2: brand column + menu columns */
.sf-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
  gap: 28px;
  padding: 32px 0;
}

.sf-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sf-logo img {
  width: 150px;
  height: auto;
  mix-blend-mode: multiply;
}

.sf-tagline {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-tagline em { font-style: italic; color: var(--sf-navy); }

.sf-hours {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--sf-text);
}

.sf-hours span { display: block; font-weight: 600; color: var(--sf-navy); }

.sf .social-links-footer a {
  border-color: var(--sf-line);
  background: #f4f5f6;
  color: var(--sf-navy);
}

.sf .social-links-footer a:hover {
  background: var(--sf-navy);
  border-color: var(--sf-navy);
  color: #fff;
}

.sf-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.sf-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.sf .sf-col-title {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-navy);
}

/* row 3: legal links + copyright */
.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--sf-line);
  font-size: 11px;
  color: var(--sf-muted);
}

.sf-bottom a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .header-inner.container { padding: 6px 10px 6px 14px; }
  .logo img { height: 56px; }
}

@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr; }
  .sf-map { grid-column: auto; }
  .sf-mid { grid-template-columns: 1fr; }
  .sf-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 12px 0; }
  .utility-inner { justify-content: center; }
  .utility-address { display: none; }
  .header-actions .btn { padding: 10px 14px; font-size: 12px; }
  .logo img { height: 48px; }
  .sf { padding: 48px 12px 16px; }
  .sf-card { padding: 26px 22px 18px; }
  .sf-links { gap: 24px 18px; }
}

/* Mobile menu: same type as the redesigned header (DM Sans, sentence case, pill buttons) */
.mnav { font-family: var(--sf-body); }

.mnav-link {
  font-family: var(--sf-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sf-navy);
}

.mnav-sub-inner a { font-family: var(--sf-body); }

.mnav-foot .btn {
  border-radius: 999px;
  font-family: var(--sf-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* =========================================================
   1440px layout: the redesigned header, footer and home sections use the
   same width as the site's .container (1440px incl. 32px side padding)
   ========================================================= */
.utility-inner { max-width: 1440px; }

.site-header { padding: 14px 32px 0; }
.header-inner.container { max-width: 1376px; }

.sf { padding: 64px 32px 24px; }
.sf-card { max-width: 1376px; }

.hv-wrap,
.hv-wrap-narrow,
.hv-wrap-mid,
.hv-wrap-banner,
.hv-wrap-wide {
  max-width: 1440px;
  padding: 0 32px;
}

.hv-hero-inner {
  max-width: 1440px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  justify-content: space-between;
}

.hv-hero-copy { max-width: 620px; }
.hv-hero-photo { height: 600px; }
.hv-doctor-photo { height: 420px; }
.hv-banner { min-height: 400px; }
.hv-banner-shade { min-height: 390px; padding: 0 56px; }
.hv-slider { --per-view: 4; }

@media (max-width: 1150px) {
  .hv-slider { --per-view: 3; }
  .hv-doctor-photo { height: 340px; }
}

@media (max-width: 960px) {
  .hv-hero-inner { grid-template-columns: 1fr; }
  .hv-hero-photo { height: 460px; }
  .hv-slider { --per-view: 2; }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 12px 0; }
  .sf { padding: 48px 12px 16px; }
  .hv-wrap,
  .hv-wrap-narrow,
  .hv-wrap-mid,
  .hv-wrap-banner,
  .hv-wrap-wide { padding: 0 20px; }
  .hv-hero-photo { height: 340px; }
  .hv-banner-shade { min-height: 300px; padding: 0 28px; }
  .hv-slider { --per-view: 1; }
}

/* =========================================================
   HOME improvements (Oct 2026): line icons, bento treatment cards,
   request form restyled to the redesign (white form card + photo card)
   ========================================================= */

/* line icons in the card icon boxes */
.hv-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hv-card:hover .hv-card-icon {
  background: var(--hv-navy);
  color: #fff;
}

.hv-card-icon { transition: background-color .25s, color .25s; }

/* ---------- What Sets Us Apart: bento grid ---------- */
.hv-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(230px, auto);
  gap: 16px;
  margin-top: 36px;
}

.hv-bento .hv-card { min-height: 0; }

.hv-bento-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.hv-bento-2 { grid-column: 3; grid-row: 1; }
.hv-bento-3 { grid-column: 4; grid-row: 1; }
.hv-bento-4 { grid-column: 3; grid-row: 2; }
.hv-bento-5 { grid-column: 4; grid-row: 2; }

.hv-photo-card {
  position: relative;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--hv-navy);
}

.hv-photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.hv-photo-card:hover img { transform: scale(1.04); }

.hv-photo-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 60px 22px 22px;
  box-sizing: border-box;
  background: linear-gradient(0deg, rgba(19, 41, 75, .88) 0%, rgba(19, 41, 75, .55) 55%, rgba(19, 41, 75, 0) 100%);
}

.hv-photo-card .hv-card-cat { color: #c9d3e2; }
.hv-photo-card .hv-card-title { color: #fff; }
.hv-photo-card .hv-card-more { padding-top: 6px; color: #fff; }

.hv-bento-1 .hv-photo-text { padding: 90px 32px 30px; }
.hv-bento-1 .hv-card-title { font-size: 28px; font-weight: 500; }

/* ---------- Request section (home page only — the form card is also used on other pages) ---------- */
.request {
  background: var(--hv-page, #f1f1ef);
  overflow: visible;
}

.request .request-inner {
  padding-top: 0;
  padding-bottom: 24px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  align-items: stretch;
}

.request .request-card {
  max-width: none;
  padding: 36px;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
  font-family: var(--sf-body);
}

.request .eyebrow {
  font-family: var(--sf-body);
  font-size: 12px;
  letter-spacing: .16em;
}

.request .request-title {
  font-family: var(--sf-head);
  font-size: 32px;
  font-weight: 500;
}

.request .field {
  font-family: var(--sf-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sf-navy);
}

.request .field input,
.request .field select,
.request .field textarea {
  padding: 12px 14px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #f8f9fa;
  font-family: var(--sf-body);
  font-size: 14px;
  font-weight: 400;
}

.request .field input:focus,
.request .field select:focus,
.request .field textarea:focus {
  background: #fff;
  border-color: var(--sf-navy);
  box-shadow: 0 0 0 3px rgba(19, 41, 75, .12);
}

.request .consent-check,
.request .contact-policies { font-family: var(--sf-body); }

.request .request-form .btn-block {
  padding: 15px;
  border-radius: 999px;
  font-family: var(--sf-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* photo card with the heading */
.request .request-copy {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 22px;
  background: var(--sf-navy);
}

.request-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-copy-text {
  position: relative;
  width: 100%;
  padding: 120px 36px 36px;
  box-sizing: border-box;
  background: linear-gradient(0deg, rgba(19, 41, 75, .92) 0%, rgba(19, 41, 75, .6) 55%, rgba(19, 41, 75, 0) 100%);
}

.request .request-copy h2 {
  margin: 10px 0 14px;
  font-family: var(--sf-head);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
}

.request .request-copy p {
  margin: 0;
  font-family: var(--sf-body);
  color: #dbe5ee;
}

/* the footer card sits right under the request section */
.request + * { margin-top: 0; }

@media (max-width: 1080px) {
  .hv-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); }
  .hv-bento-1 { grid-column: 1 / span 2; grid-row: auto; min-height: 340px; }
  .hv-bento-2,
  .hv-bento-3,
  .hv-bento-4,
  .hv-bento-5 { grid-column: auto; grid-row: auto; }
}

@media (max-width: 960px) {
  .request .request-inner { grid-template-columns: 1fr; }
  .request .request-copy { min-height: 360px; order: -1; }
}

@media (max-width: 640px) {
  .hv-bento { grid-template-columns: 1fr; }
  .hv-bento-1 { grid-column: auto; min-height: 300px; }
  .hv-bento-1 .hv-card-title { font-size: 24px; }
  .request .request-card { padding: 26px 20px; }
  .request .request-copy { min-height: 300px; }
  .request-copy-text { padding: 90px 24px 26px; }
}

.request .request-inner { padding-top: 88px; }

.request .request-form .contact-consent {
  border: 1px solid #eef0f2;
  border-radius: 12px;
  background: #f8f9fa;
}

@media (max-width: 640px) {
  .request .request-inner { padding-top: 64px; }
}

@media (max-width: 1080px) {
  .hv-bento .hv-bento-1 { min-height: 340px; }
}

@media (max-width: 640px) {
  .hv-bento .hv-bento-1 { min-height: 300px; }
}

/* ---------- Welcome (improved): heading + doctor avatars left, text + contact strip right ---------- */
.hv-welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.hv .hv-welcome-head h2 {
  font-size: 46px;
  line-height: 1.1;
}

.hv-avatars {
  display: inline-flex;
  margin-top: 28px;
  padding-left: 14px;
}

.hv-avatars img {
  width: 64px;
  height: 64px;
  margin-left: -14px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: #e4e6ec;
  box-shadow: 0 8px 18px -10px rgba(19, 41, 75, .5);
  transition: transform .25s var(--ease);
}

.hv-avatars:hover img { transform: translateY(-3px); }

.hv-welcome-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--hv-text);
}

.hv-contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--hv-panel);
}

.hv-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hv-contact-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hv-text);
}

.hv-contact-item a {
  color: var(--hv-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hv-contact-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--hv-icon);
  color: var(--hv-navy);
}

.hv-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hv-contact-btn { white-space: nowrap; }

@media (max-width: 1150px) {
  .hv-contact-strip { grid-template-columns: 1fr 1fr; }
  .hv-contact-btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 960px) {
  .hv-welcome-grid { grid-template-columns: 1fr; gap: 28px; }
  .hv .hv-welcome-head h2 { font-size: 38px; }
}

@media (max-width: 640px) {
  .hv .hv-welcome-head h2 { font-size: 30px; }
  .hv-welcome-lead { font-size: 16px; }
  .hv-contact-strip { grid-template-columns: 1fr; padding: 18px; }
  .hv-contact-btn { justify-self: stretch; justify-content: center; }
}

/* contact strip: the call/book line gets more room and the booking link never breaks */
.hv-contact-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) auto; }
.hv-contact-item { align-items: center; }
.hv-contact-item p a + a { white-space: nowrap; }

@media (max-width: 1150px) {
  .hv-contact-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hv-contact-strip { grid-template-columns: 1fr; }
}

/* contact strip: two contact items side by side, button on its own row */
.hv-contact-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hv-contact-btn { grid-column: 1 / -1; justify-self: start; }

@media (max-width: 640px) {
  .hv-contact-strip { grid-template-columns: 1fr; }
  .hv-contact-btn { justify-self: stretch; }
}

/* ---------- Reviews slider: draggable cards + draggable progress bar ---------- */
.hv-slider .slider-track { cursor: grab; }

.slider-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.slider-track.is-dragging * { pointer-events: none; }

/* dots stay for keyboard / screen-reader users but are hidden visually; the bar replaces them */
.hv-slider .slider-dots {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hv-slider .slider-controls { position: relative; }

.slider-bar {
  position: relative;
  flex: 1;
  height: 18px;
  cursor: pointer;
  touch-action: none;
}

.slider-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: #c4d2df;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: var(--hv-navy, #13294b);
  cursor: grab;
  transition: height .15s, margin-top .15s;
}

.slider-bar:hover .slider-thumb,
.slider-bar.is-dragging .slider-thumb {
  height: 7px;
  margin-top: -3.5px;
}

.slider-bar.is-dragging .slider-thumb { cursor: grabbing; }

/* section intro text under the headings: a little larger */
.hv-head p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .hv-head p { font-size: 15px; }
}


/* Header menu: larger text. Side padding 9px (was 13px) so all 10 items, with Pediatric added Nov 3 2026, still fit on a 1366px laptop */
.nav-top {
  padding: 9px 9px;
  font-size: 15px;
}

.nav-caret { font-size: 13px; }

.header-actions .btn {
  padding: 12px 20px;
  font-size: 14px;
}

.hv-nowrap { white-space: nowrap; }
/* hero: on laptops (961–1365px) the photo column gives way so the heading keeps a readable width */
@media (min-width: 961px) and (max-width: 1365px) {
  .hv-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; }
}

/* ---------- Top bar: address · new-patient offer (centre) · language switch ---------- */
.utility-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 24px;
}

.utility-address { justify-self: start; }
.utility-right { justify-self: end; }

.utility-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--sf-text);
}

.utility-tag {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--sf-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--sf-navy);
  white-space: nowrap;
}

.utility .utility-link {
  color: var(--sf-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1199px) {
  .utility-inner { grid-template-columns: 1fr auto; }
  .utility-address { display: none; }
  .utility-offer { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .utility-inner { grid-template-columns: 1fr; justify-items: center; }
  .utility-offer { justify-content: center; text-align: center; }
  .utility-right { justify-self: center; }
}


/* contact strip on narrower screens: one item per row, booking link may wrap */
@media (max-width: 1280px) {
  .hv-contact-item p a + a { white-space: normal; }
}

@media (max-width: 1100px) {
  .hv-contact-strip { grid-template-columns: 1fr; }
}

/* ---------- Top bar moves into the mobile menu (≤1199px, or when the menu collapses) ---------- */
@media (max-width: 1199px) {
  .utility { display: none; }
}

.nav-collapsed .utility { display: none; }

.mnav-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 4px 20px 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef3f8;
  font-family: var(--sf-body);
}

.mnav-offer .utility-tag { background: #fff; }

.mnav-offer p {
  flex: 1 1 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sf-navy);
}

.mnav-offer-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mnav-address {
  display: block;
  margin-top: 4px;
  font-family: var(--sf-body);
  font-size: 12px;
  text-align: center;
  color: var(--sf-text);
}

.mnav-lang {
  justify-content: center;
  font-family: var(--sf-body);
  font-size: 13px;
}

.mnav-lang button { color: var(--sf-text); }
.mnav-lang button.active { color: var(--sf-navy); border-bottom-color: var(--sf-navy); }

/* Hero: service tag on the photo (Figma 59:191) */
.hv-hero-tag {
  position: absolute;
  right: -26px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  border-radius: 12px;
  background: rgba(19, 41, 75, .72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-family: var(--hv-body);
  font-size: 13px;
}

.hv-hero-tag a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.hv-hero-tag a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hv-hero-tag span { opacity: .7; }

@media (max-width: 960px) {
  .hv-hero-tag { right: 16px; bottom: 20px; }
}

/* Hero on tablet / phone: photo first, text below */
@media (max-width: 960px) {
  .hv-hero-media { order: -1; width: 100%; max-width: 560px; }
  .hv-hero-inner { gap: 32px; }
}

/* Hero service tag: larger */
.hv-hero-tag {
  right: -36px;
  bottom: 44px;
  gap: 10px;
  padding: 18px 24px;
  border-radius: 16px;
  font-size: 16px;
}

.hv-hero-tag a { gap: 10px; }

@media (max-width: 960px) {
  .hv-hero-tag { right: 16px; bottom: 20px; padding: 14px 18px; font-size: 15px; }
}

@media (max-width: 640px) {
  .hv-hero-tag { gap: 7px; padding: 12px 16px; font-size: 14px; }
}

@media (min-width: 961px) {
  .hv-hero-tag { right: -24px; }
}

/* New Patients banner now follows the reviews band: space above it, the request section adds the space below */
.hv-np { padding: 88px 0 0; }

@media (max-width: 640px) {
  .hv-np { padding: 64px 0 0; }
}

/* Menu arrow: drawn chevron, centred with the text, flips when the menu opens */
.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  font-size: 0;
  opacity: .65;
  transform: none;
  transition: transform .25s var(--ease), opacity .2s;
}

.nav-caret svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}

/* Doctor photos: frame matches the photos' 4:5 shape, so the branded portraits are never cut off */
.hv-doctor-grid .hv-doctor-photo {
  height: auto;
  aspect-ratio: 4 / 5;
}

.hv-doctor-grid .hv-doctor-photo img { object-position: center top; }

/* Footer language switch (works like the one in the top bar) */
.sf-lang {
  font-size: 13px;
  color: var(--sf-text);
}

.sf-lang button {
  color: var(--sf-text);
  cursor: pointer;
}

.sf-lang button:hover { color: var(--sf-navy); }

.sf-lang button.active {
  color: var(--sf-navy);
  font-weight: 600;
  border-bottom-color: var(--sf-navy);
}

/* Review cards: larger text, 4 lines shown (Read more opens the rest) */
.hv .hv-review .review-text {
  --lines: 4;
  font-size: 17px;
  line-height: 1.6;
  height: calc(1.6em * var(--lines));
}

@media (max-width: 640px) {
  .hv .hv-review .review-text { font-size: 16px; }
}

/* opened review grows (scrolls only if it is very long) */
.hv .hv-review.expanded .review-text {
  height: auto;
  max-height: calc(1.6em * 11);
}

/* opened review keeps the card height: the text scrolls inside the 4-line area */
.hv .hv-review.expanded .review-text {
  height: calc(1.6em * var(--lines));
  max-height: none;
  overflow-y: auto;
  padding-right: 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #9fb3c9 transparent;
}

.hv .hv-review.expanded .review-text::-webkit-scrollbar { width: 5px; }
.hv .hv-review.expanded .review-text::-webkit-scrollbar-thumb { background: #9fb3c9; border-radius: 3px; }

/* =========================================================
   SECTION OVERVIEW PAGES — Figma subpage design (frame 70:680), e.g. /preventative-care/
   Uses the home redesign tokens (.hv). Cards alternate text/photo sides.
   ========================================================= */
.sv-hero { padding: 64px 0 40px; text-align: center; }

.sv-crumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--hv-muted);
}

.sv-crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.sv-crumbs a { color: var(--hv-muted); text-decoration: none; }
.sv-crumbs a:hover { color: var(--hv-navy); }

.hv .sv-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.08;
}

.sv-hero p {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--hv-text);
}

.sv-list { padding: 0 0 72px; }

.sv-list-inner {
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sv-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 40px;
  min-height: 360px;
  padding: 38px;              /* same padding on every side, photo side included */
  border-radius: 22px;
  background: #fff;
}

.sv-card-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }
.sv-card-flip .sv-card-media { order: -1; }

.sv-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 0;
}

.sv-card-body .hv-card-icon { width: 48px; height: 48px; margin-bottom: 6px; }

.hv .sv-card-body h2 {
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.15;
}

.sv-card-body h2 a { color: inherit; text-decoration: none; }
.sv-card-body h2 a:hover { color: var(--slate); }

.sv-card-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hv-text);
}

.sv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;   /* easy to tap on phones */
  padding: 6px 14px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  font-size: 13px;
  color: var(--hv-navy);
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}

.sv-chips a:hover { background: var(--hv-icon); border-color: var(--hv-icon); }

.sv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.sv-actions .hv-btn { padding: 11px 22px; font-size: 14px; }
.sv-actions .hv-text-link { font-size: 14px; }

.sv-card-media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 18px;
  background: #e4e6e8;
}

.sv-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.sv-card:hover .sv-card-media img { transform: scale(1.03); }

/* single photos: frame in the photos' own 3:2 shape so they are not cropped to a thin strip */
.sv-card-media:not(.sv-card-group):not(.sv-card-art) { align-self: center; aspect-ratio: 3 / 2; min-height: 0; }

/* card with a row of portraits (About Us: doctors, staff) — faces kept in view */
.sv-card-group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
}

.sv-card-group span {
  position: relative;
  overflow: hidden;
}

.sv-card-group img {
  inset: 0 auto auto -10%;
  max-width: none;
  width: 120%;                    /* hides the white outline / empty strip at the bottom of the portrait files; */
  height: 120%;                   /* zoomed by size, not transform, so the photos stay sharp */
  object-position: 50% 15%;
}

.sv-card:hover .sv-card-group img { transform: none; }

/* photo shown whole (letterboxed) — e.g. a before/after graphic with its own title */
.sv-card-whole { background: var(--hv-navy); }
.sv-card-whole img { object-fit: contain; }

/* card without a photo: navy panel with the topic icon */
.sv-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hv-navy);
  color: #c9d3e2;
}

.sv-card-art svg {
  width: 120px;
  height: 120px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-more { padding: 16px 0 24px; text-align: center; }

.hv .sv-more h2 { font-size: clamp(28px, 3vw, 38px); }

.sv-more p {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--hv-text);
}

.sv-more p a { color: var(--hv-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.sv-more-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.sv-more-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-width: 280px;
  padding: 18px 22px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  font-family: var(--hv-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--hv-navy);
  text-decoration: none;
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}

.sv-more-links a:hover {
  border-color: var(--hv-navy);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -22px rgba(19, 41, 75, .5);
}

@media (max-width: 900px) {
  .sv-card,
  .sv-card-flip { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .sv-card-flip .sv-card-media,
  .sv-card-media { order: -1; min-height: 260px; }
  .sv-card-body { padding: 0; }
}

@media (max-width: 640px) {
  .sv-hero { padding: 44px 0 28px; }
  .sv-card-media { min-height: 220px; }
  .sv-more-links a { min-width: 0; width: 100%; }
}

/* Section overview: in-text links in the intro, optional list heading, closing buttons */
.sv-hero p a {
  color: var(--hv-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(93, 124, 156, .55);
  text-underline-offset: 3px;
}

.sv-hero p a:hover { color: var(--slate); }

.sv-hero-inner p { max-width: 760px; }

.hv .sv-list-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: clamp(28px, 3vw, 38px);
}

.sv-more-btns { margin-top: 18px; padding-top: 0; }
.sv-more .hv-eyebrow { margin-bottom: 8px; }

/* =========================================================
   SERVICES PAGE (/services/) — Figma "Our services" design
   ========================================================= */
.svc-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.svc-jump a {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--hv-navy);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(19, 41, 75, .06);
  transition: background-color .2s, color .2s;
}

.svc-jump a:hover { background: var(--hv-navy); color: #fff; }

.svc-groups { padding: 8px 0 88px; }

.svc-groups-inner {
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.svc-group {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 22px;
  padding: 6px 28px 6px 6px;
  border-radius: 20px;
  background: #fff;
  scroll-margin-top: 130px;
}

.svc-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 26px;
  border-radius: 16px;
  background: var(--hv-navy);
  color: #c9d3e2;
}

.svc-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9fb3c9;
}

.hv .svc-panel h2 {
  margin: 14px 0 12px;
  font-size: 32px;
  line-height: 1.1;
  color: #fff;
}

.svc-panel p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
}

.svc-view {
  margin-top: auto;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--hv-icon);
  font-size: 13px;
  font-weight: 600;
  color: var(--hv-navy);
  text-decoration: none;
  transition: background-color .2s;
}

.svc-view:hover { background: #fff; }

.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  align-content: start;
  margin: 0;
  padding: 18px 0;
  list-style: none;
}

.svc-list > li { border-bottom: 1px solid #eef0f2; }

.svc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px;
  font-family: var(--hv-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--hv-navy);
  text-decoration: none;
  transition: color .2s, padding .25s var(--ease);
}

.svc-item svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .5;
  transition: opacity .2s, transform .25s var(--ease);
}

.svc-item:hover { color: var(--slate); padding-left: 6px; }
.svc-item:hover svg { opacity: 1; transform: translateX(3px); }

.svc-subs {
  margin: -6px 0 14px 2px;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 1px solid #dfe3e8;
}

.svc-subs a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--hv-text);
  text-decoration: none;
}

.svc-subs a:hover { color: var(--hv-navy); text-decoration: underline; text-underline-offset: 3px; }

.svc-more-count {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hv-icon);
  font-family: var(--hv-body, inherit);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  vertical-align: middle;
  color: var(--hv-navy);
  display: inline-block;
  white-space: nowrap;
}

/* Sub-pages open on hover / keyboard focus as a small dropdown, so the card keeps its height.
   Touch screens (no hover) keep the list shown under the item. */
@media (hover: hover) {
  .svc-has-subs { position: relative; }
  .svc-has-subs .svc-subs {
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    right: 0;
    z-index: 5;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(19, 41, 75, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .svc-has-subs:hover .svc-subs,
  .svc-has-subs:focus-within .svc-subs {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 900px) {
  .svc-group { grid-template-columns: 1fr; padding: 6px; }
  .svc-list { padding: 4px 18px 14px; }
}

@media (max-width: 640px) {
  .svc-list { grid-template-columns: 1fr; }
  .hv .svc-panel h2 { font-size: 28px; }
}

/* Header on mid-size screens (7 menu items incl. Services): slightly tighter so it fits before the mobile menu takes over */
@media (max-width: 1320px) {
  .nav-top { padding: 9px 8px; font-size: 14px; }
  .header-inner.container { gap: 14px; }
  .header-actions .btn { padding: 11px 16px; font-size: 13px; }
  .logo img { height: 56px; }
}

/* =========================================================
   Treatment page — Figma treatment-page design (Oct 2026), first used on /restorative-dentistry/dental-crowns/.
   Wrapper: .hv.sv.tp (reuses the .sv breadcrumb and closing "More in …" styles).
   ========================================================= */
.tp-hero { padding: 64px 0 48px; }

.tp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  max-width: 1440px;
}

.tp-hero .sv-crumbs { justify-content: flex-start; }

.hv .tp-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.08;
}

.tp-hero-copy > p {
  margin: 18px 0 26px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--hv-text);
}

.tp-hero-copy p a,
.tp-card p a { color: var(--hv-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.tp-hero-media {
  padding: 6px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px -36px rgba(19, 41, 75, .45);
}

.tp-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 17px;
}

.tp-body { padding: 8px 0 72px; }

.tp-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1440px;
}

.tp-card {
  padding: 34px 38px;
  border-radius: 22px;
  background: #fff;
}

.hv .tp-card h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.25;
}

.tp-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--hv-text);
}

.tp-card p + p { margin-top: 14px; }

.tp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
}

.tp-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tp-step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border-radius: 8px;
  background: var(--hv-icon);
  font-size: 13px;
  font-weight: 600;
  color: var(--hv-navy);
}

.tp-card-navy { background: var(--hv-navy); }
.hv .tp-card-navy h2 { color: #fff; }

.tp-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-benefits li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
  color: #d6deea;
}

.tp-benefits li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: #9fb3c9;
}

.tp-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tp-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #0d1d36;
}

.tp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Hero with a row of portraits (Meet the Doctors) — faces kept in view, built-in white edges zoomed out */
.tp-hero-group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 17px;
}

.tp-hero-group span { position: relative; overflow: hidden; background: #e4e6e8; }

.tp-hero-group img {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;            /* zoomed by size, not transform, so the photo stays sharp */
  max-width: none;
  height: 120%;
  object-fit: cover;
  object-position: 50% 15%;
}

/* Section heading inside the body column */
.hv .tp-section-title {
  margin: 24px 0 4px;
  font-size: clamp(28px, 3vw, 36px);
  text-align: center;
}

/* Doctor cards (Meet the Doctors) */
.tp-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tp-doc {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
}

.tp-doc:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -30px rgba(19, 41, 75, .5); }

.tp-doc-head { display: flex; align-items: center; gap: 16px; }

.tp-doc-avatar {
  flex: none;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--hv-icon);
}

.tp-doc-avatar { position: relative; }

.tp-doc-avatar img {
  position: absolute;
  top: 0;
  left: -12.5%;
  width: 125%;            /* zoomed by size, not transform, so the photo stays sharp */
  max-width: none;
  height: 125%;
  object-fit: cover;
  object-position: 50% 12%;
}

.tp-doc-name {
  display: block;
  font-family: var(--hv-head);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--hv-navy);
}

.tp-doc-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--hv-text);
}

.tp-doc-cred {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--hv-icon);
  font-size: 12px;
  font-weight: 600;
  color: var(--hv-navy);
}

.tp-doc-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-doc-highlights span {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hv-text);
}

.tp-doc-highlights span::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hv-navy);
}

.tp-doc-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--hv-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 960px) {
  .tp-docs { grid-template-columns: 1fr; }
}

/* Doctor profile pages (/about-us/dr-…/) */
.tp-hero-role { margin: 14px 0 0; font-size: 16px; }

.tp-hero-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.tp-hero-points li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--hv-text);
}

.tp-hero-points li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--hv-navy); }

/* portrait photo: taller frame, kept to a sensible width */
.tp-hero-portrait { justify-self: center; width: 100%; max-width: 460px; }
.tp-portrait-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 17px; background: var(--hv-icon); }
.tp .tp-hero-portrait img {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;            /* crops the white outline some portrait files have; sized, not transformed, so it stays sharp */
  max-width: none;
  height: 116%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: 0;
}

.tp-quote {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--hv-navy);
  border-radius: 0 14px 14px 0;
  background: var(--hv-panel);
}

.tp-quote-title {
  margin-bottom: 8px;
  font-family: var(--hv-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--hv-navy);
}

.tp-glance { align-self: start; position: sticky; top: 130px; }
.tp-glance h3 {
  margin: 22px 0 12px;
  font-family: var(--hv-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9fb3c9;
}
.tp-glance h2 + h3 { margin-top: 4px; }

.tp-glance-btn {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--hv-navy);
}
.tp-glance-btn:hover { background: var(--hv-icon); color: var(--hv-navy); }

.tp-docs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-doc-mini { gap: 18px; }

@media (max-width: 760px) {
  .tp-docs-2 { grid-template-columns: 1fr; }
}

/* "More in …": three per row, like the design; a short last row sits centred (no empty slot) */
.tp .tp-more-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.tp .tp-more-links a { flex: 0 0 calc((100% - 24px) / 3); min-width: 0; }

@media (max-width: 960px) {
  .tp-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .tp-hero-media { order: -1; }
  .tp-row { grid-template-columns: 1fr; }
  .tp .tp-more-links a { flex-basis: calc((100% - 12px) / 2); }
}

@media (max-width: 640px) {
  .tp-hero { padding: 40px 0 32px; }
  .tp-card { padding: 26px 22px; }
  .tp-videos { grid-template-columns: 1fr; }
  .tp .tp-more-links a { flex-basis: 100%; }
}

/* ---------- Meet the Staff in the treatment-page layout (.tp) — restyles the page's own staff blocks ---------- */
.tp-staff { display: flex; flex-direction: column; gap: 16px; }

.tp-staff-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.hv .tp-staff-intro h2 { margin: 0; }

.tp .staff-stats { gap: 10px; border: 0; background: none; }
.tp .staff-stats div { min-width: 0; padding: 16px 22px; border: 0; border-radius: 14px; background: var(--hv-panel); }
.tp .staff-stats div + div { border-left: 0; }
.tp .staff-stats strong { font-family: var(--hv-head); font-size: 34px; font-weight: 500; color: var(--hv-navy); }
.tp .staff-stats span { font-family: var(--hv-body); font-size: 11px; letter-spacing: .1em; color: var(--hv-muted); }

/* flex instead of grid so a leftover card on the last row sits centred (no empty gap beside it) */
.tp .staff-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tp .staff-thumb { flex: 0 0 calc((100% - 48px) / 5); min-width: 0; padding: 6px 6px 16px; border-radius: 20px; background: #fff; }
@media (max-width: 1000px) { .tp .staff-thumb { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 760px) { .tp .staff-thumb { flex-basis: calc((100% - 12px) / 2); } }
.tp .staff-thumb-photo { border-radius: 15px; }
.tp .staff-thumb-photo::after { border-radius: 15px; }
.tp .staff-thumb-name { padding: 0 8px; font-family: var(--hv-head); font-size: 18px; font-weight: 500; color: var(--hv-navy); }
.tp .staff-thumb-role { padding: 0 8px; font-family: var(--hv-body); font-size: 13px; color: var(--hv-muted); }

.tp .staff-list { display: flex; flex-direction: column; gap: 16px; border-top: 0; }

.tp .staff-row,
.tp .staff-row:nth-child(even) {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  padding: 6px 38px 6px 6px;
  border: 0;
  border-radius: 22px;
  background: #fff;
}

.tp .staff-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) 280px; padding: 6px 6px 6px 38px; }

.tp .staff-photo,
.tp .staff-row:nth-child(even) .staff-photo { padding: 0; top: 120px; }
.tp .staff-photo::before { display: none; }
.tp .staff-photo-frame { border-radius: 17px; background: var(--hv-icon); box-shadow: none; }

.tp .staff-body { padding: 30px 0 32px; }
.tp .staff-num { font-family: var(--hv-body); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--hv-muted); }
.tp .staff-num::after { background: #c9d3e2; }
.hv .tp .staff-body h2 { margin: 10px 0 12px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.tp .staff-role { background: var(--hv-icon); font-family: var(--hv-body); font-size: 12px; letter-spacing: .06em; color: var(--hv-navy); }

.tp .staff-facts { gap: 8px; margin: 22px 0 22px; border: 0; background: none; }
.tp .staff-facts div { padding: 12px 16px; border-radius: 12px; background: var(--hv-panel); }
.tp .staff-facts div + div { border-left: 0; }
.tp .staff-facts dt { font-family: var(--hv-body); font-size: 11px; letter-spacing: .1em; color: var(--hv-muted); }
.tp .staff-facts dd { font-family: var(--hv-body); font-size: 15px; color: var(--hv-navy); }

.tp .staff-bio { max-width: none; }
.tp .staff-bio p { margin: 0 0 14px; font-size: 16px; line-height: 1.8; color: var(--hv-text); }
.tp .staff-bio p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .tp .staff-row,
  .tp .staff-row:nth-child(even) { grid-template-columns: 1fr; gap: 0; padding: 6px; }
  .tp .staff-row:nth-child(even) .staff-photo { order: 0; }
  .tp .staff-photo { position: static; max-width: 360px; }
  .tp .staff-body { padding: 26px 22px 28px; }
}

@media (max-width: 640px) {
  .tp .staff-facts { grid-template-columns: 1fr; }
}

/* Office Tour in the treatment-page layout: the 3D tour preview fills the hero frame */
.tp-tour { position: relative; overflow: hidden; border-radius: 17px; }
.tp .tp-tour iframe { aspect-ratio: 3 / 2; box-shadow: none; }
.tp .tp-tour .ot-open { inset: 0; aspect-ratio: auto; }
.tp-hero-last { padding-bottom: 72px; }

/* ---------- Patient Reviews + Smile Gallery in the treatment-page layout (.tp) ---------- */
.tp-rv-score { margin: 18px 0 26px; font-size: 16px; color: var(--hv-text); }
.tp-rv-score strong { color: var(--hv-navy); }

.tp-reviews { display: flex; flex-direction: column; gap: 16px; }

.tp .rv-wall .review-card {
  margin-bottom: 16px;
  padding: 28px 28px 24px;
  border: 0;
  border-radius: 20px;
}
.tp .rv-wall { column-gap: 16px; }
.tp .review-stars { color: #f5b301; }
.tp .rv-wall .review-text { font-family: var(--hv-body); font-style: normal; font-size: 16px; line-height: 1.7; color: var(--hv-text); }
.tp .review-avatar { background: var(--hv-navy); font-family: var(--hv-head); }
.tp .review-name { font-family: var(--hv-head); font-size: 16px; font-weight: 600; color: var(--hv-navy); }
.tp .review-meta { font-family: var(--hv-body); }

.tp .rv-videos-head { margin: 32px 0 8px; text-align: center; }
.tp .rv-videos-head .eyebrow { display: none; }
.hv .tp .rv-videos-head h2 { font-size: clamp(28px, 3vw, 36px); }
.tp .rv-video-play { overflow: hidden; border-radius: 18px; }
.tp .rv-video figcaption { font-family: var(--hv-body); color: var(--hv-text); }

/* navy call-to-action card (Patient Reviews: "We'd Love to Hear From You") */
.tp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 16px;
}
.hv .tp-cta h2 { margin: 6px 0 0; }
.tp-cta-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9fb3c9; }
.tp-btn-white { background: #fff; color: var(--hv-navy); }
.tp-btn-white:hover { background: var(--hv-icon); color: var(--hv-navy); }
.tp-btn-ghost { border-color: rgba(255, 255, 255, .5); background: transparent; color: #fff; }
.tp-btn-ghost:hover { border-color: #fff; background: #fff; color: var(--hv-navy); }

/* Smile Gallery */
.tp-hero-btns { margin-top: 26px; }
.tp-hero-whole { background: #fff; }
.tp-hero-whole img { object-fit: contain; background: var(--hv-navy); }
.tp .sg-section .eyebrow { display: none; }
.tp .sg-section .sec-title { margin: 0 0 20px; font-family: var(--hv-head); font-size: clamp(28px, 3vw, 36px); font-weight: 500; text-align: center; color: var(--hv-navy); }
.tp .sg-item a { overflow: hidden; border-radius: 20px; }
.tp .review-meta,
.tp .review-more { font-size: 12px; }

/* Breadcrumb: wrap whole items onto the next line instead of squeezing them */
.sv-crumbs { flex-wrap: wrap; row-gap: 4px; }
.sv-crumbs li { white-space: nowrap; }

@media (max-width: 960px) {
  .tp-glance { position: static; }
}

@media (max-width: 640px) {
  .tp .staff-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tp .staff-stats div { padding: 14px 12px; }
  .tp .staff-stats strong { font-size: 28px; }
  .tp .staff-stats span { font-size: 10.5px; letter-spacing: .06em; }
}

@media (max-width: 480px) {
  .tp .staff-stats { grid-template-columns: 1fr; gap: 8px; }
  .tp .staff-stats div { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .tp .staff-stats strong { flex: none; min-width: 72px; font-size: 28px; }
  .tp .staff-stats span { font-size: 11px; line-height: 1.4; }
}

/* =========================================================
   Older treatment-page sections inside the new treatment-page layout (.tp-legacy).
   Converted pages keep their own sections (intro rows, comparison cards, numbered cards, notes…);
   these rules give them the new look: white rounded cards, Urbanist headings, DM Sans text, navy accents.
   ========================================================= */
.tp-legacy { font-family: var(--hv-body); color: var(--hv-text); }
.tp-content { display: flex; flex-direction: column; gap: 16px; }
.tp-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }

.hv .tp-legacy :is(h2, h3, h4, .sec-title, .ins-vip-title, .sec-sub) {
  font-family: var(--hv-head);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--hv-navy);
}
.hv .tp-legacy :is(h2, .sec-title, .ins-vip-title) { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.22; }
.hv .tp-legacy :is(h3, .sec-sub) { font-size: 19px; line-height: 1.3; }
.hv .tp-legacy h4 { font-size: 18px; line-height: 1.3; }
.tp-legacy :is(p, li, dd, .tc-answer, .sec-intro, .sec-lead) { font-family: var(--hv-body); font-style: normal; color: var(--hv-text); }
.tp-legacy p { font-size: 16px; line-height: 1.75; }
.tp-legacy .tc-answer { font-size: 18px; line-height: 1.65; color: var(--hv-navy); }
.tp-legacy p a:not([class]), .tp-legacy li a:not([class]) { color: var(--hv-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* small labels above headings */
.tp-legacy .eyebrow { font-family: var(--hv-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--hv-muted); }
.tp-legacy .eyebrow::before, .tp-legacy .eyebrow::after { display: none; }
.tp-legacy .eyebrow-light { color: #9fb3c9; }

/* text + photo/video rows */
/* same padding on every side of the card, photo side included */
.tp-legacy .pi-intro,
.tp-legacy .pi-intro.pi-intro-flip {
  gap: 40px;
  padding: 38px;
  border-radius: 22px;
  background: #fff;
}
.tp-legacy .pi-intro > .page-copy { padding: 0; }
.tp-legacy .pi-media { margin: 0; }
.tp-legacy .pi-media::before, .tp-legacy .pi-media::after { display: none; }
.tp-legacy .pi-media img { border-radius: 17px; box-shadow: none; }
.tp-legacy .pi-video { overflow: hidden; border-radius: 17px; }
.tp-legacy .pi-video iframe { border-radius: 17px; }

/* section blocks with a heading and a grid of cards */
.tp-legacy :is(.card-section, .at-compare, .tc-kinds) { padding: 34px 38px; border-radius: 22px; background: #fff; }
.tp-legacy .sec-title { margin: 0 0 12px; text-align: left; }
.tp-legacy .sec-intro { margin: 0 0 22px; max-width: none; text-align: left; }

/* cards */
.tp-legacy :is(.at-compare-card, .fv-card, .os-type-card, .ar-ref) {
  padding: 26px 26px;
  border: 0;
  border-radius: 18px;
  background: var(--hv-panel);
  box-shadow: none;
}
.tp-legacy .at-compare { padding: 0; background: none; }
.tp-legacy .at-compare .at-compare-card { padding: 32px 34px; background: #fff; border-radius: 22px; }
.tp-legacy .at-compare-card--ours,
.tp-legacy .at-compare .at-compare-card--ours { background: var(--hv-navy); }
.hv .tp-legacy .at-compare-card--ours :is(h2, h3, h4) { color: #fff; }
.tp-legacy .at-compare-card--ours :is(p, li, span) { color: #d6deea; }
.tp-legacy .at-compare-grid { gap: 16px; }
.tp-legacy .fv-bring-grid { gap: 12px; }
.tp-legacy .fv-card:hover { transform: none; box-shadow: none; }
.tp-legacy .wcu-num {
  display: grid;
  place-items: center;
  width: fit-content;
  min-width: 40px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--hv-icon);
  font-family: var(--hv-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--hv-navy);
}
.tp-legacy .wcu-num::after { display: none; }
.tp-legacy .os-type-icon { background: var(--hv-icon); border-radius: 12px; }
.tp-legacy .tc-list li { color: var(--hv-text); }
.tp-legacy .tc-list svg { color: var(--hv-navy); }
.tp-legacy .at-compare-card--ours .tc-list svg { color: #9fb3c9; }

/* numbered step lists */
.tp-legacy .hi-steps { border: 0; border-radius: 18px; background: var(--hv-panel); }
.tp-legacy .hi-steps li { color: var(--hv-text); }
.tp-legacy .hi-steps li + li { border-color: #e3e6ea; }
.tp-legacy .hi-steps li::before { font-family: var(--hv-head); color: var(--hv-navy); }

/* navy + white split note */
.tp-legacy .sched-note { overflow: hidden; border: 0; border-radius: 22px; box-shadow: none; }
.tp-legacy .sched-note-call { background: var(--hv-navy); }
.hv .tp-legacy .sched-note-call :is(h2, h3) { color: #fff; }
.tp-legacy .tc-more { font-family: var(--hv-body); color: var(--hv-navy); }

/* the intro text that did not fit in the hero */
.tp-intro-rest > * + * { margin-top: 14px; }

/* spacing fixes (Oct 2026): headings that sat right on the text below them */
.hv .tp-legacy :is(.at-compare-card, .hi-panel) > h2,
.hv .tp-legacy .oh-tabs-title { margin-bottom: 16px; }
.tp-legacy .hi-tabs-side .hi-tablist + .hi-video { margin-top: 16px; }

/* a white/navy card pair that has its own heading: put the heading inside a white card too (was loose on the grey page) */
.tp-legacy .at-compare:has(> .sec-title) { padding: 34px 38px; border-radius: 22px; background: #fff; }
.tp-legacy .at-compare:has(> .sec-title) .at-compare-card:not(.at-compare-card--ours) { background: var(--hv-panel); }
@media (max-width: 640px) { .tp-legacy .at-compare:has(> .sec-title) { padding: 26px 20px; } }

/* text + timeline/stats card: text starts at the top instead of floating in the middle of a tall card */
@media (min-width: 1001px) {
  .tp-legacy .at-feature { align-items: start; }
  /* the shorter side (text or photo) stays in view while the longer side scrolls past */
  .tp-legacy .at-feature > :is(.at-feature-copy, .at-media, .at-aside) { position: sticky; top: 140px; }
}

/* links inside navy cards were navy on navy (invisible) */
.tp-legacy :is(.at-compare-card--ours, .sched-note-call, .tp-card-navy) a:not([class]) { color: #fff; text-decoration-color: rgba(255, 255, 255, .55); }

/* label > heading > text spacing in text blocks */
.tp-legacy .at-feature-copy > .eyebrow { margin-bottom: 12px; }
.hv .tp-legacy .at-feature-copy > h2 { margin-bottom: 14px; }
.tp-legacy :is(.at-feature-copy, .sched-note-text, .tc-kind, .os-type-card, .at-compare-card, .tp-card, .card-section, .fv-card) p + p { margin-top: 12px; }

/* Denture Care tips: one white card with the heading inside (was loose on the grey page in an old bordered box) */
.tp-legacy .dc-tips { padding: 34px 38px; border-radius: 22px; background: #fff; }
.tp-legacy .dc-tips-card { padding: 0; border: 0; background: none; }
@media (max-width: 640px) { .tp-legacy .dc-tips { padding: 26px 20px; } }

/* FAQ with filters (Zoom Whitening): white card, rounded rows, new fonts */
.tp-legacy .faq2 { padding: 34px 38px; border-radius: 22px; background: #fff; }
.tp-legacy .faq2-filter { border-color: #dfe3e8; font-family: var(--hv-body); }
.tp-legacy .faq2-filter.is-active { border-color: var(--hv-navy); background: var(--hv-navy); }
.tp-legacy .faq2-help { border-radius: 18px; background: var(--hv-navy); }
.hv .tp-legacy .faq2-help h3 { font-family: var(--hv-head); font-size: 22px; color: #fff; }
.tp-legacy .faq2-help p { color: #d6deea; }
.tp-legacy .faq2-item { overflow: hidden; border: 0; border-radius: 16px; background: var(--hv-panel); }
.tp-legacy .faq2-item[open] { box-shadow: none; }
.tp-legacy .faq2-num { font-family: var(--hv-body); font-size: 13px; font-weight: 600; color: var(--hv-muted); }
.tp-legacy .faq2-q { font-family: var(--hv-head); font-size: 18px; font-weight: 500; color: var(--hv-navy); }
.tp-legacy .faq2-icon { border-color: #d3d9e0; background: #fff; }
.tp-legacy .faq2-item[open] .faq2-icon { background: var(--hv-navy); border-color: var(--hv-navy); }
.tp-legacy .faq2-answer p { border-color: #e3e6ea; color: var(--hv-text); }
/* the open/close slide is done in the page script (height animation), so drop the old fade-in;
   while an answer is closing the +/- button already shows "+" */
.tp-legacy .faq2-answer { overflow: hidden; box-sizing: border-box; animation: none; }
.tp-legacy .faq2-item.is-closing .faq2-icon { background: #fff; border-color: #d3d9e0; }
.tp-legacy .faq2-item.is-closing .faq2-icon::before,
.tp-legacy .faq2-item.is-closing .faq2-icon::after { background: var(--hv-navy); }
.tp-legacy .faq2-item.is-closing .faq2-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
@media (max-width: 640px) { .tp-legacy .faq2 { padding: 26px 20px; } }

/* pill labels on card pairs ("First Appointment") sat right on the text below */
.tp-legacy .at-compare-tag { margin-bottom: 14px; }

/* ---- Patient Information blocks (Oct 2026) ---- */
/* sections that sat loose on the grey page: give them the white card */
.tp-legacy :is(.pi-cta, .wcu-section, .fv-bring, .pay-ways, .pay-plans, .pay-claims, .ic-standards, .ic-closing, .rw-library, .np-contact) {
  margin: 0; padding: 34px 38px; border: 0; border-radius: 22px; background: #fff; box-shadow: none;
}
.tp-legacy .at-compare:has(> .eyebrow) { padding: 34px 38px; border-radius: 22px; background: #fff; }
.tp-legacy .at-compare:has(> .eyebrow) .at-compare-card:not(.at-compare-card--ours) { background: var(--hv-panel); }
.tp-legacy .at-compare > .eyebrow { margin-bottom: 16px; }
.tp-legacy .pi-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.tp-legacy .pi-cta p { margin: 0; }
.hv .tp-legacy :is(.wcu-heading, .fv-bring > h2, .pay-ways > h2, .pay-plans > h2) { margin: 0 0 18px; }

/* cards inside those sections: soft grey panels, no borders */
.tp-legacy :is(.wcu-card, .rw-picker) { border: 0; border-radius: 18px; background: var(--hv-panel); box-shadow: none; }
.tp-legacy .wcu-card:hover { transform: none; }
.hv .tp-legacy .wcu-card h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }
.tp-legacy .pay-methods { gap: 12px; border: 0; }
.tp-legacy .pay-method { border: 0; border-radius: 18px; background: var(--hv-panel); }
.tp-legacy .pay-method + .pay-method { border-left: 0; }
.tp-legacy .pay-icon { background: var(--hv-navy); }
.tp-legacy .pay-due { margin: 16px 0 0; }

/* New Patients / Scheduling: quote split + appointment request */
.tp-legacy .np-visit { margin: 0; overflow: hidden; border: 0; border-radius: 22px; box-shadow: none; }
.tp-legacy .np-visit-quote { background: var(--hv-navy); }
.hv .tp-legacy .np-visit-quote blockquote { font-family: var(--hv-head); font-style: normal; font-weight: 500; font-size: clamp(22px, 2vw, 28px); }
.tp-legacy .np-option { border: 0; border-radius: 14px; background: var(--hv-panel); }
.tp-legacy .np-option-icon { background: #fff; }
.tp-legacy .request-card { max-width: none; border-radius: 18px; background: var(--hv-panel); box-shadow: none; }
.hv .tp-legacy .request-title { font-family: var(--hv-head); font-size: 28px; font-weight: 500; }
.tp-legacy .request-form :is(input, select, textarea) { border-radius: 10px; }
.tp-legacy .request-form .field > span { font-size: 11px; }   /* field labels were 9px */
.tp-legacy .hi-steps a { white-space: normal; }   /* "Daily brushing and flossing" could not wrap at 320px */

/* Infection Control */
.hv .tp-legacy .ic-agencies strong { font-family: var(--hv-head); font-size: 30px; }
.tp-legacy .ic-measures { border: 0; border-radius: 18px; background: var(--hv-panel); box-shadow: none; }
.tp-legacy .ic-closing { width: auto; max-width: none; text-align: center; }
.tp-legacy .ic-closing > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.hv .tp-legacy .rw-picker-label { font-family: var(--hv-head); font-weight: 500; }
.hv .tp-legacy .ic-closing-lead { color: var(--hv-navy); font-family: var(--hv-head); }

/* Advanced Technology */
.tp-legacy .at-num { font-family: var(--hv-body); font-size: 13px; font-weight: 600; color: var(--hv-muted); }
.tp-legacy .at-compare-card--ours .at-chips li { color: var(--hv-navy); }   /* was light text on the white chips */
/* white icon on the navy card needs a dark box (Oral Sedation) */
.tp-legacy .at-compare-card--ours .os-type-icon { background: rgba(255, 255, 255, .14); color: #fff; }

@media (max-width: 640px) {
  .tp-legacy :is(.pi-cta, .wcu-section, .fv-bring, .pay-ways, .pay-plans, .pay-claims, .ic-standards, .ic-closing, .rw-library, .np-contact),
  .tp-legacy .at-compare:has(> .eyebrow) { padding: 26px 20px; }
  .tp-legacy .request-card { padding: 26px 20px; }
}

/* ---- Contact Us in the new design (Oct 2026): navy office-details card + white form card ---- */
.tp-contact .contact-grid { padding: 0; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 16px; }
.tp-contact .contact-details { top: 140px; padding: 34px 36px; border-radius: 22px; background: var(--hv-navy); box-shadow: none; }
.tp-contact .contact-pill { font-family: var(--hv-body); font-size: 11px; }
.tp-contact .contact-pill + .contact-row { margin-top: 20px; }
.tp-contact .contact-label { font-family: var(--hv-body); font-size: 11px; color: #9fb3c9; }
.tp-contact .contact-details p,
.tp-contact .contact-hours-row { font-family: var(--hv-body); font-size: 15px; color: #d6deea; }
.tp-contact .contact-hours-row strong { color: #fff; }
.hv.tp-contact .contact-phone { font-family: var(--hv-head); font-size: 26px; font-weight: 500; color: #fff; }
.tp-contact .contact-link { font-family: var(--hv-body); font-size: 12px; }
.tp-contact .contact-form-card { padding: 34px 38px; border: 0; border-radius: 22px; background: #fff; box-shadow: none; }
.hv.tp-contact .contact-form-card h2 { margin: 10px 0 8px; font-size: clamp(28px, 2.6vw, 36px); }
.tp-contact .contact-form-text { font-family: var(--hv-body); font-size: 15px; color: var(--hv-text); }
.tp-contact .contact-form .field > span { font-family: var(--hv-body); font-size: 12px; }
.tp-contact .contact-form :is(input, textarea) { border-radius: 10px; }
.tp-contact .contact-consent { border: 0; border-radius: 14px; background: var(--hv-panel); }
.tp-contact .consent-check { font-size: 12px; }
.tp-contact .contact-submit { border-radius: 999px; letter-spacing: .04em; }
@media (max-width: 1000px) {
  .tp-contact .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-contact .contact-details { position: static; }
}
@media (max-width: 640px) {
  .tp-contact :is(.contact-details, .contact-form-card) { padding: 26px 20px; }
}

/* ---- Text-only pages in the new design (Privacy, Terms, Sitemap, 404 — Oct 2026) ---- */
.tp-hero-plain .tp-hero-inner { grid-template-columns: minmax(0, 1fr); }
.tp-hero-plain .tp-hero-copy { max-width: 820px; }

/* legal text in one white card */
.tp-legacy .legal-content { padding: 40px 44px; font-family: var(--hv-body); font-size: 15px; line-height: 1.8; color: var(--hv-text); }
.hv .tp-legacy .legal-content h2 { margin: 32px 0 10px; font-size: clamp(22px, 2vw, 26px); }
.hv .tp-legacy .legal-content h3 { margin: 22px 0 8px; font-size: 19px; }
.tp-legacy .legal-content p { font-size: 15px; }
.tp-legacy .legal-updated { font-family: var(--hv-body); font-size: 12px; color: var(--hv-muted); }

/* sitemap: the summary and each section as white cards */
.tp-sitemap .smap-top,
.tp-sitemap .smap-section { padding: 34px 38px; border: 0; border-radius: 22px; background: #fff; }
.tp-sitemap .smap { display: grid; gap: 16px; margin-top: 16px; }
.hv .tp-sitemap .smap-top-count { font-family: var(--hv-head); font-size: 26px; font-weight: 500; }
.tp-sitemap .smap-jump a { border-radius: 999px; font-family: var(--hv-body); }
.tp-sitemap .smap-num { font-family: var(--hv-body); font-size: 13px; font-style: normal; font-weight: 600; color: var(--hv-muted); }
.hv .tp-sitemap .smap-head h2 { font-size: clamp(24px, 2.2vw, 30px); }
.tp-sitemap .smap-link { font-family: var(--hv-body); color: var(--hv-text); border-color: #e7eaee; }
.hv .tp-sitemap .smap-group h3 { font-size: 18px; }

/* 404 */
.tp-legacy .nf-intro { width: 100%; max-width: none; padding: 48px 38px 52px; border-radius: 22px; background: #fff; }
.tp-hero-plain h1 + .hv-btns { margin-top: 24px; }
.tp-sitemap .smap-group { border-radius: 16px; background: var(--hv-panel); }
.tp-legacy .legal-content a { overflow-wrap: anywhere; }   /* long web addresses wrap on phones */
@media (max-width: 480px) {
  .tp-contact .contact-hours-row { flex-direction: column; align-items: flex-start; gap: 0; }   /* every row: day above time, so the rows match */
}
.hv .tp-legacy .nf-code { font-family: var(--hv-head); font-weight: 600; color: var(--hv-navy); }
.hv .tp-legacy .nf-text h2 { font-size: clamp(28px, 3vw, 38px); }

@media (max-width: 640px) {
  .tp-legacy .legal-content { padding: 26px 20px; }
  .tp-sitemap .smap-top, .tp-sitemap .smap-section { padding: 26px 20px; }
  .tp-legacy .nf-intro { padding: 36px 20px 40px; }
}

/* Banner photos on the sub-pages are 532px files: show them at their own size (532 + the 6px white frame)
   instead of enlarging them to ~670px, which made them look soft and stretched. Videos keep the full column. */
.tp-hero-media:not(.tp-hero-portrait):not(.tp-hero-whole):has(> img) { width: 100%; max-width: 544px; justify-self: end; }
@media (max-width: 960px) {
  .tp-hero-media:not(.tp-hero-portrait):not(.tp-hero-whole):has(> img) { justify-self: start; }
}

/* link lists ("This section offers information … including:", Dentures / Home Instructions page lists): no underline */
.tp-legacy .pi-list li a:not([class]),
.tp-legacy .pi-list li a span { text-decoration: none; }
.tp-legacy .pi-list li a:not([class]) { font-weight: 500; color: var(--hv-navy); transition: color .2s; }
.tp-legacy .pi-list li a:not([class]):hover { color: var(--slate); }

/* Child Dentistry "Baby Teeth": text across the top, the two ages side by side below (no empty column) */
.tp-legacy .cd-baby { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tp-legacy .cd-baby .at-feature-copy { position: static; }
.tp-legacy .cd-baby .eyebrow { margin-bottom: 12px; }
.tp-legacy .cd-baby .cd-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; background: none; }
.tp-legacy .cd-baby .cd-timeline::before,
.tp-legacy .cd-baby .cd-timeline li::before { display: none; }
.tp-legacy .cd-baby .cd-timeline li { margin: 0; padding: 24px 26px; border-radius: 18px; background: var(--hv-panel); }
@media (max-width: 760px) { .tp-legacy .cd-baby .cd-timeline { grid-template-columns: minmax(0, 1fr); } }
.hv .tp-legacy .fv-card .wcu-num + :is(h3, h4) { margin-top: 0; }
.tp-legacy :is(.tp-card, .at-compare-card, .card-section) > :last-child { margin-bottom: 0; }

/* photo rows: the photo fills its side of the card (was floating with white space above/below) */
@media (min-width: 1001px) {
  .tp-legacy .pi-intro:has(> .pi-media > img) { align-items: stretch; }
  /* the photo takes the text's height (its own height no longer stretches the card) */
  .tp-legacy .pi-intro > .pi-media:has(> img) { position: relative; min-height: 260px; }
  .tp-legacy .pi-intro > .pi-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .tp-legacy .pi-intro > .page-copy { align-self: center; }
}

/* numbered tip lists inside a text card: numbers were touching the panel edge */
.tp-legacy .pi-intro .hi-steps li { padding-left: 64px; padding-right: 22px; }
.tp-legacy .pi-intro .hi-steps li::before { left: 22px; }

/* 5 cards: 3 on top, 2 wider below (no empty slot) */
@media (min-width: 1001px) {
  .tp-legacy .fv-bring-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tp-legacy .fv-bring-grid:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .tp-legacy .fv-bring-grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
}

/* Arestin stats: one clean panel instead of a box inside a box, text no longer touching the edges */
.tp-legacy .at-aside { padding: 0; border: 0; background: none; box-shadow: none; }
.tp-legacy .at-stats { gap: 12px; }
.tp-legacy .at-stats > div { padding: 24px 24px 26px; }

@media (max-width: 1000px) {
  .tp-legacy .pi-intro,
  .tp-legacy .pi-intro.pi-intro-flip { gap: 24px; padding: 22px; }
  .tp-legacy .pi-intro > .page-copy { padding: 0; }
  .tp-legacy .pi-intro.pi-intro-flip > .pi-media { order: -1; }
  /* stacked (phone/tablet): the photo or video always comes first, above its text */
  .tp-legacy .pi-intro > .pi-media,
  .tp-legacy .at-feature > .at-media { order: -1; }
  .tp-legacy .at-media .pi-media { width: 100%; max-width: none; }
  .tp-legacy .hi-tabs-side { display: flex; flex-direction: column; }
  .tp-legacy .hi-tabs-side > .hi-video { order: -1; margin: 0 0 22px; }
}

@media (max-width: 640px) {
  .tp-legacy :is(.card-section, .tc-kinds) { padding: 26px 20px; }
  .tp-legacy .at-compare .at-compare-card { padding: 26px 22px; }
  .tp-legacy .sched-note { grid-template-columns: 1fr; }
  .tp-legacy :is(.sched-note-call, .sched-note-text) { padding: 28px 24px; }
}

/* old buttons inside converted sections: new pill look, and allowed to wrap on small phones */
.tp-legacy .btn {
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--hv-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  text-align: center;
}
.tp-legacy .btn-navy { background: var(--hv-navy); border-color: var(--hv-navy); color: #fff; }
.tp-legacy .btn-outline { border-color: var(--hv-navy); background: transparent; color: var(--hv-navy); }
.tp-legacy .btn-outline:hover { background: var(--hv-navy); color: #fff; }
.tp-legacy .hi-tab small { font-size: 12px; }

/* tabbed steps (Oral Hygiene: How to Brush / How to Floss) in the new look */
.tp-legacy .hi-tabs { gap: 40px; padding: 34px 38px; border-radius: 22px; background: #fff; }
.tp-legacy .hi-tab { border: 0; border-radius: 14px; background: var(--hv-panel); color: var(--hv-navy); }
.tp-legacy .hi-tab.is-active { background: var(--hv-navy); color: #fff; }
.tp-legacy .hi-tab > span:last-child { font-family: var(--hv-head); font-size: 19px; font-weight: 500; }
.tp-legacy .hi-tab-num { font-family: var(--hv-body); font-size: 13px; font-weight: 600; }
.tp-legacy .hi-tab small { font-family: var(--hv-body); }
.tp-legacy .hi-video { overflow: hidden; border-radius: 17px; }
.tp-legacy .hi-panels .hi-steps { background: var(--hv-panel); }

@media (max-width: 900px) {
  .tp-legacy .hi-tabs { padding: 26px 20px; }
  .tp-legacy .hi-tabs-side { position: static; }
}

/* remaining serif elements of the older sections → new fonts */
.hv .tp-legacy :is(.at-stats strong, .at-feature-copy .sec-lead, .os-type-card h4, .at-feature-copy .at-quote, .cd-timeline strong, .ar-ref-title, .pm-factor p, .page-copy .pi-lead, .sec-lead) {
  font-family: var(--hv-head);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--hv-navy);
}
.hv .tp-legacy .at-feature-copy .sec-lead,
.hv .tp-legacy .sec-lead { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; }
.hv .tp-legacy .at-stats strong { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.hv .tp-legacy .pm-factor p { font-size: 17px; line-height: 1.45; }
.tp-legacy .ar-ref-num { font-family: var(--hv-body); font-weight: 600; color: var(--hv-navy); }
.tp-legacy .at-stats > div { border: 0; border-radius: 16px; background: var(--hv-panel); }
.tp-legacy :is(.at-feature, .ar-refs, .cd-timeline) { padding: 34px 38px; border-radius: 22px; background: #fff; }

@media (max-width: 640px) {
  .tp-legacy :is(.at-feature, .ar-refs, .cd-timeline) { padding: 26px 20px; }
}
