/* =====================================================
   BETHESDA IMPLANT DENTIST - MASTER STYLESHEET
   Premium dental specialist website
   Mobile-first responsive | System fonts | Lighthouse 95+
   ===================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --navy: #0F2840;
  --navy-mid: #1B3A5C;
  --navy-light: #2A5580;
  --gold: #9A7B3F;          /* WCAG AA compliant on white (4.56:1) */
  --gold-hover: #7D6432;    /* Darker gold for hover states (5.8:1) */
  --gold-accent: #B8935A;   /* Decorative only - not for text on white */
  --gold-light: #D4B078;
  --gold-on-dark: #D4B078;  /* WCAG AA compliant on navy (7.5:1) - use for gold text on dark backgrounds */
  --gold-pale: #F5EEE3;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --warm-white: #FAF8F5;
  --cream: #FDF9F3;
  --text-dark: #1A1A1A;
  --text-body: #2D2D2D;     /* Improved contrast from #3A3A3A */
  --text-muted: #4A5260;    /* Improved contrast from #6B7280 (5.7:1 on white) */
  --text-on-gold: #1A1A1A;  /* Dark text on gold backgrounds */
  --border: #D5D9DE;
  --border-light: #E8EAED;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.16);
  --shadow-gold: 0 8px 32px rgba(154, 123, 63, 0.15);
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-navy: linear-gradient(135deg, #0B1F33 0%, #0F2840 30%, #1B3A5C 70%, #2A5580 100%);
  --gradient-gold: linear-gradient(135deg, #9A7B3F, #B8935A, #D4B078);
  --gradient-warm: linear-gradient(180deg, #FAF8F5 0%, #F5EEE3 100%);
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0s; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--text-dark); }
.site-footer strong { color: var(--white); }

/* ===== ACCESSIBILITY ===== */
.skip-link, .skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  z-index: 10002;
  border-radius: var(--radius);
}
.skip-link:focus, .skip-to-content:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ===== CONTAINER ===== */
.container,
.intro-container,
.services-container,
.why-choose-container,
.about-preview-container,
.costs-container,
.faq-container,
.legal-container,
.patient-stories-container,
.cta-section-container,
.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
/* Legacy header class fallbacks - kept for any residual markup */
.header-flex,
.header-content,
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

/* Logo */
.logo-section, .site-branding, .site-logo, .logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}
.site-name, .site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.tagline, .site-tagline {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.logo-section a, .site-branding a, .logo a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
.main-nav, .site-nav, .nav-menu {
  display: none;
}
.main-nav ul, .site-nav ul, .nav-menu ul, .nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}
.main-nav a, .site-nav a, .nav-menu a, .nav-link {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 0;
  display: block;
  transition: color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .site-nav a:hover, .nav-link:hover { color: var(--gold-light); }

/* Mobile menu toggle - checkbox hack */
.menu-toggle, .mobile-menu-checkbox { display: none; }
.menu-label, .nav-toggle-label, .hamburger-toggle, .mobile-menu-toggle, .nav-hamburger, .nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1001;
  gap: 5px;
}
.menu-label span, .hamburger-icon span,
.nav-toggle-label span, .hamburger-toggle span,
.mobile-menu-toggle span, .nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle:checked ~ .main-nav,
.menu-toggle:checked ~ .site-nav,
.menu-toggle:checked ~ .nav-menu,
.mobile-menu-checkbox:checked ~ .main-nav,
.mobile-menu-checkbox:checked ~ .site-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 40, 64, 0.98);
  padding: 1.5rem;
  border-top: 1px solid rgba(184, 147, 90, 0.2);
  z-index: 999;
}
.menu-toggle:checked ~ .menu-label span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle:checked ~ .menu-label span:nth-child(2) { opacity: 0; }
.menu-toggle:checked ~ .menu-label span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Header CTAs */
.header-actions, .header-cta, .header-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cta-call, .phone-link, .large-phone {
  display: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@media (min-width: 1200px) {
  .menu-label, .nav-toggle-label, .hamburger-toggle, .mobile-menu-toggle, .nav-hamburger, .nav-toggle {
    display: none;
  }
  .main-nav, .site-nav, .nav-menu {
    display: flex;
    align-items: center;
  }
  .main-nav ul, .site-nav ul, .nav-menu ul, .nav-list {
    flex-direction: row;
    gap: 0.125rem;
    align-items: center;
  }
  .main-nav a, .site-nav a, .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
    position: relative;
  }
  .main-nav a::after, .site-nav a::after, .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
  }
  .main-nav a:hover::after, .site-nav a:hover::after, .nav-link:hover::after { width: 100%; }
  .cta-call, .phone-link, .large-phone { display: inline-block; }
}

/* =====================================================
   BUTTONS / CTAs
   ===================================================== */
