@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0C3D6B;
  --blue:    #1A6BB5;
  --light-blue: #5BAEE8;
  --gray:    #4A6080;
  --light-gray: #F4F7FB;
  --border:  #DDE4EE;
  --text:    #1C2A3A;
  --white:   #FFFFFF;
  --radius:  10px;
  --shadow:  0 4px 20px rgba(12,61,107,0.10);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

/* ── Accessibility ────────────────────────────────── */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* Global focus-visible outline */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Nav links */
.nav-links a:focus-visible,
.dropdown-menu a:focus-visible,
.dropdown-nested-menu a:focus-visible,
.top-bar-dropdown-menu a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Buttons — FAQ, nav, general */
.faq-question:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn-nav:focus-visible,
.btn-nav-outline:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Cards and linked panels — show focus like hover */
.appt-card:focus-visible,
.spec-cross-link:focus-visible,
.types-btn:focus-visible,
.area-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Footer links */
.site-footer a:focus-visible {
  outline: 2px solid var(--light-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-top: 114px; /* fixed header: top-bar ~34px + nav 80px */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Top Bar ──────────────────────────────────────────── */
.top-bar {
  background: #0A2540;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.top-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.55);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.top-bar-btn:hover {
  background: rgba(255,255,255,0.34);
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}

.top-bar-dollar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.20);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Top-bar Separator ──────────────────────────────────── */
.top-bar-separator {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.35);
  margin: 0 10px;
  vertical-align: middle;
}

/* ── Google Translate Widget ────────────────────────────── */
.top-bar-translate {
  display: inline-flex;
  align-items: center;
}

/* Custom translate dropdown */
.translate-custom {
  position: relative;
}

.translate-toggle-btn {
  gap: 6px;
}

.translate-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.translate-toggle-btn[aria-expanded="true"] .translate-chevron {
  transform: rotate(180deg);
}

.translate-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 360px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  z-index: 9999;
  overflow: hidden;
  flex-direction: column;
}

.translate-dropdown.open {
  display: flex;
}

.translate-search-wrap {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.translate-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.translate-search:focus {
  border-color: var(--blue);
}

.translate-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  max-height: 290px;
}

.translate-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s;
  gap: 12px;
}

.translate-option:hover {
  background: var(--light-gray);
}

.translate-option-active {
  background: rgba(26, 107, 181, 0.08);
}

.translate-option-active .translate-lang-name {
  color: var(--blue);
  font-weight: 700;
}

.translate-lang-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
}

.translate-lang-native {
  font-size: 12.5px;
  color: var(--gray);
  font-family: 'Outfit', sans-serif;
}

/* Google Translate top banner – let it show and shift page down naturally */
#goog-gt-tt { display: none !important; }
.goog-te-banner-frame {
  position: fixed !important;
  top: 0 !important;
  z-index: 10000 !important;
}

/* ── Top-bar Appointments dropdown ───────────────────── */
.top-bar-dropdown {
  position: relative;
  display: inline-flex;
}

.top-bar-chevron {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.top-bar-dropdown:hover .top-bar-chevron {
  transform: rotate(180deg);
}

.top-bar-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(12,61,107,0.14);
  min-width: 210px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 300;
}

.top-bar-dropdown:hover .top-bar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-bar-dropdown-menu a {
  display: block;
  padding: 11px 18px;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.top-bar-dropdown-menu a:hover {
  background: var(--light-gray);
  color: var(--blue);
}

/* ── Navigation ───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(12,61,107,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo svg, .nav-logo img {
  height: 54px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray);
  padding: 8px 11px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: var(--light-gray);
}

.nav-links .btn-nav {
  background: var(--navy);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links .btn-nav:hover {
  background: var(--blue);
  color: var(--white);
}

.nav-links .btn-nav-outline {
  background: transparent;
  color: var(--navy);
  padding: 7px 16px;
  border-radius: 24px;
  font-weight: 600;
  border: 2px solid var(--navy);
  white-space: nowrap;
}

.nav-links .btn-nav-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Dropdown ─────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 11px;
}

.dropdown-menu {
  /* Use opacity/visibility so we can add a hide-delay */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;              /* flush — no physical gap */
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 10px 6px 6px;  /* top-padding creates visual breathing room */
  z-index: 200;
  transition: opacity 0.1s 0.15s, visibility 0.1s 0.15s;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* Show instantly — no delay */
  transition: opacity 0.15s 0s, visibility 0.15s 0s;
}

/* Tablet touch: when mobile-open is set via JS tap, show the dropdown
   regardless of whether :hover is also active (coarse-pointer devices). */
.nav-dropdown.mobile-open .dropdown-menu,
.nav-dropdown.mobile-open:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* On hover-none devices (phones, tablets without a trackpad), CSS :hover
   only activates during the touch press and clears on finger lift — causing
   the dropdown to flash visible then immediately close. Disable CSS-hover-
   driven visibility on these devices so JS mobile-open is the sole authority. */
@media (hover: none) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.dropdown-menu-scroll {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden; /* horizontal content clipped; flyouts escape via JS fixed-positioning */
}

/* Keep the parent dropdown visible while hovering a flyout that was moved to body */
.nav-dropdown.dropdown-keep-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 6px;
  color: var(--text);
}

.dropdown-menu a:hover {
  background: var(--light-gray);
  color: var(--navy);
}

/* ── Nested Flyout Submenu ───────────────────────────── */
.dropdown-nested {
  position: relative;
}
.dropdown-nested > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  border: none;
  margin-top: 4px;
}
.dropdown-nested > a:not(.dropdown-header-link):hover {
  background: var(--light-gray);
  color: var(--navy);
}
.dropdown-nested-featured > a {
  border: 1.5px dashed var(--border);
}
.dropdown-nested-featured > a:hover {
  border-color: var(--blue);
}
.dropdown-arrow {
  font-size: 13px;
  opacity: 0.7;
  margin-left: 8px;
  color: var(--blue);
  font-weight: 700;
}
.dropdown-nested-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: -6px;
  left: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 210px;
  padding: 6px;
  z-index: 210;
  transition: opacity 0.1s 0.15s, visibility 0.1s 0.15s;
}
/* Invisible bridge so cursor can travel from parent to flyout */
.dropdown-nested-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
}
.dropdown-nested:hover > .dropdown-nested-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.1s 0s, visibility 0.1s 0s;
}
.dropdown-nested-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.dropdown-nested-menu a:hover {
  background: var(--light-gray);
  color: var(--navy);
}

/* ── Page Hero ────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

/* Hero with icon — used on total joint sub-pages */
.page-hero-icon-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.page-hero-icon-wrap img.page-hero-icon {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
.page-hero-icon-wrap h1 { margin-bottom: 12px; }
.page-hero-icon-wrap p { margin: 0; }
@media (max-width: 600px) {
  .page-hero-icon-wrap { flex-direction: column; text-align: center; gap: 16px; }
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 300;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto;
}

.loc-hero-address {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.loc-hero-address-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.7;
  margin-bottom: 2px;
}
.loc-hero-address-street {
  font-size: 15px;
  line-height: 1.4;
}
.loc-hero-address-city {
  font-size: 15px;
  line-height: 1.4;
}

/* ── Location Hero Contact & Services ────────────────── */
.loc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.22);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.loc-hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.loc-hero-meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.60);
}

.loc-hero-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.loc-hero-meta-value a {
  color: var(--white);
  text-decoration: none;
}

.loc-hero-meta-value a:hover {
  text-decoration: underline;
}

