/* ==========================================================================
   Dentaloft Design System
   Tokens sourced from dentaloft-logo-data-for-ai.md (confirmed brand file).
   Font stack uses system fonts for zero web-font loading cost — swap for a
   licensed brand typeface once Dentaloft confirms one, keeping fallbacks.
   ========================================================================== */

:root {
  /* Brand colour tokens — confirmed */
  --teal: #0B8F87;
  --teal-alt: #087E77;
  --teal-reversed: #4B877D;
  --teal-dark: #086B66;
  --teal-soft: #EAF7F5;
  --black: #000000;
  --charcoal: #122321;
  --white: #FFFFFF;
  --off-white: #F5FAF9;
  --body-text: #40514F;
  --border: #D9E8E5;

  /* Functional colours (not brand — used for form/status states only) */
  --error: #B3261E;
  --error-soft: #FBEAE9;
  --success: #1E7C4B;

  /* Type scale */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.7rem, 1.65rem + 4.5vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2vw, 3.35rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-body: 1.6;

  /* Spacing scale (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --container: 1240px;
  --radius: 24px;
  --radius-sm: 12px;
  --border-w: 1px;
  --shadow-card: 0 2px 4px rgba(18, 35, 33, 0.04), 0 16px 40px rgba(18, 35, 33, 0.09);
}

/* --------------------------------------------------------------------- */
/* Reset                                                                  */
/* --------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  scroll-behavior: auto !important;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4 { color: var(--charcoal); line-height: 1.25; margin: 0 0 var(--sp-4); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
a.no-underline { text-decoration: none; }
button { font-family: inherit; }

/* Focus visibility — required for accessibility */
:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible { border-radius: var(--radius-sm); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* --------------------------------------------------------------------- */
/* Layout helpers                                                        */
/* --------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: var(--sp-6); }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--charcoal); color: #C9CFCE; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.text-center { text-align: center; }
.text-center .section-head { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: var(--border-w) solid transparent;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--teal-dark); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-dark { background: var(--white); color: var(--charcoal); }
.btn-dark:hover { background: var(--teal-soft); }
/* For a secondary button placed on a dark/teal background (e.g. inside
   .cta-band) — bare .btn alone has no explicit colour and would render
   low-contrast teal-on-teal text, so any button on a dark surface that
   isn't .btn-dark should add this class too (v6). */
.btn-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-on-dark:hover { background: rgba(255,255,255,0.14); color: var(--white); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1rem; font-size: var(--fs-small); min-height: 36px; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------- */
/* Slim top information bar — central Dentaloft Hotline (v6)             */
/* --------------------------------------------------------------------- */
.topbar {
  background: var(--teal-dark);
  color: var(--white);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding-block: var(--sp-2);
  font-size: var(--fs-small);
  flex-wrap: wrap;
}
.topbar-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: #D6ECE9;
}
.topbar-hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}
.topbar-hotline svg { width: 16px; height: 16px; }
.topbar-hotline:hover { text-decoration: underline; }
.topbar-separator { color: rgba(255,255,255,0.5); }

/* --------------------------------------------------------------------- */
/* Header / Navigation                                                   */
/* --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: var(--border-w) solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: var(--sp-3);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}
.logo-mark { height: 40px; width: auto; flex-shrink: 0; display: block; }

.primary-nav { display: none; }
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--teal-dark); }

.has-dropdown { position: relative; }
.nav-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: none;
  border: none;
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-more-toggle:hover { color: var(--teal-dark); }
.nav-more-toggle .chev { width: 14px; height: 14px; }
.nav-more-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + var(--sp-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
  min-width: 170px;
  z-index: 20;
}
.nav-more-menu.is-open { display: block; }
.primary-nav .nav-more-menu { display: none; }
.primary-nav .nav-more-menu.is-open { display: block; }
.nav-more-menu li + li { margin-top: 2px; }
.nav-more-menu a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-more-menu a:hover { background: var(--teal-soft); color: var(--teal-dark); }

/* Treatments are grouped vertically inside the shared desktop and mobile menu. */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + var(--sp-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5);
  width: min(32rem, 90vw);
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
}
.mega-menu.is-open { display: block; }
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
.mega-menu-col { border-top: var(--border-w) solid var(--border); padding-top: var(--sp-3); }
.mega-menu-col h4 {
  margin: 0 0 var(--sp-2);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mega-menu-col ul { list-style: none; margin: 0; padding: 0; }
.mega-menu-col a {
  display: block;
  padding: 0.22rem 0;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}
.mega-menu-col a:hover { color: var(--teal-dark); text-decoration: underline; }
.mega-menu .mega-menu-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  margin-bottom: var(--sp-4);
  padding: 0 var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
}
.mega-menu .mega-menu-all:hover { text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.header-actions .btn-secondary { display: none; }
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: var(--border-w) solid var(--border);
  color: var(--charcoal);
  text-decoration: none;
}
.icon-link:hover { border-color: var(--teal); color: var(--teal-dark); }
.icon-link-hotline { display: none; color: var(--teal-dark); border-color: var(--teal); }
.icon-link-hotline svg { width: 18px; height: 18px; }
@media (min-width: 960px) {
  .icon-link-hotline { display: inline-flex; }
}