.cta-button, .btn, .contact-button, .cta-button-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 48px;
  text-align: center;
  line-height: 1.3;
}
.cta-primary, .btn-primary {
  background: var(--gold-accent);
  color: var(--navy);
  border-color: var(--gold-accent);
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
}
.cta-primary:hover, .btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(184, 147, 90, 0.4);
  transform: translateY(-2px);
  color: var(--navy);
}
.cta-secondary, .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.cta-secondary:hover, .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.cta-large, .btn-large, .cta-button-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  min-height: 54px;
}
.btn-small, .cta-button.small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  min-height: 40px;
}
/* Dark section button variants */
.section--bg-primary .cta-button,
.cta-section .cta-button,
.cta-section .btn {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.cta-phone {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}
.cta-phone:hover { color: var(--gold-light); }

/* =====================================================
   HERO SECTION (Home)
   ===================================================== */
.hero, .hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 40, 64, 0.55) 0%,
    rgba(15, 40, 64, 0.75) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 2rem;
}
.hero h1, .hero-section h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  color: var(--white);
  font-weight: 400;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.12;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-subheading, .hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas, .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: gentleBounce 2.5s ease-in-out infinite;
  color: rgba(255,255,255,0.6);
}
.scroll-indicator svg { width: 28px; height: 28px; }
@keyframes gentleBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   PAGE HERO (Inner pages)
   ===================================================== */
.page-hero, .page-header,
.consultation-hero, .costs-hero, .candidate-hero,
.timeline-hero, .hero-bone-grafting, .hero-implant-dentures,
.hero-single-tooth {
  position: relative;
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  overflow: hidden;
}
.page-hero::before, .page-header::before,
.consultation-hero::before, .costs-hero::before,
.candidate-hero::before, .timeline-hero::before,
.hero-bone-grafting::before, .hero-implant-dentures::before,
.hero-single-tooth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(184,147,90,0.06)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(184,147,90,0.04)" stroke-width="0.5"/></svg>');
  background-size: 300px;
  opacity: 0.5;
}
.page-hero h1, .page-header h1,
.consultation-hero h1, .costs-hero h1,
.candidate-hero h1, .timeline-hero h1,
.hero-bone-grafting h1, .hero-implant-dentures h1,
.hero-single-tooth h1 {
  position: relative;
  color: var(--white);
  font-weight: 400;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  max-width: 800px;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.page-hero p, .page-header .lead,
.page-hero .lead, .page-hero .hero-subtitle {
  position: relative;
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; }

/* Breadcrumbs */
.breadcrumbs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumbs a { color: var(--gold-light); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .separator { color: rgba(255,255,255,0.4); }

/* =====================================================
   INTRO / CONTENT SECTIONS
   ===================================================== */
.intro, .intro-section, .introduction, .content-section, .section, .page-content, .main-content {
  padding: 5rem 1.5rem;
}
.intro-container, .content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.intro h2, .intro-section h2 { text-align: center; margin-bottom: 2rem; }
.intro p, .intro-section p { font-size: 1.0625rem; color: var(--text-body); line-height: 1.8; }

.section-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .section-intro-grid { grid-template-columns: 1fr 1fr; }
}
.intro-text, .intro-text-block { font-size: 1.0625rem; line-height: 1.8; }
.intro-image { border-radius: var(--radius-lg); overflow: hidden; }
.intro-image img { width: 100%; height: auto; object-fit: cover; }

/* Alternate background sections */
.alternate-bg, .section--bg-alt {
  background: var(--off-white);
}

/* =====================================================
   SERVICE CARDS
   ===================================================== */
.services, .services-grid + .container {
  padding: 5rem 1.5rem;
  background: var(--off-white);
}
.services h2 { text-align: center; margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.service-card img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  background: var(--off-white);
}
.service-card h3 {
  padding: 1.5rem 1.5rem 0;
  color: var(--navy);
  font-size: 1.25rem;
}
.service-card p {
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}
.service-link, .inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1.5rem 1.5rem;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  transition: all var(--transition);
  font-family: var(--font);
}
.service-link:hover, .inline-link:hover {
  color: var(--gold-hover);
  gap: 0.6rem;
}
.service-link::after { content: '\2192'; }

/* =====================================================
   WHY CHOOSE / DIFFERENTIATORS
   ===================================================== */
.why-choose {
  padding: 5rem 1.5rem;
}
.why-choose h2 { text-align: center; margin-bottom: 3rem; }
.differentiators {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 640px) { .differentiators { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .differentiators { grid-template-columns: repeat(3, 1fr); } }

.differentiator, .highlight-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}
.differentiator::before, .highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.differentiator:hover, .highlight-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.differentiator h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.75rem; }
.differentiator p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* =====================================================
   ABOUT PREVIEW
   ===================================================== */
.about-preview {
  padding: 5rem 1.5rem;
  background: var(--warm-white);
}
.about-preview-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) { .about-preview-container { grid-template-columns: 1fr 1.2fr; } }
.about-image, .philosophy-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img, .philosophy-image img { width: 100%; height: auto; }
.about-content { }
.about-content h2, .about-content h3 { margin-bottom: 1rem; }
.about-content p { line-height: 1.8; }

/* Credential logos */
.credential-logos, .credentials-logos, .credentials-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.credential-logos img, .credentials-logos img, .credentials-list img {
  height: 48px;
  width: auto;
  opacity: 0.65;
  transition: opacity var(--transition);
  filter: grayscale(30%);
}
.credential-logos img:hover, .credentials-logos img:hover, .credentials-list img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* =====================================================
   PATIENT STORIES / RESULTS
   ===================================================== */