.loc-hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.loc-hero-schedule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 24px;
  background: #0A2540;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.loc-hero-schedule-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.loc-hero-service-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  padding: 4px 14px;
  letter-spacing: 0.2px;
}

/* ── Location Hero with Photo ────────────────────────── */
.page-hero.loc-hero-with-photo {
  padding: 36px 40px;
}
.loc-hero-photo-col > .back-link-hero {
  margin-bottom: 6px;
}

.loc-hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.loc-hero-photo-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 280px;
}
.loc-hero-photo-col .loc-hero-schedule-btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.loc-hero-photo-wrap {
  flex-shrink: 0;
  width: 280px;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.loc-hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-hero-text {
  flex: 1;
  text-align: left;
}

.loc-hero-text p {
  margin: 0;
  max-width: none;
}

.loc-hero-text .loc-hero-meta {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: 0;
}

.loc-hero-text .loc-hero-services {
  justify-content: flex-start;
}

/* ── Location Hero: info-col | vdivider | hours layout ── */
.loc-hero-body {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 8px;
}
.loc-hero-info-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.loc-hero-info-col .loc-hero-services {
  margin-top: 0;
  margin-bottom: 10px;
}
/* Shorten the horizontal rule so it fits the phone/fax content */
.loc-hero-info-col .loc-hero-meta {
  align-self: flex-start;
  max-width: none;
}
.loc-hero-vdivider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.30);
  flex-shrink: 0;
  min-height: 80px;
}

.loc-hero-hours {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 16px;
  margin-top: 0;
  font-size: 13px;
  line-height: 1.6;
  flex-shrink: 0;
}
.loc-hero-hours-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 6px;
  grid-column: 1 / -1;
}
.loc-hero-hours .day {
  font-weight: 600;
  opacity: 0.9;
}
.loc-hero-hours .time {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .page-hero.loc-hero-with-photo { padding: 30px 24px; }
  .loc-hero-inner { flex-direction: column; gap: 24px; }
  .loc-hero-photo-col { width: 100%; }
  .loc-hero-photo-wrap { width: 100%; height: 200px; }
  .loc-hero-text { text-align: center; }
  .loc-hero-text .loc-hero-meta { justify-content: center; margin-left: auto; margin-right: auto; }
  .loc-hero-text .loc-hero-services { justify-content: center; }
  .loc-hero-body { flex-direction: column; gap: 16px; }
  .loc-hero-info-col .loc-hero-meta { align-self: center; }
  .loc-hero-vdivider { width: 100%; height: 1px; min-height: auto; align-self: auto; }
  .loc-hero-hours { justify-content: center; }
}

/* ── Home Hero ────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(rgba(12,61,107,0.62), rgba(12,61,107,0.52)), url('../images/Photos for pages/assets-joint-replacement-horizontal-1.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  display: none;
}

.home-hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.home-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.home-hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

.btn-schedule-hero {
  background: var(--navy);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: none;
  position: relative;
  top: 0;
  transition: transform var(--transition), background var(--transition);
}

.btn-schedule-hero:hover {
  background: #0e4d87;
  color: #ffffff;
  box-shadow: none;
  transform: translateY(-2px);
  top: 0;
}

.btn-schedule-hero:active {
  box-shadow: none;
  transform: translateY(1px);
  top: 0;
}

.btn-outline-hero {
  box-shadow: 0 6px 0 rgba(255,255,255,0.3), 0 8px 16px rgba(0,0,0,0.25);
  position: relative;
  top: 0;
  transition: transform var(--transition), box-shadow var(--transition), top var(--transition), border-color var(--transition), background var(--transition);
}

.btn-outline-hero:hover {
  box-shadow: 0 4px 0 rgba(255,255,255,0.3), 0 6px 12px rgba(0,0,0,0.22);
  transform: translateY(2px);
  top: 2px;
}

.btn-outline-hero:active {
  box-shadow: 0 1px 0 rgba(255,255,255,0.3), 0 2px 6px rgba(0,0,0,0.18);
  transform: translateY(5px);
  top: 5px;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: border-color var(--transition), background var(--transition);
}

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

/* ── Section Layout ───────────────────────────────────── */
.section {
  padding: 72px 24px;
}

.section-alt {
  background: var(--light-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-blue);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Cards Grid ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 28px;
}

/* ── Provider Card ────────────────────────────────────── */
.provider-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.provider-card-link {
  display: flex;
  text-decoration: none;
  cursor: pointer;
}

.provider-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.provider-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.provider-card .specialty {
  font-size: 14px;
  font-weight: 600;
  color: var(--light-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.provider-card .locations-tag {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.provider-card .locations-tag::before {
  content: '📍';
  font-size: 12px;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition);
}

.card-link:hover { gap: 10px; }

/* ── Location Card ────────────────────────────────────── */
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.location-card-map {
  height: 180px;
  background: var(--light-gray);
  overflow: hidden;
}

.location-card-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.location-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.location-card .address {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.location-card .contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-card .contact-row span {
  font-size: 14px;
  color: var(--gray);
}

.location-card .contact-row strong {
  color: var(--text);
}

/* ── Specialty Tabs ───────────────────────────────────── */
.spec-tabs-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.spec-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 18px 10px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

.spec-tab:hover {
  border-color: var(--light-blue);
  background: #F0F7FF;
  box-shadow: 0 2px 12px rgba(26,107,181,0.10);
}

.spec-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 4px 16px rgba(12,61,107,0.22);
}

.spec-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(26,107,181,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.spec-tab-icon svg {
  width: 26px;
  height: 26px;
}

.spec-tab:hover .spec-tab-icon {
  background: rgba(26,107,181,0.18);
}

.spec-tab.active .spec-tab-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.spec-tab-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  transition: color var(--transition);
}

.spec-tab.active .spec-tab-label {
  color: var(--white);
}

/* ── Specialty Panel ──────────────────────────────────── */
.spec-panel-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-panel {
  display: none;
  padding: 40px;
  padding-top: 20px;
  animation: panelFadeIn 0.28s ease;
}

.spec-panel.active { display: block; }

.spec-panel > .spec-panel-link-top {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  padding: 9px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.spec-panel > .spec-panel-link-top:hover {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12,61,107,0.3);
  color: var(--white);
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.spec-panel-intro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.spec-panel-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.spec-panel-badge svg {
  width: 30px;
  height: 30px;
}

.spec-tab-icon img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.spec-tab.active .spec-tab-icon img {
  filter: brightness(0) invert(1);
}

.spec-panel-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}


.spec-panel-intro-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.spec-panel-intro-text p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
}

.spec-panel-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
}

/* ── Total Joint Replacement Sub-Cards ───────────────── */
.spec-joint-subcards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.spec-joint-subcard {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.spec-joint-subcard:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(26,107,181,0.1);
}
.spec-joint-subcard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.spec-joint-subcard-header img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}
.spec-joint-subcard h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
}
.spec-joint-subcard p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 12px;
}
.spec-joint-subcard .spec-list {
  margin-bottom: 14px;
}
.spec-joint-subcard .spec-list li {
  font-size: 13px;
}
.spec-joint-subcard .card-link {
  font-size: 13px;
}

@media (max-width: 1000px) {
  .spec-tabs-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
@media (max-width: 500px) {
  .spec-tabs-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
}

@media (max-width: 820px) {
  .spec-panel-cols { grid-template-columns: 1fr; gap: 24px; }
  .spec-joint-subcards { grid-template-columns: 1fr; }
  .spec-panel { padding: 28px 20px; }
  .spec-panel-intro { flex-direction: column; gap: 12px; }
  .spec-panel > .spec-panel-link-top { margin: 10px 0 20px; }
}

.spec-panel-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--light-blue);
  margin-bottom: 14px;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  position: relative;
  padding: 10px 0 10px 16px;
  font-size: 14.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}

