/* ======================
   CSS VARIABLES & RESET
   ====================== */
:root {
  --primary: #007F7F;
  --primary-dark: #006767;
  --primary-light: #E6F7F7;
  --secondary: #1A2F4E;
  --secondary-light: #253D66;
  --accent: #D4A94A;
  --accent-dark: #B8902E;
  --text: #2C3E50;
  --text-light: #53657A;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --success: #22C55E;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --header-height: 80px;
  --viewport-height: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --mobile-sticky-cta-height: 68px;
}

@supports (height: 100dvh) {
  :root { --viewport-height: 100dvh; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--secondary);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  /* Dark navy body background: Safari's frosted-glass toolbar blurs the body
     color when it becomes visible (fixed elements near the bottom keep it shown).
     This makes the toolbar pick up dark navy — matching the hero gradient —
     so it blends invisibly instead of flashing white or gray.
     All content sections have their own backgrounds so this is not visible. */
  background: #0a1929;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: var(--viewport-height);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ======================
   TYPOGRAPHY
   ====================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--secondary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 600; }

p { line-height: 1.75; color: var(--text-light); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.a11y-text-large { font-size: 112.5%; }
html.a11y-text-extra { font-size: 125%; }

html.a11y-text-large body,
html.a11y-text-extra body {
  font-size: 1rem;
}

html.a11y-readable-font,
html.a11y-readable-font body,
html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font h4,
html.a11y-readable-font h5 {
  font-family: Arial, Helvetica, sans-serif;
}

html.a11y-line-spacing body {
  line-height: 1.85;
}

html.a11y-line-spacing p,
html.a11y-line-spacing li {
  line-height: 2;
}

html.a11y-underline-links a:not(.btn):not(.accessibility-toggle):not(.accessibility-control) {
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

html.a11y-focus-outline :focus-visible,
html.a11y-focus-outline button:focus-visible,
html.a11y-focus-outline a:focus-visible,
html.a11y-focus-outline input:focus-visible,
html.a11y-focus-outline select:focus-visible,
html.a11y-focus-outline textarea:focus-visible {
  outline: 4px solid #f7c948;
  outline-offset: 4px;
}

html.a11y-contrast {
  --primary: #006c70;
  --primary-dark: #004d52;
  --primary-light: #e4ffff;
  --secondary: #061a33;
  --secondary-light: #0c274d;
  --text: #051426;
  --text-light: #1f344f;
  --gray-50: #ffffff;
  --gray-100: #f5f8fb;
  --gray-200: #b9c6d6;
  --gray-300: #8ea0b7;
  --accent: #9b6a00;
}

html.a11y-contrast body {
  color: var(--text);
  background: #ffffff;
}

html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast .text-muted {
  color: var(--text-light);
}

html.a11y-contrast .hero-video-overlay {
  background: rgba(3, 10, 21, 0.82);
}

html.a11y-contrast .hero h1,
html.a11y-contrast .hero h1 span,
html.a11y-contrast .hero .hero-subtitle,
html.a11y-contrast .hero p {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

html.a11y-contrast .hero-actions .btn,
html.a11y-contrast .hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.92);
  color: #061a33;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

html.a11y-contrast .hero-actions .btn-primary {
  background: #00b8c0;
  color: #00101d;
}

html.a11y-contrast .hero-proof-strip a {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.58);
}

html.a11y-contrast .hero-proof-strip strong,
html.a11y-contrast .hero-proof-strip span {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.76);
}

html.a11y-contrast .internal-hero,
html.a11y-contrast .ba-hero {
  background: #061a33;
}

html.a11y-contrast .internal-hero h1,
html.a11y-contrast .internal-hero p,
html.a11y-contrast .ba-hero h1,
html.a11y-contrast .ba-hero p {
  color: #ffffff;
}

html.a11y-contrast .service-category-card,
html.a11y-contrast .service-card,
html.a11y-contrast .content-panel,
html.a11y-contrast .sidebar-card {
  border-color: #5d738e;
  box-shadow: 0 0 0 1px rgba(6, 26, 51, 0.14);
}

html.a11y-contrast .btn-primary,
html.a11y-contrast .mobile-sticky-cta .btn-primary {
  background: #006c70;
  border-color: #006c70;
  color: #ffffff;
}

html.a11y-contrast .btn-ghost,
html.a11y-contrast .btn-secondary {
  border-color: #061a33;
  color: #061a33;
  background: #ffffff;
}

html.a11y-contrast .proof-card h3 {
  color: #ffffff;
}
html.a11y-contrast .proof-card p {
  color: rgba(255,255,255,0.95);
}

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

/* ======================
   UTILITY CLASSES
   ====================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: max(24px, var(--safe-left));
  padding-right: max(24px, var(--safe-right));
}
.section-pad { padding: 64px 0; }
.section-pad-sm { padding: 52px 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.section-header {
  max-width: 620px;
  margin-bottom: 42px;
}
.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }

.divider {
  width: 56px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 16px;
}
.divider.centered { margin: 0 auto 16px; }

/* ======================
   BUTTONS
   ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,168,168,0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* Button pair row — flex on desktop, stacked with gap on mobile */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Responsive video embed (YouTube / Vimeo / any 16:9 iframe) */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  margin-bottom: 4px;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Two-column video grid — stacks to 1-col on mobile */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 16px 0 20px;
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; gap: 16px; }
}
.video-grid-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--secondary);
}

/* ======================
   TOP BAR
   ====================== */
.top-bar {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: calc(9px + var(--safe-top)) 0 9px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  /* scrolls away — announce-bar is the sticky pricing strip now */
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  overflow-wrap: normal;
  word-break: keep-all;
}
.top-bar-item:hover { color: var(--white); }
.top-bar-item svg { flex-shrink: 0; }
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.top-bar-right > span {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
.top-bar-social {
  display: flex;
  gap: 10px;
}
.top-bar-social a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
}
.top-bar-social a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  flex: 0 0 auto;
  overflow-wrap: normal;
  word-break: keep-all;
}

.language-selector-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  cursor: pointer;
}

/* Cycling language ticker */
.lang-ticker {
  display: inline-block;
  min-width: 72px;
  transition: opacity 0.35s ease;
}
.lang-ticker.fading { opacity: 0; }

.language-selector select {
  max-width: 128px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 24px 5px 10px;
  outline: none;
  cursor: pointer;
}

.language-selector select:focus-visible {
  border-color: rgba(255,255,255,0.78);
  box-shadow: 0 0 0 3px rgba(16,185,183,0.32);
}

.language-selector option {
  color: var(--secondary);
  background: var(--white);
}

.google-translate-host,
.goog-te-gadget,
iframe.skiptranslate,
.goog-te-banner-frame.skiptranslate {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

iframe.skiptranslate,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
}

/* ======================
   HEADER / NAV
   ====================== */
.site-header {
  position: sticky;
  top: var(--top-bar-height, 0px);
  z-index: 1001;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo picture {
  display: block;
  line-height: 0;
}

.site-logo-img {
  display: block;
  width: min(250px, 32vw);
  max-height: 54px;
  object-fit: contain;
}

.footer-logo-img {
  display: block;
  width: min(260px, 100%);
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text { line-height: 1.1; }
.logo-text .logo-main {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
}
.logo-text .logo-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown chevron */
.nav-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}
.main-nav > li:hover > a .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  border: 1px solid var(--gray-200);
  z-index: 100;
}
.main-nav > li:hover > .dropdown,
.main-nav > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.dropdown a:hover { color: var(--primary); background: var(--primary-light); }

/* Sub-dropdown */
.dropdown > li { position: relative; }
.dropdown > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-dropdown {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  border: 1px solid var(--gray-200);
  z-index: 101;
}
.dropdown > li:hover > .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;      /* allow the CTA area to yield space when translations are longer */
  min-width: 0;
}
.header-cta .btn {
  min-width: 0;
  white-space: normal;   /* let text wrap instead of clipping */
  text-align: center;
  line-height: 1.25;
  /* fluid font — scales from 0.72rem (very tight) up to 0.875rem (desktop) */
  font-size: clamp(0.72rem, 1.1vw, 0.875rem);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 7px 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform 0.24s ease, opacity 0.2s ease, width 0.2s ease;
  width: 100%;
}
.mobile-toggle span:nth-child(3) { width: 65%; }
.mobile-toggle:hover span { background: var(--primary); }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* ======================
   HERO SECTION
   ====================== */
.hero {
  position: relative;
  /* JS sets --hero-available-height = window.innerHeight - hero.offsetTop on all widths.
     This accounts for every element above the hero (announce-bar, top-bar, header)
     exactly, keeping the section flush with the viewport bottom on both mobile and desktop.
     The fallback formula (used before JS runs) subtracts the known heights so the
     hero is never mis-sized on initial paint. The max-width: 900px query overrides
     min-height back to this same var() so mobile also gets full-screen treatment.
     --viewport-height is set by JS only on older browsers lacking dvh support;
     on modern browsers (Chrome 108+, Safari 15.4+) we use 100svh directly so the
     hero always has a proper height before JS runs, which is required for LCP
     detection by PageSpeed / Lighthouse. */
  min-height: var(--hero-available-height,
    calc(var(--viewport-height, 100svh) - var(--header-height) - var(--top-bar-height, 42px) - var(--safe-top)));
  max-height: var(--hero-available-height, none);
  background: linear-gradient(135deg, var(--secondary) 0%, #0D2038 50%, #0A1929 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Mobile sticky CTA — hidden on desktop, revealed via media query */
.mobile-sticky-cta { display: none; }

/* Video hero */
.hero-video-bg { background: #0A1929; }
.hero-still-fallback,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-still-fallback {
  overflow: hidden;
  background: #0A1929;
}

.hero-still,
.hero-video {
  object-fit: cover;
}

.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 900ms ease;
  will-change: opacity;
  backface-visibility: hidden;
}

.hero-still-active {
  opacity: 1;
}

.hero-video {
  opacity: 0;
  transition: opacity 900ms ease;
  z-index: 1;
}

.hero-video-bg.hero-video-ready .hero-video {
  opacity: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 41, 0.62);
  z-index: 2;
}

.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.06;
}
.hero-shape-1 { width: 700px; height: 700px; top: -200px; right: -100px; }
.hero-shape-2 { width: 400px; height: 400px; bottom: -100px; left: -80px; opacity: 0.04; }
.hero-shape-3 { width: 200px; height: 200px; top: 30%; right: 30%; opacity: 0.03; }

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,168,168,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,168,168,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content-wrap {
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  align-content: center;
  gap: 28px;
  align-items: center;
  width: 100%;
  min-height: inherit;
  padding-top: 88px;
  padding-bottom: 168px;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 760px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}
.hero h1 span { color: var(--primary); }

.hero-seo-heading {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}
.hero-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  justify-content: space-between;
  padding-inline: 24px 20px;
  min-width: 242px;
  border-radius: 8px;
  border: 0;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}
.hero-actions .btn::after {
  content: "";
  width: 11px;
  height: 11px;
  margin-left: 12px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.hero-actions .btn-primary {
  background: var(--primary);
  border: 0;
}
.hero-actions .btn-outline {
  background: var(--white);
  color: var(--secondary);
}
.hero-actions .btn:hover {
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}
.hero-actions .btn-primary:hover {
  background: var(--primary-dark);
}
.hero-actions .btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  position: absolute;
  z-index: 3;
  left: max(24px, var(--safe-left));
  bottom: 24px;
  width: min(390px, calc(100% - 48px - var(--safe-left) - var(--safe-right)));
}

.hero-proof-strip a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.hero-proof-strip a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(95,217,217,0.45);
}

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

.hero-proof-strip strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1;
}

.hero-proof-strip span {
  color: rgba(255,255,255,0.68);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin-top: 7px;
  text-transform: uppercase;
}

/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-card {
  background:
    linear-gradient(180deg, rgba(18, 43, 72, 0.68), rgba(10, 25, 41, 0.54));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 14px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-proof-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 78px;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.hero-proof-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(95,217,217,0.45);
}

.hero-proof-item strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.36rem;
  line-height: 1;
}

.hero-proof-item strong:only-child {
  line-height: 1.08;
}

.hero-proof-item span {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(10,25,41,0.44);
  border: 1px solid rgba(255,255,255,0.11);
}

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

.hero-location-row strong {
  color: var(--white);
  font-size: 0.88rem;
}

.hero-location-row span {
  color: rgba(255,255,255,0.62);
  font-size: 0.78rem;
  margin-top: 3px;
}