.patient-stories-preview, .patient-experience-section {
  padding: 5rem 1.5rem;
}
.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 640px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stories-grid { grid-template-columns: repeat(3, 1fr); } }

.story-card, .case-study {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.story-card:hover, .case-study:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.case-image img, .story-card img {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
}
.case-content-grid, .case-details, .case-narrative {
  padding: 1.5rem;
}
.case-header, .case-subtitle { font-size: 0.85rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 0.5rem; }
.story-card h3, .case-study h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.case-timeline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.case-principles { font-size: 0.95rem; color: var(--text-body); line-height: 1.7; }

/* =====================================================
   CTA SECTIONS
   ===================================================== */
.cta-section, .cta-box, .page-cta, .page-cta-bottom, .mid-page {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}
.cta-section h2, .cta-box h2, .page-cta h2, .cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.cta-section p, .cta-box p, .cta-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-section .cta-button, .cta-box .cta-button, .cta-actions .cta-button,
.page-cta .cta-button, .cta-section .btn {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.cta-actions, .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.cta-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* Links on dark backgrounds - contrast fix */
.cta-section a, .cta-box a, .page-cta a, .page-cta-bottom a, .mid-page a {
  color: var(--gold-light, #e8d5a8);
}
.cta-section a:hover, .cta-box a:hover, .page-cta a:hover, .page-cta-bottom a:hover, .mid-page a:hover {
  color: var(--white);
}
.cta-section a.cta-button, .cta-box a.cta-button,
.page-cta a.cta-button, .cta-section a.btn {
  color: var(--navy);
}
.cta-section a.cta-button:hover, .cta-box a.cta-button:hover,
.page-cta a.cta-button:hover, .cta-section a.btn:hover {
  color: var(--navy);
}
.page-hero a, .page-header a,
.consultation-hero a, .costs-hero a,
.candidate-hero a, .timeline-hero a,
.hero-bone-grafting a, .hero-implant-dentures a,
.hero-single-tooth a {
  color: rgba(255,255,255,0.9);
}
.page-hero a:hover, .page-header a:hover,
.consultation-hero a:hover, .costs-hero a:hover,
.candidate-hero a:hover, .timeline-hero a:hover {
  color: var(--white);
}
.serving-bethesda a {
  color: var(--gold-light, #e8d5a8);
}
.serving-bethesda a:hover {
  color: var(--white);
}
/* Breadcrumb links on dark hero */
.breadcrumbs a, .breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
}
.breadcrumbs a:hover, .breadcrumb a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-section, .faq-page, .faq-preview {
  padding: 4rem 1.5rem;
}
.faq-section h2, .faq-page h2, .faq-category h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.faq-category {
  margin-bottom: 3rem;
}
.faq-category h2, .faq-category h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold-pale);
}
.faq-grid, .faq-accordion, .faq-content {
  max-width: 860px;
  margin: 0 auto;
}
details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition);
}
details[open] {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(184, 147, 90, 0.1);
}
summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.4;
  transition: background-color var(--transition);
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: '+';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-pale);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  transition: all var(--transition);
}
details[open] > summary::before {
  content: '\2212';
  background: var(--gold);
  color: var(--white);
  transform: rotate(0deg);
}
summary:hover { background: var(--off-white); }
.faq-answer, .faq-item {
  padding: 0 1.5rem 1.5rem 3.5rem;
  color: var(--text-body);
  line-height: 1.8;
  font-size: 0.975rem;
}
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-answer a:hover { color: var(--gold-hover); }
.faq-question { display: contents; }

/* =====================================================
   COSTS PAGE
   ===================================================== */
.cost-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
}
.cost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
}
.cost-table th {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}
.cost-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: var(--off-white); }
.cost-factors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 640px) { .cost-factors { grid-template-columns: repeat(2, 1fr); } }
.factor {
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
}
.factor h3, .factor h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }

.costs-preview {
  padding: 4rem 1.5rem;
  background: var(--off-white);
  text-align: center;
}

/* =====================================================
   CANDIDACY PAGE
   ===================================================== */
.candidate-characteristics, .conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 640px) { .candidate-characteristics, .conditions-grid { grid-template-columns: repeat(2, 1fr); } }
.characteristic, .condition-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.characteristic:hover, .condition-card:hover {
  box-shadow: var(--shadow-md);
}
.condition-card h3, .characteristic h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.myth-busting { margin: 3rem 0; }
.myth {
  padding: 1.5rem;
  background: var(--gold-pale);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.myth h3, .myth h4 { color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; }
.candidacy { padding: 1rem 0; }

/* =====================================================
   TIMELINE PAGE
   ===================================================== */
.timeline-phases {
  position: relative;
  padding-left: 2rem;
  margin: 3rem 0;
}
.timeline-phases::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--navy-mid));
  border-radius: 3px;
}
.phase {
  position: relative;
  padding: 0 0 3rem 2rem;
}
.phase:last-child { padding-bottom: 0; }
.phase::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
  transform: translateX(-5.5px);
}
.phase h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.phase-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.phase-duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: inline-block;
  background: var(--gold-pale);
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
}
.phase p { color: var(--text-muted); line-height: 1.7; }