.spec-list li:last-child { border-bottom: none; }

.spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Provider Detail Page ─────────────────────────────── */
.provider-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.provider-header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.provider-avatar-lg {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.provider-header-info h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.provider-header-info .specialty-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.provider-header-info p {
  font-size: 16px;
  color: var(--gray);
  max-width: 520px;
}

/* ── Credential Table ─────────────────────────────────── */
.credentials-section {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 36px;
}

.credentials-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.credential-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.credential-row:last-child { border-bottom: none; }

.credential-label {
  width: 160px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  padding-top: 2px;
}

.credential-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

/* ── Locations Links ──────────────────────────────────── */
.locations-section {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 36px;
}

.locations-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 20px;
  margin: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  transition: background var(--transition), border-color var(--transition);
}

.location-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Location Detail Page ─────────────────────────────── */
.location-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
/* Side-by-side map + providers layout */
.loc-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.loc-content-left .map-container {
  margin-bottom: 24px;
}
.loc-content-right .info-block {
  position: sticky;
  top: 24px;
}
@media (max-width: 820px) {
  .loc-content-grid { grid-template-columns: 1fr; }
}

.location-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 680px) {
  .location-detail-grid { grid-template-columns: 1fr; }
}

.info-block {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 32px;
}

.info-block h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
}

.info-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* ── Location page: side-by-side photo + map ─────────── */
.loc-media-row {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.loc-media-photo,
.loc-media-map {
  flex: 1;
  min-width: 0;
}

.loc-media-photo {
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
}

.loc-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-media-map .map-container {
  margin-bottom: 0;
  height: 320px;
}

.loc-media-map .map-container iframe {
  height: 320px;
}

.loc-office-info {
  margin-bottom: 32px;
  padding: 22px 28px;
  background: var(--light-gray);
  border-radius: 16px;
  border-left: 4px solid var(--blue);
}

.loc-office-info p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 10px;
}

.loc-office-info p:last-child { margin-bottom: 0; }

/* ── Location Hours Card (standalone box below map/description) ── */
.loc-hours-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: var(--shadow);
}
.loc-hours-card h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin: 0 0 14px;
}
.loc-hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 0;
}
.loc-hours-grid .day {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.loc-hours-grid .time {
  font-size: 14px;
  color: var(--gray);
}

@media (max-width: 680px) {
  .loc-media-row { flex-direction: column; }
  .loc-media-photo { height: 220px; }
  .loc-media-map .map-container,
  .loc-media-map .map-container iframe { height: 220px; }
}

/* ── Provider list on location page ──────────────────── */
.provider-mini-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity var(--transition);
}

.provider-mini-card:last-child { border-bottom: none; }
.provider-mini-card:hover { opacity: 0.75; }

.provider-mini-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.provider-mini-avatar::before {
  content: attr(data-initials);
  position: relative;
  z-index: 0;
}
.provider-mini-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

.provider-mini-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.provider-mini-info span {
  font-size: 13px;
  color: var(--gray);
}

/* Provider mini-card row (card + schedule button) */
.provider-mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.provider-mini-row:last-child { border-bottom: none; }
.provider-mini-row .provider-mini-card {
  flex: 1;
  min-width: 0;
  border-bottom: none;
  padding: 0;
}
.provider-mini-schedule {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.provider-mini-schedule:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

/* ── Social Media Section ─────────────────────────────── */
.social-section { background: var(--light-gray); padding: 56px 24px; text-align: center; }
.social-section .section-label { margin-bottom: 8px; }
.social-section h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--navy); margin-bottom: 36px; }
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 16px 22px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: var(--shadow);
}
.social-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-color: var(--blue); color: var(--blue); }
.social-card img { width: 36px; height: 36px; object-fit: contain; }
@media (max-width: 540px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Top Bar Social Icons ─────────────────────────────── */
.top-bar-social { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.top-bar-social a { display: flex; align-items: center; opacity: 1; transition: opacity 0.2s ease; }
.top-bar-social a:hover { opacity: 1; }
.top-bar-social img { width: 17px; height: 17px; object-fit: contain; transition: filter 0.2s ease; }
.top-bar-social a:hover img { filter: drop-shadow(0 0 5px rgba(255,255,255,0.9)); }
.top-bar-follow-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap; margin-right: 2px; }
.top-bar-links-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap; margin-right: 4px; }

/* ── Footer Social Icons ──────────────────────────────── */
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color 0.2s ease; display: flex; }
.footer-social a:hover { color: var(--white); }
.footer-social svg { width: 18px; height: 18px; }
.footer-social img { transition: filter 0.2s ease; }
.footer-social a:hover img { filter: drop-shadow(0 0 5px rgba(255,255,255,0.9)); }
.footer-bottom-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-bottom-links span { color: #FFFFFF; font-size: 13px; }
.footer-bottom-links a { color: #FFFFFF; font-size: 13px; text-decoration: none; transition: color 0.2s ease, font-weight 0.2s ease; }
.footer-bottom-links a:hover { color: var(--light-blue); font-weight: 700; }
.footer-bottom-links .sep { color: rgba(255,255,255,0.4); }
.footer-follow-label { font-size: 12px; font-weight: 600; color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.8px; white-space: nowrap; }

/* ── CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}

.cta-banner h2 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 32px;
}

.cta-banner .btn-primary {
  font-size: 17px;
  padding: 16px 40px;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(rgba(10,37,64,0.78), rgba(10,37,64,0.78)), url('../images/office%20images/flag_hero_background.jpg') center/cover no-repeat;
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 28px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 1060px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand svg { height: 44px; width: auto; margin-bottom: 14px; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }


.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
}
.footer-disclaimer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-disclaimer p {
  font-size: 11px;
  line-height: 1.7;
  color: #FFFFFF;
  margin: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

/* ── Dropdown Headers (non-clickable category labels) ─── */
.dropdown-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--light-blue);
  padding: 10px 14px 3px;
  margin-top: 4px;
}

/* ── Header-style flyout triggers (e.g. Locations sections) ─── */
.dropdown-nested > a.dropdown-header-link {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--light-blue);
  padding: 10px 14px 4px;
  margin-top: 4px;
  border-radius: 0;
  background: transparent;
  border: none;
}
.dropdown-nested > a.dropdown-header-link:hover,
.dropdown-nested:hover > a.dropdown-header-link {
  background: transparent;
  color: var(--light-blue);
}
.dropdown-nested > a.dropdown-header-link .dropdown-arrow {
  color: var(--light-blue);
  opacity: 0.7;
}

/* ── Provider Photo Wrap (circle with img + initials fallback) */
.provider-photo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-blue), var(--navy));
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  overflow: hidden;
}
.provider-photo-wrap::before {
  content: attr(data-initials);
  position: relative;
  z-index: 0;
}
.provider-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}
.provider-photo-wrap-lg {
  width: 160px;
  height: 160px;
  font-size: 52px;
  border-radius: 50%;
}

/* ── Schedule Button ──────────────────────────────────── */
.btn-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  margin-top: 8px;
}
.btn-schedule:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

/* ── Provider Specialty Groups (all-providers page) ───── */
.spec-group {
  margin-bottom: 72px;
  scroll-margin-top: 100px;
}
.spec-group-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--navy);
}
.spec-group-header h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--navy);
  margin-top: 6px;
}
.spec-sub-group {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}
.spec-sub-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.spec-sub-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Location Contact Top Card ────────────────────────── */
.loc-contact-top {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 32px 28px;
  margin-bottom: 32px;
}