.hero-location-row a {
  flex: 0 0 auto;
  color: #5FD9D9;
  font-size: 0.8rem;
  font-weight: 800;
}

.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}
.floating-badge-1 { top: -20px; right: -24px; animation-delay: 0s; }
.floating-badge-2 { bottom: 32px; left: -24px; animation-delay: 2s; }
.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-icon-teal { background: var(--primary-light); }
.badge-icon-gold { background: rgba(212,169,74,0.12); }
.badge-text .badge-title { font-size: 0.82rem; font-weight: 700; color: var(--secondary); }
.badge-text .badge-sub { font-size: 0.7rem; color: var(--text-light); }

/* ======================
   TRUST BAR
   ====================== */
.trust-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 32px;
  border-right: 1px solid var(--gray-200);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-info .trust-title { font-size: 0.85rem; font-weight: 700; color: var(--secondary); }
.trust-info .trust-sub { font-size: 0.75rem; color: var(--text-light); }

/* ======================
   SERVICES SECTION
   ====================== */
.services-section { background: var(--white); }

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary);
}
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-icon svg { stroke: var(--primary); }

.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 20px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}
.service-card:hover .service-link { gap: 10px; }

/* ======================
   ABOUT / DOCTORS SECTION
   ====================== */
.about-section { background: var(--gray-50); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-image-wrap {
  position: relative;
  z-index: 1;
}
.about-image-main {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--primary-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
}

.doctor-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
}

.doctor-collage img:first-child {
  grid-row: span 2;
}

.about-accent-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  border: 1px solid var(--gray-200);
  z-index: 2;
}
.accent-card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.accent-card-text { font-size: 0.8rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.about-bg-blob {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 80%;
  height: 80%;
  background: var(--primary-light);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.about-content {}
.about-content p { font-size: 1rem; }

.doctors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.doctor-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}
.doctor-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.doctor-photo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--gray-100);
}

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

.doctor-name { font-size: 0.95rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.doctor-specialty { font-size: 0.78rem; color: var(--primary); font-weight: 600; }
.doctor-exp { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

/* ======================
   WHY CHOOSE US
   ====================== */
.why-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #0D2038 100%);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.04;
}

.why-section .section-label { color: #5FD9D9; }
.why-section .section-header h2 { color: var(--white); }
.why-section .section-header p { color: rgba(255,255,255,0.65); }
.why-section .divider { background: var(--primary); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.why-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0,168,168,0.35);
  transform: translateY(-3px);
}
.why-item-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0,168,168,0.15);
  border: 1px solid rgba(0,168,168,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-item-icon svg { stroke: var(--primary); }
.why-item-content h4 { color: var(--white); margin-bottom: 8px; }
.why-item-content p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin: 0; }

.why-cta-row {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.why-cta-row p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.9rem; }

/* ======================
   CONVENIENCE SECTION
   ====================== */
.convenience-section { background: var(--white); }
.convenience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.convenience-content {}
.convenience-visual {
  background: linear-gradient(135deg, var(--primary-light), rgba(0,168,168,0.1));
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.conv-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.conv-card:hover { box-shadow: var(--shadow-md); transform: translateX(6px); }
.conv-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.conv-card-icon svg { stroke: var(--primary); }
.conv-card-text .conv-title { font-size: 0.9rem; font-weight: 700; color: var(--secondary); }
.conv-card-text .conv-desc { font-size: 0.78rem; color: var(--text-light); }

/* ======================
   REVIEWS SECTION
   ====================== */
.reviews-section {
  background: var(--gray-50);
  padding-top: 48px;
  padding-bottom: 28px;
}

.reviews-section + .compact-services-section {
  padding-top: 34px;
}

.reviews-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.reviews-header-row .section-header {
  margin-bottom: 0;
}

.overall-rating {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  flex-shrink: 0;
}
.rating-big {
  font-family: var(--font-display);
  font-size: 3.35rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}
.rating-stars-big { font-size: 1.25rem; color: #FFCA28; letter-spacing: 3px; margin-bottom: 4px; }
.rating-count { font-size: 0.82rem; color: var(--text-light); }

.reviews-carousel-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
}

.reviews-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,168,168,0.55) transparent;
}

.reviews-carousel::-webkit-scrollbar { height: 8px; }
.reviews-carousel::-webkit-scrollbar-track { background: transparent; }
.reviews-carousel::-webkit-scrollbar-thumb {
  background: rgba(0,168,168,0.45);
  border-radius: 999px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  cursor: pointer;
  container-type: inline-size;
  overflow: hidden;
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-3px);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-header > div {
  min-width: 0;
  max-width: 100%;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reviewer-avatar-link { display: block; flex-shrink: 0; text-decoration: none; }
.reviewer-name { font-size: 0.9rem; font-weight: 700; color: var(--secondary); }
.reviewer-name a { color: inherit; text-decoration: none; }
.reviewer-name a:hover { text-decoration: underline; }
.reviewer-name,
.reviewer-date {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.reviewer-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 2px;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.reviewer-stats .local-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #1a73e8;
  font-weight: 600;
  min-width: 0;
  white-space: normal;
  flex-shrink: 1;
  overflow-wrap: anywhere;
}
.reviewer-stats .local-guide-badge svg { flex-shrink: 0; }
.reviewer-stats .stat-sep { color: var(--gray-300); flex-shrink: 0; }
.reviewer-stat {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.reviewer-date { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.review-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.review-meta span:last-child {
  background: rgba(255,202,40,0.16);
  color: #7A5600;
}
.review-stars { font-size: 0.95rem; color: #FFCA28; letter-spacing: 2px; margin-bottom: 12px; }
.review-text {
  font-size: 0.88rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.review-source {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}
.source-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* Review expand modal */
.review-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.55);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.review-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.review-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.22s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.review-modal-backdrop.open .review-modal {
  transform: translateY(0);
}
.review-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.review-modal-close:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}
.review-modal .review-header { margin-bottom: 14px; }
.review-modal .review-meta { margin-bottom: 14px; }
.review-modal-text {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text);
  margin: 0 0 16px;
}
.review-modal .review-source { margin-top: 0; }

.review-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.review-arrow:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: rgba(0,168,168,0.4);
  box-shadow: var(--shadow-md);
}

/* ======================
   HOURS & LOCATION
   ====================== */
.location-section { background: var(--white); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hours-table { width: 100%; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 600; font-size: 0.9rem; color: var(--secondary); }
.hours-time { font-size: 0.88rem; color: var(--text-light); }
.hours-today .hours-day { color: var(--primary); }
.hours-today .hours-time { color: var(--primary); font-weight: 600; }
.hours-closed .hours-time { color: var(--gray-300); }

.contact-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--primary); background: var(--primary-light); }
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { stroke: var(--primary); }
.contact-card-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; }
.contact-card-value { font-size: 0.95rem; font-weight: 600; color: var(--secondary); }

.map-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.map-embed iframe { width: 100%; height: 100%; }

/* ======================
   CTA BANNER
   ====================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: left;
}

.appointment-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appointment-form span {
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-form input,
.appointment-form select {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-md);
  padding: 0 14px;
  color: var(--secondary);
  background: var(--white);
  font: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.appointment-form input:focus,
.appointment-form select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(26,47,78,0.18);
}

.appointment-form button {
  align-self: end;
  justify-content: center;
  min-height: 52px;
}

/* ======================
   FOOTER
   ====================== */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-about {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-logo .logo-main { color: var(--white); }
.footer-logo .logo-sub { color: rgba(255,255,255,0.45); }

.footer-about p {
  color: rgba(255,255,255,0.76);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h3,
.footer-col h5,
.footer-col .footer-heading {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.74);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--primary); }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.footer-contact-item a { color: rgba(255,255,255,0.78); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0 calc(20px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; margin: 0; color: rgba(255,255,255,0.68); }
.footer-bottom a { color: rgba(255,255,255,0.74); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ======================
   INTERNAL PAGES
   ====================== */
.internal-site-page {
  background: var(--gray-50);
}

.internal-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #0A1929 100%);
  color: var(--white);
  padding: 44px 0 34px;
  position: relative;
  overflow: hidden;
}

.internal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,168,168,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,168,168,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.internal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.internal-hero h1 {
  color: var(--white);
  max-width: 780px;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.08;
}

.internal-hero p {
  max-width: 760px;
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  margin-top: 18px;
}

.internal-hero-card {
  display: none;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.doctor-profile-page .internal-hero {
  padding: 56px 0;
}

.doctor-profile-page .internal-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 456px);
  gap: 72px;
  align-items: center;
}

.doctor-profile-page .internal-hero p {
  max-width: 620px;
}

.doctor-profile-page .internal-hero-card {
  display: block;
}

.internal-hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}

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

.internal-hero-card strong {
  color: var(--white);
  margin-bottom: 4px;
}

.internal-hero-card span {
  color: rgba(255,255,255,0.65);
  font-size: 0.86rem;
}

.doctor-annotated-card {
  position: relative;
  display: block;
  justify-self: end;
  width: min(456px, 100%);
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translateX(clamp(-56px, -3vw, -28px));
}

.doctor-annotated-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: visible;
  isolation: isolate;
}

.doctor-annotated-card img {
  margin-bottom: 0;
}

.doctor-annotated-base,
.doctor-annotation-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.doctor-annotated-base {
  z-index: 1;
  object-position: 47% center;
  box-shadow: var(--shadow-lg);
}

.doctor-annotation-layer {
  z-index: 2;
  pointer-events: none;
  transform-origin: center center;
  --annotation-x: -3%;
  --annotation-y: 0%;
  --doctor-x: 0%;
  --doctor-y: 0%;
  translate: calc(var(--annotation-x) + var(--doctor-x)) calc(var(--annotation-y) + var(--doctor-y));
  scale: 1.5;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.32));
}

.doctor-photo-hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
}

.doctor-photo-hotspot:focus-visible {
  outline: 3px solid rgba(16, 185, 183, 0.82);
  outline-offset: 4px;
}

.doctor-hotspot-manela {
  left: -24%;
  top: 12%;
  width: 58%;
  height: 78%;
}

.doctor-hotspot-jamie {
  left: 30%;
  top: -12%;
  width: 36%;
  height: 68%;
}

.doctor-hotspot-vinh {
  left: 62%;
  top: 12%;
  width: 58%;
  height: 62%;
}

.doctor-arrow-aaron,
.doctor-label-aaron {
  --doctor-x: -8%;
  --doctor-y: 0%;
}

.doctor-arrow-jamie,
.doctor-label-jamie {
  --doctor-x: 0%;
  --doctor-y: -10%;
}

.doctor-arrow-vinh,
.doctor-label-vinh {
  --doctor-x: 8%;
  --doctor-y: -1%;
}

.doctor-arrow {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: doctorDrawAcross 880ms ease forwards;
}

.doctor-label {
  opacity: 0;
  transform: scale(0.96) translateY(4px);
  animation: doctorLabelIn 520ms ease forwards;
}

.doctor-arrow-aaron { animation-delay: 180ms; }
.doctor-label-aaron { animation-delay: 760ms; }
.doctor-arrow-jamie { animation-delay: 560ms; }
.doctor-label-jamie { animation-delay: 1120ms; }
.doctor-arrow-vinh {
  clip-path: inset(0 0 0 100%);
  animation-name: doctorDrawFromRight;
  animation-delay: 940ms;
}
.doctor-label-vinh { animation-delay: 1480ms; }

.doctor-annotation-fallback {
  display: none;
}