.timeline-examples, .timeline-factors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 640px) { .timeline-examples, .timeline-factors { grid-template-columns: repeat(2, 1fr); } }
.example {
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.experience-section, .philosophy-section, .education-section, .recognition-section, .serving-section {
  padding: 5rem 1.5rem;
}
.experience-section:nth-child(even), .education-section, .serving-section { background: var(--off-white); }
.experience-content, .recognition-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) { .experience-content, .recognition-content { grid-template-columns: 1fr 1fr; } }
.experience-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.experience-highlights > div {
  padding: 1.25rem;
  background: var(--gold-pale);
  border-radius: var(--radius);
  text-align: center;
}
.experience-highlights strong {
  display: block;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.experience-intro { max-width: 800px; margin: 0 auto 3rem; text-align: center; }
.dr-approach { line-height: 1.8; }

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) { .philosophy-grid { grid-template-columns: 1fr 1.2fr; } }
.philosophy-text { line-height: 1.8; }

.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 640px) { .education-grid { grid-template-columns: repeat(2, 1fr); } }
.education-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.education-details {
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.education-details ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}
.education-details ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.education-card img { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.education-details h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.institution { font-size: 0.85rem; color: var(--gold); font-weight: 600; }

.recognition-grid { max-width: 1000px; margin: 0 auto; }
.recognition-grid > p { text-align: center; margin-bottom: 2rem; line-height: 1.8; }
.recognition-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .recognition-cards { grid-template-columns: repeat(2, 1fr); } }
.recognition-cards .highlight-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}
.recognition-cards .highlight-card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.service-area, .service-communities {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* =====================================================
   CONSULTATION / CONTACT
   ===================================================== */
.consultation-steps, .treatment-process, .preparation-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 640px) { .consultation-steps, .preparation-guide { grid-template-columns: repeat(2, 1fr); } }
.step, .preview-step, .prep-item {
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}
.consultation-preview { max-width: 800px; margin: 0 auto 3rem; }

.contact-section, .contact-box, .contact-card, .contact-info-grid {
  padding: 3rem 2rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.contact-methods, .contact-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item { padding: 0.75rem 0; }
.hours { font-size: 0.95rem; color: var(--text-muted); }

/* Form */
.form-section, .jotform-container {
  max-width: 700px;
  margin: 3rem auto;
}
.form-notice {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 1rem 0;
  font-style: italic;
}
.form-footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}
.form-footer a { color: var(--gold); text-decoration: underline; }

/* =====================================================
   BONE GRAFTING / COMPLEX CASES
   ===================================================== */