.loc-contact-top h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
}

.loc-contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
}

.loc-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.loc-contact-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
}

.loc-contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.loc-contact-value a {
  color: var(--blue);
  text-decoration: none;
}

.loc-contact-value a:hover {
  text-decoration: underline;
}

@media (max-width: 500px) {
  .loc-contact-top { padding: 18px 20px; }
  .loc-contact-items { gap: 16px 24px; }
}

/* ── Location Services Section ────────────────────────── */
.loc-services-section {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}
.loc-services-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.service-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ── Scrollable summary panel for all-locations ───────── */
.locations-summary-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

/* ── Location category divider ────────────────────────── */
.loc-category-header {
  padding: 10px 24px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--light-blue);
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}

/* ── Back Link ────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 32px;
  transition: gap var(--transition);
}

.back-link:hover { gap: 12px; }

.back-link::before { content: '←'; }

/* ── Provider Hero (rich hero on all individual provider pages) ─── */
.provider-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A4B7C 100%);
  padding: 42px 24px 39px;
  color: var(--white);
}
.provider-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 52px;
  align-items: center;
}
/* When a divider is present, use 4-column layout with more photo spacing */
.provider-hero-inner:has(.hero-divider) {
  grid-template-columns: 280px 1fr auto auto;
  gap: 44px;
  align-items: start;
}
.provider-hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.provider-hero .provider-photo-wrap-lg {
  width: 280px;
  height: 280px;
  font-size: 64px;
  border: 4px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
/* Square photo variant */
.provider-photo-wrap.provider-photo-square {
  border-radius: 16px;
}
.provider-photo-square img {
  border-radius: 16px;
}
/* Schedule button under photo */
.hero-schedule-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 15px !important;
  padding: 13px 24px !important;
  background: #0A2540 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}
.provider-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.back-link-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  transition: color var(--transition);
  margin-bottom: 2px;
}
.back-link-hero::before { content: '←'; }
.back-link-hero:hover { color: var(--white); }
.provider-hero-content .specialty-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}
.provider-hero-content h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin: 2px 0 0;
  line-height: 1.1;
}
.provider-hero-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.provider-hero-locations .location-pill {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
  font-size: 12.5px;
}
.provider-hero-locations .location-pill:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.provider-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}
.provider-hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.provider-hero-actions .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
/* Locations label */
.hero-locations-label {
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 2px;
}
/* Vertical locations list */
.provider-hero-locations-vertical {
  flex-direction: column;
  gap: 6px;
}
/* Vertical divider between content and specialty */
.hero-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.18);
  min-height: 100%;
}

/* ── Specialty Inline (under name, e.g. Rishi Bhatnagar) ── */
/* Locations Sidebar (right column, replaces specialty position) */
.provider-hero-locations-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  padding-top: 32px;
}
.provider-hero-locations-sidebar .hero-locations-label {
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 4px;
}
.provider-hero-locations-sidebar .location-pill {
  white-space: nowrap;
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-radius: 0;
  transition: color 0.2s;
}
.provider-hero-locations-sidebar .location-pill:hover {
  background: none;
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* ── Provider Hero Specialty Sidebar ─────────────────────── */
.provider-hero-specialty {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 14px;
  align-self: center;
}
/* Left-align specialty when divider is present */
.hero-divider ~ .provider-hero-specialty {
  align-items: flex-start;
  text-align: left;
}
.provider-hero-specialty .specialty-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}
.specialty-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.specialty-sub-list li {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  line-height: 1.3;
}
.specialty-sub-list li::before {
  content: '•';
  margin-right: 8px;
  color: rgba(255,255,255,0.40);
}
/* Specialty inline under provider name (overrides base right-align) */
.provider-hero-content .provider-hero-specialty.provider-hero-specialty-inline {
  align-items: flex-start;
  text-align: left;
  align-self: flex-start;
}
.provider-hero-content .provider-hero-specialty-inline .specialty-badge {
  margin: 0;
}
.provider-hero-content .provider-hero-specialty-inline .specialty-sub-list {
  align-items: flex-start;
}
.provider-hero-content .provider-hero-specialty-inline .specialty-sub-list li {
  text-align: left;
}

/* ── Provider Detail Two-Column Layout ────────────────────── */
.provider-detail-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 52px;
  align-items: start;
}

/* Education left, Bio right */
.credentials-section { order: 1; }
.provider-bio        { order: 2; }

@media (max-width: 760px) {
  .provider-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* restore natural reading order on mobile */
  .credentials-section { order: 2; }
  .provider-bio        { order: 1; }
}

/* ── Provider Bio ─────────────────────────────────────────── */
.provider-bio h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.provider-bio p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 1.2em;
}
.provider-bio p:last-child {
  margin-bottom: 0;
}

/* ── Provider Hero Video ──────────────────────────────────── */
.provider-hero-video {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  display: none;
  flex-shrink: 0;
}

/* ── Credentials section standalone ──────────────────────── */
.credentials-standalone {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Specialty Detail Pages ───────────────────────────── */
.spec-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 8px;
}

@media (max-width: 860px) {
  .spec-content-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .spec-content-grid { grid-template-columns: 1fr; }
}

.spec-content-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
}

.spec-content-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--light-blue);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.providers-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  column-gap: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 28px;
}

.spec-locations-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}


/* ── Prevent horizontal overflow ─────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }

/* ── Hamburger Button ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger:hover { background: var(--light-gray); }
.nav-hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.site-header.nav-open .nav-hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.site-header.nav-open .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-header.nav-open .nav-hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Responsive: Tablet (≤900px) ─────────────────────── */
@media (max-width: 900px) {
  .nav-links a { font-size: 13px; padding: 8px 7px; }
  .nav-inner { padding: 0 16px; }
}