@keyframes doctorDrawAcross {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  18% { opacity: 1; }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes doctorDrawFromRight {
  0% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
  18% { opacity: 1; }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes doctorLabelIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .doctor-arrow,
  .doctor-label {
    animation: none;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}

.internal-content-section {
  background: var(--gray-50);
}

.internal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

/* Inline photos within content articles */
.content-figure {
  margin: 2rem auto;
  max-width: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.content-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.content-figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 2rem 0;
}
.content-figure-pair .content-figure {
  margin: 0;
  max-width: none;
}
.content-figure-pair .content-figure img {
  aspect-ratio: 4/3;
  object-fit: cover;
  height: 100%;
}

/* Team photo section on doctors page */
.team-photo-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.team-photo-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.team-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.team-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@media (max-width: 600px) {
  .team-photo-grid { grid-template-columns: 1fr; }
}

.content-panel,
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-panel {
  padding: 40px;
}
.content-panel a:not(.btn) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.content-panel a:not(.btn):hover {
  color: inherit;
}

.internal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.sidebar-eyebrow {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sidebar-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  min-height: 46px;
  padding-left: 16px;
  padding-right: 16px;
}

.visit-cta-card {
  overflow: hidden;
  border-color: rgba(0,127,127,0.22);
  background:
    linear-gradient(135deg, rgba(0,127,127,0.1), rgba(255,255,255,0.98) 52%),
    var(--white);
}

.visit-cta-card h3 {
  margin-bottom: 8px;
}

.sidebar-actions {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.hours-card .hours-row {
  gap: 12px;
}

.original-content h2,
.original-content h3,
.original-content h4 {
  margin: 28px 0 12px;
}

.original-content ul,
.original-content ol {
  list-style: revert;
  margin: 0 0 1.2rem 1.4rem;
  color: var(--text-light);
}

.original-content li {
  margin-bottom: 0.45rem;
}

.original-content a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.original-content a.btn,
.original-content .btn {
  color: var(--white);
  text-decoration: none;
}

.original-content a.btn-ghost,
.original-content .btn-ghost {
  color: var(--primary-dark);
}

.original-content a.btn-ghost:hover,
.original-content .btn-ghost:hover {
  color: var(--white);
}

.original-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.original-content .alignleft {
  float: left;
  margin: 4px 24px 16px 0;
}

.original-content .aligncenter {
  margin: 18px auto;
}

@media (min-width: 701px) {
  .original-content img.aligncenter,
  .original-content .aligncenter img {
    max-width: min(100%, 420px);
    max-height: 420px;
    width: auto;
    height: auto;
  }
}

.service-seo-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.service-seo-section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.service-seo-section .service-link-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 18px 0 28px;
}

.service-seo-section p strong {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--secondary);
}

.gallery,
.service-graphics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.office-tour-video {
  width: 100%;
  margin: 28px 0 34px;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.office-tour-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(720px, calc(var(--viewport-height) - var(--header-height) - 120px));
  object-fit: contain;
  background: #000;
}

/* ── Office photo gallery grid ──────────────────────────────── */
.office-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
/* aspect-ratio lives on the button so it isn't overridden by
   .original-content img { height: auto } */
.gallery-thumb {
  display: block;
  padding: 0;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery-thumb:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-md);
}
/* Higher specificity overrides .original-content img { height: auto; border-radius } */
.office-photo-gallery .gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
@media (max-width: 700px) {
  .office-photo-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 420px) {
  .office-photo-gallery { grid-template-columns: 1fr; }
}

/* ── Lightbox (photo viewer dialog) ────────────────────────── */
.photo-lightbox {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}
.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}
.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  position: relative;
}
.lb-img {
  max-width: min(92vw, 1200px);
  max-height: min(88dvh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: block;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(255,255,255,0.28); }
.lb-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
}
.lb-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}
.lb-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}
@media (max-width: 600px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

.gallery a,
.service-graphics > div {
  display: block;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 8px;
  text-decoration: none;
}

.gallery img,
.service-graphics img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px 0;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.video-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.service-label {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 8px;
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.single-team-member {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 28px;
}

.single-team-member:last-child {
  border-bottom: none;
}

.faq-intro-card {
  padding: 18px 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,127,127,0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,127,127,0.08), rgba(255,255,255,0.94));
}

.faq-intro-card p {
  margin: 0;
}

.faq-bubble-list {
  display: grid;
  gap: 28px;
}

.faq-topic {
  display: grid;
  gap: 14px;
}

.faq-topic h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--secondary);
}

.faq-bubble {
  position: relative;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-bubble h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--secondary);
}

.faq-question-button {
  width: 100%;
  min-height: 68px;
  padding: 18px 20px;
  border: 0;
  background: var(--white);
  color: var(--secondary);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  text-align: left;
  font: inherit;
  font-weight: 800;
}

.faq-question-button:hover {
  background: var(--gray-50);
}

.faq-toggle-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.faq-toggle-icon::before {
  content: "+";
}

.faq-bubble.is-open .faq-toggle-icon::before {
  content: "-";
}

.faq-answer {
  display: none;
  gap: 10px;
  padding: 0 20px 20px;
}

.faq-bubble.is-open .faq-answer {
  display: grid;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a,
.faq-intro-card a {
  font-weight: 800;
}

.membership-content {
  max-width: 1120px;
  margin: 0 auto;
}

.membership-page .internal-hero {
  padding: 30px 0 24px;
}

.membership-page .internal-hero h1 {
  max-width: 720px;
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  margin-bottom: 0;
}

.membership-page .internal-hero p {
  max-width: 700px;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
}

.membership-page .internal-content-section {
  padding-top: 28px;
  padding-bottom: 34px;
}

.membership-page .content-panel {
  padding: 28px;
}

.membership-intro {
  max-width: 780px;
  margin-bottom: 20px;
}

.membership-intro h2 {
  margin: 0 0 10px;
}

.membership-intro p {
  margin-bottom: 10px;
}

/* ======================
   PATIENT INSTRUCTIONS PAGE
   ====================== */
.pi-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 32px;
  margin-top: 32px;
}
.pi-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.pi-section > h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 4px 0 20px;
  line-height: 1.25;
}
.pi-video-block {
  margin-bottom: 20px;
}
.pi-video-block:last-of-type {
  margin-bottom: 0;
}
.pi-video-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.pi-downloads {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pi-downloads-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
  padding-top: 10px;
  flex-shrink: 0;
}
.pi-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pi-download-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary) !important;
  text-decoration: none !important;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 14px;
  transition: border-color 0.15s, color 0.15s;
}
.pi-download-link:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}
.pi-download-link svg {
  flex-shrink: 0;
  color: var(--primary);
}
.pi-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-500);
}
@media (max-width: 640px) {
  .pi-section { padding-top: 24px; margin-top: 24px; }
  .pi-downloads { flex-direction: column; gap: 10px; }
  .pi-downloads-label { padding-top: 0; }
}

.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 16px;
}

.membership-plan-card {
  border: 1px solid rgba(15, 35, 61, 0.12);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(235, 252, 251, 0.88), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 34px rgba(15, 35, 61, 0.08);
}

.membership-plan-card--featured {
  border-color: rgba(8, 172, 172, 0.32);
  box-shadow: 0 18px 40px rgba(8, 172, 172, 0.14);
}

.membership-plan-label {
  display: block;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  margin-bottom: 7px;
}

.membership-plan-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  margin: 0;
  color: var(--secondary);
  line-height: 1;
}

.membership-price-note {
  margin: 3px 0 12px;
  color: var(--text-light);
  font-weight: 700;
}

.membership-plan-card ul {
  padding-left: 20px;
  margin: 0;
}

.membership-plan-card li {
  margin-bottom: 7px;
  line-height: 1.42;
}

.membership-family-card {
  border-radius: 18px;
  padding: 20px 22px;
  margin: 16px 0 22px;
  background: var(--secondary);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}

.membership-family-card h2,
.membership-family-card p {
  color: var(--white);
}

.membership-family-card h2 {
  margin: 0 0 6px;
}

.membership-family-card p {
  margin: 0;
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.membership-page .membership-family-card + h2 {
  margin: 22px 0 10px;
}

.membership-page .original-content > p {
  margin-bottom: 10px;
}

.membership-disclaimer {
  border-top: 1px solid rgba(15, 35, 61, 0.12);
  margin-top: 18px;
  padding-top: 14px;
  color: var(--text-light);
  font-size: 0.92rem;
}

.membership-disclaimer p {
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .membership-page .internal-content-section {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .membership-plan-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .membership-page .internal-hero {
    padding: 28px 0 20px;
  }

  .membership-page .internal-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .membership-page .content-panel {
    padding: 16px;
  }

  .membership-intro {
    margin-bottom: 14px;
  }

  .membership-plan-grid {
    gap: 12px;
    margin: 14px 0 14px;
  }

  .membership-plan-card,
  .membership-family-card {
    border-radius: 14px;
    padding: 16px;
  }

  .membership-plan-card h3 {
    font-size: 2rem;
  }

  .membership-family-card {
    margin: 14px 0 18px;
  }

  .membership-actions .btn {
    width: 100%;
  }
}

.testimonials-page {
  display: grid;
  gap: 28px;
}

.testimonial-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0,127,127,0.08), rgba(255,255,255,0.98)),
    var(--white);
  border: 1px solid rgba(0,127,127,0.16);
}

.testimonial-summary h2 {
  margin-top: 8px;
}

.testimonial-score-card {
  min-height: 160px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.testimonial-score-card strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
}

.testimonial-score-card span {
  margin-top: 6px;
  font-weight: 800;
}

.testimonial-score-card small {
  margin-top: 6px;
  color: rgba(255,255,255,0.68);
}

.review-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.original-content .review-action-card {
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--secondary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.original-content .review-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,168,168,0.42);
  box-shadow: var(--shadow-md);
}

.review-action-card strong {
  color: var(--secondary);
  font-size: 1rem;
}

.review-action-card span {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.review-card--full {
  min-height: 0;
}

.review-card--full p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .testimonials-page .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.site-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.site-index-grid a {
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--secondary);
  font-weight: 700;
  transition: var(--transition);
}

.site-index-grid a strong,
.site-index-grid a span {
  display: block;
}

.site-index-grid a span {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-index-grid a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ======================
   MOBILE MENU OVERLAY
   ====================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,20,35,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

/* Bottom-sheet panel — slides up from bottom */
.mobile-nav-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  width: 100%;
  height: calc(var(--viewport-height, 100vh) - var(--header-height, 64px));
  max-height: 92vh;
  background: var(--white);
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateY(110%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.18);
}
.mobile-nav-panel.open { transform: translateY(0); }

/* Drag-handle pill */
.mobile-nav-panel::before {
  content: '';
  display: block;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--gray-300);
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* Panel header: hours label + close */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.mobile-nav-header .mobile-nav-hours {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-close {
  background: var(--gray-100);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.mobile-close:hover,
.mobile-close:active { background: var(--primary); color: var(--white); }

/* Nav link list — scrollable */
.mobile-nav-links {
  list-style: none;
  padding: 4px 0 12px;
  flex: 1;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-links li + li { border-top: none; }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--secondary);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  color: var(--primary);
  background: var(--primary-light);
}
.mobile-nav-links .mobile-section-title {
  display: block;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  padding: 14px 24px 6px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-links .indent {
  padding-left: 36px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* Footer CTAs */
.mobile-nav-footer {
  padding: 10px max(16px, var(--safe-right)) calc(10px + var(--safe-bottom, 0px)) max(16px, var(--safe-left));
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: row;
  gap: 10px;
  background: var(--white);
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(15, 31, 53, 0.10);
}
.mobile-nav-footer .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.88rem;
  padding: 11px 10px;
  gap: 6px;
}
.mobile-nav-footer .btn-ghost {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.quick-links-section {
  position: relative;
  z-index: 3;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.quick-link-button {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.quick-link-card--insurance {
  background: linear-gradient(135deg, var(--primary-light), var(--white));
  border-color: rgba(0,168,168,0.28);
}

.quick-link-card--insurance .quick-link-icon {
  background: var(--primary);
  color: var(--white);
}

.quick-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,168,168,0.45);
  box-shadow: var(--shadow-md);
}

.quick-link-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-link-icon svg { stroke: currentColor; }
.quick-link-card strong {
  display: block;
  color: var(--secondary);
  font-size: 0.94rem;
  line-height: 1.25;
}
.quick-link-card small {
  display: block;
  color: var(--text-light);
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 3px;
}

/* ======================
   INSURANCE CHECKER MODAL
   ====================== */
.insurance-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-top)) max(20px, var(--safe-right)) calc(20px + var(--safe-bottom)) max(20px, var(--safe-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.insurance-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.insurance-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.insurance-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  height: min(880px, calc(var(--viewport-height) - 40px - var(--safe-top) - var(--safe-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insurance-modal.open .insurance-modal-panel {
  transform: translateY(0) scale(1);
}

.insurance-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.insurance-modal-kicker {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.insurance-modal-header h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  margin: 0;
}

.insurance-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.insurance-modal-close:hover {
  background: var(--primary);
  color: var(--white);
}

.insurance-checker {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}

.insurance-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr);
  gap: 12px;
}

.insurance-field label {
  display: block;
  color: var(--secondary);
  font-size: 0.78rem;
   font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.insurance-field input,
.insurance-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 14px;
  color: var(--secondary);
  font: inherit;
  background: var(--white);
}

.insurance-carrier-combobox {
  position: relative;
  z-index: 5;
}

.insurance-carrier-combobox::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
  pointer-events: none;
}

.insurance-carrier-combobox input {
  padding-right: 40px;
  box-shadow: 0 8px 18px rgba(16, 28, 48, 0.06);
}

.insurance-carrier-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  max-height: 380px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(0, 168, 168, 0.2);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(16, 28, 48, 0.18);
}

.insurance-carrier-options.open {
  display: grid;
  gap: 6px;
}

.insurance-carrier-options.empty::before {
  content: "No exact match. You can still type your carrier and we will verify it.";
  display: block;
  padding: 12px;
  color: var(--text-light);
  font-size: 0.86rem;
  line-height: 1.45;
}

.insurance-carrier-option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--secondary);
  padding: 10px 12px;
  text-align: left;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.insurance-carrier-option:hover,
.insurance-carrier-option.active {
  background: var(--primary-light);
}

.insurance-carrier-option span {
  font-weight: 850;
  line-height: 1.25;
}

.insurance-carrier-option small {
  color: var(--text-light);
  font-size: 0.78rem;
  line-height: 1.35;
}

.insurance-carrier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.insurance-carrier-chips button {
  border: 1px solid rgba(0, 168, 168, 0.24);
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
  cursor: pointer;
}

.insurance-carrier-chips button:hover {
  border-color: rgba(0, 168, 168, 0.5);
  background: rgba(0, 168, 168, 0.12);
}

.insurance-field input:focus,
.insurance-field select:focus {
  outline: 2px solid rgba(0,168,168,0.2);
  border-color: var(--primary);
}

.insurance-result {
  display: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--gray-50);
}