.grafting-types, .types, .procedure {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 640px) { .grafting-types, .types { grid-template-columns: repeat(2, 1fr); } }
.sinus-lift, .bone-loss, .custom-abutments, .when-not-needed, .who-benefits, .comparison {
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.note {
  padding: 1.25rem 1.5rem;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* =====================================================
   VIDEO SECTION
   ===================================================== */
.video-section, .video-intro {
  padding: 4rem 1.5rem;
  text-align: center;
}
.video-section video, .video-intro video {
  max-width: 800px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-cta { margin-top: 2rem; }

/* =====================================================
   TABLE OF CONTENTS
   ===================================================== */
.table-of-contents {
  background: var(--off-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.table-of-contents h2, .table-of-contents h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.table-of-contents ul { padding-left: 1rem; }
.table-of-contents li {
  margin-bottom: 0.5rem;
  list-style: none;
  padding-left: 1rem;
  position: relative;
}
.table-of-contents li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.table-of-contents a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  line-height: 1.8;
}
.legal-content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--navy); }
.legal-content h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.legal-content li {
  list-style: disc;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.legal-content ol li { list-style: decimal; }
.legal-content a { color: var(--gold); text-decoration: underline; }

.hipaa-placeholder {
  padding: 3rem;
  background: var(--gold-pale);
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
  margin: 2rem 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 5rem 1.5rem 2rem;
}
.footer-grid, .footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
@media (min-width: 640px) { .footer-grid, .footer-content { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid, .footer-content { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer-column, .footer-section, .footer-contact, .footer-quicklinks, .footer-services, .footer-legal, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-column h3, .footer-section h3, .footer-column h4, .footer-section h4,
.footer-contact h3, .footer-quicklinks h3, .footer-services h3, .footer-legal h3,
.footer-links h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.footer-column a, .footer-section a, .footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
  padding: 0.15rem 0;
}
.footer-column a:hover, .footer-section a:hover, .footer-links a:hover {
  color: var(--gold-light);
}
.footer-contact p, .footer-section p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.footer-contact a { color: var(--gold-light); }

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.footer-cta h3 { color: var(--white); margin-bottom: 1rem; font-weight: 400; }
.footer-cta .cta-button, .footer-cta .btn {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* Footer bottom */
.footer-bottom, .footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center { text-align: center; }
.subtitle { font-size: 0.85rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.large { font-size: 1.15rem; }
.image-caption { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; font-style: italic; display: none; /* captions hidden for launch */ }

/* =====================================================
   RESPONSIVE REFINEMENTS
   ===================================================== */
@media (max-width: 639px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .cta-button { width: 100%; }
  .header-actions .cta-primary { display: none; }
  .experience-highlights { grid-template-columns: 1fr; }
  .cost-table-wrapper { margin: 1rem 0; overflow-x: auto; }
  .cost-table { font-size: 0.85rem; }
  .cost-table th, .cost-table td { padding: 0.75rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .page-hero h1, .page-header h1 { font-size: 2.75rem; }
}

/* =====================================================
   LOGO STYLES
   ===================================================== */
.header-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link:hover { opacity: 0.9; }
.footer-logo-img {
  height: auto;
  width: 220px;
  max-width: 100%;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  object-fit: contain;
}
.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-logo-section .footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* =====================================================
   DESIGN UPGRADES - SECTION DIVIDERS & DECORATIONS
   ===================================================== */
.section-label, .section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-family: var(--font);
  position: relative;
  padding-left: 2.5rem;
  padding-right: 0.5rem;
}
.section-label::before, .section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--gradient-gold);
  transform: translateY(-50%);
}
/* Centered section labels (used in text-center contexts) */
.section-label[style*="text-align:center"],
.section-label[style*="text-align: center"] {
  padding-left: 0;
}
.section-label[style*="text-align:center"]::before,
.section-label[style*="text-align: center"]::before {
  display: none;
}
/* WCAG AA contrast: gold text on dark backgrounds must use --gold-on-dark (7.5:1) not --gold (4.1:1) */
.serving-bethesda .section-label,
.cta-section .section-label,
.hero .section-label,
[class*="navy"] .section-label,
[style*="background: var(--gradient-navy)"] .section-label {
  color: var(--gold-on-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.7;
  font-family: var(--font);
}

/* Gold accent line under section headings */
.services h2::after,
.why-choose h2::after,
.patient-stories-preview h2::after,
.faq-preview h2::after,
.faq-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 1rem auto 0;
  border-radius: 3px;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 3rem auto 0;
}
@media (min-width: 640px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  text-align: center;
  padding: 1.75rem 1rem;
  background: rgba(15, 40, 64, 0.4);
  backdrop-filter: blur(8px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}

/* Trust badges row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
}
.trust-badge svg, .trust-badge-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Image with overlay text cards */
.image-text-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .image-text-split { grid-template-columns: 1fr 1fr; }
  .image-text-split.reverse { direction: rtl; }
  .image-text-split.reverse > * { direction: ltr; }
}
.image-text-split .split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.image-text-split .split-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}
.image-text-split .split-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.split-content h2,
.split-content h3 {
  margin-bottom: 1rem;
}
.split-content p {
  line-height: 1.8;
  color: var(--text-body);
}

/* Bethesda location callout */
.bethesda-callout {
  background: var(--gradient-warm);
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.bethesda-callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-gold);
}
.bethesda-callout h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.bethesda-callout p {
  color: var(--text-body);
  line-height: 1.7;
  font-size: 0.975rem;
}

/* Enhanced service cards */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover::before { opacity: 1; }

/* Enhanced differentiator icons */
.differentiator-icon, .diff-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-pale), #F0E6D4);
  color: var(--gold);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.differentiator-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

/* Photo gallery grid for pages */
.photo-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}
.photo-feature img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
}
.photo-feature figcaption {
  display: none; /* captions hidden for launch */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(15, 40, 64, 0.85));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Serving Bethesda section enhanced */
.serving-bethesda {
  background: var(--gradient-navy);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.serving-bethesda::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,147,90,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.serving-bethesda h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.serving-bethesda p {
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.community-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}
.community-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.community-tag.primary {
  background: rgba(184,147,90,0.2);
  border-color: rgba(184,147,90,0.3);
  color: var(--gold-light);
  font-weight: 700;
}
a.community-tag {
  text-decoration: none;
  transition: all var(--transition);
}
a.community-tag:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  transform: translateY(-2px);
}
a.community-tag.primary:hover {
  background: rgba(184,147,90,0.35);
  border-color: rgba(184,147,90,0.5);
  color: var(--gold-light);
}

/* Content section with side image */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .content-with-image { grid-template-columns: 1.3fr 0.7fr; }
  .content-with-image.image-left { grid-template-columns: 0.7fr 1.3fr; }
}
.content-sidebar-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 6rem;
}
.content-sidebar-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Enhanced page hero with background image support */
.page-hero-with-image {
  position: relative;
  padding: 12rem 1.5rem 6rem;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 40, 64, 0.7) 0%, rgba(15, 40, 64, 0.85) 100%);
}
.page-hero-with-image h1,
.page-hero-with-image p,
.page-hero-with-image .breadcrumbs {
  position: relative;
  z-index: 1;
}

/* Testimonial/quote styling */
.patient-quote {
  position: relative;
  padding: 2rem 2rem 2rem 3.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold-accent);
  margin: 2rem 0;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-body);
}
.patient-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--gold-accent);
  font-family: var(--font-heading);
  line-height: 1;
}
.patient-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

