/* ==========================================================================
   Dr. Pablo Acebal, MD - Modern Neurosurgery & Spine Practice Stylesheet
   Fully responsive, accessible, high-performance design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400;1,6..72,600&display=swap');

/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
  /* Brand Medical Palette */
  --primary: #0a2540;
  --primary-dark: #06182c;
  --primary-light: #124373;
  --accent: #0284c7;
  --accent-light: #e0f2fe;
  --accent-dark: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.28);
  
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --teal-dark: #0f766e;
  
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --gold-dark: #b45309;
  
  /* Neutral Slate Palette */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #071f38;
  
  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #38bdf8;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.08);
  --shadow-glow: 0 0 25px -5px rgba(2, 132, 199, 0.35);
  
  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', 'Georgia', Cambria, serif;
  
  /* Layout */
  --container-max: 1220px;
  --header-height: 76px;
  --topbar-height: 40px;
  
  /* Animation / Transition */
  --transition-fast: 0.15s ease;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

/* ==========================================================================
   Top Announcement & Quick Contact Bar
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #e2e8f0;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #7dd3fc;
}

.top-bar-item a {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.lang-badge {
  background: rgba(2, 132, 199, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* Language Switcher Pill Control */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.site-header .lang-switcher {
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  color: #cbd5e1;
  transition: var(--transition-fast);
  line-height: 1.2;
}

.site-header .lang-btn {
  color: var(--text-muted);
}

.lang-btn:hover {
  color: #ffffff;
}

.site-header .lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--primary-dark) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lang-divider {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

.site-header .lang-divider {
  color: var(--border);
}

/* ==========================================================================
   Site Header & Sticky Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
  flex-shrink: 0;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px 12px;
  color: var(--primary);
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  background-color: var(--bg-alt);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-box .bar {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.insurance-name {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Buttons System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.25;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, var(--accent-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--bg-alt);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary) !important;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #051424 0%, #0a2540 50%, #0e3a63 100%);
  color: #ffffff;
  padding: 72px 0 90px 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.22) 0%, rgba(2, 132, 199, 0) 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 52px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 50%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 34px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-item h4 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-item p {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.35;
  font-weight: 500;
}

/* Hero Portrait Card */
.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(2, 132, 199, 0.25);
  backdrop-filter: blur(14px);
  max-width: 440px;
  margin: 0 auto;
}

.hero-img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #071f38;
}

.hero-img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-card-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(6, 24, 44, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-card-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.hero-card-badge-icon svg {
  width: 22px;
  height: 22px;
}

.hero-card-badge-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.hero-card-badge-text p {
  font-size: 0.775rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.2;
}

/* ==========================================================================
   Philosophy Callout Strip
   ========================================================================== */
.philosophy-strip {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  position: relative;
}

.philosophy-quote {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.philosophy-quote .quote-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  opacity: 0.35;
  margin: 0 auto 18px auto;
  display: block;
}

.philosophy-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.75;
  color: #1e293b;
  font-weight: 400;
  font-style: italic;
}

.philosophy-author {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.philosophy-author-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.philosophy-author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Section Header System
   ========================================================================== */
.section {
  padding: 88px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-white {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  background-color: var(--accent-light);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.075rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Clinical Specialties & Surgical Focus Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--teal) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-light) 0%, #bae6fd 100%);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08);
}

.feature-icon-box svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.feature-tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-dark);
  background-color: var(--teal-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Credentials & Qualifications Grid
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.credential-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.credential-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.credential-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.credential-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credential-icon svg {
  width: 22px;
  height: 22px;
}

.credential-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
}

.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.5;
}

.credential-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.credential-check svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   Interactive Insurance Section
   ========================================================================== */
.insurance-container {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.insurance-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.insurance-search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  width: 100%;
  max-width: 520px;
  gap: 12px;
  transition: var(--transition-fast);
}

.insurance-search-bar:focus-within {
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.insurance-search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  flex-shrink: 0;
}

.insurance-search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  outline: none;
  color: var(--text-main);
}

.insurance-search-bar input::placeholder {
  color: var(--text-light);
}

.insurance-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.insurance-filter-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.insurance-filter-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.insurance-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.insurance-count-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.insurance-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.insurance-pill-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.insurance-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(13, 148, 136, 0.4);
}

.insurance-pill-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-dark);
  background-color: var(--accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.insurance-pill:hover {
  border-color: var(--accent);
  background-color: #ffffff;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.insurance-no-results {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.insurance-no-results.visible {
  display: block;
}

.insurance-no-results h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.insurance-no-results p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.insurance-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.insurance-note a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Patient Reviews & Testimonials Section
   ========================================================================== */
.reviews-summary-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.reviews-summary-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.google-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.reviews-rating-digits {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.reviews-rating-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 52px;
}

.review-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.review-card::before {
  content: '“';
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 5rem;
  line-height: 1;
  font-family: var(--font-serif);
  color: var(--bg-alt);
  pointer-events: none;
  z-index: 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.reviewer-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.reviewer-info-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-tag {
  font-size: 0.725rem;
  color: var(--teal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.verified-tag svg {
  width: 12px;
  height: 12px;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: 0.95rem;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-body {
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.65;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-light);
}

.review-condition-tag {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.review-cta-box {
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 120%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.review-cta-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.review-cta-box p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Clinical & Office Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: #0f172a;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.92;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.1) 0%, rgba(10, 37, 64, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay-icon {
  transform: translateY(0);
}

.gallery-overlay-icon svg {
  width: 20px;
  height: 20px;
}

.gallery-overlay-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 24, 44, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-info {
  margin-top: 14px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 3002;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 3001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

/* ==========================================================================
   Office Location & Interactive Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-header {
  margin-bottom: 32px;
}

.contact-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 36px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 24px;
  height: 24px;
}

.contact-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-info p, .contact-info a {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.contact-info a {
  color: var(--accent-dark);
  font-weight: 600;
}

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

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.map-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.map-card-header {
  padding: 18px 24px;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.map-frame-wrapper {
  flex-grow: 1;
  width: 100%;
  min-height: 380px;
  border: 0;
}

/* ==========================================================================
   Modern Practice Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding: 72px 0 36px 0;
}

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

.footer-brand h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 22px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.925rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-disclaimer {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.65;
}

.footer-disclaimer strong {
  color: #f1f5f9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Mobile Quick Action Floating Bar
   ========================================================================== */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 1050;
}

.mobile-action-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    max-width: 560px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }
  
  .top-bar-inner {
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    gap: 20px;
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header-actions .btn-primary {
    display: none;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .features-grid,
  .reviews-grid,
  .credentials-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .reviews-summary-card {
    flex-direction: column;
    text-align: center;
  }
  
  .reviews-summary-left {
    flex-direction: column;
  }
  
  .mobile-action-bar {
    display: block;
  }
  
  body {
    padding-bottom: 74px;
  }
  
  .insurance-container {
    padding: 28px 18px;
  }
  
  .contact-card {
    padding: 30px 22px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .hero-img {
    height: 380px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .insurance-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .philosophy-text {
    font-size: 1.15rem;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
}