.insurance-result.show {
  display: block;
}

.insurance-result.likely {
  background: var(--primary-light);
  border-color: rgba(0,168,168,0.28);
}

.insurance-result.not-accepted {
  background: #FFF5F2;
  border-color: rgba(210,70,45,0.24);
}

.insurance-result.membership-option {
  background: linear-gradient(135deg, var(--primary-light), #ffffff);
  border-color: rgba(0,168,168,0.28);
}

.insurance-result.needs-check {
  background: #FFFBED;
  border-color: rgba(212,169,74,0.28);
}

.insurance-result h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin-bottom: 7px;
}

.insurance-result p {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.insurance-membership-card {
  display: grid;
  gap: 12px;
  margin: 14px 0 6px;
  padding: 16px;
  border: 1px solid rgba(0,168,168,0.22);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 24px rgba(16, 28, 48, 0.07);
}

.insurance-membership-eyebrow {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insurance-membership-card h4 {
  margin: 0;
  color: var(--secondary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
}

.insurance-membership-card p,
.insurance-membership-card small {
  margin: 0;
  color: var(--text-light);
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.insurance-membership-grid div {
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(0,168,168,0.16);
}

.insurance-membership-grid strong {
  display: block;
  color: var(--secondary);
  font-size: 1rem;
}

.insurance-membership-grid span {
  display: block;
  color: var(--text-light);
  font-size: 0.74rem;
  line-height: 1.35;
  margin-top: 3px;
}

.insurance-membership-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--secondary);
  font-size: 0.82rem;
  line-height: 1.42;
}

.insurance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.insurance-disclaimer {
  color: var(--text-light);
  font-size: 0.78rem;
  line-height: 1.55;
}

body.insurance-modal-open {
  overflow: hidden;
}

.compact-services-section { background: var(--gray-50); }

.service-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.service-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,168,168,0.35);
}

.service-category-card picture,
.proof-card picture {
  display: block;
  line-height: 0;
  font-size: 0;
  flex-shrink: 0;
}

.service-category-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gray-100);
  display: block;
  vertical-align: bottom;
}

.service-category-body { padding: 22px; }
.service-category-body h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.service-category-body h3 a {
  color: inherit;
  text-decoration: none;
}
.service-category-body h3 a:hover {
  color: var(--primary-dark);
}
.service-category-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link-list {
  display: grid;
  gap: 8px;
}

.service-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.service-link-list a::after {
  content: '>';
  color: var(--primary);
  font-weight: 800;
}

.service-link-list a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateX(2px);
}

.local-service-section {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.local-service-section .section-header {
  max-width: 860px;
  margin-bottom: 22px;
}

.local-area-copy {
  max-width: 840px;
  margin: -4px auto 0;
  color: var(--gray-600);
  font-size: 0.96rem;
  line-height: 1.7;
  text-align: center;
}

.local-area-copy a {
  color: var(--secondary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(8, 173, 170, 0.36);
  text-underline-offset: 3px;
}

.local-area-copy a:hover {
  color: var(--primary-dark);
  text-decoration-color: currentColor;
}

.area-content-section,
.area-visit-section {
  background: var(--white);
}

.area-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f6fbfb 0%, #fff 70%);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.area-intro-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 6px 0 10px;
}

.area-intro-panel p {
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.area-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.area-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.78rem;
}

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

.area-service-card {
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.area-service-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.area-service-card p {
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 18px;
}

.area-search-section {
  background: #f7fbfb;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.area-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 32px;
  align-items: start;
}

.area-search-grid h2,
.area-faq-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 8px 0 12px;
}

.area-search-grid p,
.area-faq-panel p {
  color: var(--gray-600);
  line-height: 1.72;
}

.area-search-grid p + p {
  margin-top: 12px;
}

.area-search-grid strong {
  color: var(--secondary);
}

.area-proof-grid {
  display: grid;
  gap: 12px;
}

.area-proof-grid article {
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.area-proof-grid strong {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 6px;
}

.area-proof-grid span {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.55;
}

.area-faq-panel {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.area-faq-panel p {
  margin: 0;
}

.area-faq-panel p + p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.area-faq-panel strong {
  color: var(--secondary);
}

.area-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.area-visit-grid h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 8px 0 10px;
}

.area-visit-grid p {
  color: var(--gray-600);
  line-height: 1.7;
}

.visit-snapshot-section {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.visit-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.visit-snapshot-copy p {
  font-size: 1rem;
  max-width: 560px;
}

.visit-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.visit-snapshot-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
}

.visit-snapshot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--gray-100);
}

.visit-snapshot-top strong,
.visit-snapshot-top span {
  display: block;
}

.visit-snapshot-top strong {
  color: var(--secondary);
  font-size: 1rem;
}

.visit-snapshot-top span {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-top: 4px;
}

.visit-snapshot-top a {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.proof-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #132C4A 100%);
}

.proof-bg-graphic {
  position: absolute;
  inset: 0;
  background-image: url('/assets/flowing-lines.png');
  background-image: image-set(
    url('/assets/flowing-lines.webp') type('image/webp'),
    url('/assets/flowing-lines.png') type('image/png')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .proof-bg-graphic {
    background-position: center top;
    opacity: 0.08;
  }
}

.proof-section .section-header h2 { color: var(--white); }
.proof-section .section-header p { color: rgba(255,255,255,0.68); }
.proof-section .section-label { color: #6EE7E7; }

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

.proof-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.proof-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(0,168,168,0.45);
}

.proof-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proof-card-doctors {
  position: relative;
  overflow: visible;
  z-index: 2;
}

.proof-doctor-annotated {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: visible;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  isolation: isolate;
  background: #4b4b4b;
  z-index: 4;
}

.proof-doctor-annotated .doctor-annotated-base {
  object-position: 47% center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: none;
  z-index: 1;
}

.proof-doctor-annotated .doctor-annotation-layer {
  --annotation-x: -3%;
  scale: 1.25;
  z-index: 6;
}

.proof-card-doctors > div {
  position: relative;
  z-index: 2;
}

.proof-doctor-annotated .doctor-arrow-aaron,
.proof-doctor-annotated .doctor-label-aaron {
  --doctor-x: -9%;
  --doctor-y: -1%;
}

.proof-doctor-annotated .doctor-arrow-jamie,
.proof-doctor-annotated .doctor-label-jamie {
  --doctor-x: 0%;
  --doctor-y: -12%;
}

.proof-doctor-annotated .doctor-arrow-vinh,
.proof-doctor-annotated .doctor-label-vinh {
  --doctor-x: 9%;
  --doctor-y: -2%;
}

.proof-card-doctors:not(.visible) .doctor-arrow,
.proof-card-doctors:not(.visible) .doctor-label {
  animation: none;
  opacity: 0;
}

.proof-card-doctors:not(.visible) .doctor-arrow {
  clip-path: inset(0 100% 0 0);
}

.proof-card-doctors:not(.visible) .doctor-arrow-vinh {
  clip-path: inset(0 0 0 100%);
}

.proof-card div { padding: 22px; }
.proof-card h3 {
  color: var(--white);
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.proof-card p {
  color: rgba(255,255,255,0.66);
  font-size: 0.9rem;
  line-height: 1.65;
}

.why-icare-home {
  padding: 58px 0;
}

.why-icare-home .proof-bg-graphic {
  opacity: 0.18;
}

.why-icare-home .animate-in {
  opacity: 1 !important;
  transform: none !important;
}

.home-why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 38px;
  align-items: center;
}

.home-why-copy {
  max-width: 700px;
}

.home-why-copy .divider {
  margin: 12px 0 20px;
}

.home-why-copy h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.03;
  margin-bottom: 18px;
  max-width: 760px;
}

.home-why-copy p {
  color: rgba(255,255,255,0.76);
  font-size: 1.05rem;
  line-height: 1.68;
  max-width: 680px;
  margin-bottom: 22px;
}

.home-why-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.home-why-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-why-pills strong {
  color: #6EE7E7;
  font-family: var(--font-display);
  font-size: 1.03rem;
  line-height: 1;
}

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

.home-why-actions .btn {
  min-height: 46px;
  padding: 13px 19px;
}

.home-why-photo {
  position: relative;
  display: block;
  min-height: 330px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
  text-decoration: none;
  color: inherit;
}

.home-why-photo picture,
.home-why-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-why-photo img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 34%;
  transition: transform 0.45s ease;
}

.home-why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,41,0) 40%, rgba(10,25,41,0.78) 100%);
  pointer-events: none;
}

.home-why-photo:hover img {
  transform: scale(1.035);
}

.home-why-photo-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  background: rgba(10,25,41,0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-why-photo-badge strong {
  color: var(--white);
  font-size: 0.96rem;
}

.home-why-photo-badge span {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-why-reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.home-why-reason {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px 12px;
  align-content: start;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.home-why-reason:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(110,231,231,0.5);
}

.home-why-reason span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(110,231,231,0.14);
  color: #6EE7E7;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
}

.home-why-reason h3 {
  color: var(--white);
  font-size: 0.96rem;
  line-height: 1.28;
  margin: 0;
}

.home-why-reason p {
  color: rgba(255,255,255,0.66);
  font-size: 0.8rem;
  line-height: 1.52;
  margin: 0;
}

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

.doctor-strip-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.doctor-strip-header h2 { margin-bottom: 0; }

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

.doctor-strip-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 22px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.doctor-strip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,168,168,0.4);
}

.doctor-strip-card picture {
  display: block;
  line-height: 0;
}

.doctor-strip-card img,
.doctor-strip-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  margin-bottom: 8px;
  background: var(--white);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.doctor-strip-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.doctor-strip-card .doctor-name {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.doctor-strip-card .doctor-specialty {
  line-height: 1.35;
}

.finance-band {
  background: linear-gradient(135deg, var(--primary-light), #FFFFFF 55%, rgba(212,169,74,0.16));
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0;
}

.finance-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 38px;
  align-items: center;
}

.finance-band-copy h2 {
  max-width: 620px;
  margin-bottom: 12px;
}

.finance-band-copy p {
  max-width: 640px;
  font-size: 1rem;
}

.finance-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finance-link-grid a {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid rgba(0,168,168,0.22);
  border-radius: var(--radius-lg);
  color: var(--secondary);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.finance-link-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.patient-path-section {
  background: var(--gray-50);
  padding: 48px 0;
  border-top: 1px solid var(--gray-200);
}

.patient-path-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

.patient-path-grid h2 { margin-bottom: 10px; }
.patient-path-grid p { font-size: 1rem; }

.patient-path-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.patient-path-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 15px 17px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--secondary);
  font-weight: 800;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.patient-path-links a::after {
  content: '>';
  color: var(--primary);
}

.patient-path-links a:hover {
  background: var(--primary-light);
  border-color: rgba(0,168,168,0.35);
  transform: translateX(2px);
}

/* ======================
   ANIMATIONS
   ====================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-link-card--insurance { grid-column: 1 / -1; min-height: 78px; }
  .doctor-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews-carousel { grid-auto-columns: calc((100% - 20px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .site-header .container {
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
  }

  .header-inner {
    gap: 12px;
  }

  .site-logo-img {
    width: min(205px, 22vw);
    max-height: 48px;
  }

  .main-nav {
    gap: 0;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .main-nav > li > a {
    padding: 8px 9px;
    gap: 3px;
    font-size: 0.84rem;
  }

  .nav-arrow {
    width: 14px;
    height: 14px;
  }

  .header-cta {
    gap: 6px;
  }

  .header-cta .btn-sm {
    /* tighter padding at medium viewport widths */
    padding: 7px 11px;
    font-size: clamp(0.68rem, 1.05vw, 0.82rem);
    letter-spacing: -0.01em;
  }
}