/* Numbered process steps enhanced */
.process-steps {
  counter-reset: step;
  max-width: 800px;
  margin: 2rem auto;
}
.process-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.process-step p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer enhancement */
.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 640px) { .footer-container { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-container { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

/* =====================================================
   FLOATING CONTACT & ACCESSIBILITY SIDEBAR
   Always visible - no toggle required
   ===================================================== */
.floating-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
/* Hide the toggle button - all items always visible */
.widget-toggle {
  display: none;
}
.widget-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.widget-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--navy);
  font-size: 0;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.widget-item span {
  position: absolute;
  right: calc(100% + 0.625rem);
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4px);
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.widget-item:hover span {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.widget-item:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.widget-item:hover svg { stroke: var(--white); }
.widget-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--navy);
  transition: stroke var(--transition);
}
/* Call button gets gold accent */
.widget-item[aria-label="Call our office"] {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
}
.widget-item[aria-label="Call our office"] svg { stroke: var(--navy); }
.widget-item[aria-label="Call our office"]:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.widget-a11y { background: var(--gold-pale); border-color: var(--gold-pale); }

/* =====================================================
   ACCESSIBILITY MODE STYLES
   ===================================================== */
/* High Contrast Mode */
body.a11y-high-contrast {
  --text-body: #000000;
  --text-muted: #1a1a1a;
  --text-dark: #000000;
  --border: #000000;
  --bg-off-white: #ffffff;
  --bg-warm: #ffffff;
}
body.a11y-high-contrast * {
  border-color: #000000 !important;
}
body.a11y-high-contrast a {
  color: #0000EE !important;
  text-decoration: underline !important;
}
body.a11y-high-contrast a:visited {
  color: #551A8B !important;
}
body.a11y-high-contrast a:hover,
body.a11y-high-contrast a:focus {
  color: #0000EE !important;
  outline: 2px solid #0000EE !important;
  outline-offset: 2px;
}
body.a11y-high-contrast .cta-section a,
body.a11y-high-contrast .page-hero a,
body.a11y-high-contrast .serving-bethesda a,
body.a11y-high-contrast .site-footer a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.a11y-high-contrast .cta-section a:hover,
body.a11y-high-contrast .page-hero a:hover,
body.a11y-high-contrast .serving-bethesda a:hover,
body.a11y-high-contrast .site-footer a:hover {
  color: #ffffff !important;
}
body.a11y-high-contrast .cta-button,
body.a11y-high-contrast .btn {
  border: 2px solid #000000 !important;
}
body.a11y-high-contrast img {
  outline: 1px solid #000000;
}
body.a11y-high-contrast .section-label {
  color: #000000 !important;
}
body.a11y-high-contrast h1, body.a11y-high-contrast h2,
body.a11y-high-contrast h3, body.a11y-high-contrast h4 {
  color: #000000 !important;
}
body.a11y-high-contrast .page-hero h1,
body.a11y-high-contrast .cta-section h2,
body.a11y-high-contrast .serving-bethesda h2,
body.a11y-high-contrast .site-footer h3 {
  color: #ffffff !important;
}

/* Large Text Mode */
body.a11y-large-text { font-size: 1.35rem; line-height: 1.9; }
body.a11y-large-text h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
body.a11y-large-text h2 { font-size: clamp(2rem, 5vw, 3rem); }
body.a11y-large-text h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
body.a11y-large-text p, body.a11y-large-text li,
body.a11y-large-text td, body.a11y-large-text th { font-size: 1.25rem; }
body.a11y-large-text .widget-item span { font-size: 0.85rem; }

/* Underline Links Mode */
body.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Readable Font Mode */
body.a11y-readable-font,
body.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.03em;
}

/* Highlight Links Mode */
body.a11y-highlight-links a {
  background: #ffff00;
  color: #000000 !important;
  padding: 1px 3px;
  text-decoration: underline !important;
}
body.a11y-highlight-links .cta-section a,
body.a11y-highlight-links .page-hero a,
body.a11y-highlight-links .serving-bethesda a,
body.a11y-highlight-links .site-footer a {
  background: rgba(255,255,0,0.3);
  color: #ffffff !important;
}

/* Big Cursor Mode */
body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 2 L5 28 L12 21 L20 28 L24 24 L16 17 L26 17 Z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 5 2, auto !important;
}
body.a11y-big-cursor a,
body.a11y-big-cursor button,
body.a11y-big-cursor [role="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M10 2 C10 2 10 22 10 22 C7 22 4 22 4 22 L16 30 L28 22 L22 22 L22 2 Z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 16 2, pointer !important;
}

/* Stop Animations Mode */
body.a11y-stop-animations,
body.a11y-stop-animations * {
  animation: none !important;
  transition: none !important;
}

