/* ============================================================
   Businessbook Theme3 — Smile Craft (clinic / dental)
   Source of truth: _labmains/sowmyaclinic.netq.online/app/globals.css
   Fonts (source stacks):
     body     → Inter, Aptos, Segoe UI…
     headings → "Aptos Display", Inter… (weight 800)
     accents  → Georgia italic (hero em, quotes)
   Aptos / Aptos Display are Microsoft system fonts (not web-licensed here).
   "Smile Craft Display" = Outfit OFL stand-in so every device gets a real face.
   ============================================================ */

/* Smile Craft Display — Aptos Display web stand-in (Outfit, SIL OFL) */
@font-face {
  font-family: "Smile Craft Display";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/smile-craft-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Smile Craft Display";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/smile-craft-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #142622;
  --ink-soft: #38534d;
  --teal: #173b35;
  --teal-deep: #0e2a26;
  --teal-mid: #2f5b52;
  --mint: #dfeee7;
  --mint-strong: #b9d5ca;
  --mint-pale: #f1f7f3;
  --ivory: #fbf8f1;
  --white: #ffffff;
  --gold: #c7922c;
  --gold-light: #e8c66f;
  --line: rgba(20, 38, 34, 0.14);
  --shadow: 0 24px 80px rgba(14, 42, 38, 0.13);
  --shadow-soft: 0 16px 50px rgba(14, 42, 38, 0.08);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --container: min(1240px, calc(100vw - 48px));
  /* Exact source stacks + Smile Craft Display after Aptos Display */
  --font-display: "Aptos Display", "Smile Craft Display", Inter, "Segoe UI", Arial, sans-serif;
  --font-body: Inter, Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
  --font-accent: Georgia, "Times New Roman", serif;
}