/* Both header CTA buttons visible at all desktop widths.
   The clamp() font and flex-shrink handle tighter viewports. */
@media (max-width: 1050px) and (min-width: 901px) {
  .header-cta .btn-sm {
    padding: 6px 10px;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
    --mobile-sticky-cta-height: 72px;
  }

  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }

  .top-bar {
    padding: calc(8px + var(--safe-top)) 0 8px;
  }

  .top-bar .container {
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .top-bar-left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .top-bar-left .top-bar-item:first-child {
    white-space: nowrap;
  }

  .top-bar-left .top-bar-item:not(:first-child),
  .top-bar-right > span,
  .top-bar-social,
  .language-selector-label {
    display: none;
  }

  .top-bar-right {
    flex: 0 0 auto;
    min-width: 0;
  }

  .language-selector select {
    max-width: 132px;
  }

}

@media (max-width: 900px) {
  .hero-content-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-visual { display: flex; }
  .hero-card { max-width: none; }
  .hero { min-height: var(--hero-available-height, calc(var(--viewport-height, 100svh) - var(--header-height) - var(--top-bar-height, 42px) - var(--safe-top))); max-height: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }

  .why-grid { grid-template-columns: 1fr; }
  .convenience-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-snapshot-grid,
  .finance-band-grid,
  .patient-path-grid { grid-template-columns: 1fr; }
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .proof-card:nth-child(1),
  .proof-card:nth-child(2),
  .proof-card:nth-child(3) { order: unset; grid-column: unset; }
  .proof-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    position: relative;
  }
  .proof-card > picture,
  .proof-card > img {
    flex-shrink: 0;
    width: 38%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    filter: none;
    transform: none;
  }
  .proof-card > picture img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: none;
    transform: none;
  }
  .proof-card > div {
    flex: 1;
    position: static;
    background: none;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .proof-card h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .proof-card p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
  }
  .why-icare-home {
    padding: 46px 0;
  }
  .home-why-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-why-copy {
    max-width: none;
  }
  .home-why-copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
    max-width: 680px;
  }
  .home-why-copy p {
    font-size: 0.98rem;
    margin-bottom: 18px;
  }
  .home-why-photo {
    min-height: 280px;
  }
  .home-why-reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }
  .home-why-reason {
    min-height: 118px;
    padding: 14px;
  }
  .reviews-carousel-wrap { display: block; }
  .reviews-carousel { grid-auto-columns: minmax(82%, 1fr); }
  .review-arrow { display: none; }
  .testimonial-summary,
  .testimonial-grid,
  .review-action-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .doctor-strip-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-item { padding: 8px 16px; }
  .appointment-form { grid-template-columns: 1fr 1fr; }
  .site-logo-img { width: min(200px, 52vw); }
  .internal-hero-grid,
  .internal-layout { grid-template-columns: 1fr; }
  .doctor-profile-page .internal-hero {
    padding: 40px 0 28px;
  }
  .doctor-profile-page .internal-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .doctor-profile-page .internal-hero-card {
    display: block;
    justify-self: center;
    width: min(440px, 66vw);
    margin: 6px auto 0;
    transform: none;
  }
  .doctor-profile-page .doctor-annotation-layer {
    --annotation-x: -3%;
    scale: 1.5;
  }
  .doctor-profile-page .doctor-arrow-aaron,
  .doctor-profile-page .doctor-label-aaron {
    --doctor-x: -8%;
    --doctor-y: 0%;
  }
  .doctor-profile-page .doctor-arrow-jamie,
  .doctor-profile-page .doctor-label-jamie {
    --doctor-x: 0%;
    --doctor-y: -10%;
  }
  .doctor-profile-page .doctor-arrow-vinh,
  .doctor-profile-page .doctor-label-vinh {
    --doctor-x: 8%;
    --doctor-y: -1%;
  }
  .internal-sidebar { position: static; }
  .content-panel { padding: 24px; }
  .visit-info-grid { grid-template-columns: 1fr; }
  .visit-intro { padding: 26px; }
  .visit-actions .btn { flex: 1 1 180px; }

  /* sticky CTA — anchored to physical screen bottom */
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    background: none;
    border-top: none;
    padding: 8px 16px 8px;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
  }
  .mobile-sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-sticky-cta .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.88rem;
    padding: 11px 10px;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  }
  /* Call button: solid so it reads without a scrim behind it */
  .mobile-sticky-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.6);
  }
}

@media (max-width: 640px) {
  .section-pad { padding: 40px 0; }
  .section-pad-sm { padding: 28px 0; }
  .compact-services-section { padding-top: 24px; }
  .reviews-section { padding-bottom: 20px; }
  .reviews-section + .compact-services-section { padding-top: 24px; }
  .compact-services-section .section-header {
    margin-bottom: 24px;
  }
  .compact-services-section .section-label {
    margin-bottom: 8px;
  }
  .compact-services-section .divider.centered {
    margin-bottom: 12px;
  }
  .compact-services-section h2 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }
  .compact-services-section .section-header p {
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .services-grid { grid-template-columns: 1fr; }
  .service-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service-category-card { position: relative; overflow: hidden; }
  .service-category-card img,
  .service-category-card picture img {
    aspect-ratio: 4 / 3;
    display: block;
    vertical-align: bottom;
  }
  .service-category-body {
    position: relative;
    z-index: 1;
    padding: 10px 12px 12px;
  }
  /* Dark gradient at the bottom of the image behind the title */
  .service-category-body::before {
    content: '';
    position: absolute;
    top: -72px;
    left: 0; right: 0;
    height: 72px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
  }
  /* Title overlaid on bottom-left of the photo — anchored at bottom so
     multi-line titles grow upward into the image, never downward into links */
  .service-category-body h3 {
    position: absolute;
    bottom: 100%;
    left: 10px;
    right: 10px;
    padding-bottom: 8px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }
  .service-category-body p { display: none; }
  .service-link-list a {
    justify-content: flex-start;
    min-height: 0;
  }
  .service-link-list a::after {
    content: none;
  }
  .doctor-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .doctor-strip-grid .doctor-strip-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
  .doctor-strip-card {
    padding: 12px 6px;
    gap: 4px;
    border-radius: var(--radius-md);
  }
  .doctor-strip-card img,
  .doctor-strip-avatar {
    width: 54px;
    height: 54px;
    margin-bottom: 5px;
    border-width: 2px;
  }
  .doctor-strip-card .doctor-name {
    font-size: 0.72rem;
    line-height: 1.2;
  }
  .doctor-strip-card .doctor-specialty {
    font-size: 0.62rem;
    line-height: 1.25;
  }
  .local-service-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .local-area-copy {
    font-size: 0.9rem;
    text-align: left;
  }
  .area-intro-panel,
  .area-search-grid,
  .area-visit-grid {
    grid-template-columns: 1fr;
  }
  .area-intro-panel {
    padding: 20px;
  }
  .area-faq-panel {
    padding: 20px;
  }
  .area-chip-list {
    justify-content: flex-start;
  }
  .area-service-grid {
    grid-template-columns: 1fr;
  }
  .quick-links-grid,
  .finance-link-grid,
  .patient-path-links { grid-template-columns: 1fr; }
  .quick-links-grid {
    gap: 0;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .quick-link-card:not(.quick-link-card--insurance) {
    display: none;
  }
  .quick-link-card--insurance {
    min-height: 92px;
  }
  .doctor-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar .container {
    justify-content: space-between;
    gap: 8px;
  }
  .top-bar-left {
    flex: 0 1 auto;
    min-width: 0;
  }
  .top-bar-left .top-bar-item:first-child {
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .top-bar-right {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }
  .top-bar-right > span {
    display: none;
  }
  .language-selector-label {
    display: inline-flex;
    font-size: 0.72rem;
    min-width: 52px;
  }
  .lang-ticker {
    display: inline-block;
    min-width: 46px;
    font-size: 0.72rem;
  }
  .language-selector select {
    max-width: 100px;
    padding: 5px 22px 5px 8px;
    font-size: 0.72rem;
  }
  .top-bar-social { display: none; }

  /* container gets a touch more breathing room at the edges */
  .container {
    padding-left: max(18px, var(--safe-left));
    padding-right: max(18px, var(--safe-right));
  }

  /* On mobile show phone plus appointments in the top bar — hide address/socials. */
  .top-bar-left .top-bar-item:not(:first-child) { display: none; }

  .reviews-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 18px;
  }
  .overall-rating {
    width: 100%;
    padding: 16px 18px;
  }

  .single-team-member {
    display: grid;
    gap: 8px;
    padding-bottom: 20px;
  }

  .original-content .single-team-member .alignleft {
    float: none;
    display: block;
    width: min(240px, 76vw);
    height: auto;
    margin: 0 auto 2px;
  }

  .single-team-member header {
    text-align: center;
  }

  .original-content .single-team-member h3 {
    margin: 10px 0 6px;
  }

  .original-content .single-team-member h4 {
    margin: 0 0 10px;
  }

  .single-team-member .bio p:first-child {
    margin-top: 0;
  }

  /* trust bar: 2-col grid instead of full vertical stack */
  .trust-bar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 14px 16px; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }

  .appointment-form { grid-template-columns: 1fr; }
  .floating-badge { display: none; }

  /* service cards tighter on mobile */
  .service-card { padding: 20px; }
  .service-icon { width: 44px; height: 44px; }

  /* ── Mobile hero: cinematic three-zone layout ─────────────────────────────
   Top zone   : title + subtitle, anchored to hero top
   Bottom zone: proof-strip pills, anchored to hero bottom (position:absolute)
   Middle zone: CTA buttons float between them via margin-top:auto
   This keeps the buttons in a stable position regardless of how long the
   translated title is — long Vietnamese text grows upward, not downward. */
  .hero { align-items: stretch; }
  .hero-content-wrap {
    display: flex;
    flex-direction: column;
    align-content: unset;
    width: 100%;
    min-width: 0;
    padding-top: 36px;
    /* Reserve space at the bottom for the proof strip pills + chrome bleed.
       Pills sit at (--hero-chrome-extend + ~90px) from the hero bottom;
       adding ~140px of extra buffer keeps the buttons comfortably above them. */
    padding-bottom: calc(var(--hero-chrome-extend, 0px) + 220px);
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .hero-visual { display: none; }
  .hero h1 {
    max-width: 100%;
    /* Slightly tighter than before so long translations don't eat the button zone */
    font-size: clamp(1.7rem, 10vw, 2.5rem);
    overflow-wrap: break-word;
  }
  .hero-subtitle {
    max-width: 100%;
    font-size: 1rem;
    margin-bottom: 0;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: min(340px, calc(100vw - 48px));
    min-width: 0;
    gap: 10px;
    /* Push buttons to the bottom of the available content zone */
    margin-top: auto;
    padding-top: 20px;
    margin-bottom: 0;
  }
  .hero-actions .btn {
    width: auto;
    min-width: min(278px, calc(100vw - 48px));
    max-width: 100%;
    justify-content: space-between;
    padding: 13px 16px 13px 18px;
    font-size: clamp(0.82rem, 3.8vw, 0.95rem);
    text-align: left;
    white-space: normal;
    line-height: 1.25;
  }
  .hero-proof-strip--mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: max(18px, var(--safe-left));
    /* --hero-chrome-extend = collapsible chrome + safe area, set by JS.
       Adding it keeps the pills above the Safari toolbar even though the hero
       itself extends behind it for the cinematic bleed effect. */
    bottom: calc(var(--hero-chrome-extend, 0px) + max(24px, env(safe-area-inset-bottom, 0px) + 16px));
    /* Right clearance: leave ~72px on the right so Safari's Reader Mode "Aa"
       button (bottom-right corner of the viewport) doesn't overlap the pills. */
    width: min(296px, calc(100% - 36px - var(--safe-left) - var(--safe-right) - 72px));
    min-width: 0;
    gap: 8px;
  }
  .hero-proof-strip--mobile a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
    min-height: 58px;
    padding: 9px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.11);
  }
  .hero-proof-strip--mobile strong,
  .hero-proof-strip--mobile span {
    display: block;
  }
  .hero-proof-strip--mobile strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.06rem;
    line-height: 1;
  }
  .hero-proof-strip--mobile strong:only-child {
    line-height: 1.08;
  }
  .hero-proof-strip--mobile span {
    color: rgba(255,255,255,0.66);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.25;
    margin-top: 7px;
    text-transform: uppercase;
  }
  .hero-card { padding: 18px; }
  .request-modal {
    padding: calc(12px + var(--safe-top)) max(12px, var(--safe-right)) calc(12px + var(--safe-bottom)) max(12px, var(--safe-left));
  }
  .request-modal-panel {
    max-height: calc(var(--viewport-height) - 24px - var(--safe-top) - var(--safe-bottom));
  }
  .request-modal-header,
  .request-form {
    padding: 16px;
  }
  .request-form-grid {
    grid-template-columns: 1fr;
  }
  .quick-link-card { min-height: 84px; padding: 16px; }
  .service-category-body,
  .visit-snapshot-card { padding: 18px; }
  .visit-snapshot-top {
    flex-direction: column;
    gap: 10px;
  }
  .finance-band,
  .patient-path-section { padding: 38px 0; }

  /* inner page tweaks */
  .content-panel { padding: 18px; }
  .internal-hero { padding: 40px 0 28px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .cta-banner { padding: 40px 0; }
  .cta-banner h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* mobile nav links — slightly tighter on small screens */
  .mobile-nav-links a { padding: 11px 18px; font-size: 0.9rem; }
  .mobile-nav-links .indent { padding-left: 28px; }
  .mobile-nav-footer { padding: 10px 16px calc(10px + var(--safe-bottom, 0px)); }

  /* section headers */
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
}