/* Accessibility Panel Styles */
.a11y-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.a11y-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}
.a11y-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 10001;
  overflow-y: auto;
  box-shadow: -4px 0 30px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  padding: 0;
}
.a11y-panel.active {
  right: 0;
}
.a11y-panel-header {
  position: sticky;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.a11y-panel-header h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0;
}
.a11y-panel-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 4px;
}
.a11y-panel-close:hover {
  background: rgba(255,255,255,0.15);
}
.a11y-panel-body {
  padding: 1.5rem;
}
.a11y-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
}
.a11y-option:hover {
  border-color: var(--navy);
  background: var(--bg-off-white);
}
.a11y-option.active {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.a11y-option-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-off-white);
  border-radius: 8px;
  font-size: 1.25rem;
}
.a11y-option.active .a11y-option-icon {
  background: var(--gold);
}
.a11y-option-text {
  flex: 1;
}
.a11y-option-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.a11y-option-text small {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.a11y-reset-btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
}
.a11y-reset-btn:hover {
  background: var(--navy-mid);
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 0;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}
.cookie-consent.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.cookie-consent-text {
  flex: 1;
}
.cookie-consent-text p {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--white);
}
.cookie-consent-text p:last-child {
  margin-bottom: 0;
}
.cookie-consent-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-accent);
}
.cookie-consent-link a {
  color: var(--gold-accent);
  text-decoration: underline;
  font-size: 0.8rem;
  font-weight: 500;
}
.cookie-consent-link a:hover {
  color: var(--white);
}
.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.cookie-btn-accept {
  background: var(--gold-accent);
  color: var(--navy);
}
.cookie-btn-accept:hover {
  background: var(--white);
  color: var(--navy);
}
.cookie-btn-decline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.cookie-btn-decline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile cookie consent */
@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    padding: 1.25rem 1.25rem;
    gap: 1rem;
    text-align: center;
  }
  .cookie-consent-actions {
    width: 100%;
    justify-content: center;
  }
  .cookie-btn {
    flex: 1;
    padding: 0.75rem 1rem;
  }
}

/* =====================================================
   RESPONSIVE ENHANCEMENTS - FULL-WIDTH & SCALING
   ===================================================== */
/* Ensure all sections stretch full width */
.hero, .hero-section, .page-hero, .page-header,
.consultation-hero, .costs-hero, .candidate-hero,
.timeline-hero, .hero-bone-grafting, .hero-implant-dentures,
.hero-single-tooth, .serving-bethesda, .cta-section,
.trust-badges, .site-footer {
  width: 100%;
  max-width: 100%;
}

/* Container consistency */
.container, .intro-container, .services-container,
.costs-container, .stories-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Mobile-first responsive refinements */
@media (max-width: 479px) {
  body { font-size: 1rem; }
  .hero h1, .hero-section h1 { font-size: 1.75rem; }
  .page-hero h1, .page-header h1 { font-size: 1.5rem; }
  .stats-bar { gap: 0; }
  .stat-item { padding: 1.25rem 0.5rem; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.65rem; }
  .trust-badges { gap: 1rem; padding: 1.5rem 1rem; flex-direction: column; align-items: flex-start; }
  .hero-ctas { flex-direction: column; gap: 0.75rem; }
  .hero-ctas .cta-button { width: 100%; text-align: center; }
  .cta-button, .btn { padding: 0.75rem 1.25rem; font-size: 0.8rem; }
  .header-actions { display: none; }
  .community-tags { gap: 0.5rem; }
  .community-tag { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
  .floating-widget { bottom: 0.75rem; right: 0.75rem; gap: 0.375rem; }
  .widget-item { width: 44px; height: 44px; }
  .widget-item svg { width: 18px; height: 18px; }
  .widget-item span { display: none; }
  .footer-container { gap: 2rem; }
  .footer-logo-img { width: 180px; }
  .bethesda-callout { padding: 1.5rem; }
  .experience-highlights { grid-template-columns: 1fr; }
  .photo-feature img { height: 220px; }
  .image-text-split .split-image img { height: 280px; }
  .content-section, .alternate-bg { padding: 3rem 1rem; }
}

/* Tablet (480-767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .trust-badges { gap: 1.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet landscape (768-1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .trust-badges { gap: 2rem; }
}

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  .container, .intro-container, .services-container {
    max-width: 1320px;
  }
  body { font-size: 1.125rem; }
}

/* =====================================================
   DESIGN MODERNIZATION - POLISH
   ===================================================== */
/* Smoother section transitions */
.content-section { padding: 4.5rem 1.5rem; }
.content-section.alternate-bg { background: var(--warm-white); }
.content-section + .content-section.alternate-bg,
.content-section.alternate-bg + .content-section {
  border-top: none;
}

/* Better focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Smooth image loading */
img { transition: opacity 0.3s ease; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded,
img:not([loading="lazy"]) { opacity: 1; }

/* Header improvements for consistency */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  transition: all var(--transition);
  box-sizing: border-box;
}
.site-header.scrolled {
  background: rgba(15, 40, 64, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 0.75rem;
}
.logo-section {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex-shrink: 0;
}
.tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-family: var(--font);
}

/* Navigation styles */
.main-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: center;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.4rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Header CTA buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cta-call {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  font-family: var(--font);
}
.cta-call:hover { color: var(--white) !important; }
.header-actions .cta-primary {
  padding: 0.5rem 1.25rem;
  font-size: 0.775rem;
}

/* Header responsive scaling */
@media (min-width: 1200px) and (max-width: 1319px) {
  .main-nav a { padding: 0.35rem 0.2rem; font-size: 0.7rem; }
  .main-nav ul { gap: 0; }
  .header-actions .cta-primary { padding: 0.4rem 0.6rem; font-size: 0.68rem; }
  .cta-call { font-size: 0.72rem !important; padding: 0.35rem 0.4rem; }
  .header-logo-img { height: 34px; }
  .tagline { font-size: 0.55rem; }
}
@media (min-width: 1320px) and (max-width: 1439px) {
  .main-nav a { padding: 0.4rem 0.3rem; font-size: 0.75rem; }
  .main-nav ul { gap: 0.05rem; }
  .header-actions .cta-primary { padding: 0.4rem 0.75rem; font-size: 0.7rem; }
  .cta-call { font-size: 0.75rem !important; padding: 0.4rem 0.5rem; }
  .header-logo-img { height: 36px; }
  .tagline { font-size: 0.6rem; }
}
@media (min-width: 1440px) {
  .main-nav a { padding: 0.5rem 0.65rem; font-size: 0.85rem; }
  .main-nav ul { gap: 0.25rem; }
}

/* Mobile hamburger menu */
.menu-toggle { display: none; }
.menu-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.menu-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 1199px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    padding: 5rem 2rem 2rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow-y: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav a {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .menu-label { display: flex; }
  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }
  .menu-toggle:checked ~ .menu-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle:checked ~ .menu-label span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .menu-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .header-actions { display: flex; gap: 0.5rem; }
  .header-actions .cta-primary { display: none; }
  .header-actions .cta-call { display: inline-flex; }
}

