/* ============================================
   Dr. Andre Panossian — Premium Practice Site
   Brand Kit: Black / White / Clean Monochrome
   Fonts: Gloock (all headings) + Figtree (all body/paragraph). Two fonts only.
   ============================================ */

/* --- Local Font Faces --- */
/* Figtree (body) — self-hosted */
@font-face { font-family: 'Figtree'; src: url('assets/fonts/Figtree-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('assets/fonts/Figtree-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('assets/fonts/Figtree-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
/* Gloock (all headings) — self-hosted, latin subset */
@font-face { font-family: 'Gloock'; src: url('assets/fonts/Gloock-Regular.latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* --- CSS Custom Properties --- */
:root {
  /* Brand colors */
  --black: #000000;
  --black-soft: #111111;
  --black-light: #1a1a1a;
  --charcoal: #222222;
  --charcoal-light: #333333;
  --gray-dark: #444444;
  --gray: #666666;
  --gray-light: #999999;
  --gray-lighter: #cccccc;
  --gold: #ffffff;
  --gold-light: #cccccc;
  --gold-muted: rgba(255, 255, 255, 0.08);
  --gold-border: rgba(255, 255, 255, 0.15);
  --white: #FFFFFF;
  --off-white: #ffffff;
  --cream: #ffffff;

  /* Semantic */
  --bg-primary: var(--black);
  --bg-secondary: var(--black-soft);
  --bg-card: var(--charcoal);
  --bg-light: var(--off-white);
  --bg-cream: var(--cream);
  --text-primary: var(--white);
  --text-secondary: #999999;
  --text-muted: #555555;
  --text-dark: #333333;
  --text-dark-muted: #555555;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.08);

  /* Effects */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --radius: 0;
  --radius-lg: 0;
  --transition: 0.3s ease;

  /* Typography */
  --font-heading: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-serif: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1600px;
  --max-width-narrow: 900px;
  --header-height: 90px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; text-shadow: none !important; -webkit-text-stroke: 0; filter: none; }
h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; line-height: 1.25; text-shadow: none !important; -webkit-text-stroke: 0; filter: none; }
h1, h2, h3, h4, h5, h6 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h2, h3, h4, h5 {
  font-weight: 400;
  opacity: 0.92;
}
h1 .name-marcellus, .hero h1 { font-family: var(--font-heading); font-weight: 400; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.3rem; font-weight: 600; }

.serif { font-family: var(--font-serif); }
.serif-heading { font-family: var(--font-serif); font-weight: 600; font-style: italic; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-light .section-label,
.section-cream .section-label,
.section-white .section-label { color: #999; }

.section-title { margin-bottom: 20px; text-align: center; }
.section-label { text-align: center; }
.section-label.with-logo::before {
  content: '';
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  background: url('assets/logos/favicon_DrP_333.webp') center/contain no-repeat;
}
.section-label.with-logo[style*="text-align:left"]::before,
.section-label.with-logo[style*="text-align: left"]::before { margin-left: 0; margin-right: auto; }
.section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.section-subtitle {
  font-size: 0.95rem;
  color: #333;
  max-width: 820px;
  line-height: 1.7;
  font-weight: 300;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 72px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.4;
}
.logo-text .logo-sub {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--gray-light);
  display: block;
}

.main-nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: space-evenly; margin-left: 24px; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,1);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 18px;
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after { width: 100%; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { display: none; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  background: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: #333;
  border-bottom: none;
}
.nav-dropdown-menu a:hover { color: #333; background: #f5f5f5; }
.nav-dropdown-menu a::after { display: none; }

.nav-cta {
  background: transparent !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.5px;
  transition: all var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--white) !important; color: var(--black) !important; border-color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger-lines span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.hamburger-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hamburger.active .hamburger-lines span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .hamburger-lines span:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-lines span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: var(--black);
  flex-direction: column;
  /* tightened spacing so the full menu + CTA fit without a fixed footer bar */
  padding: 22px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a:hover { color: var(--gold); }
/* Inline solid CTA at the natural end of the menu: white bg / black text,
   self-sized (not full-width) with comfortable padding, hover inverts to dark. */
.mobile-nav .nav-cta {
  display: inline-block;
  align-self: center;            /* center within the flex column instead of stretching */
  width: auto;
  margin-top: 20px !important;
  padding: 14px 36px !important;
  text-align: center;
  background: var(--white) !important;
  color: var(--black) !important;
  border: 1px solid var(--white) !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: background var(--transition), color var(--transition), border-color var(--transition) !important;
}
.mobile-nav .nav-cta:hover,
.mobile-nav .nav-cta:active {
  background: var(--black) !important;
  color: var(--white) !important;
  border-color: var(--white) !important;
}
.mobile-nav .mobile-sub { padding-left: 20px; }
.mobile-nav .mobile-sub a { font-size: 0.9rem; font-weight: 500; color: var(--gray-light); border-bottom-color: rgba(255,255,255,0.04); padding: 5px 0; }

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Responsive homepage hero background: mobile loads ~20KB (768w); larger viewports get sharper variants. */
/* Matches the responsive preload in index.html <head>. */
.hero-bg {
  background: url('assets/images/hero/Panossian_OR-768.webp') 50% center / cover no-repeat;
}
@media (min-width: 768px) {
  .hero-bg { background-image: url('assets/images/hero/Panossian_OR-1280.webp'); }
}
@media (min-width: 1280px) {
  .hero-bg { background-image: url('assets/images/hero/Panossian_OR-1920.webp'); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.93), rgba(17,17,17,0.88));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--gold); }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 580px; margin-bottom: 32px; }

/* Hero Slideshow */
.hero-slideshow { position: relative; min-height: 90vh; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; position: relative; }

.hero-slide .hero-content { width: 100%; }

.hero-indicators {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.hero-indicators button {
  width: 40px; height: 3px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 0;
}
.hero-indicators button.active { background: var(--gold); width: 56px; }

/* Page Hero */
.page-hero {
  min-height: 20vh;
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 24px;
}
.page-hero .hero-content { padding: 40px 24px; }

/* --- Page Banner (Karam-style split hero) --- */
/* --- Page Banner (Karam-style split hero) --- */
.page-banner {
  background: #fff;
  display: flex;
  align-items: stretch;
  min-height: 70vh;
  overflow: hidden;
}
/* Reversed variant: image left, copy right */
.page-banner.reversed {
  flex-direction: row-reverse;
}
.page-banner.reversed .banner-copy {
  padding-left: 48px;
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}
.page-banner .banner-copy {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 48px) 48px 56px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  color: #333;
}
.page-banner .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #999;
  letter-spacing: 0.02em;
}
.page-banner .breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
.page-banner .breadcrumb a:hover { color: #333; }
.page-banner .breadcrumb .sep { margin: 0 2px; }
.page-banner h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #333;
  font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.page-banner .banner-desc {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 520px;
}
.page-banner .banner-media {
  flex: 1;
  position: relative;
  background: #fff;
}
.page-banner .banner-media img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Placeholder when no photo supplied yet */
.page-banner .banner-media.placeholder {
  background: #eee;
}
/* When a banner has no media (e.g. the legal/disclaimer pages: accessibility,
   privacy, terms, HIPAA, open-payments), drop the empty image area and let the
   copy span the full width instead of being pinned to 45%. */
.page-banner:not(:has(.banner-media)) {
  min-height: 0;
}
.page-banner:not(:has(.banner-media)) .banner-copy {
  flex: 1 1 100%;
  width: 100%;
  /* match the body's narrow container so the H1 lines up over the text, and use
     SYMMETRIC horizontal padding (the base .banner-copy rule is asymmetric for
     the image layout, which shifted the centered heading off-center) */
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: calc(var(--header-height) + 48px) 24px 24px !important;
  /* center the heading (breadcrumb + H1 + effective date) on legal/disclaimer pages */
  text-align: center;
  align-items: center;
}
.page-banner:not(:has(.banner-media)) .breadcrumb {
  justify-content: center;
}
/* tighten the gap between the centered heading and the body text on these pages */
.page-banner:not(:has(.banner-media)) + .section.section-light {
  padding-top: 32px;
}
.page-banner:not(:has(.banner-media)) + .section .legal-body > p:first-child {
  margin-bottom: 24px !important;   /* was 48px before 'Effective: ...' date */
  text-align: center;
}

@media (max-width: 900px) {
  .page-banner {
    flex-direction: column;
    min-height: auto;
  }
  .page-banner .banner-copy {
    flex: none;
    padding: calc(var(--header-height) + 32px) 24px 40px;
  }
  .page-banner .banner-media {
    min-height: 220px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid;
  text-align: center;
}

.btn-primary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 0;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-dark {
  background: transparent;
  color: #333;
  border: 1px solid #333;
  border-radius: 0;
}
.btn-dark:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

.btn-ghost { background: transparent; color: var(--gold); padding: 0; font-weight: 600; border: none; }
.btn-ghost:hover { color: var(--gold-light); }

.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.btn-lg { padding: 18px 40px; font-size: 0.92rem; }

/* --- Sections --- */
.section { padding: 100px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.85); }
.section-charcoal { background: var(--black-soft); color: var(--white); }
.section-charcoal .section-subtitle { color: rgba(255,255,255,0.85); }
.section-light { background: var(--off-white); }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }

.section-cream, .section-cream p, .section-cream h2, .section-cream h3, .section-cream h4, .section-cream li, .section-cream a:not(.btn):not(.nav-cta):not(.logo) {
  color: #333;
}
.section-light, .section-light p, .section-light h2, .section-light h3, .section-light h4, .section-light li, .section-light a:not(.btn):not(.nav-cta):not(.logo) {
  color: #333;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { margin: 0 auto; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
#patient-transformations .card:hover { transform: none; box-shadow: none; }
#travel .card:hover { transform: none; box-shadow: none; }

/* --- Inline Gallery Viewer (on procedure pages) --- */
.section .patient-viewer {
  max-width: 900px;
  margin: 0 auto 40px;
}
.section .patient-viewer-top {
  gap: 12px;
}
.section .patient-main-image img {
  max-height: 480px;
}
.section .patient-thumbnails {
  width: 90px;
  min-width: 90px;
  max-height: 480px;
}
.section .patient-thumbnails .thumb-item img {
  width: 100%;
}
.section .patient-nav-panel {
  margin-top: 24px;
  padding-top: 16px;
}
.section .patient-strip .strip-item {
  width: 60px;
  height: 60px;
}

.team-card {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}
.team-card:hover { transform: none; box-shadow: none; }

a.card-outline {
  background: transparent;
  border: 1px solid #ccc;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card-outline:hover {
  border-color: #333;
  background: rgba(0,0,0,0.02);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-dark {
  background: var(--charcoal);
  border: 1px solid var(--border-light);
}
.card-dark:hover { border-color: var(--gold-border); }

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.85rem;
  font-style: italic;
}

.card-body { padding: 28px; }
/* Heading-order a11y fix: homepage card titles are now h3 (were h4, which skipped
   a level after the h2 section). These aliases keep the original h4 visual styling. */
.card-body h3.card-h, .card-body h4 { margin-bottom: 10px; }
.card-h { font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.card-body p { color: #333; font-size: 0.92rem; line-height: 1.7; font-weight: 300; }

/* --- YouTube facade (click-to-load) --- avoids ~1.6MB of YouTube JS on initial load --- */
.yt-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; margin: 0; cursor: pointer;
  background: #000; overflow: hidden; display: block;
}
.yt-facade img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease, opacity .3s ease; opacity: .92;
}
.yt-facade:hover img, .yt-facade:focus-visible img { transform: scale(1.04); opacity: 1; }
.yt-facade::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='48' viewBox='0 0 68 48'%3E%3Cpath d='M44 24 28 14v20z' fill='%23fff'/%3E%3C/svg%3E") center/68px 48px no-repeat;
  border-radius: 12px; transition: background-color .2s ease; pointer-events: none;
}
.yt-facade:hover::after, .yt-facade:focus-visible::after { background-color: #cc0000; }
.yt-facade:focus-visible { outline: 3px solid var(--gold, #c8a45c); outline-offset: 2px; }

/* Dark section cards */
.section-dark .card { background: var(--charcoal); border: 1px solid var(--border-light); }
.section-dark .card:hover { border-color: var(--gold-border); }
.section-dark .card-body p { color: #fff; }
.section-dark .card-body h3.card-h, .section-dark .card-body h4 { color: var(--white); }

.section-charcoal .card { background: var(--black-light); border: 1px solid var(--border-light); }
.section-charcoal .card:hover { border-color: var(--gold-border); }
.section-charcoal .card-body p { color: #fff; }
.section-charcoal .card-body h3.card-h, .section-charcoal .card-body h4 { color: var(--white); }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Condition Cards --- */
.condition-card {
  background: var(--charcoal);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
}
.condition-card:hover { border-color: var(--gold); transform: translateY(-4px); background: var(--charcoal-light); }
.condition-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--gold-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.condition-card h3.card-h, .condition-card h4 { color: var(--white); font-size: 1.35rem; margin-bottom: 8px; font-weight: 600; }
.condition-card p { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.5; font-weight: 300; }

/* Light-bg condition cards */
.section-light .condition-card,
.section-cream .condition-card,
.section-white .condition-card {
  background: var(--white);
  border-color: #e0ddd8;
  box-shadow: var(--shadow-sm);
}
.section-light .condition-card:hover,
.section-cream .condition-card:hover,
.section-white .condition-card:hover { border-color: var(--gold); background: var(--off-white); }
.section-light .condition-card h3.card-h, .section-light .condition-card h4,
.section-cream .condition-card h3.card-h, .section-cream .condition-card h4,
.section-white .condition-card h3.card-h, .section-white .condition-card h4 { color: var(--text-dark); }
.section-light .condition-card p,
.section-cream .condition-card p,
.section-white .condition-card p { color: var(--text-dark-muted); }

/* --- Logo/Media Bar --- */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0 60px;
  width: 100%;
}
.logo-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.logo-bar-item img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.8;
  pointer-events: none;
}
/* On dark backgrounds, invert the logos to white */
.section-dark .logo-bar-item img {
  filter: grayscale(100%) brightness(10) contrast(0.5);
  opacity: 0.5;
}
.logo-bar-item { pointer-events: none; cursor: default; }

/* --- Blog Read More Links --- */
.btn-text {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 1.5px solid #333;
  transition: color 0.2s, border-color 0.2s;
}
.btn-text:hover {
  color: #333;
  border-color: #333;
}

/* --- Dual CTA --- */
.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.cta-track {
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cta-track h3 { margin-bottom: 16px; }
.cta-track p { margin-bottom: 28px; font-size: 0.95rem; flex: 1; }
.cta-track .btn { display: inline-flex; width: auto; max-width: 260px; justify-content: center; margin: 0 auto; }
.cta-track-primary { background: #111; color: #fff; border: none; }
.cta-track-primary p { color: rgba(255,255,255,0.8); }
.cta-track-primary .btn { border-color: #fff; color: #fff; }
.cta-track-primary .btn:hover { background: #fff; color: #333; }
.cta-track-secondary { background: #fff; color: #333; border: 2px solid #333; }
.cta-track-secondary h3 { color: #333; }
.cta-track-secondary p { color: #333; }
.cta-track-secondary .btn { background: #333; color: #fff; border-color: #333; }
.cta-track-secondary .btn:hover { background: #fff; color: #333; border-color: #333; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  display: none;
}
.timeline-item:not(:last-child)::after {
  content: none !important;
  display: none !important;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #333;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #333;
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item .year {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #666;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.timeline-item h4 { font-weight: 600; }
.timeline-item p { color: #333; font-size: 0.92rem; margin-top: 8px; font-weight: 300; }

/* --- Patient Journey Steps --- */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  counter-reset: step;
}
.journey-step {
  text-align: center;
  padding: 28px 20px;
  position: relative;
  counter-increment: step;
  background: var(--white);
  border: 1.5px solid #e0ddd8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.journey-step:hover { border-color: #e0ddd8; transform: none; box-shadow: var(--shadow-sm); }
.journey-step::before {
  content: counter(step);
  display: block;
  width: 52px; height: 52px;
  line-height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0;
}
.journey-step h5 { color: var(--text-dark); margin-bottom: 8px; font-size: 1.15rem; font-weight: 600; }
.journey-step p { color: #333; font-size: 0.8rem; line-height: 1.5; font-weight: 300; }

.section-dark .journey-step { background: var(--charcoal); border-color: var(--border-light); }
.section-dark .journey-step:hover { border-color: var(--gold-border); }
.section-dark .journey-step h5 { color: var(--white); }
.section-dark .journey-step p { color: #fff; }

/* --- Accordion --- */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
  border-bottom: 1px solid #e0ddd8;
  overflow: hidden;
}
.section-dark .accordion-item { border-bottom-color: var(--border-light); }

.accordion-header {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}
.accordion-header::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform var(--transition);
  font-weight: 500;
}
.accordion-item.open .accordion-header::after { content: '−'; }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-content-inner {
  padding: 0 0 24px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}
.section-dark .accordion-content-inner { color: #fff; }

/* --- Procedure Cards (expandable) --- */
.procedure-card {
  background: var(--white);
  border: 1.5px solid #e0ddd8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.procedure-card:hover { border-color: #999; }
.procedure-card:hover .procedure-card-header h4 { color: #333; }
.procedure-card:hover .procedure-card-header .expand { color: #333; }
.procedure-card.featured { border-color: #999; border-width: 2px; }
.procedure-card.featured .procedure-card-header { background: rgba(0,0,0,0.03); }

.section-dark .procedure-card { background: var(--charcoal); border-color: var(--border-light); box-shadow: none; }
.section-dark .procedure-card:hover { border-color: rgba(255,255,255,0.3); }
.section-dark .procedure-card:hover .procedure-card-header h4 { color: #fff; }
.section-dark .procedure-card:hover .procedure-card-header .expand { color: #fff; }

.procedure-card-header {
  padding: 20px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.procedure-card-header:hover { background: rgba(255,255,255,0.03); }
.procedure-card-header h4 { color: var(--text-dark); font-size: 1.3rem; margin: 0; font-weight: 600; }
.section-dark .procedure-card-header h4 { color: var(--white); }
.procedure-card-header .tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-muted);
  padding: 4px 10px;
  border-radius: 0;
  margin-left: 12px;
}
.procedure-card-header .expand {
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.procedure-card.open .procedure-card-header .expand { transform: rotate(45deg); }
.procedure-card.open {
  border-color: #999;
}
.section-dark .procedure-card.open {
  border-color: rgba(255,255,255,0.3);
}

.procedure-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.procedure-card-body-inner {
  padding: 0 28px 24px;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 300;
}
.section-dark .procedure-card-body-inner { color: #fff; }

/* --- Gallery --- */
.gallery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.gallery-tab {
  padding: 10px 24px;
  border: 1.5px solid #ddd;
  border-radius: 0;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-tab:hover { border-color: var(--gold); color: var(--text-dark); }
.gallery-tab.active { background: var(--black); color: var(--white); border-color: var(--black); }

.section-dark .gallery-tab { border-color: var(--border-light); color: #fff; }
.section-dark .gallery-tab:hover { border-color: var(--gold-border); color: var(--white); }
.section-dark .gallery-tab.active { background: var(--gold); color: var(--black); border-color: var(--gold); }

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

/* --- Video Placeholder --- */
.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
}
.video-placeholder .play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* --- Bio --- */
.bio-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.bio-portrait {
  aspect-ratio: 3/4;
  min-height: 560px;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-style: italic;
  border: 1px solid var(--border-light);
}

/* --- Bio Tabs (Karam-style about page) --- */
.bio-tabs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  min-height: 560px;
}
.bio-tabs-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
}
.bio-tabs-image {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 560px;
}
.bio-tabs-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
  position: absolute;
  top: 0;
  left: 0;
}
.bio-tab-panel {
  animation: bioFadeIn 0.4s ease;
}
@keyframes bioFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.bio-tabs-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 20px;
}
.bio-tabs-arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.bio-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: opacity 0.2s, background 0.2s;
}
.bio-arrow-btn:hover:not(.disabled) {
  background: #333;
  color: #fff;
}
.bio-arrow-btn.disabled {
  opacity: 0.25;
  cursor: default;
}
.bio-tabs-labels {
  display: flex;
  gap: 8px;
}
.bio-tab-label {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.bio-tab-label:hover {
  color: #333;
}
.bio-tab-label.active {
  color: #333;
  border-bottom-color: #333;
}

/* --- Bio Textbox with Arrows (about page) --- */
.bio-textbox {
  position: relative;
  overflow: hidden;
}
.bio-textbox-inner {
  transition: transform 0.5s ease;
}
.bio-textbox-fade {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
  transition: opacity 0.3s;
}
.bio-textbox.at-bottom .bio-textbox-fade {
  opacity: 0;
}
.bio-textbox-arrows {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
  z-index: 2;
}
.bio-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #000;
  background: #fff no-repeat center center;
  background-size: auto 100%;
  cursor: pointer;
  transition: filter 0.3s, border-color 0.3s;
}
.bio-arrow:hover:not(:disabled) {
  filter: invert(1);
  border-color: #fff;
}
.bio-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}
.bio-arrow-prev {
  background-image: url('assets/images/arrow-prev.png');
}
.bio-arrow-next {
  background-image: url('assets/images/arrow-next.png');
}

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-toggle {
  display: inline-flex;
  background: #eee;
  border-radius: var(--radius);
  overflow: hidden;
}
.form-toggle button {
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray);
}
.form-toggle button.active {
  background: var(--black);
  color: var(--white);
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: var(--text-secondary);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.footer-col-connect { align-self: center; }
.footer-brand .logo { display: flex; align-items: center; justify-content: center; }
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; max-width: 320px; }

.footer-col h4.footer-h, .footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.footer-col a:hover { color: var(--white); }

/* Footer address hover */
.footer-col a[href*="google.com/maps"]:hover {
  color: #fff !important;
  opacity: 0.9;
}

/* Footer text white enforcement */
.site-footer, .site-footer p, .site-footer a, .site-footer span, .site-footer h5 {
  color: #fff;
}
.site-footer .footer-col a {
  color: rgba(255,255,255,0.7);
}
.site-footer .footer-col a:hover {
  color: #fff;
}
.site-footer .footer-col h4.footer-h, .site-footer .footer-col h5 {
  color: #fff;
}

/* --- Footer Social & Reviews (inline in 5th column) --- */
.footer-social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-social-links a {
  color: var(--gray-light);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.footer-social-links a:hover { color: var(--white); }
.footer-social-links a svg { width: 24px; height: 24px; fill: currentColor; }

.footer-reviews-inline .footer-review-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-reviews-inline .footer-review-link:hover { color: #fff; }
.footer-reviews-inline .review-rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-reviews-inline .stars { color: #fff; font-size: 0.9rem; letter-spacing: 2px; }
.footer-reviews-inline .rating { font-weight: 700; color: #fff; font-size: 0.9rem; }
.footer-reviews-inline .review-count { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* --- Footer Legal Links --- */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

/* --- Legal page body links (privacy, terms, HIPAA, open-payments) --- */
/* Scoped to .legal-body content container only; does NOT affect footer-legal */
/* labels, nav, or any other links on the site. Underlines in-text body links. */
.legal-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}
.legal-body a:hover {
  text-decoration: underline;
  opacity: 0.75;
}
.footer-legal a:hover { color: #333; }
.footer-legal span.sep { color: #999; font-size: 16px; }

/* --- Nav Social Icons --- */
.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 16px;
}
.nav-social a {
  color: rgba(255,255,255,1);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  padding: 0;
}
.nav-social a::after { display: none; }
.nav-social a:hover { color: var(--white); }
.nav-social a svg { width: 17px; height: 17px; fill: currentColor; }

/* Full-width footer bottom bar */
.footer-bottom-bar {
  background: #fff;
  padding: 18px 16px;
  margin-top: 48px;
}

.footer-bottom-bar .container {
  max-width: 100%;
  padding: 0 16px;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: 16px;
  color: #333;
  gap: 8px;
  align-items: flex-start;
}

.footer-bottom span {
  color: #333;
}

.footer-bottom-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.footer-bottom-right {
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-end;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--gray); }
.footer-social a:hover { color: var(--gold); }

/* Footer bottom font size override */
.footer-bottom, .footer-bottom span, .footer-legal a, .footer-legal span.sep, .footer-accessibility {
  font-size: 16px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .journey-steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-layout { grid-template-columns: 1fr; }
  .bio-tabs-layout { grid-template-columns: 1fr; gap: 30px; }
  .bio-tabs-image { order: -1; max-height: 400px; }
  .bio-tabs-text { min-height: auto; }
  .bio-tabs-nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bio-tabs-labels { flex-wrap: wrap; }
}

/* Responsive nav scaling */
@media (max-width: 1280px) {
  .main-nav a { font-size: 0.82rem; padding: 4px 10px; }
  .nav-social { gap: 8px; padding: 4px 8px; }
  .nav-social a svg { width: 13px; height: 13px; }
  .nav-cta { padding: 8px 16px !important; font-size: 0.72rem !important; }
  .logo img { height: 60px !important; }
  .nav-dropdown-menu a { font-size: 0.75rem; padding: 8px 16px; }
}

@media (max-width: 1024px) {
  .main-nav a { font-size: 0.76rem; padding: 4px 7px; }
  .nav-social { gap: 6px; padding: 4px 6px; }
  .nav-social a svg { width: 12px; height: 12px; }
  .logo img { height: 50px !important; }
}

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

  .hero { min-height: 75vh; }
  .hero-slideshow { min-height: 75vh; }
  .section { padding: 60px 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tlc-feature { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .dual-cta { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .cta-track { padding: 32px 24px; }
  .logo-bar { gap: 24px; }

  h1 { font-size: 2rem; }
  .logo-text { display: none; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-serif { font-family: var(--font-serif); }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap { display: flex; gap: 16px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Dark/Charcoal section text color enforcement --- */
.section-dark, .section-dark p, .section-dark li { color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.85); }
.section-charcoal, .section-charcoal p, .section-charcoal li { color: #fff; }
.section-charcoal h2, .section-charcoal h3, .section-charcoal h4 { color: #fff; }
.section-charcoal .section-subtitle { color: rgba(255,255,255,0.85); }

/* --- Footer Accessibility --- */
.footer-accessibility {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  max-width: 1900px;
  text-align: center;
  margin: 0 auto;
}
.footer-accessibility strong {
  font-weight: 700;
  color: #333;
}
.footer-accessibility a {
  color: #333 !important;
}

/* --- Footer Action Buttons (inline in footer-bottom) --- */
.footer-action-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.footer-action-btn {
  display: flex;
  align-items: center;
  gap: 0;
  height: 32px;
  width: 32px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  overflow: hidden;
  transition: width 0.3s ease, background 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  background: #333;
  color: #fff;
}

.footer-action-btn svg {
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 7px;
  flex-shrink: 0;
  fill: #fff;
}

.footer-action-btn .footer-btn-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-width 0.3s ease, padding 0.3s ease;
  padding-right: 0;
  color: #fff;
}

.footer-action-btn:hover {
  width: 140px;
  background: #333;
  color: #fff;
}

.footer-action-btn:hover svg {
  fill: #fff;
}

.footer-action-btn:hover .footer-btn-label {
  opacity: 1;
  max-width: 110px;
  padding-right: 12px;
}

.media-video-card {
  margin-bottom: 32px;
}

/* ============================================
   Media Page — Logo Strip & Cards
   ============================================ */

/* Featured-In Logo Strip */
.media-logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}
.media-logo-strip img {
  height: 44px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease;
  object-fit: contain;
}
.media-logo-strip img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Divider line between sections */
.media-divider {
  display: none;
}

/* Media Appearance Cards — Card Grid */
.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.media-card {
  background: #efefef;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: clamp(120px, 12vw, 170px) 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
  transition: background 0.3s ease;
}
.media-card:hover {
  background: #e6e6e6;
}
/* Circle wrapper for logo */
.media-card-logo-wrap {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  grid-row: 1 / -1;
}
.media-card-logo-wrap .media-card-logo {
  width: 65%;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Fallback: logo without wrapper (backward compat) */
.media-card > .media-card-logo {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  padding: 22%;
  object-fit: contain;
  grid-row: 1 / -1;
}
.media-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.media-card h4 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 400;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.35;
}
.media-card p {
  color: #333;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}
.media-card-readmore {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.media-card-readmore:hover {
  color: #333;
  text-decoration: underline;
}

/* Video play button overlay */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(0,0,0,0.75);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  pointer-events: none;
}
.video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.video-thumb-wrap:hover .video-play-btn {
  background: rgba(200, 0, 0, 0.85);
}

/* Video Grid for media page */
.media-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.media-video-item {
  margin-bottom: 0;
}
.media-video-item .video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
}
.media-video-item .video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.media-video-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: #333;
}
.media-video-item p {
  color: #333;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Category headers for media sections */
.media-category-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #999;
  font-weight: 500;
  margin-bottom: 32px;
  padding-bottom: 12px;
}

@media (max-width: 768px) {
  .media-logo-strip {
    gap: 24px 32px;
  }
  .media-logo-strip img {
    height: 24px;
  }
  .media-cards-grid {
    grid-template-columns: 1fr;
  }
  .media-video-grid {
    grid-template-columns: 1fr;
  }
  .media-card {
    padding: 24px;
  }
  .media-cards-grid {
    grid-template-columns: 1fr;
  }
  .media-card {
    grid-template-columns: 100px 1fr;
    gap: 20px;
    padding: 24px;
  }
}

/* Condition pages: text + image split layout */
.condition-split {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 60px;
}
.condition-split-text {
  flex: 1 1 0%;
  min-width: 0;
}
.condition-split-image {
  flex: 0 0 42%;
  max-width: 42%;
}
.condition-split-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
  object-fit: cover;
}
@media (max-width: 768px) {
  .condition-split {
    flex-direction: column !important;
    gap: 32px;
  }
  .condition-split-image {
    flex: none;
    width: 100%;
    max-width: 100%;
    order: -1;
  }
}

/* Condition overview: photo left + text right — stack on mobile */
@media (max-width: 768px) {
  .section-light[style*="padding:0"] > div[style*="display:flex"] {
    flex-direction: column !important;
    min-height: auto !important;
  }
  .section-light[style*="padding:0"] > div[style*="display:flex"] > div:first-child {
    flex: none !important;
    height: 300px !important;
  }
  .section-light[style*="padding:0"] > div[style*="display:flex"] > div:last-child {
    padding: 40px 24px !important;
  }
}

/* Patient Forms Dropdown */
.section-dark.form-section { position: relative; z-index: 10; overflow: visible; padding-bottom: 140px; }
.section-dark.form-section .container { overflow: visible; }
.form-dropdown { position: relative; display: inline-flex; }
.form-dropdown-toggle {
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  line-height: inherit;
  box-sizing: border-box;
}
.form-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 8px 0;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.form-dropdown.open .form-dropdown-menu { display: block; }
.form-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
  white-space: nowrap;
}
.form-dropdown-menu a:hover {
  background: #f0f0f0;
  color: #111;
}

/* ============================================================
   MOBILE PORTRAIT FIXES — 2026-06-26 (mobile only; desktop untouched)
   Scoped to <=768px so desktop layout is unaffected.
   1) Hero splash: center subject in viewport
   2) Hero H1: allow wrap so name isn't clipped
   3) Footer logo: restore natural aspect ratio (exempt from global 50px height)
   4) page-banner.reversed: force stack + reset padding (beats .reversed specificity)
      + kill horizontal overflow site-wide
   ============================================================ */
@media (max-width: 768px) {
  /* (2) Hero H1 must wrap on narrow screens (overrides inline white-space:nowrap) */
  .hero h1 {
    white-space: normal !important;
    font-size: clamp(2rem, 8vw, 2.6rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: break-word;
  }

  /* (3) Footer wordmark logo: the global `.logo img{height:50px!important}` squishes
     this wide (3.22:1) wordmark. Restore aspect ratio for the footer logo only. */
  .footer-brand .logo img {
    height: auto !important;
    width: auto !important;
    max-width: min(400px, 72vw) !important;
  }

  /* (4) Reversed split banner (Facial Nerve + 9 other pages): the .reversed
     variant out-specifies the base mobile stack rule, leaving row-reverse +
     desktop left padding that pushes copy off the left edge. Force-correct it. */
  .page-banner.reversed {
    flex-direction: column !important;
  }
  .page-banner.reversed .banner-copy,
  .page-banner .banner-copy {
    flex: none !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: calc(var(--header-height) + 28px) !important;
    padding-bottom: 36px !important;
  }
  .page-banner .banner-media {
    min-height: 240px !important;
  }
  .page-banner h1 {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    overflow-wrap: break-word;
  }
}

/* Kill horizontal overflow on mobile (the ~21px bleed from oversized hero/banner) */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100%; }
}

/* ============================================================
   MOBILE PORTRAIT FIXES — round 2 (2026-06-26)
   A) Footer bottom bar: stack copyright + legal links centered,
      one item per line, hide separators, shrink accessibility text
   B) Procedure "What to Expect" split: stop the text column from
      collapsing to a sliver — stack image below, center heading/intro
   ============================================================ */
@media (max-width: 768px) {
  /* (A) Footer bottom bar */
  .footer-bottom-row-top {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .footer-bottom-row-top > span { text-align: center; width: 100%; }
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  .footer-legal span.sep { display: none; }
  .footer-legal a { font-size: 13px; }
  .footer-bottom span { font-size: 13px; }
  .footer-accessibility {
    font-size: 12px;
    line-height: 1.55;
    padding: 4px 8px 0;
  }
  .footer-accessibility br { display: none; }

  /* (B) Procedure "What to Expect" (and same-pattern split sections) */
  .expect-split {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 28px !important;
    padding: 32px 24px !important;
    text-align: center;
  }
  .expect-split > div:first-child { min-width: 0; }
  .expect-split > div:last-child {
    flex: none !important;
    max-width: 100% !important;
    width: 100%;
  }
  /* center the heading + intro paragraph to match site's other sections;
     keep the recovery list left-aligned for readability */
  .expect-split .section-title { text-align: center; }
  .expect-split > div:first-child > p:first-of-type { text-align: center; }
  .expect-split ul { text-align: left; }
}

/* ============================================================
   MOBILE PORTRAIT FIXES — round 3 (2026-06-26)
   Media logo bar (homepage): center each logo. The desktop
   `justify-content:space-between` leaves logos uncentered when
   they wrap one-per-row on mobile. Center them + tame the
   oversized LA Times logo (inline height:100px) on mobile only.
   ============================================================ */
@media (max-width: 768px) {
  /* Shrink the 'as featured in' section so it doesn't dominate the screen, and
     keep the logo box vertically centered. Scoped to the section that contains
     the logo bar. */
  section:has(> .container > .logo-bar) {
    padding: 34px 0 !important;
  }
  section:has(> .container > .logo-bar) > .container {
    padding: 0 16px !important;
  }
  /* the empty .section-header above the logos carries a 60px bottom margin that
     pushed the box off-center — collapse it here */
  section:has(> .container > .logo-bar) .section-header {
    margin-bottom: 0 !important;
  }

  /* Bio brief ('Andre Panossian, MD' + headshot): the inline grid-template of
     1fr 2fr kept this 2-column on mobile, overflowing the name + body text off
     the right edge. Force single column and shrink the oversized portrait so it
     shows the face and doesn't dominate the screen. */
  .bio-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  .bio-portrait {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3;              /* shorter than 3/4 so the head is visible */
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    background-position: center top !important;  /* keep the face in frame */
  }
  /* the bio text column had an inline padding-top:64px that pushed the name down */
  .bio-layout > div[style*="padding-top"] {
    padding-top: 0 !important;
    text-align: left;
  }
  /* keep 'Andre Panossian, MD' on ONE line: shrink the heading to fit narrow
     screens (overrides the inline clamp on the H2) */
  .bio-layout .section-title {
    font-size: clamp(1.45rem, 6.4vw, 1.85rem) !important;
    white-space: nowrap;
    text-align: center !important;
  }
  /* center the 'Full Biography' button under the text, consistent with the rest
     of the homepage's centered mobile sections */
  .bio-layout .btn {
    display: block;
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Bounding box with a DOUBLE outline (outer thicker than inner) around the logos */
  .logo-bar {
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    max-width: 340px;          /* don't span the full width */
    margin: 0 auto;
    padding: 18px 16px !important;
    gap: 14px 12px !important;  /* row-gap col-gap */
    border: 1px solid rgba(0,0,0,0.35);            /* inner (thin) frame */
    outline: 3px solid rgba(0,0,0,0.85);           /* outer (thick) frame */
    outline-offset: 4px;                            /* gap between the two lines */
    background: transparent;
  }
  /* 3 logos per row -> 6 logos wrap onto two lines */
  .logo-bar-item {
    width: calc((100% - 2 * 12px) / 3);
    justify-content: center;
    height: auto;
  }
  .logo-bar-item img {
    height: 28px;
    max-width: 100%;
  }
  /* normalize the oversized LA Times wordmark to match peers on mobile */
  .logo-bar-item img[alt="Los Angeles Times"] {
    height: 34px !important;
  }
}

/* ============================================================
   MOBILE FIXES — round 4 (2026-06-26)
   A) Footer: center all elements on mobile
   B) Stack inline 2-col grids (Benefits boxes etc.) on mobile
   C) media-split (image+text flex): stack, text first, image below
   D) Center headings that have inline text-align:left, on mobile
   E) Related Before & After links: make visible (were white-on-white)
   F) Landscape mobile: apply same safety + centering
   ============================================================ */
@media (max-width: 768px) {
  /* (A) Footer centered */
  .footer-grid { text-align: center; justify-items: center; }
  .footer-col { align-items: center; }
  .footer-col h4.footer-h, .footer-col h5, .footer-col a, .footer-col p { text-align: center; }
  .footer-col-connect { align-items: center; }
  .footer-social-links { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }

  /* (B) Any inline 2+ column grid stacks to one column on mobile */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns:1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* (C) media-split: stack with text first, image below */
  .media-split {
    flex-direction: column !important;
    gap: 24px !important;
    align-items: stretch !important;
  }
  .media-split > div { flex: none !important; max-width: 100% !important; width: 100%; }
  /* image block goes below text */
  .media-split > div:has(img) { order: 2; min-height: 240px; position: relative; }
  .media-split > div:not(:has(img)) { order: 1; }
  .media-split img { position: relative !important; height: auto !important; max-height: 320px; }

  /* (D) Center headings with inline left alignment */
  .section-title[style*="text-align:left"],
  h2[style*="text-align:left"], h3[style*="text-align:left"] {
    text-align: center !important;
  }

  /* (E) Related Before & After links: visible on white bg */
  #related-results a { color: #333 !important; text-decoration: underline; }
  #related-results ul { columns: 1 !important; text-align: center; }
  #related-results h2, #related-results p { text-align: center; }
}

/* (F) Landscape phones (short viewport): apply mobile safety + centering */
@media (max-height: 600px) and (orientation: landscape) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .media-split { flex-direction: column !important; gap: 24px !important; }
  .media-split > div { flex: none !important; max-width: 100% !important; width: 100%; }
  .media-split > div:has(img) { order: 2; }
  .media-split img { position: relative !important; height: auto !important; max-height: 280px; }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
  .section-title[style*="text-align:left"] { text-align: center !important; }
  #related-results a { color: #333 !important; text-decoration: underline; }
}

/* ============================================================
   MOBILE FIXES — round 5 (2026-06-26)
   - Center footer review stars line
   - Disclaimer action icons (Accessibility + Contact) centered BELOW text
   ============================================================ */
@media (max-width: 768px) {
  /* Review stars line centered */
  .footer-reviews-inline { display: flex; justify-content: center; width: 100%; }
  .footer-reviews-inline .footer-review-link { align-items: center; text-align: center; }
  .footer-reviews-inline .review-rating-line { justify-content: center; }

  /* Footer-bottom: stack so the action icons sit centered UNDER the disclaimer text */
  .footer-bottom { flex-direction: column; align-items: center; }
  .footer-bottom-left { width: 100% !important; }
  .footer-bottom-right {
    margin-left: 0 !important;
    margin-top: 16px;
    width: 100%;
    align-self: center !important;
    display: flex;
    justify-content: center;
  }
  .footer-action-buttons { justify-content: center; }
}

/* Related Before & After Results — links visible on white at ALL widths
   (base rule; was previously only fixed inside mobile media query, leaving
   desktop links white-on-white/invisible). Monochrome dark + underline. */
#related-results a { color: #333; text-decoration: underline; }
#related-results a:hover { color: #000; }

/* Link visibility on LIGHT backgrounds (monochrome: --gold resolves to white,
   which is invisible on light bg). Force dark, readable links in light callouts. */
.service-cta a { color: #333; text-decoration: underline; }
.service-cta a:hover { color: #000; }

/* ============================================================
   LTM page: PRS journal-cover render (transparent product shot)
   ------------------------------------------------------------
   Hero banner uses a contained product render, not a cropping
   photo. .banner-media--contain overrides the cover/positioning
   defaults so the full book is always visible on a clean ground.
   ============================================================ */
.page-banner .banner-media--contain {
  background: var(--off-white, #f7f4ef);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.page-banner .banner-media--contain img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.14));
}

/* Why Choose: text left, journal cover right, in a wide container.
   Replaces the prior full-width oversized image. */
.why-choose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: var(--max-width, 1200px);
}
.why-choose-grid .why-choose-text { min-width: 0; }
.why-choose-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.why-choose-media img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.14));
}
.why-choose-media figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #777;
  max-width: 320px;
}

/* Tablet / small desktop: stack and center */
@media (max-width: 900px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .why-choose-media img { max-width: 300px; }
}

/* Mobile portrait + landscape: keep the book render fully contained
   (never let the hero crop it) and cap its footprint sensibly. */
@media (max-width: 768px) {
  .page-banner .banner-media--contain {
    min-height: 0 !important;
    padding: 28px 24px;
  }
  .page-banner .banner-media--contain img {
    max-height: 48vh;
    width: auto;
    max-width: 80%;
  }
  .why-choose-media img { max-width: 240px; }
}

/* Short / landscape phones: limit hero render height to viewport height */
@media (max-width: 900px) and (orientation: landscape) {
  .page-banner .banner-media--contain img {
    max-height: 60vh;
    max-width: 55%;
  }
}

/* LTM hero: media on the LEFT of the H1 copy (DOM order: media, copy).
   Base .page-banner is row, so media renders left, copy right. We just
   correct the copy padding (base copy padding assumes it hugs the left edge). */
.page-banner--media-left .banner-copy {
  padding-left: 48px;
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}
@media (max-width: 900px) {
  .page-banner--media-left {
    flex-direction: column !important;
  }
  .page-banner--media-left .banner-copy {
    flex: none !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* ============================================================
   LTM page enhancements: technique figure, refinement callout,
   comparison table. All responsive (portrait + landscape).
   ============================================================ */

/* Technique illustration */
.ltm-technique-figure {
  margin: 48px auto 0;
  max-width: 860px;
  text-align: center;
}
.ltm-technique-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.ltm-technique-figure figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #666;
}

/* "What makes the Panossian technique different" callout */
.ltm-refinement {
  margin: 40px auto 0;
  max-width: 860px;
  background: #fff;
  border-left: 4px solid #c9a96e;
  padding: 28px 32px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.ltm-refinement h3 {
  font-family: var(--font-heading, 'Gloock', serif);
  font-weight: 400;
  color: #333;
  font-size: 1.35rem;
  margin: 0 0 16px;
}
.ltm-refinement ul {
  margin: 0;
  padding-left: 20px;
}
.ltm-refinement li {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 10px;
}
.ltm-refinement li:last-child { margin-bottom: 0; }

/* Why Choose media: photo variant fills the column (not contained small) */
.why-choose-media--photo img {
  max-width: 100%;
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  filter: none;
}

/* Comparison table */
.ltm-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ltm-compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.95rem;
  min-width: 640px;
}
.ltm-compare th,
.ltm-compare td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #e8e0d4;
  vertical-align: top;
  line-height: 1.55;
  color: #333;
}
.ltm-compare thead th {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.ltm-compare thead th:first-child { background: #2a2a2a; }
.ltm-compare tbody th[scope="row"] {
  background: #f7f4ef;
  font-weight: 600;
  color: #1a1a1a;
  width: 22%;
}
.ltm-compare tbody tr:nth-child(even) td { background: #faf8f4; }
.ltm-compare td:nth-child(2) { border-left: 3px solid #c9a96e; }

@media (max-width: 768px) {
  .ltm-refinement { padding: 22px 20px; }
  .ltm-refinement h3 { font-size: 1.2rem; }
  .ltm-compare { font-size: 0.9rem; }
  .ltm-compare th, .ltm-compare td { padding: 11px 12px; }
}

/* LTM: collapse the inline two-column flex blocks on mobile so body
   text isn't squeezed into one-word-per-line columns. */
@media (max-width: 768px) {
  /* the "What Is" and "What to Expect" two-column rows */
  section.section [style*="display:flex"][style*="gap:60px"][style*="align-items:flex-start"] {
    flex-direction: column !important;
    gap: 28px !important;
  }
  /* their padded wrappers */
  section.section > div[style*="padding:60px 48px"] {
    padding: 48px 24px !important;
  }
  /* make sure the comparison table scrolls horizontally instead of cropping */
  .ltm-compare-wrap {
    overflow-x: auto;
    max-width: 100%;
  }
}
/* Subtle scroll affordance hint for the comparison table on narrow screens */
@media (max-width: 700px) {
  .ltm-compare-wrap { position: relative; }
  .ltm-compare-wrap::after {
    content: "→ scroll";
    position: sticky;
    right: 0;
    display: block;
    text-align: right;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: #b08d57;
    padding: 6px 4px 0;
  }
}

/* LTM comparison table: cleaner narrow-screen behavior — shrink so two
   columns fit, keep horizontal scroll for the third, and add a right-edge
   fade so the overflow reads as intentional rather than a crop bug. */
@media (max-width: 700px) {
  .ltm-compare-wrap {
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
            mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .ltm-compare { min-width: 560px; font-size: 0.84rem; }
  .ltm-compare th, .ltm-compare td { padding: 9px 10px; }
  .ltm-compare tbody th[scope="row"] { width: 30%; }
  .ltm-compare-wrap::after { content: "→ swipe for Gracilis column"; }
}
@media (max-width: 430px) {
  .ltm-compare { min-width: 520px; }
}
/* Tidy the gold callout's left indent on mobile */
@media (max-width: 768px) {
  .ltm-refinement ul { padding-left: 18px; }
}

/* ============================================================
   Accessibility menu + user-controlled a11y modes (ADA / WCAG)
   ============================================================ */
.a11y-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 270px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #d8cfc0;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  padding: 16px 18px 18px;
  z-index: 99999;
  display: none;
  font-size: 15px;
  color: #1a1a1a;
}
.a11y-panel.open { display: block; }
.a11y-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-heading, 'Gloock', serif);
  font-size: 1.1rem; margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.a11y-close {
  background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #666; padding: 0 4px;
}
.a11y-opts { display: grid; gap: 4px; margin-bottom: 12px; }
.a11y-opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 6px; cursor: pointer;
}
.a11y-opt:hover { background: #f6f2ea; }
.a11y-opt input { width: 18px; height: 18px; cursor: pointer; flex: 0 0 auto; }
.a11y-reset {
  width: 100%; padding: 9px; background: #1a1a1a; color: #fff; border: none; border-radius: 6px;
  cursor: pointer; font-size: 0.9rem; letter-spacing: 0.03em;
}
.a11y-reset:hover { background: #333; }
.a11y-note { font-size: 0.78rem; color: #777; margin: 12px 0 0; line-height: 1.5; }
.a11y-note a { color: #b08d57; }
@media (max-width: 600px) { .a11y-panel { right: 12px; left: 12px; width: auto; bottom: 80px; } }

/* Keyboard focus visibility (WCAG 2.4.7) — applies always, helps everyone */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #1d6fb8 !important;
  outline-offset: 2px !important;
}

/* ---- User a11y modes (toggled on <html>) ---- */
/* High contrast: force a true black canvas with light text on EVERYTHING,
   including cards, buttons, inputs, and section backgrounds, to prevent wash-out. */
html.a11y-contrast,
html.a11y-contrast body,
html.a11y-contrast section,
html.a11y-contrast .section,
html.a11y-contrast .site-header,
html.a11y-contrast .site-footer,
html.a11y-contrast .footer-bottom-bar,
html.a11y-contrast .main-nav,
html.a11y-contrast .mobile-nav,
html.a11y-contrast .card,
html.a11y-contrast .condition-card,
html.a11y-contrast .procedure-card,
html.a11y-contrast .procedure-card-header,
html.a11y-contrast .procedure-card-body,
html.a11y-contrast .banner-copy,
html.a11y-contrast [class*="section-"],
html.a11y-contrast [style*="background"] {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
}
/* All text white regardless of inline color */
html.a11y-contrast *:not(.a11y-panel):not(.a11y-panel *) {
  color: #fff !important;
  border-color: #fff !important;
}
/* Links: bright yellow + underline for distinction */
html.a11y-contrast a:not(.a11y-panel a) { color: #ffe066 !important; text-decoration: underline !important; }
/* Buttons / CTAs: visible outlined style instead of washed gold */
html.a11y-contrast .btn, html.a11y-contrast .nav-cta, html.a11y-contrast button:not(.a11y-close):not(.a11y-reset),
html.a11y-contrast .footer-action-btn, html.a11y-contrast .btn-dark, html.a11y-contrast .btn-lg {
  background: #000 !important; color: #ffe066 !important; border: 2px solid #ffe066 !important;
}
/* Form fields visible */
html.a11y-contrast input, html.a11y-contrast textarea, html.a11y-contrast select {
  background: #000 !important; color: #fff !important; border: 1px solid #fff !important;
}
/* SVG icons / logos: make them visible (they're often white-on-light or colored) */
html.a11y-contrast svg { fill: #fff !important; stroke: #fff !important; }
html.a11y-contrast img { filter: brightness(0) invert(1) !important; }
/* The accessibility panel itself stays light/normal */
html.a11y-contrast .a11y-panel { filter: none !important; background: #fff !important; }
html.a11y-contrast .a11y-panel *, html.a11y-contrast .a11y-panel .a11y-opt span { color: #1a1a1a !important; border-color: #ccc !important; }
html.a11y-contrast .a11y-panel img { filter: none !important; }

/* Large text: scale the ROOT html font-size so all rem-based text grows (base is 16px). */
html.a11y-large-text { font-size: 20px !important; }
html.a11y-xl-text { font-size: 23px !important; }
html.a11y-large-text body, html.a11y-xl-text body { font-size: 1rem !important; }
html.a11y-large-text p, html.a11y-large-text li, html.a11y-xl-text p, html.a11y-xl-text li { line-height: 1.85 !important; }

html.a11y-readable-font body, html.a11y-readable-font p, html.a11y-readable-font li,
html.a11y-readable-font h1, html.a11y-readable-font h2, html.a11y-readable-font h3, html.a11y-readable-font h4, html.a11y-readable-font a, html.a11y-readable-font span {
  font-family: Arial, Helvetica, system-ui, sans-serif !important;
  letter-spacing: 0.01em;
}

html.a11y-highlight-links a {
  text-decoration: underline !important;
  background: #fff3b0;
  color: #1a1a1a !important;
  padding: 0 2px;
  border-radius: 2px;
}
html.a11y-highlight-links.a11y-contrast a { background: #ffe066 !important; color: #000 !important; }

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

html.a11y-big-cursor, html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 4l30 18-13 3 8 15-5 2-8-15-12 9z' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 6 4, auto !important;
}

/* Respect OS-level reduced-motion preference automatically */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Fix: keep the a11y panel fully readable even in high-contrast / highlight modes */
html.a11y-contrast .a11y-panel,
html.a11y-highlight-links .a11y-panel { filter: none; background: #fff !important; }
html.a11y-contrast .a11y-panel .a11y-panel-head span,
html.a11y-contrast .a11y-panel .a11y-opt span { color: #1a1a1a !important; }
html.a11y-contrast .a11y-reset,
html.a11y-highlight-links .a11y-reset { background: #1a1a1a !important; color: #fff !important; }
html.a11y-contrast .a11y-reset:hover { background: #333 !important; }
/* Don't let the highlight-links background bleed into the panel's own links */
html.a11y-highlight-links .a11y-panel a { background: none !important; color: #b08d57 !important; padding: 0; }
html.a11y-contrast .a11y-panel a { background: none !important; color: #1d6fb8 !important; }
/* Improve highlighted-link contrast in dark mode: brighter bg, dark text */
html.a11y-highlight-links.a11y-contrast a { background: #ffe066 !important; color: #000 !important; }

/* Center medical-review / surgery-disclaimer blocks sitewide (was left-aligned by default) */
.ymyl-disclosure { text-align: center; }
.ymyl-disclosure p { text-align: center; }