/* ======================
   PAGE TRANSITIONS
   Only <main> animates — header/top-bar/footer are never touched.
   Base opacity:0 guarantees no flash before the animation starts.
   Pure opacity fade — no transform so there's no position jump
   between the exit (-Y) and enter (+Y) that caused the flicker.
   ====================== */
main {
  opacity: 1;
  animation: mainReveal 0.3s ease forwards;
}
@keyframes mainReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
main.page-exit {
  opacity: 0 !important;
  transition: opacity 0.22s ease !important;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  main { animation: none; opacity: 1; }
  main.page-exit { transition: none !important; }
  .booking-modal,
  .booking-modal-panel {
    transition: none;
  }

  .booking-modal-panel {
    transform: none;
  }
}

/* ======================
   SCROLL OFFSET FOR STICKY HEADER
   ====================== */
#services, #doctors, #reviews, #visit, #appointment, #orthodontics,
#airway, #implants, #cosmetic, #family-care,
#jamie-kim, #vinh-huynh, #aaron-manela {
  scroll-margin-top: calc(var(--header-height) + var(--safe-top) + 16px);
}

/* ======================
   DOCTOR CARD AS LINK
   ====================== */
a.doctor-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
}
a.doctor-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ======================
   CTA BANNER CLEAN LAYOUT
   ====================== */
.cta-banner .cta-actions {
  justify-content: center;
  gap: 16px;
}

/* ======================
   LEGACY INNER-PAGE BOOTSTRAP GRID
   (used inside .original-content from old site HTML)
   ====================== */
.original-content .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.original-content .col-12 { flex: 1 1 100%; }
.original-content .col-xl-4 { flex: 1 1 260px; }
.original-content .col-xl-8 { flex: 2 1 400px; }
.original-content .text-left { text-align: left; }
.original-content .text-right { text-align: right; }

/* Legacy hours table */
.formatted-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 8px;
}
.formatted-hours th,
.formatted-hours td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-200);
}
.formatted-hours th {
  font-weight: 700;
  color: var(--secondary);
  background: var(--gray-50);
}
.formatted-hours .day { font-weight: 600; color: var(--text); }
.formatted-hours .text-right { text-align: right; color: var(--text-light); }

/* Legacy map iframe */
.map-iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius-md);
  margin-top: 24px;
  display: block;
}

/* Visit / contact page */
.visit-page-content {
  display: grid;
  gap: 18px;
}

.contact-page .internal-layout {
  grid-template-columns: minmax(0, 1fr);
}

.contact-page .internal-sidebar {
  display: none;
}

.visit-intro,
.visit-info-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.visit-info-card,
.visit-map-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.visit-intro {
  padding: 34px;
}

.visit-intro-modern {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: 24px;
  align-items: start;
}

.visit-intro h2 {
  margin-bottom: 12px;
}

.visit-intro p {
  max-width: 760px;
  margin-bottom: 0;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.visit-actions .btn {
  justify-content: center;
}

.visit-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.original-content .visit-action-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  color: var(--secondary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.original-content .visit-action-card strong {
  display: block;
  font-size: .95rem;
  color: var(--secondary);
}
.original-content .visit-action-card span {
  display: block;
  font-size: .8rem;
  color: var(--gray-600);
  line-height: 1.4;
}
.original-content .visit-action-card.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.original-content .visit-action-card.primary strong,
.original-content .visit-action-card.primary span {
  color: #fff;
}

.original-content .visit-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,168,168,0.42);
  box-shadow: var(--shadow-md);
}

.review-action-card strong {
  color: var(--secondary);
  font-size: 1rem;
}

.review-action-card span {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.review-card--full {
  min-height: 0;
}

.review-card--full p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.site-index-grid a {
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--secondary);
  font-weight: 700;
  transition: var(--transition);
}

.site-index-grid a strong,
.site-index-grid a span {
  display: block;
}

.site-index-grid a span {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-index-grid a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ======================
   MOBILE MENU OVERLAY
   ====================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,20,35,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

/* Bottom-sheet panel — slides up from bottom */
.mobile-nav-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  width: 100%;
  height: calc(var(--viewport-height, 100vh) - var(--header-height, 64px));
  max-height: 92vh;
  background: var(--white);
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateY(110%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.18);
}
.mobile-nav-panel.open { transform: translateY(0); }

/* Drag-handle pill */
.mobile-nav-panel::before {
  content: '';
  display: block;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--gray-300);
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* Panel header: hours label + close */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.mobile-nav-header .mobile-nav-hours {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-close {
  background: var(--gray-100);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.mobile-close:hover,
.mobile-close:active { background: var(--primary); color: var(--white); }

/* Nav link list — scrollable */
.mobile-nav-links {
  list-style: none;
  padding: 4px 0 12px;
  flex: 1;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-links li + li { border-top: none; }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--secondary);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  color: var(--primary);
  background: var(--primary-light);
}
.mobile-nav-links .mobile-section-title {
  display: block;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  padding: 14px 24px 6px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-links .indent {
  padding-left: 36px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* Footer CTAs */
.mobile-nav-footer {
  padding: 10px max(16px, var(--safe-right)) calc(10px + var(--safe-bottom, 0px)) max(16px, var(--safe-left));
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: row;
  gap: 10px;
  background: var(--white);
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(15, 31, 53, 0.10);
}
.mobile-nav-footer .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.88rem;
  padding: 11px 10px;
  gap: 6px;
}
.mobile-nav-footer .btn-ghost {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.quick-links-section {
  position: relative;
  z-index: 3;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.quick-link-button {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.quick-link-card--insurance {
  background: linear-gradient(135deg, var(--primary-light), var(--white));
  border-color: rgba(0,168,168,0.28);
}

.quick-link-card--insurance .quick-link-icon {
  background: var(--primary);
  color: var(--white);
}

.quick-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,168,168,0.45);
  box-shadow: var(--shadow-md);
}

.quick-link-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-link-icon svg { stroke: currentColor; }
.quick-link-card strong {
  display: block;
  color: var(--secondary);
  font-size: 0.94rem;
  line-height: 1.25;
}
.quick-link-card small {
  display: block;
  color: var(--text-light);
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 3px;
}

/* ======================
   INSURANCE CHECKER MODAL
   ====================== */
.insurance-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-top)) max(20px, var(--safe-right)) calc(20px + var(--safe-bottom)) max(20px, var(--safe-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.insurance-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.insurance-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.insurance-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  height: min(880px, calc(var(--viewport-height) - 40px - var(--safe-top) - var(--safe-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insurance-modal.open .insurance-modal-panel {
  transform: translateY(0) scale(1);
}

.insurance-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--white), var(--gray-50));
}

.insurance-modal-kicker {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.insurance-modal-header h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin: 0;
}

.booking-modal {
  --booking-frame-scale: 0.9;
  --booking-frame-crop-top: 0px;
  --booking-drawer-width: min(540px, calc(100vw - 58px));
  --booking-tab-width: 52px;
  position: fixed;
  top: max(12px, var(--safe-top));
  right: max(0px, var(--safe-right));
  bottom: max(12px, var(--safe-bottom));
  width: calc(var(--booking-drawer-width) + var(--booking-tab-width));
  z-index: 3000;
  transform: translateX(var(--booking-drawer-width));
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal.open {
  transform: translateX(0);
  pointer-events: auto;
}

.booking-drawer-tab {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: var(--booking-tab-width);
  height: 72px;
  border: 0;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: -8px 10px 24px rgba(16, 28, 48, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background var(--transition), transform 0.2s ease;
}

.booking-drawer-tab:hover {
  background: var(--secondary);
}

.booking-drawer-tab:focus-visible {
  outline: 3px solid rgba(14, 165, 166, 0.32);
  outline-offset: 3px;
}

.booking-drawer-icon {
  display: grid;
  place-items: center;
  transition: transform 0.26s ease;
}

.booking-modal.open .booking-drawer-icon {
  transform: rotate(180deg);
}

.booking-modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: var(--booking-drawer-width);
  height: 100%;
  border-radius: 24px 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--white);
  box-shadow: -24px 0 48px rgba(16, 28, 48, 0.22);
  overflow: hidden;
  pointer-events: auto;
}

.booking-modal-header {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  padding: 5px 14px;
  pointer-events: none;
}

.booking-modal-header h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin: 0;
}

.booking-modal-choice-copy {
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.booking-modal-text-to-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 3px 14px rgba(16, 28, 48, 0.14);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.booking-modal-text-to-book:hover,
.booking-modal-text-to-book:focus-visible {
  background: var(--primary-dark);
  box-shadow: 0 5px 18px rgba(16, 28, 48, 0.18);
  color: var(--white);
  transform: translateY(-1px);
}

.booking-modal-text-to-book svg {
  flex: 0 0 auto;
}

.booking-modal-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.booking-modal-close:hover {
  background: var(--primary);
  color: var(--white);
}

.booking-modal-frame-shell {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--white);
  min-height: 0;
}

.booking-modal-title-bar {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 58px 7px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(16, 28, 48, 0.06);
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.booking-modal-choice-bar {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 24px rgba(16, 28, 48, 0.08);
}

.booking-modal-frame {
  display: block;
  width: calc(100% / var(--booking-frame-scale));
  height: calc((100% + var(--booking-frame-crop-top)) / var(--booking-frame-scale));
  margin-top: calc(-1 * var(--booking-frame-crop-top));
  border: 0;
  background: var(--white);
  transform: scale(var(--booking-frame-scale));
  transform-origin: top left;
}

body.booking-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* ── Booking drawer progress dot (shows when booking is in progress) ── */
.booking-drawer-progress-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent, #f59e0b);
  border: 2px solid var(--white);
  pointer-events: none;
}

/* ======================
   ACCESSIBILITY HELPER
   ====================== */
.accessibility-widget {
  position: fixed;
  right: max(18px, var(--safe-right));
  bottom: calc(22px + var(--safe-bottom));
  z-index: 3150;
  font-family: var(--font-sans);
  transition: bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity var(--transition), visibility var(--transition);
}

.accessibility-toggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(16, 28, 48, 0.22);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.accessibility-toggle:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.accessibility-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(360px, calc(100vw - 36px - var(--safe-left) - var(--safe-right)));
  /* Use dvh so mobile browser chrome is excluded; fall back to vh */
  max-height: min(680px, calc(100dvh - 110px - var(--safe-top) - var(--safe-bottom)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.accessibility-widget.open .accessibility-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.accessibility-panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--gray-200);
}

.accessibility-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 18px;
}

.accessibility-kicker {
  display: block;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.accessibility-panel h2 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  margin: 0;
}

.accessibility-note {
  color: var(--text-light);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.accessibility-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--secondary);
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.accessibility-controls {
  display: grid;
  gap: 7px;
}

.accessibility-control {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--secondary);
  padding: 10px 12px;
  text-align: left;
  display: grid;
  gap: 2px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.accessibility-control strong {
  font-size: 0.88rem;
}

.accessibility-control span {
  color: var(--text-light);
  font-size: 0.77rem;
  line-height: 1.3;
}

.accessibility-control:hover,
.accessibility-control[aria-pressed="true"] {
  border-color: rgba(0, 168, 168, 0.45);
  background: var(--primary-light);
  box-shadow: 0 6px 18px rgba(0, 168, 168, 0.08);
}

.a11y-lang-section {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.a11y-lang-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 9px;
}

.a11y-lang-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.a11y-lang-btn {
  flex: 1 1 auto;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.a11y-lang-btn:hover {
  border-color: rgba(0, 168, 168, 0.45);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 168, 168, 0.08);
}

.a11y-lang-btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 168, 168, 0.22);
}