/* Admin palette bridge — remaps Smile Craft tokens when Brandbox injects --color-* */
body.site-theme-theme3 {
  --ink: var(--color-text, #142622);
  --ink-soft: var(--color-muted, #38534d);
  --teal: var(--color-primary, #173b35);
  --teal-deep: var(--color-secondary, #0e2a26);
  --teal-mid: color-mix(in srgb, var(--color-primary, #173b35) 70%, #2f5b52);
  --mint: var(--color-primary-soft, #dfeee7);
  --mint-strong: var(--color-secondary-soft, #b9d5ca);
  --mint-pale: var(--color-surface-hover, #f1f7f3);
  --ivory: var(--color-bg, #fbf8f1);
  /* Keep true white for hero/on-dark type — never alias to surface (dark palettes broke contrast). */
  --white: #ffffff;
  --panel: var(--color-surface, #ffffff);
  --gold: var(--color-accent, #c7922c);
  --gold-light: color-mix(in srgb, var(--color-accent, #c7922c) 55%, #fff);
  --line: var(--color-border, rgba(20, 38, 34, 0.14));
  --shadow: 0 24px 80px color-mix(in srgb, var(--color-secondary, #0e2a26) 18%, transparent);
  --shadow-soft: 0 16px 50px color-mix(in srgb, var(--color-secondary, #0e2a26) 10%, transparent);
  --color-ink: var(--ink);
  --color-on-primary: var(--color-primary-text, #ffffff);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family:
    var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family:
    var(--font-body);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 5.2vw, 5.7rem);
}

h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.5rem);
}

h3 {
  font-size: 1.22rem;
  line-height: 1.3;
}

p {
  color: var(--ink-soft);
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 1000;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 20px;
}

.site-container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 7vw, 108px) 0;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  margin-bottom: 18px;
  text-transform: uppercase;
}

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

.button {
  align-items: center;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.05em;
  min-height: 52px;
  padding: 0 26px;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: var(--white);
}

.button-gold:hover,
.button-gold:focus-visible {
  background: #a97618;
}

.button-dark {
  background: var(--teal);
  color: var(--white);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--teal-deep);
}

.button-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.button-ghost-light:hover,
.button-ghost-light:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.bb-studio-specific__article-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-top: 10px;
}

.bb-studio-specific__article-ctas .text-link {
  margin-top: 0;
}

.text-link {
  align-items: center;
  color: var(--teal);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 10px;
  text-transform: uppercase;
}

.text-link::after {
  content: "↗";
  color: var(--gold);
  font-size: 1rem;
  margin-left: 9px;
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translate(3px, -3px);
}

.section-heading {
  margin-bottom: 48px;
  max-width: 820px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.heading-split {
  align-items: end;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  max-width: none;
}

.heading-split > p,
.heading-split > div:last-child p {
  font-size: 1.03rem;
  margin-bottom: 0;
}

/* Header */
.utility-bar {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

/* Shared .bb-utility emit — align with Smile Craft teal (not foreign darkened secondary) */
body.site-theme-theme3 .bb-utility {
  background: var(--color-primary, var(--teal, #173b35));
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
body.site-theme-theme3 .bb-utility__phone:hover,
body.site-theme-theme3 .bb-utility__detail:hover {
  color: var(--color-accent, var(--gold-light, #e8c878));
}

.utility-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 36px;
}

.utility-contact {
  align-items: center;
  display: flex;
  gap: 16px;
}

.utility-contact a:hover {
  color: var(--gold-light);
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 38, 34, 0.08);
  box-shadow: 0 6px 26px rgba(14, 42, 38, 0.05);
  overflow: visible;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  min-height: 96px;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(420px, 100%);
  text-decoration: none;
  color: inherit;
}

/* Height-driven logo; width follows real image ratio (no forced 328px slot). */
.brand img {
  height: 70px;
  width: auto;
  max-width: 328px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.brand .brand-name {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
}

/* Logo + name: sit side-by-side; don’t reserve a wide banner slot. */
.brand:has(.brand-name) {
  max-width: min(560px, 72%);
  width: auto;
  flex-basis: auto;
}

.brand:has(.brand-name) img {
  width: auto;
  max-width: min(120px, 28vw);
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  list-style: none;
  padding: 31px 0 28px;
  position: relative;
  text-transform: uppercase;
}

.nav-dropdown > summary {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.nav-caret {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--gold);
  display: inline-block;
  flex: 0 0 auto;
  height: 0;
  margin-top: 1px;
  transition: transform 180ms ease;
  width: 0;
}

.nav-dropdown[open] .nav-caret,
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown > summary::-webkit-details-marker,
.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.desktop-nav > a::after,
.nav-dropdown > summary::after {
  background: var(--gold);
  bottom: 22px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.desktop-nav > a:hover::after,
.nav-dropdown > summary:hover::after,
.nav-dropdown[open] > summary::after {
  transform: scaleX(1);
}

.nav-dropdown {
  align-self: stretch;
  display: block;
  position: relative;
}

/* Override UA: closed <details> hides non-summary children — keep menu available for hover. */
.nav-dropdown > .treatment-menu {
  display: block;
}

.treatment-menu {
  background: var(--white);
  border-radius: 0 0 22px 22px;
  box-shadow: var(--shadow);
  left: 50%;
  min-width: min(780px, calc(100vw - 48px));
  opacity: 0;
  padding: 26px;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 2px);
  transform: translate(-50%, -6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  visibility: hidden;
  z-index: 120;
}

/* Invisible bridge so the pointer can move from label into the panel. */
.treatment-menu::before {
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  right: 0;
  top: -14px;
}

.nav-dropdown[open] > .treatment-menu,
.nav-dropdown:hover > .treatment-menu,
.nav-dropdown:focus-within > .treatment-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.menu-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 5px 18px;
}

.menu-heading span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.menu-heading a {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-links {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.menu-links a {
  border-radius: 12px;
  padding: 12px 13px;
  transition: background 160ms ease;
}

.menu-links a:hover {
  background: var(--mint-pale);
}

.menu-links span,
.menu-links small {
  display: block;
}

.menu-links span {
  font-size: 0.83rem;
  font-weight: 800;
}

.menu-links small {
  color: #66817a;
  font-size: 0.63rem;
  line-height: 1.35;
  margin-top: 3px;
}

/* Catalogue mega: left image preview (must beat .nav-dropdown > .treatment-menu { display:block }). */
.nav-dropdown > .treatment-menu--preview {
  align-items: start;
  display: grid;
  gap: 18px 20px;
  grid-template-columns: 220px minmax(0, 1fr);
  min-width: min(820px, calc(100vw - 40px));
}

.treatment-menu--preview .menu-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.menu-preview {
  align-self: start;
  background: linear-gradient(160deg, #0f3d3a 0%, #163d48 55%, #1a2f3a 100%);
  border-radius: 16px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 280px;
  max-width: 220px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.menu-preview__media {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.menu-preview__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  width: 100%;
}

.menu-preview__meta {
  background: linear-gradient(180deg, transparent, rgba(8, 24, 28, 0.88));
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 36px 14px 14px;
  position: relative;
  z-index: 1;
}

.menu-preview__meta small {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-preview__meta b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.treatment-menu--preview .menu-links {
  align-content: start;
  max-height: min(320px, 52vh);
  min-width: 0;
  overflow: auto;
}

.treatment-menu--preview .menu-links--grouped {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.menu-group__title {
  color: var(--gold);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 2px 13px 8px;
  text-transform: uppercase;
}

/* One category with many items: keep a 3-col link grid under a single heading. */
.treatment-menu--preview .menu-links--grouped:has(> .menu-group:only-child) {
  grid-template-columns: 1fr;
}

.treatment-menu--preview .menu-group:only-child {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.treatment-menu--preview .menu-group:only-child > .menu-group__title {
  grid-column: 1 / -1;
  padding-bottom: 4px;
}

.treatment-menu--preview .menu-links a.is-active {
  background: var(--mint-pale);
}

@media (max-width: 860px) {
  .nav-dropdown > .treatment-menu--preview {
    grid-template-columns: 1fr;
    min-width: min(780px, calc(100vw - 48px));
  }

  .menu-preview {
    height: 168px;
    max-width: none;
  }

  .treatment-menu--preview .menu-group:only-child {
    grid-template-columns: 1fr;
  }
}

.button-header {
  background: var(--teal);
  color: var(--white);
  min-height: 46px;
  padding-inline: 21px;
}
.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.button-header--secondary {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid color-mix(in srgb, var(--teal) 55%, transparent);
}
.button-header--secondary:hover,
.button-header--secondary:focus-visible {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal);
}

.mobile-menu {
  display: none;
}

/* Mobile bottom Email/Book bar removed — floating actions will replace it later. */
.mobile-cta {
  display: none !important;
}

/* Home */
.home-hero {
  background: var(--teal-deep);
  color: var(--white);
  min-height: min(820px, calc(100svh - 110px));
  overflow: hidden;
  position: relative;
}

.home-hero-image,
.home-hero-overlay {
  inset: 0;
  height: 100%;
  position: absolute;
  width: 100%;
}

.home-hero-image {
  object-fit: cover;
  object-position: 58% center;
}

.home-hero-overlay {
  background:
    linear-gradient(
      105deg,
      rgba(8, 31, 27, 0.97) 0%,
      rgba(8, 31, 27, 0.88) 26%,
      rgba(8, 31, 27, 0.55) 48%,
      rgba(8, 31, 27, 0.18) 68%,
      rgba(8, 31, 27, 0.04) 100%
    ),
    linear-gradient(0deg, rgba(8, 31, 27, 0.58) 0%, transparent 46%);
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(820px, calc(100svh - 110px));
  padding: clamp(72px, 11vh, 120px) 0 clamp(48px, 7vh, 76px);
  position: relative;
  z-index: 2;
}

.home-hero-content > .eyebrow {
  margin-bottom: 1.15rem;
  max-width: 36rem;
}

.home-hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(4rem, 7.4vw, 7.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0 0 1.15rem;
  max-width: min(15ch, 100%);
}

.home-hero h1 .bb3-hero-title-main {
  display: block;
  white-space: pre-line;
}

.home-hero h1 em,
.home-hero h1 .bb3-hero-em {
  color: var(--gold-light);
  display: block;
  font-family: var(--font-accent);
  font-size: 0.76em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-left: 0;
  margin-top: 0.22em;
}

.home-hero-content > p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.68;
  margin: 0;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.85rem;
}

.home-hero .hero-actions .button {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  min-height: 50px;
  padding-inline: 1.55rem;
}

.hero-credentials {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 1.25rem 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5.5vh, 4rem);
  max-width: 36rem;
  padding-top: 1.35rem;
}

.hero-credentials span,
.hero-credentials strong {
  display: block;
}

.hero-credentials span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.hero-credentials strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.28rem;
}

.stats-section {
  background: var(--cream, #f7f3ec);
}

.bb3-stats-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}

.bb3-stats-card {
  background: var(--panel, var(--white));
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: var(--radius-sm, 14px);
  box-shadow: 0 10px 28px rgba(28, 28, 28, 0.05);
  padding: clamp(1.35rem, 2.5vw, 1.85rem) 1.25rem;
  text-align: center;
}

.bb3-stats-card__value {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.55rem;
}

.bb3-stats-card__suffix {
  margin-left: 0.08em;
}

.bb3-stats-card__label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

.trust-ribbon {
  background: var(--gold);
  color: var(--white);
  overflow: hidden;
}

.trust-ribbon > div {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: max-content;
}

.trust-ribbon span {
  align-items: center;
  display: flex;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  min-height: 58px;
  padding: 0 34px;
  text-transform: uppercase;
}

.trust-ribbon span:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.6);
  content: "◆";
  font-size: 0.4rem;
  margin-left: 68px;
}

/* Highlights — centered heading + icon feature cards */
.highlights-section {
  background: var(--ivory);
}
.highlights-section .highlights-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.75rem;
}
.highlights-section .highlights-heading .eyebrow {
  display: block;
  margin-bottom: 0.65rem;
}
.highlights-section .highlights-heading h2 {
  margin: 0;
  text-align: center;
  max-width: 18ch;
}
.highlights-section .highlights-heading__text {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1.03rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--ink, #1a2422) 72%, transparent);
  text-align: center;
}
.bb3-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bb3-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin: 0;
  padding: 1.85rem 1.35rem 1.9rem;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--teal, #1f4d47) 12%, transparent);
  border-radius: 2px;
  min-height: 100%;
  box-shadow: 0 10px 28px rgba(20, 40, 36, 0.04);
}
.bb3-feature-card__icon {
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold, #c9a55c) 16%, var(--white));
  color: var(--gold, #c9a55c);
  font-size: 1.1rem;
  line-height: 1;
}
.bb3-feature-card__icon i {
  display: block;
  line-height: 1;
}
.bb3-feature-card__check {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold, #c9a55c);
}
.bb3-feature-card__body {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.bb3-feature-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink, #1a2422);
  line-height: 1.25;
  text-align: center;
}
.bb3-feature-card__text {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink, #1a2422) 68%, transparent);
  text-align: center;
}
.bb3-feature-card.is-title-only .bb3-feature-card__title {
  margin-bottom: 0;
}

.services-home {
  background: var(--ivory);
}

.service-showcase {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.service-showcase > a {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.service-showcase > a > img {
  height: 220px;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.service-showcase > a:hover > img {
  transform: scale(1.035);
}

.service-showcase > a > div {
  padding: 28px 28px 32px;
}

.service-showcase span,
.service-showcase strong {
  color: var(--gold);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-showcase h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 11px 0 13px;
}

.service-showcase p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.service-showcase .service-featured {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 460px;
}

.service-showcase .service-featured > img {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.service-showcase .service-featured > div {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 42px;
  box-sizing: border-box;
  min-height: 460px;
  position: relative;
  z-index: 1;
}

.service-showcase .service-featured h3 {
  font-size: 2.55rem;
}

/* Desktop: fill the grid from card count (no trailing empty cells). */
@media (min-width: 1121px) {
  .service-showcase[data-layout="solo"] {
    grid-template-columns: 1fr;
  }

  .service-showcase[data-layout="solo"] .service-featured {
    grid-column: auto;
  }

  .service-showcase[data-layout="hero-pair"] {
    grid-template-columns: 1fr 1fr;
  }

  .service-showcase[data-layout="hero-pair"] .service-featured,
  .service-showcase[data-layout="hero-row"] .service-featured {
    grid-column: 1 / -1;
  }

  body.site-theme-theme3 .service-showcase[data-layout="equal"] a.service-featured {
    grid-column: span 1;
    display: block;
    grid-template-columns: unset;
    min-height: 460px;
  }

  body.site-theme-theme3 .service-showcase[data-layout="equal"] a.service-featured > img {
    position: static;
    width: 100%;
    height: 220px;
    min-height: 0;
    max-height: none;
  }

  body.site-theme-theme3 .service-showcase[data-layout="equal"] a.service-featured > div {
    grid-column: auto;
    display: block;
    min-height: 0;
    padding: 28px 28px 32px;
  }

  body.site-theme-theme3 .service-showcase[data-layout="equal"] a.service-featured h3 {
    font-size: 1.75rem;
  }
}

.doctor-home {
  background: var(--mint);
  overflow: hidden;
}

.doctor-home-grid {
  align-items: center;
  display: grid;
  gap: clamp(55px, 7vw, 100px);
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.doctor-image-wrap {
  position: relative;
}

.doctor-image-wrap::before {
  border: 1px solid rgba(199, 146, 44, 0.6);
  border-radius: 50%;
  content: "";
  height: 330px;
  left: -120px;
  position: absolute;
  top: -90px;
  width: 330px;
}

.doctor-image-wrap img {
  aspect-ratio: 4 / 5;
  border-radius: 240px 240px 30px 30px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: 62% center;
  position: relative;
  width: 100%;
}

.doctor-badge {
  background: var(--teal);
  border: 5px solid var(--mint);
  border-radius: 18px;
  bottom: 34px;
  color: var(--white);
  max-width: 280px;
  padding: 20px 24px;
  position: absolute;
  right: -30px;
}

.doctor-badge span,
.doctor-badge strong,
.doctor-badge em {
  display: block;
}

.doctor-badge span {
  color: var(--gold-light);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doctor-badge strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.doctor-badge em {
  color: rgba(255, 255, 255, 0.85);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  margin-top: 0.35rem;
}

.doctor-home-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.doctor-home-copy .lead {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.4;
}

.doctor-home-copy p:not(.lead) {
  font-size: 0.96rem;
}

.doctor-home-copy .button {
  margin-top: 12px;
}

/* CUSTOM HTML wrapper: pass through so theme sections keep their layout. */
.bb-pro-custom {
  display: contents;
}

.philosophy-section {
  background: var(--teal);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.philosophy-section::after {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  height: 640px;
  position: absolute;
  right: -260px;
  top: -220px;
  width: 640px;
}

.philosophy-grid {
  display: grid;
  gap: 90px;
  grid-template-columns: 0.9fr 1.1fr;
  position: relative;
  z-index: 1;
}

.philosophy-title h2 {
  color: var(--white);
}

.philosophy-copy > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.promise-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
  margin-top: 42px;
}

.promise-grid article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 150px;
  padding: 28px;
}

.promise-grid strong,
.promise-grid span {
  display: block;
}

.promise-grid strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.promise-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
}

.clinic-spotlight {
  background: var(--white);
}

.clinic-spotlight-grid {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 0.75fr 1.25fr;
}

.feature-list {
  list-style: none;
  margin: 28px 0;
  padding: 0;
}

.feature-list li {
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 0 12px 26px;
  position: relative;
}

.feature-list li::before {
  color: var(--gold);
  content: "✓";
  left: 0;
  position: absolute;
}

.feature-list li.has-icon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
}

.feature-list li.has-icon::before {
  content: none;
  display: none;
}

.feature-list li.has-icon > i {
  color: var(--gold);
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: 1px;
  width: 1.1rem;
  text-align: center;
}

.feature-list li.has-icon > span {
  flex: 1 1 auto;
  min-width: 0;
}

.clinic-collage {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.7fr 1.3fr;
}

.clinic-collage img {
  border-radius: var(--radius);
  height: 520px;
  object-fit: cover;
  width: 100%;
}

.clinic-collage img:first-child {
  margin-top: 70px;
}

/* Gallery */
.gallery-section {
  background: var(--mint-pale);
}

.care-gallery {
  display: grid;
  gap: 15px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
}

/* Theme3 care rail — JS morphs a true wider center; no CSS width transitions. */
.care-gallery--rail {
  display: block;
  overflow: hidden;
}

.care-gallery--rail .care-gallery__track {
  display: flex;
  align-items: stretch;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.care-gallery--rail .care-gallery__track::-webkit-scrollbar {
  display: none;
}

.care-gallery--rail figure {
  flex: 0 0 calc(25% - 11.25px);
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  transform: none;
  transition: none;
  will-change: auto;
  z-index: 1;
}

.care-gallery--rail figure.is-center,
.care-gallery--rail .gallery-wide {
  flex: 0 0 calc(50% - 7.5px);
  grid-column: unset;
  transform: none;
  z-index: 2;
}

.care-gallery--rail figure img {
  border-radius: inherit;
  display: block;
  height: 100%;
  object-fit: cover;
  transition: none;
  width: 100%;
}

.care-gallery--rail figure:hover img {
  transform: none;
}

.care-gallery--rail figure::after {
  border-radius: inherit;
}

.care-gallery figure {
  border-radius: 20px;
  height: 300px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.care-gallery .gallery-wide {
  grid-column: span 2;
}

.care-gallery img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.care-gallery figure:hover img {
  transform: scale(1.035);
}

.care-gallery figure::after {
  background: linear-gradient(0deg, rgba(6, 31, 27, 0.78), transparent 60%);
  content: "";
  inset: 0;
  position: absolute;
}

.care-gallery figcaption {
  bottom: 18px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  left: 20px;
  position: absolute;
  z-index: 1;
}

.care-gallery__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.care-gallery__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal, #173b35) 22%, transparent);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, width 0.18s ease;
}

.care-gallery__dot:hover {
  background: color-mix(in srgb, var(--gold, #c7922c) 70%, transparent);
  transform: scale(1.12);
}

.care-gallery__dot.is-active {
  width: 22px;
  background: var(--gold, #c7922c);
}

.care-gallery__dot:focus-visible {
  outline: 2px solid var(--gold, #c7922c);
  outline-offset: 3px;
}

/* FAQ & forms */
.faq-section {
  background: var(--ivory);
}

.faq-layout {
  display: grid;
  gap: 85px;
  grid-template-columns: 0.78fr 1.22fr;
}

.faq-intro {
  position: sticky;
  top: 130px;
  align-self: start;
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  justify-content: space-between;
  list-style: none;
  padding: 24px 0;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  display: inline-flex;
  flex: 0 0 34px;
  font-family: Arial, sans-serif;
  height: 34px;
  justify-content: center;
  margin-left: 20px;
  transition: transform 180ms ease;
}

.accordion details[open] summary span {
  transform: rotate(45deg);
}

.accordion details p {
  font-size: 0.91rem;
  padding: 0 54px 24px 0;
}

.booking-band {
  background: var(--teal-deep);
  color: var(--white);
}

.booking-layout {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
}

.booking-layout h2 {
  color: var(--white);
}

.booking-layout > div:first-child > p {
  color: rgba(255, 255, 255, 0.68);
}

.appointment-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 36px;
}

.appointment-form label,
.appointment-form label > span {
  display: block;
}

.appointment-form label > span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  background: #f7faf8;
  border: 1px solid rgba(20, 38, 34, 0.13);
  border-radius: 11px;
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
  width: 100%;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 146, 44, 0.14);
}

.field-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}

.appointment-form > label {
  margin-bottom: 14px;
}

.appointment-form .button {
  border: 0;
  margin-top: 4px;
  width: 100%;
}

.form-note {
  color: #6b7c78;
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 13px 0 0;
}

.appointment-form-compact {
  padding: 30px;
}

/* Service pages */
.service-hero {
  align-items: center;
  background: var(--teal-deep);
  color: var(--white);
  display: flex;
  min-height: 660px;
  overflow: hidden;
  position: relative;
}

.service-hero-image,
.service-hero-shade {
  inset: 0;
  height: 100%;
  position: absolute;
  width: 100%;
}

.service-hero-image {
  object-fit: cover;
}

.service-hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(9, 35, 31, 0.97) 0%,
      rgba(9, 35, 31, 0.88) 39%,
      rgba(9, 35, 31, 0.25) 72%,
      transparent
    ),
    linear-gradient(0deg, rgba(9, 35, 31, 0.45), transparent 50%);
}

.service-hero-content {
  padding: 95px 0 80px;
  position: relative;
  z-index: 2;
}

.service-hero h1 {
  color: var(--white);
  font-size: clamp(3.3rem, 5.8vw, 5.8rem);
  max-width: 810px;
}

.service-hero-content > p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
  max-width: 710px;
}

.breadcrumbs {
  align-items: center;
  color: rgba(255, 255, 255, 0.64);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.66rem;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0.06em;
  margin-bottom: 55px;
  text-transform: uppercase;
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.breadcrumbs-dark {
  color: #6a807a;
}

.prose-layout {
  display: grid;
  gap: 95px;
  grid-template-columns: 0.68fr 1.32fr;
}

.prose-aside {
  align-self: start;
  position: sticky;
  top: 135px;
}

.prose-aside h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
}

.prose-aside > p {
  font-size: 0.78rem;
}

.keyword-chip {
  background: var(--mint);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 0.67rem;
  font-weight: 800;
  margin: 12px 0 24px;
  padding: 10px 15px;
  text-transform: uppercase;
}

.rich-prose > p {
  font-size: 0.98rem;
  line-height: 1.68;
  max-width: 70ch;
}

.focus-panel {
  align-items: flex-start;
  background: var(--mint-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr;
  margin-top: 36px;
  padding: 30px;
}

.focus-mark {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: var(--gold-light);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.focus-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.focus-panel p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.care-section {
  background: var(--mint);
}

.care-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.care-grid article {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  min-height: 220px;
  padding: 28px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.care-grid article:hover {
  background: var(--white);
  transform: translateY(-4px);
}

.card-kicker {
  color: var(--gold);
  display: block;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.care-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
  margin-bottom: 9px;
}

.care-grid p {
  font-size: 0.82rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.treatment-visual-section {
  background: var(--ivory);
}

.treatment-visual-heading {
  margin-bottom: 38px;
}

.treatment-visual-heading h2 {
  max-width: 760px;
}

.treatment-visual-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.treatment-visual-card {
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 24px;
  grid-template-columns: 92px 1fr;
  min-height: 210px;
  padding: 30px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.treatment-visual-card:hover {
  border-color: rgba(24, 167, 223, 0.36);
  box-shadow: 0 22px 45px rgba(17, 55, 72, 0.08);
  transform: translateY(-4px);
}

.treatment-icon {
  align-items: center;
  aspect-ratio: 1;
  background: #eef9fc;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  padding: 14px;
}

.treatment-icon svg {
  height: 64px;
  overflow: visible;
  width: 64px;
}

.treatment-icon .icon-base {
  fill: #24447b;
  stroke: #24447b;
}

.treatment-icon .icon-accent {
  fill: none;
  stroke: #16a7df;
}

.treatment-visual-card h3 {
  color: #24447b;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 7px 0 10px;
}

.treatment-visual-card p {
  font-size: 0.79rem;
  line-height: 1.62;
  margin: 0;
}

.pathway-section {
  background: var(--white);
}

.pathway-layout {
  align-items: center;
  display: grid;
  gap: 90px;
  grid-template-columns: 0.9fr 1.1fr;
}

.pathway-image-stack {
  position: relative;
}

.pathway-image-stack img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
}

.pathway-note {
  background: var(--teal);
  border: 5px solid var(--white);
  border-radius: 18px;
  bottom: 32px;
  color: var(--white);
  max-width: 320px;
  padding: 24px;
  position: absolute;
  right: -32px;
}

.pathway-note span,
.pathway-note strong,
.pathway-note small {
  display: block;
}

.pathway-note span {
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.pathway-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.pathway-note small {
  color: rgba(255, 255, 255, 0.68);
}

.pathway-list {
  margin-top: 36px;
}

.pathway-list article {
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr;
  padding: 0 0 24px;
  position: relative;
}

.pathway-list article:not(:last-child)::before {
  background: var(--mint-strong);
  content: "";
  height: calc(100% - 4px);
  left: 6px;
  position: absolute;
  top: 13px;
  width: 1px;
}

.pathway-list article > span {
  background: var(--gold);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold);
  height: 13px;
  margin-top: 7px;
  position: relative;
  width: 13px;
  z-index: 1;
}

.pathway-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.pathway-list p {
  font-size: 0.84rem;
  margin-bottom: 0;
}

.aftercare-section {
  background: var(--ivory);
  padding-top: 0;
}

.aftercare-card {
  background: var(--teal);
  border-radius: var(--radius-lg);
  color: var(--white);
  display: grid;
  gap: 70px;
  grid-template-columns: 0.8fr 1.2fr;
  padding: clamp(44px, 6vw, 80px);
}

.aftercare-card h2 {
  color: var(--white);
}

.aftercare-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.related-section {
  background: var(--white);
}

.related-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.related-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 280px;
  padding: 30px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.related-grid a:hover {
  background: var(--mint-pale);
  transform: translateY(-4px);
}

.related-grid span {
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin: 30px 0 12px;
}

.related-grid p {
  font-size: 0.82rem;
}

.related-grid strong {
  color: var(--teal);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* About */
.about-hero {
  background: var(--mint);
  padding: 90px 0 0;
}

.about-hero-grid {
  align-items: end;
  display: grid;
  gap: 70px;
  grid-template-columns: 0.9fr 1.1fr;
}

.about-hero-copy {
  padding-bottom: 90px;
}

.about-hero-copy .breadcrumbs {
  margin-bottom: 55px;
}

.about-hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.75rem);
  line-height: 1.05;
  margin-bottom: 26px;
  overflow-wrap: anywhere;
}

.about-lead {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.35;
}

.about-hero-copy > p:not(.about-lead) {
  font-size: 0.95rem;
  max-width: 620px;
}

.about-hero-copy .button {
  margin-top: 14px;
}

.about-hero-image {
  position: relative;
}

.about-hero-image > img {
  aspect-ratio: 4 / 5;
  border-radius: 260px 260px 0 0;
  object-fit: cover;
  object-position: 62% center;
  width: 100%;
}

.about-hero-image .doctor-badge {
  bottom: 28px;
  left: auto;
  max-width: min(280px, 72%);
  right: 18px;
}

.about-hero-copy .doctor-home-actions {
  margin-top: 1.5rem;
}

.about-hero-copy .about-lead + p {
  margin-top: 1.1rem;
}

.qualification-ribbon {
  background: var(--teal);
  border-radius: 18px 18px 0 0;
  bottom: 0;
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: 0.5fr 1.4fr 1.4fr;
  left: -50px;
  overflow: hidden;
  position: absolute;
  right: 0;
}

.qualification-ribbon span {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  font-size: 0.67rem;
  font-weight: 700;
  min-height: 90px;
  padding: 18px;
}

.biography-section {
  background: var(--white);
}

.biography-layout {
  display: grid;
  gap: 90px;
  grid-template-columns: 0.83fr 1.17fr;
}

.education-list {
  margin-top: 36px;
}

.education-list article {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.education-list strong,
.education-list span {
  display: block;
}

.education-list strong {
  font-size: 0.84rem;
}

.education-list span {
  color: #617771;
  font-size: 0.76rem;
  margin-top: 4px;
}

.founder-story {
  background: var(--teal);
  color: var(--white);
}

.founder-grid {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 0.9fr 1.1fr;
}

.founder-photo img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.founder-grid h2 {
  color: var(--white);
}

.founder-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.promise-section {
  background: var(--ivory);
}

.promise-cards {
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(4, 1fr);
}

.promise-cards article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-height: 270px;
  padding: 30px;
}

.promise-cards span {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promise-cards h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 48px 0 12px;
}

.promise-cards p {
  font-size: 0.82rem;
}

/* ---------- Categories (catalogue productCategories) ---------- */
.bb3-categories-section {
  background: var(--ivory);
}
.bb3-categories-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.bb3-category-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.bb3-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(14, 42, 38, 0.12);
}
.bb3-category-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(20, 38, 34, 0.06);
}
.bb3-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bb3-category-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 22px;
}
.bb3-category-card__eyebrow {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bb3-category-card__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
  color: var(--ink);
}
.bb3-category-card--no-media {
  justify-content: flex-end;
  min-height: 160px;
}

.quote-section {
  background: var(--mint);
}

.quote-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.quote-card > span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  line-height: 0.6;
}

.quote-card blockquote {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.18;
  max-width: 980px;
}

.quote-card cite {
  color: #5e756f;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  margin-bottom: 30px;
}

/* Treatments */
.treatments-hero {
  background: var(--mint);
  padding: 90px 0;
  overflow: hidden;
}

.treatments-hero-grid {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 0.9fr 1.1fr;
}

.treatments-hero h1 {
  font-size: clamp(3.3rem, 5.5vw, 5.6rem);
}

.treatments-hero p {
  font-size: 1rem;
  max-width: 680px;
}

.treatments-hero-images {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
}

.treatments-hero-images img {
  border-radius: 180px 180px 25px 25px;
  height: 540px;
  object-fit: cover;
  width: 100%;
}

.treatments-hero-images img:last-child {
  margin-top: 70px;
}

.treatments-hero-single {
  grid-template-columns: 1fr;
}

.treatments-hero-single img,
.treatments-hero-single img:last-child {
  border-radius: 240px 240px 28px 28px;
  margin-top: 0;
}

.treatment-intro {
  background: var(--white);
}

.all-treatments {
  background: var(--ivory);
}

.all-treatment-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.all-treatment-grid article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.treatment-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.treatment-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  width: 100%;
}

.all-treatment-grid article:hover img {
  transform: scale(1.04);
}

.treatment-image span {
  background: rgba(14, 42, 38, 0.88);
  border-radius: 999px;
  bottom: 16px;
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  left: 16px;
  letter-spacing: 0.07em;
  padding: 8px 11px;
  position: absolute;
  text-transform: uppercase;
}

.all-treatment-grid article > div:last-child {
  padding: 27px;
}

.all-treatment-grid small {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.all-treatment-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  margin: 10px 0 12px;
}

.all-treatment-grid p {
  font-size: 0.81rem;
}

.decision-section {
  background: var(--teal);
  color: var(--white);
}

.decision-grid {
  display: grid;
  gap: 85px;
  grid-template-columns: 0.72fr 1.28fr;
}

.decision-title {
  align-self: start;
  position: sticky;
  top: 130px;
}

.decision-title h2 {
  color: var(--white);
}

.decision-title p {
  color: rgba(255, 255, 255, 0.7);
}

.decision-options {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.decision-options article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 26px;
}

.decision-options span {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.decision-options p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  margin: 12px 0 18px;
}

.decision-options a {
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.treatment-standards {
  background: var(--white);
}

.standard-grid {
  display: grid;
  gap: 80px;
  grid-template-columns: 0.75fr 1.25fr;
}

.standard-list {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
}

.standard-list article {
  border-top: 3px solid var(--gold);
  padding-top: 20px;
}

.standard-list strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 500;
}

.standard-list p {
  font-size: 0.8rem;
  margin-top: 8px;
}

.simple-cta {
  background: var(--teal-deep);
}

.simple-cta-inner {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 50px;
  justify-content: space-between;
}

.simple-cta h2 {
  color: var(--white);
  margin-bottom: 0;
  max-width: 820px;
}

/* Contact */
.contact-hero {
  align-items: center;
  background: var(--teal);
  display: flex;
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

.contact-hero > img,
.contact-hero-overlay {
  inset: 0;
  height: 100%;
  position: absolute;
  width: 100%;
}

.contact-hero > img {
  object-fit: cover;
  object-position: center 45%;
}

.contact-hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 36, 32, 0.96),
    rgba(10, 36, 32, 0.72) 50%,
    rgba(10, 36, 32, 0.12)
  );
}

.contact-hero-content {
  color: var(--white);
  padding: 90px 0;
  position: relative;
}

.contact-hero h1 {
  color: var(--white);
  max-width: 900px;
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
  max-width: 650px;
}

.contact-form-section {
  background: var(--mint);
}

.contact-grid {
  align-items: start;
  display: grid;
  gap: 80px;
  grid-template-columns: 0.92fr 1.08fr;
}

.contact-copy > p {
  font-size: 0.94rem;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 35px;
}

.contact-cards article {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 18px 20px;
}

.contact-cards span,
.contact-cards strong,
.contact-cards a {
  display: block;
}

.contact-cards span {
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-cards strong,
.contact-cards a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.07rem;
  font-weight: 500;
  margin-top: 4px;
}

.form-card-heading {
  background: var(--teal);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--white);
  padding: 28px 36px;
}

.form-card-heading span {
  color: var(--gold-light);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-card-heading h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin: 5px 0 0;
}

.form-card .appointment-form {
  border-radius: 0 0 var(--radius) var(--radius);
}

.first-visit-section {
  background: var(--white);
}

.first-visit-grid {
  display: grid;
  gap: 80px;
  grid-template-columns: 0.8fr 1.2fr;
}

.visit-notes {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
}

.visit-notes article {
  background: var(--mint-pale);
  border-radius: 18px;
  padding: 26px;
}

.visit-notes strong {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.visit-notes p {
  font-size: 0.78rem;
  margin: 9px 0 0;
}

.visit-location {
  background: var(--teal);
  color: var(--white);
}

.visit-location-grid {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 1.05fr 0.95fr;
}

.visit-location img {
  border-radius: var(--radius-lg);
  height: 560px;
  object-fit: cover;
  width: 100%;
}

.visit-location h2 {
  color: var(--white);
}

.visit-location p {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
  background: #091f1c;
  color: var(--white);
  padding: 85px 0 26px;
}

.footer-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: 1.6fr 0.8fr 1fr 1fr;
}

.footer-brand img {
  height: auto;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-brand > strong {
  color: var(--white);
  display: block;
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.65rem 0 0.85rem;
  max-width: 390px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.footer-social__link {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  color: var(--gold-light, #d4af37);
  display: inline-flex;
  font-size: 0.85rem;
  height: 2rem;
  justify-content: center;
  text-decoration: none;
  width: 2rem;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  background: rgba(212, 175, 55, 0.18);
  color: #fff;
}

.footer-email {
  color: var(--gold-light);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0.15rem;
}

.footer-grid h2 {
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) > a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.footer-grid > div:not(.footer-brand) > a:hover {
  color: var(--white);
}

.footer-grid > div:not(.footer-brand) > p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-grid .button {
  color: var(--white);
  display: inline-flex !important;
  font-size: 0.88rem;
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  font-size: 0.72rem;
  gap: 30px;
  justify-content: space-between;
  line-height: 1.45;
  margin-top: 70px;
  padding-top: 22px;
}

.footer-bottom a.footer-admin {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.footer-bottom a.footer-admin:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Clean, confident heading style inspired by the reference dental layout */
.menu-heading span,
.service-showcase h3,
.doctor-badge strong,
.promise-grid strong,
.accordion summary,
.focus-panel h3,
.care-grid h3,
.pathway-note strong,
.pathway-list h3,
.related-grid h3,
.promise-cards h3,
.all-treatment-grid h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 1120px) {
  :root {
    --container: min(100% - 40px, 1080px);
  }

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

  .desktop-nav {
    gap: 19px;
  }

  .desktop-nav > a,
  .nav-dropdown > summary {
    font-size: 0.7rem;
  }

  .brand:not(:has(.brand-name)) {
    flex-basis: 264px;
  }

  .brand:not(:has(.brand-name)) img {
    height: 62px;
    width: 264px;
  }

  .brand:has(.brand-name) img {
    height: 62px;
    max-width: min(110px, 26vw);
  }

  .service-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .service-showcase .service-featured {
    grid-column: span 2;
  }

  .care-gallery:not(.care-gallery--rail) {
    grid-template-columns: repeat(3, 1fr);
  }

  .promise-cards {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.8fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(100% - 32px, 760px);
  }

  .section {
    padding: 82px 0;
  }

  .utility-contact span:last-child,
  .desktop-nav,
  .header-ctas {
    display: none;
  }

  .header-inner {
    min-height: 82px;
    gap: 10px;
  }

  .brand:not(:has(.brand-name)),
  .brand:not(:has(.brand-name)) img {
    width: min(250px, 72vw);
  }

  .brand:not(:has(.brand-name)) {
    flex-basis: auto;
    max-width: min(250px, 72vw);
  }

  .brand:has(.brand-name) {
    width: auto;
    flex-basis: auto;
    max-width: calc(100% - 64px);
    min-width: 0;
  }

  .brand:has(.brand-name) img {
    width: auto;
    height: auto;
    max-height: 52px;
    max-width: min(72px, 22vw);
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
  }

  .mobile-menu > summary {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 44px;
    justify-content: center;
    list-style: none;
    width: 44px;
  }

  .mobile-menu > summary span {
    background: var(--teal);
    height: 2px;
    width: 17px;
  }

  .mobile-menu nav {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 20px;
    position: absolute;
    right: 0;
    top: 54px;
    width: min(370px, calc(100vw - 32px));
  }

  .mobile-menu[open] nav {
    display: block;
  }

  .mobile-menu nav > a {
    border-bottom: 1px solid var(--line);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 11px 2px;
  }

  .mobile-treatment-dropdown {
    border-bottom: 1px solid var(--line);
  }

  .mobile-treatment-dropdown > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    padding: 12px 2px;
    text-transform: uppercase;
  }

  .mobile-treatment-dropdown > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-treatment-dropdown > summary span {
    color: var(--gold);
    transition: transform 180ms ease;
  }

  .mobile-treatment-dropdown[open] > summary span {
    transform: rotate(180deg);
  }

  .mobile-treatment-dropdown > div {
    background: var(--mint-pale);
    border-radius: 12px;
    margin: 0 0 12px;
    padding: 8px 12px;
  }

  .mobile-treatment-dropdown a {
    border-bottom: 1px solid rgba(20, 38, 34, 0.09);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 10px 2px;
  }

  .mobile-treatment-dropdown a:last-child {
    border-bottom: 0;
  }

  .mobile-menu nav .button,
  .mobile-menu-ctas .button-header {
    border: 0;
    margin-top: 0;
    width: 100%;
    display: inline-flex !important;
    justify-content: center;
    min-height: 46px;
    box-sizing: border-box;
  }
  .mobile-menu-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
  .mobile-menu-ctas .button-header--secondary {
    background: transparent;
    color: var(--teal);
    border: 1.5px solid color-mix(in srgb, var(--teal) 55%, transparent);
  }
  .mobile-menu-ctas .button-header:not(.button-header--secondary) {
    background: var(--teal);
    color: var(--white);
  }
  /* Header CTAs stay desktop-only; mobile uses menu drawer CTAs. */
  .header-ctas {
    display: none;
  }

  .heading-split,
  .doctor-home-grid,
  .philosophy-grid,
  .clinic-spotlight-grid,
  .faq-layout,
  .booking-layout,
  .prose-layout,
  .pathway-layout,
  .aftercare-card,
  .about-hero-grid,
  .biography-layout,
  .founder-grid,
  .treatments-hero-grid,
  .decision-grid,
  .standard-grid,
  .contact-grid,
  .first-visit-grid,
  .visit-location-grid {
    grid-template-columns: 1fr;
  }

  .heading-split,
  .doctor-home-grid,
  .philosophy-grid,
  .clinic-spotlight-grid,
  .faq-layout,
  .prose-layout,
  .pathway-layout,
  .about-hero-grid,
  .biography-layout,
  .founder-grid,
  .treatments-hero-grid,
  .decision-grid,
  .standard-grid,
  .contact-grid,
  .first-visit-grid,
  .visit-location-grid {
    gap: 50px;
  }

  .prose-aside,
  .faq-intro,
  .decision-title {
    position: static;
  }

  .home-hero,
  .home-hero-content {
    min-height: min(700px, calc(100svh - 100px));
  }

  .home-hero-image {
    object-position: 66% center;
  }

  .home-hero-overlay {
    background:
      linear-gradient(
        105deg,
        rgba(8, 31, 27, 0.97) 0%,
        rgba(8, 31, 27, 0.86) 42%,
        rgba(8, 31, 27, 0.42) 70%,
        rgba(8, 31, 27, 0.16) 100%
      ),
      linear-gradient(0deg, rgba(8, 31, 27, 0.62), transparent 52%);
  }

  .home-hero h1 {
    font-size: clamp(3.35rem, 10.5vw, 5.4rem);
    max-width: min(12ch, 100%);
  }

  .home-hero h1 .bb3-hero-title-main {
    white-space: pre-line;
  }

  .home-hero h1 em,
  .home-hero h1 .bb3-hero-em {
    margin-left: 0;
    font-size: 0.8em;
  }

  .hero-credentials {
    gap: 1rem 1.25rem;
    max-width: 100%;
  }

  .service-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .service-showcase .service-featured {
    display: block;
  }

  .service-showcase .service-featured > img {
    position: static;
    width: 100%;
    height: 300px;
    min-height: 0;
  }

  .service-showcase .service-featured > div {
    grid-column: auto;
    min-height: 0;
  }

  .doctor-image-wrap {
    max-width: 560px;
    margin-inline: auto;
  }

  .doctor-badge {
    right: -10px;
  }

  .clinic-collage img {
    height: 430px;
  }

  .care-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .service-hero {
    min-height: 620px;
  }

  .service-hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(9, 35, 31, 0.97),
        rgba(9, 35, 31, 0.74) 68%,
        rgba(9, 35, 31, 0.28)
      ),
      linear-gradient(0deg, rgba(9, 35, 31, 0.56), transparent 60%);
  }

  .care-grid,
  .treatment-visual-grid,
  .related-grid,
  .all-treatment-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pathway-image-stack {
    max-width: 560px;
  }

  .aftercare-card {
    gap: 30px;
  }

  .about-hero {
    padding-bottom: 0;
  }

  .about-hero-copy {
    padding-bottom: 10px;
  }

  .about-hero-image {
    max-width: 620px;
    margin-inline: auto;
  }

  .about-hero-image .doctor-badge {
    right: 12px;
    bottom: 20px;
  }

  .qualification-ribbon {
    left: 0;
  }

  .treatments-hero-images {
    max-width: 650px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100% - 20px);
    --radius: 18px;
    --radius-lg: 24px;
  }

  body {
    font-size: 15px;
    padding-bottom: 62px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.35rem);
  }

  .section {
    padding: 68px 0;
  }

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

  .utility-inner > span:first-child {
    display: none;
  }

  .brand:not(:has(.brand-name)),
  .brand:not(:has(.brand-name)) img {
    width: 218px;
  }

  .brand:not(:has(.brand-name)) {
    flex-basis: 218px;
  }

  .header-inner {
    gap: 14px;
  }

  .home-hero,
  .home-hero-content {
    min-height: min(680px, calc(100svh - 88px));
  }

  .home-hero-content {
    justify-content: flex-end;
    padding: 48px 0 28px;
  }

  .home-hero-image {
    object-position: 67% center;
  }

  .home-hero-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(8, 31, 27, 0.97) 0%,
        rgba(8, 31, 27, 0.88) 42%,
        rgba(8, 31, 27, 0.35) 78%,
        rgba(8, 31, 27, 0.12) 100%
      ),
      linear-gradient(90deg, rgba(8, 31, 27, 0.72), rgba(8, 31, 27, 0.2) 70%, transparent);
  }

  .home-hero-content > .eyebrow {
    margin-bottom: 0.7rem;
  }

  .home-hero h1 {
    /* Larger type + tight measure so “A” stays on line 1 and smile line wraps below. */
    font-size: clamp(3.55rem, 15.5vw, 5.15rem);
    line-height: 0.98;
    margin: 0 0 0.7rem;
    max-width: 5.4ch;
  }

  .home-hero h1 .bb3-hero-title-main {
    white-space: pre-line;
  }

  .home-hero h1 em,
  .home-hero h1 .bb3-hero-em {
    margin-left: 0;
    margin-top: 0.08em;
    font-size: 0.9em;
    width: max-content;
    max-width: min(100%, 11ch);
  }

  .home-hero-content > p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 1rem;
  }

  .hero-actions .button,
  .home-hero .hero-actions .button {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    min-height: 46px;
    padding-inline: 0.7rem;
    width: 100%;
  }

  .hero-credentials {
    gap: 0.7rem;
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
    max-width: 100%;
    padding-top: 0.85rem;
  }

  .hero-credentials span:nth-child(3) {
    display: none;
  }

  .bb3-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-ribbon > div {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .trust-ribbon span {
    padding: 0 22px;
  }

  .trust-ribbon span:not(:last-child)::after {
    margin-left: 44px;
  }

  .bb3-feature-grid {
    grid-template-columns: 1fr;
  }

  .service-showcase,
  .care-grid,
  .treatment-visual-grid,
  .related-grid,
  .all-treatment-grid,
  .promise-cards,
  .decision-options,
  .standard-list,
  .visit-notes,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-showcase .service-featured {
    grid-column: auto;
  }

  .service-showcase > a {
    min-height: 0;
  }

  .treatment-visual-card {
    grid-template-columns: 82px 1fr;
    min-height: 0;
  }

  .service-showcase .service-featured > img,
  .service-showcase > a > img {
    height: 230px;
  }

  .service-showcase .service-featured > div,
  .service-showcase > a > div {
    padding: 25px;
  }

  .service-showcase .service-featured h3,
  .service-showcase h3 {
    font-size: 1.65rem;
  }

  .doctor-image-wrap::before {
    display: none;
  }

  .doctor-badge {
    bottom: 18px;
    right: -6px;
  }

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

  .clinic-collage {
    grid-template-columns: 1fr 1fr;
  }

  .clinic-collage img {
    height: 320px;
  }

  .clinic-collage img:first-child {
    margin-top: 40px;
  }

  .care-gallery {
    gap: 9px;
    grid-template-columns: 1fr 1fr;
  }

  .care-gallery--rail .care-gallery__track {
    gap: 9px;
  }

  .care-gallery--rail figure {
    flex: 0 0 min(62vw, 240px);
    height: 220px;
    border-radius: 18px;
    transform: none;
  }

  .care-gallery--rail figure.is-center,
  .care-gallery--rail .gallery-wide {
    flex: 0 0 min(86vw, 340px);
    height: 220px;
    transform: none;
  }

  .care-gallery figure,
  .care-gallery .gallery-wide {
    grid-column: auto;
    height: 220px;
  }

  .care-gallery:not(.care-gallery--rail) figure:nth-child(1),
  .care-gallery:not(.care-gallery--rail) figure:nth-child(6),
  .care-gallery:not(.care-gallery--rail) figure:nth-child(11) {
    grid-column: span 2;
    height: 250px;
  }

  .care-gallery figcaption {
    bottom: 13px;
    font-size: 0.87rem;
    left: 14px;
  }

  .faq-layout {
    gap: 30px;
  }

  .accordion summary {
    font-size: 1.08rem;
  }

  .booking-layout {
    gap: 30px;
  }

  .appointment-form,
  .appointment-form-compact {
    padding: 22px;
  }

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

  .service-hero {
    align-items: end;
    min-height: 670px;
  }

  .service-hero-content {
    padding: 80px 0 55px;
  }

  .service-hero-image {
    object-position: 58% center;
  }

  .service-hero-shade {
    background:
      linear-gradient(
        0deg,
        rgba(9, 35, 31, 0.98),
        rgba(9, 35, 31, 0.82) 52%,
        rgba(9, 35, 31, 0.2) 92%
      ),
      linear-gradient(90deg, rgba(9, 35, 31, 0.5), transparent);
  }

  .service-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.7rem);
  }

  .service-hero-content > p {
    font-size: 0.87rem;
  }

  .breadcrumbs {
    margin-bottom: 34px;
  }

  .focus-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .care-grid article {
    min-height: 0;
  }

  .pathway-note {
    bottom: 18px;
    right: -5px;
  }

  .aftercare-card {
    padding: 32px 24px;
  }

  .about-hero {
    padding-top: 60px;
  }

  .about-hero h1 {
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .qualification-ribbon {
    grid-template-columns: 1fr;
    position: relative;
  }

  .qualification-ribbon span {
    min-height: 58px;
  }

  .about-hero-image > img {
    border-radius: 180px 180px 0 0;
  }

  .promise-cards article {
    min-height: 0;
  }

  .treatments-hero {
    padding: 60px 0 75px;
  }

  .treatments-hero-images img {
    border-radius: 120px 120px 18px 18px;
    height: 390px;
  }

  .treatments-hero-images img:last-child {
    margin-top: 45px;
  }

  .all-treatment-grid article {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
  }

  .treatment-image {
    height: 100%;
    min-height: 260px;
  }

  .all-treatment-grid article > div:last-child {
    padding: 22px;
  }

  .all-treatment-grid h3 {
    font-size: 1.35rem;
  }

  .simple-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-hero {
    align-items: end;
    min-height: 620px;
  }

  .contact-hero-overlay {
    background: linear-gradient(
      0deg,
      rgba(10, 36, 32, 0.98),
      rgba(10, 36, 32, 0.76) 60%,
      rgba(10, 36, 32, 0.08)
    );
  }

  .contact-hero-content {
    padding: 70px 0 50px;
  }

  .visit-location img {
    height: 430px;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---- BB integration + layout-fix counter-overrides ---- */
body.site-theme-theme3 .container { width: var(--container); margin-inline: auto; }
body.site-theme-theme3 .bb3-hero-em,
body.site-theme-theme3 .home-hero h1 em {
  color: var(--gold-light);
  display: block;
  font-family: var(--font-accent);
  font-size: 0.76em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-left: 0;
  margin-top: 0.22em;
}
body.site-theme-theme3 .home-hero h1 .bb3-hero-title-main {
  display: block;
  white-space: pre-line;
}
@media (max-width: 860px) {
  body.site-theme-theme3 .home-hero h1 {
    font-size: clamp(3.55rem, 15.5vw, 5.15rem);
    max-width: 5.4ch;
  }
  body.site-theme-theme3 .home-hero h1 em,
  body.site-theme-theme3 .home-hero h1 .bb3-hero-em {
    font-size: 0.9em;
  }
}
@media (max-width: 620px) {
  body.site-theme-theme3 .home-hero h1 {
    font-size: clamp(3.45rem, 16vw, 4.85rem);
    max-width: 5.2ch;
  }
}
/* Restore clinic feature list (bb1-layout-fix zeros all ul/ol padding/list-style) */
body.site-theme-theme3 ul.feature-list,
body.site-theme-theme3 .feature-list {
  list-style: none !important;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  margin: 18px 0 22px !important;
}
body.site-theme-theme3 .feature-list li {
  list-style: none !important;
  position: relative;
  padding-left: 1.15rem !important;
  margin: 0.55rem 0;
}
body.site-theme-theme3 .feature-list li.has-icon {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0 !important;
}
body.site-theme-theme3 .feature-list li.has-icon::before {
  content: none !important;
  display: none !important;
}
body.site-theme-theme3 .bb3-feature-grid {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.site-theme-theme3 .bb3-feature-card {
  list-style: none !important;
}
/* Float chrome: Brandbox shared .pub-float-* (bb-floating.css) — do not hide on mobile */
body.site-theme-theme3 .bb3-form-status { margin: 12px 0 0; font-size: 0.9rem; color: var(--gold-light); }
body.site-theme-theme3 .bb3-form-status.is-error { color: #f5b4b4; }
body.site-theme-theme3 .bb3-form-status.is-ok { color: #b9e4c9; }
body.site-theme-theme3 .no-scroll { overflow: hidden; }
body.site-theme-theme3 .bb3-wa-fab,
body.site-theme-theme3 .bb3-float-stack__btn,
body.site-theme-theme3 .bb3-float__btn {
  position: fixed; z-index: 80; display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 999px; background: var(--teal); color: var(--white);
  box-shadow: var(--shadow-soft);
}
body.site-theme-theme3 .bb3-wa-fab { right: 20px; bottom: 88px; background: #25d366; }
body.site-theme-theme3 .bb3-wa-fab--above-cart { bottom: 160px; }
body.site-theme-theme3 .bb3-float-stack {
  position: fixed; right: 20px; bottom: 88px; z-index: 80; display: flex; flex-direction: column; gap: 10px;
}
body.site-theme-theme3 .bb3-float-stack--with-wa { bottom: 156px; }
body.site-theme-theme3 .bb3-float-stack--above-cart { bottom: 160px; }
body.site-theme-theme3 .bb3-float-stack--with-wa.bb3-float-stack--above-cart { bottom: 228px; }

/* Cart FAB + drawer (markup/JS exist; must be fixed overlay — not document flow) */
body.site-theme-theme3 .bb3-cart-fab {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 120;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--gold, #c9a227);
  color: #111;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
body.site-theme-theme3:has(.whatsapp-float) .bb3-cart-fab,
body.site-theme-theme3:has(.bb3-wa-fab) .bb3-cart-fab {
  bottom: var(--fab-cart-bottom, 90px);
  z-index: 999;
}
body.site-theme-theme3 .bb3-cart-fab[hidden] { display: none !important; }
body.site-theme-theme3 .bb3-cart-fab__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--teal, #0f3d3a);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
body.site-theme-theme3 .bb3-cart-fab__badge[hidden] { display: none !important; }
body.site-theme-theme3 .bb3-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
body.site-theme-theme3 .bb3-cart-drawer[hidden] { display: none !important; }
body.site-theme-theme3 .bb3-cart-drawer.is-open { pointer-events: auto; }
body.site-theme-theme3 .bb3-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.site-theme-theme3 .bb3-cart-drawer.is-open .bb3-cart-drawer__backdrop { opacity: 1; }
body.site-theme-theme3 .bb3-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(22rem, 100%);
  height: 100%;
  background: #0b1210;
  color: #f4f1ea;
  border-left: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(105%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  box-sizing: border-box;
}
body.site-theme-theme3 .bb3-cart-drawer.is-open .bb3-cart-drawer__panel { transform: none; }
body.site-theme-theme3 .bb3-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 1.15rem;
}
body.site-theme-theme3 .bb3-cart-drawer__head button {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.35rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
body.site-theme-theme3 .bb3-cart-drawer__list {
  flex: 1;
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}
body.site-theme-theme3 .bb3-cart-drawer__list .bb3-cart-empty,
body.site-theme-theme3 .bb3-cart-drawer__list .bb2-cart-empty {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 0;
}
body.site-theme-theme3 .bb3-cart-drawer__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
body.site-theme-theme3 .bb3-cart-drawer__foot #bb3CartSummary {
  margin-bottom: 0.85rem;
  font-weight: 700;
}
body.site-theme-theme3 .bb3-cart-drawer__foot #bb3CartSummary > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
body.site-theme-theme3 .bb3-cart-drawer__foot #bb3CartOrder {
  width: 100%;
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line__info,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line__info {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line__name,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line__name {
  font-weight: 700;
  font-size: 0.95rem;
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line__meta,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line__rate,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line__rate {
  color: rgba(255, 255, 255, 0.65);
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line__sum,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line__sum {
  font-weight: 800;
  white-space: nowrap;
  margin-left: auto;
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line__qty,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 0.4rem;
  padding: 0.2rem 0.3rem;
  font-weight: 700;
  justify-self: start;
}
body.site-theme-theme3 .bb3-cart-drawer button.bb3-cart-line__step,
body.site-theme-theme3 .bb3-cart-drawer button.bb2-cart-line__step {
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 0.3rem;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold, #c9a227);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line__n,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line__n {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 800;
}
body.site-theme-theme3 .bb3-cart-drawer .bb3-cart-line__remove,
body.site-theme-theme3 .bb3-cart-drawer .bb2-cart-line__remove {
  border: none;
  background: none;
  color: var(--gold, #c9a227);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  justify-self: end;
  padding: 0.25rem 0;
}
@media (prefers-reduced-motion: reduce) {
  body.site-theme-theme3 .bb3-cart-drawer__panel,
  body.site-theme-theme3 .bb3-cart-drawer__backdrop { transition: none !important; }
}

body.site-theme-theme3 .bb3-powered { color: rgba(255,255,255,0.55); font-size: 0.78rem; }
body.site-theme-theme3 .service-showcase a.bb3-service-card:not(.service-featured) { display: grid; }
@media (min-width: 861px) {
  body.site-theme-theme3 .service-showcase a.service-featured {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
  body.site-theme-theme3 .service-showcase a.service-featured > img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }
  body.site-theme-theme3 .service-showcase a.service-featured > div {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 460px;
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 860px) {
  body.site-theme-theme3 .service-showcase a.service-featured {
    display: block;
  }
  body.site-theme-theme3 .service-showcase a.service-featured > img {
    position: static;
    width: 100%;
    height: 300px;
    min-height: 0;
  }
  body.site-theme-theme3 .service-showcase a.service-featured > div {
    grid-column: auto;
    min-height: 0;
  }
}
body.site-theme-theme3 .wd-block-anchor { scroll-margin-top: 120px; }
body.site-theme-theme3 .brand img {
  height: 70px;
  width: auto;
  max-width: 328px;
  object-fit: contain;
  object-position: left center;
  aspect-ratio: auto;
}
body.site-theme-theme3 .brand:has(.brand-name) img {
  max-width: min(120px, 28vw);
}
@media (max-width: 860px) {
  body.site-theme-theme3 .brand { flex: 0 1 auto; min-width: 0; width: auto; }
  body.site-theme-theme3 .brand:not(:has(.brand-name)) img {
    width: min(220px, 58vw);
    height: auto;
    max-height: 52px;
  }
  body.site-theme-theme3 .brand:has(.brand-name) img {
    width: auto;
    height: auto;
    max-height: 52px;
    max-width: min(72px, 22vw);
  }
}
body.site-theme-theme3 .footer-disclaimer {
  max-width: 42rem; text-align: right; color: rgba(255,255,255,0.55); font-size: 0.78rem; line-height: 1.45;
}
@media (max-width: 860px) {
  body.site-theme-theme3 .footer-disclaimer { text-align: left; }
}

/* ---------- Testimonials — horizontal auto-scroll carousel ---------- */
body.site-theme-theme3 #testimonials .bb3-testimonials {
  --bb3-t-gap: 1.1rem;
  --bb3-t-per: 1;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  max-width: 58rem;
  margin: 0.35rem auto 0;
  box-sizing: border-box;
}
body.site-theme-theme3 #testimonials .bb3-testimonials__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  padding: 0.15rem;
}
body.site-theme-theme3 #testimonials .bb3-testimonials__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--bb3-t-gap);
  list-style: none !important;
  margin: 0 !important;
  padding: 0.2rem 0.1rem 0.45rem !important;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
body.site-theme-theme3 #testimonials .bb3-testimonials__btn {
  flex: 0 0 auto;
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, transparent);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
body.site-theme-theme3 #testimonials .bb3-testimonials__btn:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-1px);
}
body.site-theme-theme3 #testimonials .bb3-testimonials__btn:disabled,
body.site-theme-theme3 #testimonials .bb3-testimonials__btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
  transform: none;
}
body.site-theme-theme3 #testimonials .bb3-testimonials.is-static .bb3-testimonials__btn {
  display: none;
}
body.site-theme-theme3 #testimonials .bb3-testimonials.is-static .bb3-testimonials__track {
  justify-content: center;
}
body.site-theme-theme3 #testimonials .bb3-testimonials.is-static .bb3-review-card:only-child {
  flex-basis: min(100%, 30rem);
  max-width: 30rem;
}
@media (min-width: 720px) {
  body.site-theme-theme3 #testimonials .bb3-testimonials {
    --bb3-t-per: 2;
    --bb3-t-gap: 1.2rem;
  }
}
@media (min-width: 1040px) {
  body.site-theme-theme3 #testimonials .bb3-testimonials {
    --bb3-t-per: 3;
    --bb3-t-gap: 1.25rem;
    max-width: 64rem;
  }
}
body.site-theme-theme3 #testimonials .bb3-review-card {
  flex: 0 0 calc((100% - (var(--bb3-t-per) - 1) * var(--bb3-t-gap)) / var(--bb3-t-per));
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.45rem 1.35rem 1.3rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--white) 92%, var(--mint-pale)) 0%, var(--white) 55%);
  border: 1px solid color-mix(in srgb, var(--teal) 12%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
  list-style: none;
  min-height: 100%;
}
body.site-theme-theme3 #testimonials .bb3-review-stars {
  display: flex;
  gap: 0.18rem;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.04em;
}
body.site-theme-theme3 #testimonials .bb3-review-text {
  margin: 0;
  flex: 1 1 auto;
  color: var(--ink-soft);
  font-family: var(--font-accent);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
}
body.site-theme-theme3 #testimonials .bb3-review-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
body.site-theme-theme3 #testimonials .bb3-review-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--gold) 55%, #fff);
  flex-shrink: 0;
  background: var(--mint);
}
body.site-theme-theme3 #testimonials .bb3-review-avatar--init {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal);
}
body.site-theme-theme3 #testimonials .bb3-review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
body.site-theme-theme3 #testimonials .bb3-review-meta strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}
body.site-theme-theme3 #testimonials .bb3-review-meta span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.3;
}
@media (max-width: 639px) {
  body.site-theme-theme3 #testimonials .bb3-testimonials { gap: 0.35rem; }
  body.site-theme-theme3 #testimonials .bb3-testimonials__btn {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.25rem;
  }
  body.site-theme-theme3 #testimonials .bb3-review-card {
    padding: 1.2rem 1.1rem 1.15rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.site-theme-theme3 #testimonials .bb3-testimonials__track {
    transition: none !important;
  }
}