/* ── Responsive: Mobile & Tablet (≤768px) ────────────── */
@media (max-width: 768px) {

  /* ── Top Bar ── */
  .top-bar-links-label,
  .top-bar-separator,
  .dm-switch { display: none !important; }

  .top-bar-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
  }

  /* Social icons: single row above buttons */
  .top-bar-social {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    margin-right: 0;
    width: 100%;
  }
  .top-bar-social a {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
  .top-bar-social img { width: 18px; height: 18px; }

  /* Action buttons: 2×2 grid */
  .top-bar-btn {
    width: calc(50% - 3px);
    justify-content: center;
    box-sizing: border-box;
    font-size: 11px;
    padding: 7px 8px;
    gap: 5px;
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  .top-bar-translate {
    width: calc(50% - 3px);
  }
  .top-bar-translate .translate-custom { width: 100%; }
  .top-bar-translate .top-bar-btn {
    width: 100%;
  }

  /* ── Nav Bar ── */
  .nav-hamburger { display: flex; }

  .nav-inner {
    padding: 0 16px;
    justify-content: space-between;
    height: 60px;
  }

  .nav-logo img { height: 42px; }

  /* Mobile nav panel — hidden until hamburger opens it */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 3px solid var(--blue);
    box-shadow: 0 8px 28px rgba(12,61,107,0.15);
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 200;
  }

  .site-header.nav-open .nav-links { display: flex; }

  /* Direct (non-dropdown) nav links */
  .nav-links > a {
    padding: 15px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    white-space: normal !important;
    background: none !important;
    width: 100%;
    min-height: 50px;
    display: flex !important;
    align-items: center;
  }
  .nav-links > a:hover { background: var(--light-gray) !important; }

  /* Dropdown wrapper */
  .nav-dropdown { position: static; width: 100%; }

  /* Dropdown trigger */
  .nav-dropdown > a {
    padding: 15px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    white-space: normal !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    background: none !important;
    width: 100%;
  }
  .nav-dropdown > a:hover { background: var(--light-gray) !important; }

  .nav-dropdown > a::after {
    content: '▾';
    font-size: 14px;
    color: var(--gray);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .nav-dropdown.mobile-open > a::after { transform: rotate(180deg); }

  /* Completely disable hover-triggered dropdowns on mobile */
  .nav-dropdown:hover .dropdown-menu {
    display: none !important;
    opacity: 1 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Mobile dropdown panel (inline, not absolute) */
  .nav-dropdown .dropdown-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: var(--light-gray) !important;
    padding: 0 !important;
    min-width: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: auto !important;
    transition: none !important;
    width: 100%;
  }

  .nav-dropdown.mobile-open .dropdown-menu { display: block !important; }
  /* Also override the :hover-kills-dropdown rule when mobile-open is set */
  .nav-dropdown.mobile-open:hover .dropdown-menu { display: block !important; }

  .dropdown-menu a {
    padding: 12px 28px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
  }

  /* Hide nested flyout arrows and sub-menus on mobile */
  .dropdown-nested > a .dropdown-arrow { display: none !important; }
  .dropdown-nested-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .dropdown-header { padding: 10px 28px 4px; }
  .dropdown-menu-scroll { max-height: none !important; overflow: visible !important; }

  /* ── Provider & Content ── */
  .provider-header { flex-direction: column; align-items: center; text-align: center; }
  .credential-label { width: 120px; }

  .provider-hero-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 28px !important;
  }

  .provider-hero h1 { white-space: normal !important; }

  .provider-hero-locations,
  .provider-hero-actions { justify-content: center; }
  .provider-hero-locations-vertical { align-items: center; }
  .provider-hero-locations-sidebar { align-items: center; text-align: center; }
  .provider-hero-locations-sidebar .hero-locations-label { text-align: center; }
  .hero-locations-label { text-align: center; }
  .back-link-hero { margin: 0 auto; }
  .hero-divider { width: 100%; height: 1px; align-self: auto; }
  .provider-hero-specialty,
  .hero-divider ~ .provider-hero-specialty { align-items: center; text-align: center; }
  .provider-hero-specialty .specialty-badge { margin: 0 auto; }

  /* ── Layout ── */
  .home-hero { padding: 48px 16px; }
  .section { padding: 56px 20px; }
  .cta-banner { padding: 56px 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .spec-panel-cols { grid-template-columns: 1fr; gap: 24px; }
  .spec-joint-subcards { grid-template-columns: 1fr; }
  .spec-panel { padding: 28px 20px; }
  .spec-panel-intro { flex-direction: column; gap: 12px; }
}

/* ── Responsive: Small Mobile (≤480px) ───────────────── */
@media (max-width: 480px) {
  .top-bar-btn { font-size: 10.5px; padding: 6px 10px; }
  .section { padding: 44px 16px; }
  .cta-banner { padding: 44px 16px; }
  .nav-inner { height: 56px; }
  .nav-logo img { height: 36px; }
  .home-hero { padding: 40px 16px; }
  .page-hero { padding: 36px 16px; }
  .provider-hero { padding: 32px 16px; }
  /* Home hero buttons: tighter padding on small phones */
  .hero-btns a { padding: 12px 22px !important; font-size: 14px !important; }
}

/* ── AEO: FAQ Accordion ────────────────────────── */
.faq-section { max-width: 900px; margin: 0 auto; padding: 56px 24px; }
.faq-section h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.faq-section > p { font-size: 15px; color: var(--gray); margin-bottom: 32px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--white); }
.faq-question { width: 100%; background: none; border: none; padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--navy); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; gap: 12px; font-family: inherit; }
.faq-question::before { content: ''; display: inline-block; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--blue); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.open .faq-question::before { transform: rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 800px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; color: var(--gray); line-height: 1.75; }
.faq-answer-inner ul { margin: 8px 0; padding-left: 20px; }
.faq-answer-inner li { margin-bottom: 4px; }