/* WhatsApp branch-selection panel — opens from header/mobile trigger,
   never guesses a branch. */
.wa-trigger-wrap { position: relative; }
.wa-panel {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  background: var(--white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3);
  min-width: 230px;
  z-index: 30;
}
.wa-panel[hidden] { display: none; }
.wa-panel-title { margin: 0 0 var(--sp-2); font-size: 0.78rem; font-weight: 700; color: #667085; text-transform: uppercase; letter-spacing: 0.04em; }
.wa-panel-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.wa-panel-row svg { width: 18px; height: 18px; color: var(--teal-dark); flex-shrink: 0; }
.wa-panel-row:hover { background: var(--teal-soft); }
.wa-panel-row-disabled { color: #98A2A0; cursor: default; }
.wa-panel-row-disabled:hover { background: none; }
.wa-panel-note { margin: var(--sp-2) 0 0; padding-top: var(--sp-2); border-top: var(--border-w) solid var(--border); font-size: 0.72rem; color: #667085; }
.mobile-nav .wa-panel { position: static; box-shadow: none; margin-top: var(--sp-2); width: 100%; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  display: none;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  border-top: var(--border-w) solid var(--border);
  background: var(--white);
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { display: block; }
.mobile-nav > ul { list-style: none; margin: 0; padding: var(--sp-3) var(--sp-5) var(--sp-5); }
.mobile-nav > ul > li + li { border-top: var(--border-w) solid var(--border); }
.mobile-nav a {
  display: block;
  padding: var(--sp-3) 0;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
}
.mobile-nav .btn-group { padding: var(--sp-3) var(--sp-5) 0; }
.mobile-nav .has-dropdown > .nav-more-toggle { min-height: 44px; width: 100%; justify-content: space-between; }
.mobile-nav .mega-menu {
  position: static;
  transform: none;
  width: 100%;
  max-height: none;
  margin-bottom: var(--sp-3);
  padding: var(--sp-3);
  box-shadow: none;
}
.mobile-nav .mega-menu-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
.mobile-nav .mega-menu-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
}

@media (min-width: 960px) {
  .primary-nav { display: block; }
  .header-actions .btn-secondary { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* "Follow Dentaloft" row inside the mobile menu (v6) */
.mobile-nav-follow {
  padding: var(--sp-4) var(--sp-5) 0;
  margin-top: var(--sp-3);
  border-top: var(--border-w) solid var(--border);
}
.mobile-nav-follow .topbar-label { color: #667085; display: block; margin-bottom: var(--sp-2); }

/* Social profile links — used in the footer and mobile menu (v6). Plain
   outbound links to Dentaloft's verified official profiles, no widget or
   feed script. */
.social-links { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: inherit;
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
}
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-link:hover { color: var(--teal); }
.footer-brand .social-link:hover { color: var(--white); }
.mobile-nav-follow .social-link { color: var(--charcoal); }

/* Central Dentaloft Hotline — sticky bottom action bar on small screens
   (v6). Sits above the viewport bottom edge; page content gets bottom
   padding on mobile so the bar never covers the footer's own links. */
.sticky-mobile-bar {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--white);
  border-top: var(--border-w) solid var(--border);
  box-shadow: 0 -2px 10px rgba(23,26,28,0.08);
  padding: var(--sp-2) var(--sp-3);
  padding-bottom: max(var(--sp-2), env(safe-area-inset-bottom));
  gap: var(--sp-2);
}
.sticky-mobile-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 44px;
  padding: 0.5rem 0.5rem;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.sticky-mobile-bar-btn svg { width: 16px; height: 16px; }
.sticky-mobile-bar-btn-primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.sticky-mobile-bar-wa { flex: 1; position: relative; }
.sticky-mobile-bar-wa .sticky-mobile-bar-btn { width: 100%; }
.sticky-mobile-bar-wa .wa-panel { left: 0; right: 0; bottom: calc(100% + var(--sp-2)); top: auto; width: auto; }
body { padding-bottom: 68px; }
@media (min-width: 960px) {
  .sticky-mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Breadcrumbs */
.breadcrumbs { padding-block: var(--sp-4); font-size: var(--fs-small); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: var(--sp-2); color: var(--border); }
.breadcrumbs a { color: var(--body-text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-dark); }
.breadcrumbs [aria-current="page"] { color: var(--charcoal); font-weight: 600; }

/* --------------------------------------------------------------------- */
/* Prototype notice banner                                                */
/* --------------------------------------------------------------------- */
.prototype-banner {
  background: var(--charcoal);
  color: var(--off-white);
  font-size: var(--fs-small);
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
}
.prototype-banner strong { color: var(--white); }

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */
.hero {
  padding-block: var(--sp-8) var(--sp-7);
  background:
    radial-gradient(circle at 88% 20%, rgba(0,136,126,0.12), transparent 32rem),
    linear-gradient(180deg, #F2FAF8 0%, var(--white) 78%);
}
.hero-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
.hero-copy .eyebrow { }
.hero p.lede { font-size: 1.1rem; max-width: 46ch; }
.hero-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(23, 26, 28, 0.12);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Neutral placeholder block standing in for a photograph that is still
   awaiting Dentaloft's approval (see data-photo-status="pending" and the
   HTML comment on each instance, and PHOTO-REPLACEMENT-GUIDE.md). No icon
   or visible label is rendered — this must look like a calm, unfinished
   surface, not a visible "missing image" state. */
.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: var(--teal-soft);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------- */
/* Trust strip                                                            */
/* --------------------------------------------------------------------- */
.trust-strip {
  border-block: var(--border-w) solid var(--border);
  padding-block: var(--sp-5);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  text-align: center;
}
.trust-item .stat { font-size: 1.5rem; font-weight: 800; color: var(--teal-dark); display: block; }
.trust-item .label { font-size: var(--fs-small); color: var(--body-text); }
@media (min-width: 720px) {
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------- */
/* Cards / grids                                                         */
/* --------------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--teal); box-shadow: var(--shadow-card); }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--body-text); font-size: var(--fs-small); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 22px; height: 22px; }
.card .card-cta { margin-top: auto; font-size: var(--fs-small); font-weight: 700; color: var(--teal-dark); text-decoration: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25em 0.65em;
  border-radius: 999px;
}

/* Dentist card */
.person-card { text-align: left; }
.person-photo { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--sp-2); }
.person-card h3 { margin-bottom: 0; }
.person-title { color: var(--teal-dark); font-weight: 600; font-size: var(--fs-small); margin-bottom: var(--sp-2); }

/* Branch card */
.branch-card address { font-style: normal; color: var(--body-text); font-size: var(--fs-small); }
.branch-card-image {
  width: calc(100% + (var(--sp-5) * 2));
  max-width: none;
  height: 180px;
  margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-2);
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.branch-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: auto;
}
.branch-card-actions .card-cta { margin-top: 0; }

/* Steps — v9 fix: counter-reset/increment are now scoped to .steps > .step
   specifically (previously .step used counter-increment with no
   .steps ancestor ever present in the generated markup, since the
   treatment-page process wrapper only had class="grid grid-4" — with no
   counter-reset in scope, every .step's counter independently started at
   0 and incremented to 1, so every stage showed "1" instead of 1, 2, 3).
   The treatment-page wrapper in build_pages.py now uses
   class="steps grid grid-4" so this counter-reset actually applies, and
   restarts at 1 for every treatment process since each page has its own
   .steps container. */
.steps { counter-reset: step; }
.steps > .step {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}
.steps > .step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* --------------------------------------------------------------------- */
/* FAQ accordion                                                         */
/* --------------------------------------------------------------------- */
.faq-item {
  border-bottom: var(--border-w) solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4) 0;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding-bottom: var(--sp-4); color: var(--body-text); }

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: #B7BEBC; }
.footer-top { padding-block: var(--sp-8); display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
.footer-brand p { color: #9AA3A1; font-size: var(--fs-small); max-width: 32ch; }
.footer-brand .hint { color: #7C8482; font-size: 0.78rem; max-width: 32ch; }
.footer-hotline { margin-bottom: var(--sp-2); }
.footer-hotline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-hotline-link svg { width: 18px; height: 18px; color: var(--teal-alt); }
.footer-hotline-link:hover { text-decoration: underline; }
.footer-brand .social-links { margin-top: var(--sp-4); }
.footer-col h4 { color: var(--white); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { color: #B7BEBC; text-decoration: none; font-size: var(--fs-small); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: var(--border-w) solid #2B2F31;
  padding-block: var(--sp-4);
  font-size: 0.8rem;
  color: #8A928F;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
}
.footer-bottom a { color: #8A928F; }
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); }
}

/* --------------------------------------------------------------------- */
/* Forms                                                                  */
/* --------------------------------------------------------------------- */
.form-field { margin-bottom: var(--sp-5); }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--charcoal);
  margin-bottom: var(--sp-2);
}
.form-field .hint { font-size: 0.8rem; color: #667085; margin-top: var(--sp-1); }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field input[type="time"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--white);
  min-height: 44px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--teal-dark);
  outline-offset: 1px;
  border-color: var(--teal-dark);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--error); }
.form-error {
  display: none;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: var(--sp-1);
  font-weight: 600;
}
.form-field.has-error .form-error { display: block; }

.checkbox-field { display: flex; align-items: flex-start; gap: var(--sp-3); }
.checkbox-field input { margin-top: 0.3em; width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-field label { font-weight: 500; font-size: var(--fs-small); color: var(--body-text); }

/* --------------------------------------------------------------------- */
/* Content pages (legal, blog, patient info)                             */
/* --------------------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-5); }
.prose ul { color: var(--body-text); }
.article-meta { color: #667085; font-size: var(--fs-small); margin-bottom: var(--sp-5); }

/* Legal pages: approval-status banner and visible unfilled-placeholder markers */
.legal-status-banner {
  background: #FFF6E5;
  border: var(--border-w) solid #F0C572;
  color: #7A5300;
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  font-size: var(--fs-small);
  margin-bottom: var(--sp-6);
}
.legal-placeholder {
  background: #FFF1C2;
  color: #7A5300;
  padding: 0 0.3em;
  border-radius: 3px;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  background: var(--teal-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D6ECE9; max-width: 52ch; margin-inline: auto; }

/* Photography and maps */
.site-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
.site-photo-cover,
.branch-hero-photo,
.treatment-hero-photo {
  height: 100%;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.gallery-photo,
.article-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.article-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--sp-6);
}
@media (min-width: 720px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

.map-embed {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  background: var(--teal-soft);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.branch-location-grid { align-items: stretch; }
.branch-location-info { display: grid; gap: var(--sp-4); }
.branch-review-card, .branch-directions {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.75rem);
}
.branch-review-label { font-weight: 700; color: var(--teal-dark); margin: 0; }
.branch-review-score { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: .25rem 0; }
.branch-review-score strong { font-size: 2.8rem; line-height: 1.2; color: var(--charcoal); }
.branch-review-stars { font-size: 1.4rem; letter-spacing: .08em; color: #a96b00; }
.branch-review-count { font-size: 1.1rem; margin: .5rem 0 1rem; }
.branch-review-count strong { font-size: 1.4rem; color: var(--teal-dark); }
.branch-review-note { font-size: .78rem; margin: .85rem 0 0; color: var(--body-text); }
.branch-directions h3 { margin: 0 0 .5rem; }
.branch-map-panel { min-width: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.branch-map-heading { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; }
.branch-map-heading svg { flex: 0 0 24px; color: #c83d31; }
.branch-map-heading strong { color: var(--charcoal); }
.branch-map-heading p { margin: .25rem 0 0; font-size: .875rem; }
.branch-location .map-embed { height: 430px; min-height: 430px; aspect-ratio: auto; border: 0; border-radius: 0; }
.branch-location .map-embed iframe { height: 430px; }
.branch-map-link { display: block; padding: .85rem 1rem; font-weight: 700; color: var(--teal-dark); }
@media (max-width: 719px) {
  .branch-location .map-embed, .branch-location .map-embed iframe { height: 340px; min-height: 340px; }
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-7);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--white), var(--teal-soft));
}
.contact-band p { margin-bottom: 0; max-width: 54ch; }
@media (max-width: 719px) {
  .contact-band { align-items: flex-start; flex-direction: column; padding: var(--sp-6); }
}

.coming-soon-visual {
  min-height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--charcoal), #263130);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.coming-soon-visual img { width: min(240px, 65%); }

/* Legacy neutral placeholder, retained only for internal drafts. */
.map-placeholder {
  aspect-ratio: 16/7;
  background: var(--teal-soft);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: var(--fs-small);
  text-align: center;
  padding: var(--sp-4);
}

/* Table (used sparingly, e.g. hours) */
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.hours-table th, .hours-table td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: var(--border-w) solid var(--border); }

/* ==========================================================================
   v8 homepage components — patient-concern navigation, team introduction,
   verified reviews and consented treatment results. Calm, restrained
   styling consistent with the rest of the card system; no gradients,
   no autoplay, no repeated CTAs.
   ========================================================================== */

/* "What brings you here today?" concern cards — reuse .card/.card-link,
   just centre the icon+copy since these are shorter than treatment cards */
.concern-card { text-align: left; }
.concern-card .icon { margin-bottom: var(--sp-1); }

/* Team introduction — plain-text list, no photo boxes of any kind */
.team-intro-list {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.team-intro-list li {
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  color: var(--body-text);
}
.team-intro-list strong { color: var(--charcoal); }

/* Verified Google reviews (reviews.py render_reviews_section) */
.review-card {
  background: var(--white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  height: 100%;
}
.review-stars { color: var(--teal-dark); letter-spacing: 0.15em; font-size: 0.95rem; }
.review-text { margin: 0; color: var(--charcoal); font-style: italic; }
.review-meta { margin: 0; font-size: var(--fs-small); color: var(--body-text); }
.review-link { margin-top: auto; font-size: var(--fs-small); font-weight: 700; color: var(--teal-dark); text-decoration: none; }

/* Consented treatment results (results.py render_results_section) */
.result-card {
  background: var(--white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.result-images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.result-images figure { margin: 0; }
.result-images img { width: 100%; border-radius: var(--radius); }
.result-images figcaption { text-align: center; font-size: 0.75rem; color: var(--body-text); margin-top: var(--sp-1); }
.result-desc { margin: 0; font-size: var(--fs-small); color: var(--charcoal); }

/* ==========================================================================
   v10 — dentist cards (approved-photo and text-only variants share the
   same size, spacing and hierarchy per the brief; the only difference is
   a photo vs. a small decorative icon in the same media slot). Used on
   the homepage team preview, the dentists hub, and every branch page via
   dentists.render_dentist_card()/render_dentist_grid().
   ========================================================================== */
.dentist-card { text-align: left; padding: var(--sp-4); gap: var(--sp-2); }
.dentist-card-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--off-white);
}
.dentist-card-icon {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dentist-card-icon svg { width: 25%; height: 25%; }
.dentist-card h3 { margin: var(--sp-1) 0 0; font-size: 1rem; }
.dentist-card-role { margin: 0; font-weight: 600; color: var(--teal-dark); font-size: var(--fs-small); }
.dentist-card .hint { margin: 0; }

/* Dentists-hub grouping (one branch label + card grid per branch — the
   label is a styled eyebrow link, not a heading, so it doesn't collide
   with the h3 already used for every card title on this site) */
.dentist-branch-groups { display: flex; flex-direction: column; gap: var(--sp-7); }
.dentist-branch-group > .eyebrow { display: block; margin-bottom: var(--sp-4); }
.dentist-branch-group > .eyebrow a { color: inherit; text-decoration: none; }
.dentist-branch-group > .eyebrow a:hover { color: var(--teal-dark); text-decoration: underline; }

#main .dentist-directory-intro {
  padding-block: clamp(2.75rem, 5.5vw, 5rem);
  background: #eaf5f0;
}
.dentist-directory-intro h1 { max-width: 16ch; letter-spacing: -.05em; line-height: 1.03; }
#main .dentist-directory { padding-top: clamp(2rem, 5vw, 4rem); }
.dentist-directory .dentist-branch-groups { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.dentist-directory .dentist-branch-group { padding: clamp(.85rem, 2vw, 1.4rem); border: 1px solid #cdddd8; border-radius: 1rem; }
.dentist-directory .dentist-branch-group h2 { font-size: 1.45rem; }
.dentist-directory .dentist-branch-group h2 a { color: inherit; text-decoration: none; }
.dentist-directory .dentist-branch-group h2 a:hover { text-decoration: underline; }
.dentist-directory-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.dentist-directory-cards .dentist-card { padding: .55rem; border-radius: .8rem; background: #f4faf7; }
.dentist-directory-cards .dentist-card-photo, .dentist-directory-cards .dentist-card-icon { border-radius: .5rem; }
.dentist-directory-cards .dentist-card-icon { aspect-ratio: 2; }
@media (min-width: 740px) {
  .dentist-directory .dentist-branch-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 1100px) {
  .dentist-directory .dentist-branch-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: var(--sp-4); }

/* ==========================================================================
   Doctor-led homepage refresh (v11)
   The composition borrows the reference site's clarity and team-first
   storytelling while retaining Dentaloft's own teal/charcoal identity.
   ========================================================================== */

body { letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 2rem + 2.3vw, 4.25rem); letter-spacing: -0.045em; }
h2 { letter-spacing: -0.035em; }

.topbar { background: #12302d; }
.topbar-inner { min-height: 38px; padding-block: 0.35rem; }
.site-header { background: rgba(255,255,255,0.94); backdrop-filter: saturate(170%) blur(16px); }
.header-inner { min-height: 78px; padding-block: 0.65rem; }
.logo-mark { height: 48px; }
.primary-nav > ul { gap: clamp(0.9rem, 1.6vw, 1.45rem); }
.primary-nav a,
.nav-more-toggle { font-size: 0.9rem; font-weight: 650; }
.header-actions { gap: 0.65rem; }
.header-actions .btn { min-height: 42px; padding: 0.72rem 1.05rem; }

.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.section-head-wide { max-width: 820px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head-wide > p { font-size: 1.05rem; max-width: 66ch; }
.text-link,
.section-link a {
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-weight: 750;
  text-decoration: none;
}
.text-link:hover,
.section-link a:hover { text-decoration: underline; }

.hero-team {
  padding: clamp(3rem, 5vw, 4.5rem) 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(255,255,255,0.92), transparent 30rem),
    radial-gradient(circle at 88% 28%, rgba(11,143,135,0.12), transparent 27rem),
    linear-gradient(180deg, #F0FAF9 0%, #E7F5F3 100%);
}
.hero-copy-centered { max-width: 970px; margin-inline: auto; text-align: center; }
.hero-copy-centered .eyebrow {
  padding: 0.48rem 0.85rem;
  border: 1px solid rgba(8,107,102,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
}
.hero-team h1 {
  max-width: 1120px;
  margin: 0 auto 1rem;
  font-size: clamp(3.05rem, 2rem + 4vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.068em;
}
.hero-team h1 span { color: var(--teal); }
.hero-team .lede {
  margin-inline: auto;
  max-width: 66ch;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.2rem);
  color: #49605d;
}
.hero-actions { justify-content: center; margin-top: 1.25rem; }
.hero-actions .btn { border-radius: 999px; padding-inline: 1.55rem; }
.hero-team-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.55rem, 1.2vw, 1.15rem);
  min-height: 440px;
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}
.hero-doctor {
  position: relative;
  min-width: 0;
  height: 350px;
  margin: 0;
  overflow: hidden;
  border: 5px solid rgba(255,255,255,0.72);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: #DDEBE9;
  box-shadow: 0 24px 50px rgba(18,48,45,0.15);
}
.hero-doctor-2,
.hero-doctor-4 { height: 392px; }
.hero-doctor-3 { height: 430px; }
.hero-doctor img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-doctor figcaption {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(9px);
  color: var(--charcoal);
  line-height: 1.18;
  box-shadow: 0 8px 20px rgba(18,35,33,0.08);
}
.hero-doctor figcaption strong { font-size: 0.88rem; }
.hero-doctor figcaption span { margin-top: 0.18rem; font-size: 0.68rem; color: #637572; }

.trust-strip-home { border: 0; background: #12302d; color: var(--white); }
.trust-strip-home .container { gap: 0; }
.trust-strip-home .trust-item { padding: 0.55rem clamp(0.6rem, 2vw, 1.6rem); }
.trust-strip-home .trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,0.14); }
.trust-strip-home .trust-item .stat { color: #7DE1D8; font-size: 1.15rem; }
.trust-strip-home .trust-item .label { display: block; margin-top: 0.15rem; color: #D3E3E1; }

.team-section { background: var(--white); }
.team-heading { display: grid; gap: 1.5rem; align-items: end; max-width: none; }
.team-heading h2 { margin-bottom: 0; max-width: 13ch; }
.team-heading p { margin-bottom: 0.7rem; }
.dentist-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.dentist-showcase .dentist-card {
  padding: 0.6rem 0.6rem 1rem;
  border: 0;
  border-radius: 22px;
  background: #F0F7F6;
  overflow: hidden;
}
.dentist-showcase .dentist-card-photo { border-radius: 17px; }
.dentist-showcase .dentist-card h3,
.dentist-showcase .dentist-card p { padding-inline: 0.35rem; }
.dentist-showcase .dentist-card h3 { margin-top: 0.55rem; font-size: 1.08rem; }
.team-note {
  max-width: 76ch;
  margin: 1.25rem 0 0;
  color: #667976;
  font-size: 0.88rem;
}

.smile-goals-section { background: #F1F8F7; }
.concern-grid { gap: 0.8rem; }
.concern-grid .concern-card {
  position: relative;
  min-height: 210px;
  border: 0;
  border-radius: 22px;
  padding: 1.45rem;
  background: var(--white);
}
.concern-grid .concern-card:nth-child(3n + 2) { background: #E4F3F1; }
.concern-grid .concern-card:nth-child(3n + 3) { background: #EDEFE9; }
.concern-grid .concern-card .icon { background: rgba(255,255,255,0.72); }
.concern-grid .concern-card h3 { font-size: 1.28rem; max-width: 16ch; }
.concern-grid .concern-card .card-cta { font-size: 0.8rem; }

.clinic-experience-section { background: var(--white); }
.clinic-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  gap: 1rem;
}
.clinic-photo-card {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--teal-soft);
}
.clinic-photo-wide { grid-row: 1 / span 2; }
.clinic-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.clinic-photo-card figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  background: rgba(18,35,33,0.82);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.section-dark-soft { background: #12302d; color: #D4E2E0; }
.section-dark-soft h2 { color: var(--white); }
.section-dark-soft .eyebrow { color: #7DE1D8; }
.section-dark-soft .section-head p { color: #BFD0CD; }
.treatment-card-grid .card {
  min-height: 205px;
  border-color: rgba(255,255,255,0.1);
  background: #193C38;
}
.treatment-card-grid .card:hover { border-color: #70CFC6; box-shadow: 0 18px 40px rgba(0,0,0,0.16); }
.treatment-card-grid .card h3 { color: var(--white); }
.treatment-card-grid .card p { color: #BCD0CD; }
.treatment-card-grid .card .card-cta,
.section-dark-soft .section-link a { color: #7DE1D8; }
.section-link { margin: 1.5rem 0 0; }

.locations-section { background: #F7FBFA; }
.locations-heading { display: grid; gap: 1.5rem; max-width: none; align-items: end; }
.locations-heading h2 { max-width: 15ch; margin-bottom: 0; }
.branch-grid-home .branch-card { border: 0; box-shadow: 0 8px 26px rgba(18,35,33,0.06); }
.branch-grid-home .branch-card-image { height: 210px; }

.review-links-section { background: var(--white); }
.review-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
.review-link-grid .card {
  min-height: 150px;
  padding: 1.15rem;
  border: 0;
  background: #F0F7F6;
}
.review-link-grid .card::before {
  content: "Google reviews";
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.final-booking-section { padding-top: 1rem; }
.cta-split {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #0E716B;
}
.cta-split .cta-copy { padding: clamp(2rem, 5vw, 4.5rem); }
.cta-split .eyebrow { color: #B5F0EA; }
.cta-split h2 { max-width: 13ch; font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); }
.cta-split p { margin-inline: 0; max-width: 48ch; }
.cta-split img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

@media (min-width: 820px) {
  .team-heading,
  .locations-heading { grid-template-columns: 1.15fr 0.85fr; }
}

@media (min-width: 1100px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

@media (min-width: 1180px) {
  .header-actions .btn-secondary { display: inline-flex; }
}

@media (min-width: 960px) and (max-width: 1099px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: block !important; }
}

@media (max-width: 959px) {
  .hero-team-stage {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    min-height: 0;
    margin-inline: calc(var(--sp-5) * -1);
    padding-inline: var(--sp-5);
    padding-bottom: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .hero-doctor,
  .hero-doctor-2,
  .hero-doctor-3,
  .hero-doctor-4 { height: 340px; scroll-snap-align: center; }
  .dentist-showcase {
    grid-template-columns: repeat(7, minmax(220px, 1fr));
    margin-inline: calc(var(--sp-5) * -1);
    padding: 0 var(--sp-5) 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .dentist-showcase .dentist-card { scroll-snap-align: start; }
  .review-link-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 719px) {
  .header-inner { min-height: 68px; }
  .logo-mark { height: 42px; }
  .header-actions > .btn { display: none; }
  .hero-team { padding-top: 3.75rem; }
  .hero-team h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .hero-team .lede { max-width: 36ch; }
  .hero-actions .btn { width: 100%; }
  .trust-strip-home .container { grid-template-columns: 1fr 1fr; }
  .trust-strip-home .trust-item { padding-block: 0.8rem; }
  .trust-strip-home .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); }
  .trust-strip-home .trust-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.14); }
  .clinic-gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .clinic-photo-wide { grid-row: auto; }
  .clinic-photo-card { min-height: 245px; }
  .review-link-grid { grid-template-columns: 1fr; }
  .cta-split { grid-template-columns: 1fr; }
  .cta-split img { min-height: 260px; order: -1; }
}