.accessibility-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

body.booking-modal-open .accessibility-widget,
body.request-modal-open .accessibility-widget,
body.insurance-modal-open .accessibility-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-top)) max(20px, var(--safe-right)) calc(20px + var(--safe-bottom)) max(20px, var(--safe-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.request-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.request-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(var(--viewport-height) - 40px - var(--safe-top) - var(--safe-bottom));
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.request-modal.open .request-modal-panel {
  transform: translateY(0) scale(1);
}

.request-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--white), var(--gray-50));
}

.request-modal-kicker {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.request-modal-header h2 {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  margin: 0;
}

.request-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.request-modal-close:hover {
  background: var(--primary);
  color: var(--white);
}

.request-form { padding: 22px; }

.request-form-intro {
  color: var(--text-light);
  margin-bottom: 18px;
}

.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.request-form label {
  display: grid;
  gap: 7px;
  color: var(--secondary);
  font-weight: 800;
  font-size: 0.84rem;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 13px;
  color: var(--text);
  font: inherit;
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.request-form textarea {
  resize: vertical;
  min-height: 112px;
}

.request-form input:focus,
.request-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,168,168,0.12);
}

.request-form-wide { grid-column: 1 / -1; }

.request-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.request-form-note {
  color: var(--text-light);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 12px;
}

.request-result {
  display: none;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.request-result.show { display: block; }

body.request-modal-open { overflow: hidden; }

/* ======================
   BOOKING PAGE
   ====================== */
.booking-page {
  background: var(--gray-50);
}

.booking-hero {
  background:
    linear-gradient(135deg, rgba(26,47,78,0.95), rgba(0,127,127,0.86)),
    url('../assets/custom/doctors.jpg') center/cover;
  color: var(--white);
  padding: 76px 0 56px;
}

.booking-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 36px;
  align-items: end;
}

.booking-copy {
  max-width: 760px;
}

.booking-copy .section-label,
.booking-frame-header .section-label {
  color: var(--primary-light);
}

.booking-copy h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-bottom: 18px;
}

.booking-copy p {
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
  max-width: 680px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.booking-help-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.booking-help-card h2 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 14px;
}

.booking-help-card ul {
  display: grid;
  gap: 10px;
  list-style: disc;
  padding-left: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
}

.booking-frame-section {
  padding: 42px 0 86px;
}

.booking-frame-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.booking-frame-header .section-label {
  color: var(--primary);
  margin-bottom: 6px;
}

.booking-frame-header h2 {
  margin: 0;
}

/* Text-to-book banner above iframe */
.booking-text-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 32px 0 28px;
}

.btn-text-to-book {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 18px 40px;
  border-radius: 100px;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: background .18s, transform .15s, box-shadow .18s;
  cursor: pointer;
  width: max-content;
  max-width: 100%;
}

.btn-text-to-book:hover,
.btn-text-to-book:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,.22);
  color: #fff;
  text-decoration: none;
}

.btn-text-to-book svg {
  flex-shrink: 0;
}

.booking-text-banner-or {
  font-size: .9rem;
  color: var(--gray-500);
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-text-banner-or::before,
.booking-text-banner-or::after {
  content: '';
  display: block;
  height: 1px;
  width: 60px;
  background: var(--gray-300);
}

.booking-fullscreen-link {
  font-size: .8rem;
  color: var(--gray-400);
  text-decoration: none;
}

.booking-fullscreen-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Mobile: make the text button full-width */
@media (max-width: 600px) {
  .btn-text-to-book {
    width: 100%;
    justify-content: center;
    font-size: 1.15rem;
    padding: 20px 28px;
  }
}

.booking-frame-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 720px;
}

.booking-frame {
  display: block;
  width: 100%;
  height: min(900px, calc(var(--viewport-height) - var(--header-height) - 72px));
  min-height: 720px;
  border: 0;
  background: var(--white);
}

/* ======================
   HERO CARD PHOTO
   ====================== */
.hero-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .original-content .col-xl-4,
  .original-content .col-xl-8 { flex: 1 1 100%; }
}

@media (max-width: 900px) {
  .booking-modal {
    --booking-frame-scale: 1;
    --booking-frame-crop-top: 0px;
    --booking-drawer-width: 100vw;
    --booking-tab-width: 46px;
    top: max(8px, var(--safe-top));
    right: calc(-1 * var(--booking-drawer-width));
    bottom: max(8px, var(--safe-bottom));
    width: var(--booking-drawer-width);
    transform: none;
    transition: right 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .booking-modal.open {
    right: 0;
    transform: none;
  }

  .booking-modal-panel {
    width: 100%;
    border-radius: 20px 0 0 20px;
  }

  .booking-modal-header {
    justify-content: flex-end;
    min-height: 54px;
    padding: 10px max(10px, var(--safe-right)) 10px max(10px, var(--safe-left));
  }

  .booking-modal-title-bar {
    min-height: 55px;
    padding: 14px calc(max(10px, var(--safe-right)) + 44px) 14px max(10px, var(--safe-left));
    font-size: 0.98rem;
  }

  .booking-modal-choice-copy {
    font-size: 0.72rem;
  }

  .booking-modal-text-to-book {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .booking-modal-close {
    right: max(10px, var(--safe-right));
  }

  .booking-modal-choice-bar {
    flex-wrap: wrap;
    gap: 6px;
    min-height: 58px;
    padding: 7px max(12px, var(--safe-right)) calc(7px + env(safe-area-inset-bottom)) max(12px, var(--safe-left));
  }

  .booking-modal-frame-shell {
    min-height: 0;
    touch-action: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .booking-modal-frame {
    width: 100%;
    height: calc(100% + var(--booking-frame-crop-top));
    margin-top: calc(-1 * var(--booking-frame-crop-top));
    transform: none;
  }

  .booking-drawer-tab {
    left: calc(-1 * var(--booking-tab-width));
    height: 64px;
    border-radius: 18px 0 0 18px;
  }

  .booking-modal:not(.open) .booking-drawer-tab {
    display: none;
  }

  .booking-modal.open .booking-drawer-tab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .accessibility-widget {
    right: max(14px, var(--safe-right));
    bottom: calc(14px + var(--safe-bottom));
  }

  body.mobile-cta-visible .accessibility-widget {
    bottom: calc(var(--mobile-sticky-cta-height) + 10px + var(--safe-bottom));
  }

  .accessibility-toggle {
    width: 52px;
    height: 52px;
    font-size: 0.98rem;
  }

  .accessibility-panel {
    bottom: 62px;
    /* Account for: panel offset (62px) + sticky bar (72px) + gap (10px) + breathing room (16px) */
    max-height: min(540px, calc(100dvh - 160px - var(--safe-top) - var(--safe-bottom)));
  }

  .accessibility-panel-header {
    padding: 12px 14px 10px;
  }

  .accessibility-panel-body {
    padding: 12px 14px 14px;
  }

  .insurance-modal {
    align-items: stretch;
    padding: calc(14px + var(--safe-top)) max(14px, var(--safe-right)) calc(14px + var(--safe-bottom)) max(14px, var(--safe-left));
  }

  .insurance-modal-panel {
    width: 100%;
    height: calc(var(--viewport-height) - 28px - var(--safe-top) - var(--safe-bottom));
  }

  .insurance-modal-header {
    padding: 18px;
  }

  .insurance-checker {
    padding: 18px;
  }

  .insurance-form-grid {
    grid-template-columns: 1fr;
  }

  .insurance-membership-grid {
    grid-template-columns: 1fr;
  }

  .insurance-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .booking-hero {
    padding: 48px 0 34px;
  }

  .visit-intro,
  .visit-info-card {
    padding: 24px;
  }

  .visit-intro-modern,
  .visit-info-grid,
  .visit-info-grid-modern {
    grid-template-columns: 1fr;
  }

  .visit-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .original-content .visit-action-card {
    min-height: 0;
    padding: 13px;
  }

  .original-content .visit-action-card strong {
    margin-bottom: 4px;
    font-size: 0.88rem;
  }

  .original-content .visit-action-card span {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .visit-actions {
    flex-direction: column;
  }

  .visit-actions .btn {
    width: 100%;
  }

  .visit-map-card .map-iframe {
    min-height: 320px;
  }

  .booking-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .booking-help-card {
    padding: 20px;
  }

  .booking-frame-section {
    padding: 28px 0 calc(72px + var(--mobile-sticky-cta-height) + var(--safe-bottom));
  }

  .booking-frame-header {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-frame-header .btn {
    justify-content: center;
  }

  .booking-frame-wrap {
    margin-left: max(-18px, calc(-1 * var(--safe-left)));
    margin-right: max(-18px, calc(-1 * var(--safe-right)));
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    min-height: calc(var(--viewport-height) - var(--header-height) - var(--mobile-sticky-cta-height) - var(--safe-bottom));
  }

  .booking-frame {
    min-height: calc(var(--viewport-height) - var(--header-height) - var(--mobile-sticky-cta-height) - var(--safe-bottom));
    height: calc(var(--viewport-height) - var(--header-height) - var(--mobile-sticky-cta-height) - var(--safe-bottom));
  }
}

/* ======================
   RECOMMENDED PRODUCTS CATALOG
   ====================== */
.products-catalog-section { background: var(--gray-50); }

/* Filter tabs */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.product-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.product-tab:hover { border-color: var(--primary); color: var(--primary); }
.product-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Section headers */
.product-section { margin-bottom: 64px; }
.product-section-header { margin-bottom: 28px; }
.product-section-header h2 { font-size: 1.5rem; color: var(--secondary); margin-bottom: 6px; }
.product-section-header p { color: var(--text-light); font-size: 0.95rem; max-width: 560px; }

.doctor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(0,168,168,0.2);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  margin-bottom: 12px;
}
.doctor-badge img { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; }
.doctor-badge span { font-size: 0.78rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.05em; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Product card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
  border-color: var(--primary);
}
.product-card--no-link { cursor: default; }
.product-card--no-link:hover { transform: none; box-shadow: none; border-color: var(--gray-100); }

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card-img img.is-broken { display: none; }
.product-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0,168,168,0.14), rgba(212,169,74,0.18)),
    var(--white);
  color: var(--secondary);
}
.product-image-fallback span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.product-image-fallback strong {
  font-size: 0.82rem;
  line-height: 1.35;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}
.product-card-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.35;
  margin: 0;
}
.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-card-cta::after { content: "→"; }

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .product-tabs { gap: 6px; }
  .product-tab { padding: 7px 14px; font-size: 0.82rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-body { padding: 10px 12px 12px; }
  .product-card-body h3 { font-size: 0.82rem; }
}

@media (max-width: 1200px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-link-card--insurance {
    grid-column: 1 / -1;
  }
  .quick-link-card {
    min-height: 84px;
    padding: 16px;
  }
  .quick-link-card > span:not(.quick-link-icon) {
    min-width: 0;
  }
  .quick-link-card strong,
  .quick-link-card small {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .quick-link-card:not(.quick-link-card--insurance) {
    display: none;
  }
  .quick-link-card--insurance {
    min-height: 92px;
  }
}

/* ======================
   BEFORE & AFTER PAGE
   ====================== */

/* ── Hero ── */
.ba-hero {
  background: var(--secondary);
  padding: 72px 0 64px;
}

.ba-hero .section-label {
  display: block;
  margin-bottom: 12px;
}

.ba-hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.ba-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 32px;
}

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

/* ── Disclaimer bar ── */
.ba-disclaimer-bar {
  background: var(--primary-light);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
}

.ba-disclaimer-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.ba-disclaimer-bar svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* ── Gallery section ── */
.ba-gallery-section {
  background: var(--gray-50);
}

.ba-gallery-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.ba-gallery-intro h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.ba-gallery-intro p {
  margin: 0;
  color: var(--text-light);
}