/* AEO: Specialty Info Sections */
.spec-info-section { max-width: 900px; margin: 0 auto; padding: 48px 24px 0; }
.spec-info-section h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.spec-info-section p { font-size: 15px; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.spec-info-section ul { padding-left: 20px; margin-bottom: 16px; }
.spec-info-section li { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 6px; }
.spec-cross-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.spec-cross-link { display: inline-block; background: var(--light-gray); color: var(--navy); padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s; }
.spec-cross-link:hover { background: var(--blue); color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   DARK THEME
   Applied via data-theme="dark" on <html>
   ═══════════════════════════════════════════════════════════ */

/* ── Dark Mode Toggle Switch ─────────────────────────────── */
.dm-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-left: 10px;
  flex-shrink: 0;
}
.dm-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* The pill track — wide enough for text + thumb */
.dm-track {
  position: relative;
  width: 95px;
  height: 26px;
  /* OFF = Lite Mode: white pill */
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 26px;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.dm-switch:hover .dm-track {
  background: #FFFFFF;
  border-color: #FFFFFF;
}
/* ON = Dark Mode: dark pill */
.dm-switch input:checked ~ .dm-track {
  background: #0D1A27;
  border-color: rgba(255,255,255,0.22);
}
.dm-switch:hover input:checked ~ .dm-track,
.dm-switch input:checked:focus ~ .dm-track {
  background: #132031;
}
/* Label text inside the pill */
.dm-track-label {
  position: absolute;
  right: 10px;       /* OFF: text on right, thumb on left */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15px;
  color: #0A2540;    /* OFF = Lite Mode: dark text on white pill */
  white-space: nowrap;
  pointer-events: none;
  transition: right 0.25s ease, left 0.25s ease, color 0.25s ease;
}
/* ON = Dark Mode: text moves to left, turns white */
.dm-switch input:checked ~ .dm-track .dm-track-label {
  right: auto;
  left: 10px;
  color: #FFFFFF;
}
/* Circular thumb */
.dm-thumb {
  position: absolute;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  /* OFF = Lite Mode: dark thumb */
  background: #0A2540;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.25s ease, background 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.28);
  flex-shrink: 0;
}
/* ON = Dark Mode: thumb slides right, turns white */
.dm-switch input:checked ~ .dm-track .dm-thumb {
  left: calc(100% - 23px);
  background: rgba(255,255,255,0.92);
}
/* OFF = Lite Mode: sun visible, moon hidden */
.dm-icon-sun  { display: block; flex-shrink: 0; }
.dm-icon-moon { display: none;  flex-shrink: 0; }
/* ON = Dark Mode: moon visible, sun hidden */
.dm-switch input:checked ~ .dm-track .dm-icon-sun  { display: none; }
.dm-switch input:checked ~ .dm-track .dm-icon-moon { display: block; }

/* ── Core Palette Overrides ──────────────────────────────── */
[data-theme="dark"] {
  --light-blue:  #FFFFFF;
  --gray:        #FFFFFF;
  --light-gray:  #132031;
  --border:      #243548;
  --text:        #FFFFFF;
  --white:       #0D1A27;
  --shadow:      0 4px 20px rgba(0,0,0,0.55);
}

/* ── Body & Page ─────────────────────────────────────────── */
[data-theme="dark"] body {
  background: #0D1A27;
  color: #FFFFFF;
}

/* ── Top Bar ─────────────────────────────────────────────── */
[data-theme="dark"] .top-bar {
  background: #071121;
  border-bottom-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .top-bar-dropdown-menu {
  background: #0F1E2E;
  border-color: #243548;
}
[data-theme="dark"] .top-bar-dropdown-menu a {
  color: #FFFFFF;
}
[data-theme="dark"] .top-bar-dropdown-menu a:hover {
  background: #162332;
  color: #FFFFFF;
}

/* ── Navigation ──────────────────────────────────────────── */
[data-theme="dark"] .site-header {
  background: #0D1A27;
  border-bottom-color: #243548;
  box-shadow: 0 2px 12px rgba(0,0,0,0.40);
}
[data-theme="dark"] .nav-links a {
  color: #FFFFFF;
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #FFFFFF;
  background: #132031;
}
[data-theme="dark"] .nav-links .btn-nav {
  background: #1A5CA0;
  color: #FFFFFF;
}
[data-theme="dark"] .nav-links .btn-nav:hover {
  background: #2272C3;
}
[data-theme="dark"] .nav-links .btn-nav-outline {
  color: #FFFFFF;
  border-color: #FFFFFF;
}
[data-theme="dark"] .nav-links .btn-nav-outline:hover {
  background: #1A5CA0;
  color: #FFFFFF;
  border-color: #1A5CA0;
}

/* ── Dropdown Menus ──────────────────────────────────────── */
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .dropdown-nested-menu {
  background: #0F1E2E;
  border-color: #243548;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}
[data-theme="dark"] .dropdown-menu a,
[data-theme="dark"] .dropdown-nested > a {
  color: #FFFFFF;
}
[data-theme="dark"] .dropdown-menu a:hover,
[data-theme="dark"] .dropdown-nested > a:not(.dropdown-header-link):hover {
  background: #162332;
  color: #FFFFFF;
}
[data-theme="dark"] .dropdown-nested > a.dropdown-header-link,
[data-theme="dark"] .dropdown-nested > a.dropdown-header-link:hover {
  color: #FFFFFF;
  background: transparent;
}
[data-theme="dark"] .dropdown-header {
  color: #FFFFFF;
}

/* ── Translate Dropdown ──────────────────────────────────── */
[data-theme="dark"] .translate-dropdown {
  background: #0F1E2E;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
[data-theme="dark"] .translate-search-wrap {
  border-bottom-color: #243548;
}
[data-theme="dark"] .translate-search {
  background: #162332;
  border-color: #243548;
  color: #FFFFFF;
}
[data-theme="dark"] .translate-search::placeholder {
  color: rgba(255,255,255,0.45);
}
[data-theme="dark"] .translate-search:focus {
  border-color: rgba(255,255,255,0.5);
}
[data-theme="dark"] .translate-option:hover {
  background: #162332;
}
[data-theme="dark"] .translate-option-active {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .translate-lang-name {
  color: #FFFFFF;
}
[data-theme="dark"] .translate-lang-native {
  color: rgba(255,255,255,0.70);
}

/* ── Section Layout ──────────────────────────────────────── */
[data-theme="dark"] .section-alt {
  background: #132031;
}
[data-theme="dark"] .section-header h2 {
  color: #FFFFFF;
}
[data-theme="dark"] .section-header p {
  color: #FFFFFF;
}
[data-theme="dark"] .section-label {
  color: #FFFFFF;
}

/* ── Cards ───────────────────────────────────────────────── */
[data-theme="dark"] .provider-card,
[data-theme="dark"] .location-card,
[data-theme="dark"] .social-card,
[data-theme="dark"] .loc-hours-card {
  background: #111E2C;
  border-color: #243548;
}
[data-theme="dark"] .provider-card h3,
[data-theme="dark"] .location-card h3 {
  color: #FFFFFF;
}
[data-theme="dark"] .provider-card:hover,
[data-theme="dark"] .location-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}
[data-theme="dark"] .location-card-map {
  background: #162332;
}
[data-theme="dark"] .location-card .address,
[data-theme="dark"] .location-card .contact-row span {
  color: #FFFFFF;
}
[data-theme="dark"] .location-card .contact-row strong {
  color: #FFFFFF;
}
[data-theme="dark"] .social-card {
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}
[data-theme="dark"] .social-card:hover {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}

/* ── Provider Card Detail ────────────────────────────────── */
[data-theme="dark"] .provider-card .specialty {
  color: #FFFFFF;
}
[data-theme="dark"] .provider-card .locations-tag {
  color: #FFFFFF;
}
[data-theme="dark"] .card-link {
  color: #FFFFFF;
}

/* ── Info Blocks / Credentials / Locations Section ───────── */
[data-theme="dark"] .credentials-section,
[data-theme="dark"] .locations-section,
[data-theme="dark"] .info-block,
[data-theme="dark"] .loc-services-section,
[data-theme="dark"] .loc-office-info {
  background: #132031;
}
[data-theme="dark"] .credentials-section h2,
[data-theme="dark"] .locations-section h2,
[data-theme="dark"] .info-block h2,
[data-theme="dark"] .loc-services-section h2 {
  color: #FFFFFF;
  border-bottom-color: #243548;
}
[data-theme="dark"] .credential-row,
[data-theme="dark"] .info-row {
  border-bottom-color: #243548;
}
[data-theme="dark"] .credential-label,
[data-theme="dark"] .info-label {
  color: #FFFFFF;
}
[data-theme="dark"] .credential-value,
[data-theme="dark"] .info-value {
  color: #FFFFFF;
}
[data-theme="dark"] .loc-office-info {
  border-left-color: rgba(255,255,255,0.4);
}
[data-theme="dark"] .loc-office-info p {
  color: #FFFFFF;
}

/* ── Location Pills ──────────────────────────────────────── */
[data-theme="dark"] .location-pill {
  background: #111E2C;
  border-color: #243548;
  color: #FFFFFF;
}
[data-theme="dark"] .location-pill:hover {
  background: #1A5CA0;
  color: #FFFFFF;
  border-color: #1A5CA0;
}

/* ── Location pills inside provider hero: stay transparent against the navy gradient */
[data-theme="dark"] .provider-hero-locations .location-pill,
[data-theme="dark"] .provider-hero-locations-sidebar .location-pill {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  color: #FFFFFF;
}
[data-theme="dark"] .provider-hero-locations .location-pill:hover,
[data-theme="dark"] .provider-hero-locations-sidebar .location-pill:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  color: #FFFFFF;
}
/* Sidebar pills have no background/border by design */
[data-theme="dark"] .provider-hero-locations-sidebar .location-pill {
  background: none;
  border-color: transparent;
  border-bottom-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .provider-hero-locations-sidebar .location-pill:hover {
  background: none;
  border-color: transparent;
  border-bottom-color: rgba(255,255,255,0.25);
}

/* ── Location Contact ────────────────────────────────────── */
[data-theme="dark"] .loc-contact-top {
  background: #111E2C;
  border-color: #243548;
  border-left-color: rgba(255,255,255,0.4);
}
[data-theme="dark"] .loc-contact-top h2 {
  color: #FFFFFF;
}
[data-theme="dark"] .loc-contact-label {
  color: #FFFFFF;
}
[data-theme="dark"] .loc-contact-value {
  color: #FFFFFF;
}
[data-theme="dark"] .loc-contact-value a {
  color: #FFFFFF;
}

/* ── Hours Card ──────────────────────────────────────────── */
[data-theme="dark"] .loc-hours-card {
  background: #111E2C;
  border-color: #243548;
}
[data-theme="dark"] .loc-hours-card h3 {
  color: #FFFFFF;
}
[data-theme="dark"] .loc-hours-grid .day {
  color: #FFFFFF;
}
[data-theme="dark"] .loc-hours-grid .time {
  color: #FFFFFF;
}

/* ── Map Container ───────────────────────────────────────── */
[data-theme="dark"] .map-container {
  border-color: #243548;
}

/* ── Social Section ──────────────────────────────────────── */
[data-theme="dark"] .social-section {
  background: #132031;
}
[data-theme="dark"] .social-section h2 {
  color: #FFFFFF;
}

/* ── Service Tags ────────────────────────────────────────── */
[data-theme="dark"] .service-tag {
  background: #111E2C;
  border-color: #243548;
  color: #FFFFFF;
}

/* ── Spec Tabs & Panel ───────────────────────────────────── */
[data-theme="dark"] .spec-tab {
  background: #111E2C;
  border-color: #243548;
}
[data-theme="dark"] .spec-tab:hover {
  background: #162332;
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
[data-theme="dark"] .spec-tab-label {
  color: #FFFFFF;
}
[data-theme="dark"] .spec-panel-wrap {
  background: #111E2C;
  border-color: #243548;
}
[data-theme="dark"] .spec-panel-intro {
  border-bottom-color: #243548;
}
[data-theme="dark"] .spec-panel-intro:hover {
  background: #162332 !important;
  border-color: var(--blue) !important;
}
[data-theme="dark"] .spec-panel-intro-text h3 {
  color: #FFFFFF;
}
[data-theme="dark"] .spec-panel-intro-text p {
  color: #FFFFFF;
}
[data-theme="dark"] .spec-list li {
  color: #FFFFFF;
  border-bottom-color: #243548;
}
[data-theme="dark"] .spec-panel-col-title {
  color: #FFFFFF;
}

/* ── Total Joint Sub-Cards ───────────────────────────────── */
[data-theme="dark"] .spec-joint-subcard {
  background: #162332;
  border-color: #243548;
}
[data-theme="dark"] .spec-joint-subcard h4 {
  color: #FFFFFF;
}
[data-theme="dark"] .spec-joint-subcard p {
  color: #FFFFFF;
}

/* ── Specialty Content Cols ──────────────────────────────── */
[data-theme="dark"] .spec-content-col {
  background: #111E2C;
  border-color: #243548;
}
[data-theme="dark"] .spec-content-col-title {
  color: #FFFFFF;
  border-bottom-color: #243548;
}

/* ── Providers Mini Grid ─────────────────────────────────── */
[data-theme="dark"] .providers-mini-grid {
  background: #111E2C;
  border-color: #243548;
}
[data-theme="dark"] .provider-mini-card,
[data-theme="dark"] .provider-mini-row {
  border-bottom-color: #243548;
}
[data-theme="dark"] .provider-mini-info h4 {
  color: #FFFFFF;
}
[data-theme="dark"] .provider-mini-info span {
  color: #FFFFFF;
}

/* ── Provider Bio & Detail ───────────────────────────────── */
[data-theme="dark"] .provider-bio h2 {
  color: #FFFFFF;
}
[data-theme="dark"] .provider-bio p {
  color: #FFFFFF;
}

/* ── FAQ Accordion ───────────────────────────────────────── */
[data-theme="dark"] .faq-item {
  background: #111E2C;
  border-color: #243548;
}
[data-theme="dark"] .faq-question {
  color: #FFFFFF;
}
[data-theme="dark"] .faq-question::after {
  color: #FFFFFF;
}
[data-theme="dark"] .faq-answer-inner {
  color: #FFFFFF;
}

/* ── Spec Info Section ───────────────────────────────────── */
[data-theme="dark"] .spec-info-section h2 {
  color: #FFFFFF;
}
[data-theme="dark"] .spec-info-section p,
[data-theme="dark"] .spec-info-section li {
  color: #FFFFFF;
}
[data-theme="dark"] .spec-cross-link {
  background: #162332;
  color: #FFFFFF;
}
[data-theme="dark"] .spec-cross-link:hover {
  background: #1A5CA0;
  color: #FFFFFF;
}

/* ── Spec Group Headers (All Providers page) ─────────────── */
[data-theme="dark"] .spec-group-header {
  border-bottom-color: #243548;
}
[data-theme="dark"] .spec-group-header h2 {
  color: #FFFFFF;
}
[data-theme="dark"] .spec-sub-group-title {
  color: #FFFFFF;
}
[data-theme="dark"] .spec-sub-group-title::after {
  background: #243548;
}

/* ── Location Category Header ────────────────────────────── */
[data-theme="dark"] .loc-category-header {
  background: #132031;
  border-bottom-color: #243548;
  color: #FFFFFF;
}

/* ── Back Link ───────────────────────────────────────────── */
[data-theme="dark"] .back-link {
  color: #FFFFFF;
}

/* ── Buttons on light surfaces ───────────────────────────── */
[data-theme="dark"] .btn-primary {
  background: #1A5CA0;
  color: #FFFFFF;
}
[data-theme="dark"] .btn-primary:hover {
  background: #2272C3;
}
[data-theme="dark"] .btn-schedule {
  background: #2272C3;
}
[data-theme="dark"] .btn-schedule:hover {
  background: #1A5CA0;
}
[data-theme="dark"] .provider-mini-schedule {
  background: #2272C3;
}
[data-theme="dark"] .provider-mini-schedule:hover {
  background: #1A5CA0;
}

/* ── Home Hero schedule/outline buttons (stay on dark bg — keep as-is) ── */
/* Hero sections already have dark gradient backgrounds, no change needed */

/* Transition for smooth theme switching */
body,
.site-header,
.dropdown-menu,
.dropdown-nested-menu,
.provider-card,
.location-card,
.faq-item,
.credentials-section,
.info-block,
.loc-contact-top,
.spec-tab,
.spec-panel-wrap,
.spec-content-col,
.providers-mini-grid,
.translate-dropdown,
.top-bar-dropdown-menu {
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

/* ── Universal white text in dark mode ──────────────────── */
/* Applies white text to ALL elements; light-bg elements     */
/* are overridden below with higher-specificity selectors.   */
[data-theme="dark"] * {
  color: #FFFFFF !important;
}

/* Icons use hardcoded SVG fill colors — no CSS color overrides needed */

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — specialty & global fixes
   ═══════════════════════════════════════════════════════ */

/* ── Specialty two-column content grids ─────────────────
   Replaces inline grid styles on replacement pages so
   media queries can override them.                        */
.spec-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .spec-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* Reset right-aligned fit-content cards to full width when stacked */
  .spec-right-card {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* ── Specialty provider team grids ──────────────────────
   Used for the 3-up team cards on replacement pages.     */
.spec-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 540px) {
  .spec-team-grid { grid-template-columns: 1fr; }
}

/* ── Hero icon: cap size on small phones ────────────────
   Inline style="width:160px" overrides class default (110px);
   this re-caps it at mobile.                              */
@media (max-width: 480px) {
  .page-hero-icon { width: 80px !important; height: 80px !important; }
  .rosa-block-header { flex-direction: column; }
}

/* ── Top-bar dropdown: accessible by tap (focus-within) ─
   CSS :hover only works on pointer devices; this makes
   the dropdown openable on tablets via tap.               */
.top-bar-dropdown:focus-within .top-bar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Light-background elements: force dark navy text ──────
   Covers both the element itself AND all its descendants    */
[data-theme="dark"] [style*="f0f6ff"],
[data-theme="dark"] [style*="f0f6ff"] *,
[data-theme="dark"] [style*="FFFDF0"],
[data-theme="dark"] [style*="FFFDF0"] *,
[data-theme="dark"] [style*="FFF8E1"],
[data-theme="dark"] [style*="FFF8E1"] *,
[data-theme="dark"] .portal-link {
  color: #0C3D6B !important;
}

/* ── US News Award Box: preserve all light-mode colors exactly in dark mode ── */
[data-theme="dark"] .us-news-award {
  background: #FFFDF0 !important;
  border-color: #D4AF37 !important;
}
[data-theme="dark"] .us-news-award [style*="#B8960C"] { color: #B8960C !important; }
[data-theme="dark"] .us-news-award [style*="var(--navy)"],
[data-theme="dark"] .us-news-award [style*="var(--navy)"] * { color: #0C3D6B !important; }
[data-theme="dark"] .us-news-award [style*="var(--gray)"] { color: #4A6080 !important; }
[data-theme="dark"] .us-news-award [style*="var(--blue)"] { color: #1A6BB5 !important; }

/* ── Emergency / 911 section: keep dark red text on light pink background */
[data-theme="dark"] [style*="FEF2F2"],
[data-theme="dark"] [style*="FEF2F2"] * {
  color: #7F1D1D !important;
}
/* ── Page Hero — keep light-blue text as light blue in dark mode ── */
[data-theme="dark"] .page-hero h1 span {
  color: #5BAEE8 !important;
}

/* ── Stats strip — keep accent spans light blue in dark mode ── */
[data-theme="dark"] .about-stat-number span {
  color: #5BAEE8 !important;
}

/* ── Location page iframe maps in dark mode ── */
[data-theme="dark"] iframe[src*="maps.google.com"],
[data-theme="dark"] iframe[src*="google.com/maps"] {
  filter: invert(1) hue-rotate(180deg);
}

/* ── rater8 reviews widget in dark mode ── */
[data-theme="dark"] iframe[src*="rater8.com"] {
  filter: invert(1) hue-rotate(180deg);
}

/* ── Locations map sidebar: highlighted card in dark mode ── */
[data-theme="dark"] .loc-summary-card:hover,
[data-theme="dark"] .loc-summary-card.highlighted {
  background: #162332 !important;
  border-left-color: var(--blue) !important;
}

/* ── Hamburger & Mobile Nav (dark mode) ─────────────────── */
[data-theme="dark"] .nav-hamburger-bar { background: #FFFFFF; }
[data-theme="dark"] .nav-hamburger:hover { background: #162332; }
@media (max-width: 768px) {
  [data-theme="dark"] .site-header.nav-open .nav-links {
    background: #0D1A27;
    border-color: #243548;
    border-bottom-color: var(--blue);
  }
  [data-theme="dark"] .nav-links > a,
  [data-theme="dark"] .nav-dropdown > a {
    color: #FFFFFF !important;
    border-bottom-color: #243548 !important;
  }
  [data-theme="dark"] .nav-links > a:hover,
  [data-theme="dark"] .nav-dropdown > a:hover { background: #132031 !important; }
  [data-theme="dark"] .nav-dropdown .dropdown-menu {
    background: #111E2C !important;
    border-top-color: #243548 !important;
  }
  [data-theme="dark"] .dropdown-menu a {
    border-bottom-color: #243548 !important;
    color: #FFFFFF !important;
  }
  [data-theme="dark"] .dropdown-menu a:hover { background: #162332 !important; }
  [data-theme="dark"] .nav-dropdown > a::after { color: #FFFFFF; }
}

/* ── Logo dark mode ─────────────────────────────────────── */
/* CSS swap handles Chromium/Safari instantly (no flash);
   JS applyTheme handles Firefox as fallback              */
[data-theme="dark"] .nav-logo img {
  content: url('../images/precision-logo-dark.jpg');
  width: 243px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

/* ── Careers page: Roles card ───────────────────────────── */
[data-theme="dark"] .careers-roles {
  background: #111E2C !important;
  border-color: #243548 !important;
}
[data-theme="dark"] .careers-role-item {
  background: #0D1A27 !important;
  border-color: #243548 !important;
}

/* ── Careers page: View Open Positions button ───────────── */
[data-theme="dark"] .btn-careers {
  background: #0D1A27 !important;
  color: #FFFFFF !important;
  border: 2px solid rgba(255,255,255,0.35);
}

/* ── Google Maps InfoWindow dark mode ───────────────────── */
[data-theme="dark"] .gm-style .gm-style-iw-c {
  background: #0D1A27 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}
[data-theme="dark"] .gm-style .gm-style-iw-d {
  overflow: auto !important;
}
/* Arrow/tail pointing to the marker */
[data-theme="dark"] .gm-style .gm-style-iw-t::after {
  background: #0D1A27 !important;
}
/* Close button icon */
[data-theme="dark"] .gm-style .gm-ui-hover-effect > span {
  background: #FFFFFF !important;
}

/* ══════════════════════════════════════════════════════════
   MOBILE FIXES — comprehensive responsive improvements
   ══════════════════════════════════════════════════════════ */

/* ── Specialty page main 2-column layout ─────────────────
   Replaces the old inline style="display:grid; grid-template-columns:1fr 1fr; gap:48px"
   on the main content wrapper of each specialty page.       */
.spec-page-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .spec-page-grid { gap: 32px; }
}
@media (max-width: 768px) {
  .spec-page-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px 20px 0;
  }
}
@media (max-width: 480px) {
  .spec-page-grid { padding: 12px 16px 0; gap: 24px; }
}

/* ── Location page provider card grid ────────────────────
   Replaces old inline style="display:grid; grid-template-columns:1fr 1fr; gap:10px"
   on provider cards within location pages.                  */
.loc-provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 540px) {
  .loc-provider-grid { grid-template-columns: 1fr; }
}

/* ── Location content left col: border & padding ─────────
   Applied via CSS class; mobile override swaps to border-bottom */
.loc-content-grid .loc-content-left {
  border-right: 1px solid var(--border);
  padding-right: 40px;
}
@media (max-width: 820px) {
  .loc-content-grid .loc-content-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
  }
}

/* ── Minimum font size on mobile ─────────────────────────
   Inline labels as small as 11px become unreadable on phones */
@media (max-width: 768px) {
  [style*="font-size:11px"] { font-size: 13px !important; }
  [style*="font-size: 11px"] { font-size: 13px !important; }
}

/* ── Schedule button tap targets ─────────────────────────
   Inline padding:7px on "Schedule Online" links is below
   WCAG 44px minimum touch target. Increase on mobile.       */
@media (max-width: 768px) {
  [style*="padding:7px"][style*="background:#f0f6ff"],
  [style*="padding:7px"][style*="background: #f0f6ff"] {
    padding: 11px 12px !important;
    font-size: 13px !important;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ── Specialty page 3-column panels at tablet ────────────
   .spec-panel-cols is already 1-col at 820px but the 768px
   breakpoint that re-declares it ensures tablet coverage.   */
@media (max-width: 768px) {
  .spec-panel-cols { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Review card: consistent height across pages ─────────
   Already set on individual pages; global rule as fallback  */
.review-card {
  min-height: 380px;
  justify-content: center;
}

/* ── Provider photo: scale down on mobile ────────────────
   280px photo dominates the screen on phones; cap at 160px  */
@media (max-width: 480px) {
  .provider-photo-wrap.provider-photo-wrap-lg {
    width: 160px !important;
    height: 160px !important;
  }
}

/* ── Footer: guard against overflow on tiny phones ───────  */
@media (max-width: 360px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