/* Blog article media gallery */
body.site-theme-theme3 .bb3-blog-article__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
}
body.site-theme-theme3 .bb3-blog-article__media-item {
  margin: 0;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}
body.site-theme-theme3 .bb3-blog-article__media-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
body.site-theme-theme3 .bb3-blog-article__media-item figcaption {
  padding: 0.45rem 0.65rem 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft, rgba(0,0,0,0.65));
}
@media (max-width: 639px) {
  body.site-theme-theme3 .bb3-blog-article__media {
    grid-template-columns: 1fr;
  }
}

/* About logo = site logo → contain in brand panel (THEME_QA #10) */
.about-hero-image.is-brand-panel,
.doctor-image-wrap.is-brand-panel {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: clamp(28px, 4vw, 48px);
  background: color-mix(in srgb, var(--ivory, #f6f3ee) 70%, #fff);
  overflow: hidden;
}
.about-hero-image.is-brand-panel > img,
.doctor-image-wrap.is-brand-panel > img {
  aspect-ratio: auto !important;
  width: auto !important;
  max-width: min(280px, 72%) !important;
  max-height: 168px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
}

/* Mobile catalogue: View all CTA (class + first-of-type fallback for HTML cache). */
body.site-theme-theme3 .mobile-treatment-dropdown > div > a.mobile-view-all,
body.site-theme-theme3 .mobile-treatment-dropdown > div > a:first-of-type {
  color: var(--gold, #c7922c) !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
  border-bottom-color: rgba(20, 38, 34, 0.16);
  margin-bottom: 2px;
  padding-bottom: 12px;
}
body.site-theme-theme3 .mobile-treatment-dropdown > div > a.mobile-view-all + a,
body.site-theme-theme3 .mobile-treatment-dropdown > div > a:first-of-type + a {
  border-top: 0;
}