/* ── Filter tabs ── */
.ba-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 56px;
}

.ba-tab {
  padding: 9px 22px;
  border-radius: 999px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

.ba-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ba-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Group headings ── */
.ba-group {
  margin-bottom: 64px;
}

.ba-group-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-200);
}

.ba-group-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Grid ── */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card ── */
.ba-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ba-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── The slider itself ── */
.ba-wrap {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  touch-action: pan-y;
  background: var(--gray-200);
  aspect-ratio: 16 / 10;
}

.ba-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: var(--gray-100) center/40px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' stroke='%23CBD5E1' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='3' stroke='%23CBD5E1' stroke-width='1.5'/%3E%3Cpath d='M3 9l4-3 4 3' stroke='%23CBD5E1' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ba-img--after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

/* Before / After labels */
.ba-label {
  position: absolute;
  top: 12px;
  z-index: 5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.42);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ba-label--before {
  left: 12px;
}

.ba-label--after {
  right: 12px;
}

/* The draggable handle */
.ba-handle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* ── Card body ── */
.ba-card-body {
  padding: 18px 20px 22px;
}

.ba-case-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 8px 0 6px;
  line-height: 1.3;
}

.ba-case-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ── Treatment badges ── */
.ba-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.ba-badge--braces    { background: #EFF6FF; color: #1D4ED8; }
.ba-badge--clear     { background: #F0F9FF; color: #0369A1; }
.ba-badge--invisalign { background: #F0FDF4; color: #15803D; }
.ba-badge--veneers   { background: #FDF4FF; color: #9333EA; }
.ba-badge--whitening { background: #FFFBEB; color: #B45309; }
.ba-badge--implants  { background: #FFF1F2; color: #BE123C; }
.ba-badge--early     { background: #FFF7ED; color: #C2410C; }
.ba-badge--bonding   { background: #FDF2F8; color: #A21CAF; }
.ba-badge--generic   { background: #E6F7F7; color: var(--primary-dark); }

/* ── Placeholder card (awaiting photo) ── */
.ba-card--placeholder .ba-wrap {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.ba-placeholder-hint {
  text-align: center;
  padding: 32px 20px;
  color: #94a3b8;
}
.ba-placeholder-hint svg { margin-bottom: 12px; opacity: .5; }
.ba-placeholder-hint strong { display: block; font-size: 0.95rem; color: #64748b; margin-bottom: 4px; }
.ba-placeholder-hint span { font-size: 0.82rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ba-hero {
    padding: 48px 0 44px;
  }

  .ba-hero h1 {
    font-size: 1.9rem;
  }

  .ba-hero-actions {
    flex-direction: column;
  }

  .ba-hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .ba-filter-tabs {
    gap: 6px;
    margin-bottom: 36px;
  }

  .ba-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .ba-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ba-group-heading {
    font-size: 1.25rem;
  }

  .ba-group {
    margin-bottom: 44px;
  }
}

/* ─── Blog Card Grid ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0,127,127,.08);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
  margin: 0;
}
.blog-card-excerpt {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-read-more {
  font-size: .83rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ─── Blog Post Styles ─────────────────────────────────────────── */
.blog-post-meta {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.blog-post-meta a { color: var(--primary); }
.post-updated { color: var(--gray-400); font-style: italic; }
.blog-post-back {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: .9rem;
}
.blog-post-back a { color: var(--primary); font-weight: 600; }

/* ─── Consult Note — top bar pill ─────────────────────────────── */
.top-bar-consult-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  margin-left: 4px;
}
.top-bar-consult-note::before {
  content: '·';
  margin-right: 2px;
  opacity: .5;
}
.top-bar-consult-free {
  color: #7fffdf;
  font-weight: 600;
}
@media (max-width: 900px) {
  .top-bar-consult-note { display: none; }
}

/* ─── Book-page two-path chooser ──────────────────────────────── */
.booking-chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 56px;
}
.booking-choice-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.booking-choice-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,127,127,.1);
}
.booking-choice-card.is-ortho { border-color: var(--primary); }
.booking-choice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 4px 10px;
  border-radius: 99px;
  width: fit-content;
}
.badge-free {
  background: #dcfce7;
  color: #166534;
}
.badge-paid {
  background: #fef9c3;
  color: #854d0e;
}
.booking-choice-card h2 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.3;
}
.booking-choice-card p {
  font-size: .9rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}
.booking-choice-card .btn {
  margin-top: auto;
  text-align: center;
}
@media (max-width: 640px) {
  .booking-chooser { grid-template-columns: 1fr; }
}

/* ─── Announcement bar — sticky pricing strip ──────────────────── */
.announce-bar {
  background: #005858;
  color: rgba(255,255,255,.93);
  text-align: center;
  padding: 7px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 1003;
}
.announce-bar strong { font-weight: 700; color: #fff; }
.announce-bar .ab-free { color: #7fffd4; font-weight: 700; }
.announce-bar .ab-sep { opacity: .35; }
.announce-bar .ab-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  transition: border-color .15s;
}
.announce-bar .ab-link:hover { border-color: rgba(255,255,255,.7); }
@media (max-width: 640px) {
  .announce-bar { font-size: 11.5px; padding: 6px 12px; gap: 8px; }
  .announce-bar .ab-sep { display: none; }
}

/* Suppress old top-bar inline note (announce-bar replaces it) */
.top-bar-consult-note { display: none !important; }

/* Smart review stats: photos are the first detail to drop in tight cards.
   The reviewer identity, Local Guide badge, review count, and date remain. */
.reviews-carousel .reviewer-stat-photos,
.reviews-carousel .reviewer-stat-sep--photos {
  display: none;
}

@container (max-width: 560px) {
  .reviewer-stat-photos,
  .reviewer-stat-sep--photos {
    display: none;
  }

  .reviewer-stats .local-guide-badge {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .reviewer-stat-photos,
  .reviewer-stat-sep--photos {
    display: none;
  }
}

/* Translation safety: Google Translate can make labels and review metadata
   much longer than the English copy. Keep those strings inside the viewport
   without changing the page structure or hiding content. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

main,
.container,
.content-panel,
.internal-layout,
.internal-hero,
.internal-content-section,
.reviews-section,
.testimonials-page,
.internal-hero-grid,
.hero-content-wrap,
.hero-content,
.testimonial-summary,
.testimonial-grid,
.review-card,
.review-card--full,
.reviews-carousel,
.reviews-carousel-wrap {
  min-width: 0;
  max-width: 100%;
}

.accessibility-panel {
  min-width: min(320px, calc(100vw - 36px - var(--safe-left) - var(--safe-right)));
  max-width: min(360px, calc(100vw - 36px - var(--safe-left) - var(--safe-right)));
}

.section-header,
.section-header h2,
.internal-hero h1,
.internal-hero p,
.hero h1,
.hero-subtitle,
.testimonial-summary h2,
.testimonial-summary p,
.review-card,
.review-card p,
.review-card a,
.review-action-card,
.review-action-card strong,
.review-action-card span,
.testimonial-score-card,
.testimonial-score-card span,
.testimonial-score-card small,
.announce-bar,
.announce-bar .ab-link,
.mobile-sticky-cta .btn {
  overflow-wrap: anywhere;
}

.top-bar,
.top-bar a,
.top-bar span,
.top-bar select {
  overflow-wrap: normal;
  word-break: keep-all;
}

@media (max-width: 640px) {
  .internal-hero,
  .internal-content-section,
  .reviews-section,
  .testimonials-page,
  .content-panel {
    overflow-x: clip;
  }

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

  .testimonial-score-card {
    width: 100%;
    min-width: 0;
  }

  .review-card {
    overflow: hidden;
  }

  .review-header {
    align-items: flex-start;
  }

  .review-meta {
    min-width: 0;
  }

  .top-bar .container,
  .top-bar-left,
  .top-bar-right,
  .language-selector {
    min-width: 0;
  }

  .language-selector select {
    min-width: 0;
    text-overflow: ellipsis;
  }

  .mobile-sticky-cta {
    min-width: 0;
  }

  .mobile-sticky-cta .btn {
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
  }
}

/* ─── Dual header CTAs (desktop only — hidden on mobile via existing @media rule) ── */

/* ── Breadcrumb ────────────────────────────── */
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 0.82rem;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); }
.breadcrumb li + li::before { content: '›'; opacity: 0.6; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* ── Blog index page ───────────────────────── */
.blog-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-height);
  z-index: 100;
}
.blog-filter-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-filter-tabs::-webkit-scrollbar { display: none; }
.blog-tab {
  flex: 0 0 auto;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-light);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.blog-tab:hover { border-color: var(--primary); color: var(--primary); }
.blog-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.blog-card--featured {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  margin-bottom: 28px;
  border-left: 4px solid var(--primary);
}
.blog-card--featured .blog-cat { margin-bottom: 12px; }
.blog-card--featured h2 { font-size: 1.45rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card--featured h2 a { color: var(--secondary); text-decoration: none; }
.blog-card--featured h2 a:hover { color: var(--primary); }
.blog-card--featured p { color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,168,168,0.3);
  transform: translateY(-2px);
}
.blog-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.blog-cat--orthodontics { background: #EFF8FF; color: #1D6FA4; }
.blog-cat--implants     { background: #F0FDF4; color: #166534; }
.blog-cat--cosmetic     { background: #FDF4FF; color: #7E22CE; }
.blog-cat--kids         { background: #FFF7ED; color: #C2410C; }

.blog-card h2 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; font-family: var(--font-sans); }
.blog-card h2 a { color: var(--secondary); text-decoration: none; }
.blog-card h2 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.65; flex: 1; margin-bottom: 14px; }
.blog-meta {
  display: flex;
  gap: 14px;
  font-size: 0.77rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.blog-read-more {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.blog-read-more:hover { color: var(--primary-dark, var(--secondary)); }

.topic-links { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.topic-links a {
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--primary-light);
  transition: background var(--transition);
  font-weight: 500;
}
.topic-links a:hover { background: rgba(0,168,168,0.15); }

/* Blog JS filter hidden state */
.blog-card[hidden] { display: none; }

/* Blog responsive */
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { padding: 20px; }
}

/* Migrated blog posts */
.blog-post-page .blog-post-hero .container {
  max-width: 980px;
}

.blog-post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  color: rgba(255,255,255,0.86);
  font-size: 0.9rem;
  font-weight: 700;
}

.blog-post-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.blog-article-layout {
  grid-template-columns: minmax(0, 820px) 320px;
  justify-content: center;
}

.migrated-blog-post {
  font-size: 1.02rem;
  line-height: 1.82;
}

.migrated-blog-post > p:first-child {
  margin-top: 0;
}

.migrated-blog-post h2 {
  color: var(--secondary);
  font-family: var(--font-sans);
  font-size: 1.38rem;
  line-height: 1.28;
}

.migrated-blog-post h3 {
  color: var(--secondary);
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1.35;
}

.migrated-blog-post .blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-light);
}

.migrated-blog-post img {
  display: block;
  margin: 22px auto;
  max-height: 620px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.blog-post-cta {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid rgba(0,127,127,0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,127,127,0.08), rgba(255,255,255,0.98));
}

.blog-post-cta h2 {
  margin-top: 0;
}

.blog-related-card .topic-links a {
  line-height: 1.35;
}

.migrated-blog-index .blog-grid {
  align-items: stretch;
}

@media (max-width: 980px) {
  .blog-article-layout {
    grid-template-columns: 1fr;
  }
  /* Hide the sidebar CTA on mobile — the inline .blog-post-cta at the end of
     the article already serves as the CTA; showing both stacked looks redundant. */
  .visit-cta-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .blog-post-hero-meta {
    gap: 12px;
  }

  .migrated-blog-post {
    font-size: 0.98rem;
  }

  .migrated-blog-post .blog-post-meta {
    display: grid;
  }

  .blog-post-cta {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .why-icare-home {
    padding: 40px 0;
  }
  .home-why-copy h2 {
    font-size: 2rem;
    line-height: 1.08;
  }
  .home-why-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-why-pills span {
    justify-content: center;
    text-align: center;
    padding-inline: 9px;
    min-height: 44px;
    flex-wrap: wrap;
  }
  .home-why-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-why-actions .btn {
    justify-content: center;
    width: 100%;
  }
  .home-why-photo {
    min-height: 230px;
    border-radius: 16px;
  }
  .home-why-photo-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }
  .home-why-reasons {
    grid-template-columns: 1fr;
  }
  .home-why-reason {
    min-height: 0;
  }
}