/* Ensure main content clears fixed header */
main { padding-top: 70px; }
.hero, .hero-section { margin-top: -70px; padding-top: 70px; }
.page-hero, .page-header,
.consultation-hero, .costs-hero,
.candidate-hero, .timeline-hero,
.hero-bone-grafting, .hero-implant-dentures,
.hero-single-tooth { padding-top: calc(70px + 6rem); }

@media (max-width: 767px) {
  .page-hero, .page-header, .hero-section, .consultation-hero, .costs-hero, .candidate-hero, .timeline-hero,
  .hero-bone-grafting, .hero-implant-dentures, .hero-single-tooth {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}

/* Footer polish */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 4rem 1.5rem 0;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.site-footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.site-footer li a:hover { color: var(--gold-light); }
.site-footer address { font-style: normal; font-size: 0.875rem; }
.site-footer address p { margin-bottom: 0.75rem; }
.site-footer address a { color: var(--gold-light); }
.site-footer p { color: rgba(255,255,255,0.75); font-size: 0.875rem; }
.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-column .cta-primary {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.footer-column small { line-height: 1.6; }
.footer-column small a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer-column small a:hover { color: var(--gold-light); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font);
  border-radius: var(--radius);
  z-index: 10002;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* =====================================================
   ARTICLE MEDIA STYLES
   ===================================================== */

/* Article Feature Image */
.article-feature-image {
  margin: 2rem 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-feature-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.article-feature-image figcaption {
  display: none; /* captions hidden for launch */
  padding: 0.75rem 1rem;
  background: var(--off-white);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 2px solid var(--gold-pale);
}

/* Inline Content Images */
.content-image {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.content-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.content-image figcaption {
  display: none; /* captions hidden for launch */
  padding: 0.75rem 1rem;
  background: var(--off-white);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Float Images Left/Right */
.content-image-left,
.content-image-right {
  margin: 0.5rem 0 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 420px;
}
.content-image-left {
  float: left;
  margin-right: 2rem;
}
.content-image-right {
  float: right;
  margin-left: 2rem;
}
.content-image-left img,
.content-image-right img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.content-image-left figcaption,
.content-image-right figcaption {
  display: none; /* captions hidden for launch */
  padding: 0.5rem 0.75rem;
  background: var(--off-white);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Image Grid (Before/After, Comparison) */
.image-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.image-comparison figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.image-comparison img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.image-comparison figcaption {
  display: none; /* captions hidden for launch */
  padding: 0.5rem 0.75rem;
  background: var(--off-white);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

/* Video Embed Container */
.video-embed {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy);
}
.video-embed .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed .video-caption {
  display: none; /* captions hidden for launch */
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Info Callout Box */
.info-callout {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.info-callout h4 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
}
.info-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Stat Highlight Row */
.stat-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.stat-item {
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  display: block;
  margin-bottom: 0.25rem;
}
.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Clearfix for floated images */
.content-section::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive adjustments for article images */
@media (max-width: 768px) {
  .content-image-left,
  .content-image-right {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }
  .image-comparison {
    grid-template-columns: 1fr;
  }
  .stat-highlights {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .stat-highlights {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  .site-header, .site-footer, .cta-section, .scroll-indicator, .hero-video, .floating-widget { display: none; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; padding: 2rem; }
  .hero-overlay { background: rgba(0,0,0,0.1); }
  main { padding-top: 0; }
}
