:root {
  --nav-primary: #1f3c88;
  --nav-primary-light: #2d4a96;
  --nav-secondary: #b08d57;
  --nav-white: #ffffff;
  --nav-dark: #0b1730;
  --nav-muted: #64748b;
  --nav-border: #e5e7eb;
  --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --nav-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Ultra-Modern Navigation Base - Compact & Sticky */
.navbar-ultra-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-ultra-modern.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-bottom-color: #d1d5db;
}

/* Navigation Container */
.nav-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .nav-container {
    width: 100vw;
    max-width: 100vw;
    padding: 0 16px;
    box-sizing: border-box;
  }
}

/* Navigation Content - Compact */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  transition: min-height 0.3s ease;
}

.navbar-ultra-modern.scrolled .nav-content {
  min-height: 56px;
}

/* Brand Section */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-link:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: scale(1.02);
}

.brand-logo {
  height: 55px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  max-width: 280px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.navbar-ultra-modern.scrolled .brand-logo {
  height: 50px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.brand-tagline {
  font-size: 12px;
  color: var(--nav-muted);
  font-weight: 500;
}

/* Main Navigation */
.nav-main {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  max-width: 800px;
  margin: 0 20px 0 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #000000 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover,
.nav-link:focus {
  color: #1f3c88 !important;
  background: rgba(31, 60, 136, 0.08);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(31, 60, 136, 0.25);
  border-radius: 10px;
}

.nav-link:active {
  transform: translateY(0) scale(1.01);
  transition: all 0.1s ease;
}

/* Subtle underline animation for desktop nav */
.nav-link .link-underline { width: 0; }
.nav-link:hover .link-underline,
.nav-item.active .nav-link .link-underline { width: 90%; }

.link-text {
  position: relative;
  z-index: 2;
}

.link-underline {
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f3c88, #b08d57, #1f3c88);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(31, 60, 136, 0.3);
}

.nav-link:hover .link-underline,
.nav-item.active .nav-link .link-underline {
  width: 100%;
  bottom: -4px;
  height: 4px;
  box-shadow: 0 3px 12px rgba(31, 60, 136, 0.4);
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

/* Mega Dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--nav-shadow-lg);
  border: 1px solid var(--nav-border);
  padding: 32px;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.nav-dropdown:hover .mega-dropdown,
.nav-dropdown.active .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.dropdown-section {
  min-width: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--nav-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.practice-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.practice-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.practice-link:hover {
  background: rgba(31, 60, 136, 0.05);
  border-color: rgba(31, 60, 136, 0.1);
  text-decoration: none;
  transform: translateX(4px);
}

.practice-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.practice-info {
  min-width: 0;
}

.practice-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-dark);
  margin: 0 0 4px;
}

.practice-info p {
  font-size: 12px;
  color: var(--nav-muted);
  margin: 0;
  line-height: 1.4;
}

.view-all-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--nav-border);
}

.view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--nav-primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: var(--nav-primary-light);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1003;
  flex-shrink: 0;
}

/* Contact Info */
.contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(31, 60, 136, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-primary);
  font-size: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 12px;
  color: var(--nav-muted);
  font-weight: 500;
}

.contact-value {
  font-size: 14px;
  color: var(--nav-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-value:hover {
  color: var(--nav-primary);
  text-decoration: none;
}

/* CTA Button */
.cta-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-light));
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(31, 60, 136, 0.25);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 60, 136, 0.35);
  color: white;
  text-decoration: none;
}

.cta-text {
  font-weight: 600;
}

.cta-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon {
  transform: translateX(2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  margin: 0;
}

.mobile-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(31, 60, 136, 0.1), transparent);
  transition: left 0.5s;
}

.mobile-toggle:hover::before {
  left: 100%;
}

.mobile-toggle:hover {
  background: #f8f9fa;
  transform: scale(1.05);
  border-color: #1f3c88;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-line {
  width: 24px;
  height: 3px;
  background: #000000;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  position: relative;
  z-index: 2;
}

.mobile-toggle.active .toggle-line-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .toggle-line-2 {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-toggle.active .toggle-line-3 {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(400px, 90vw);
  height: 100vh;
  background: #ffffff !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  overflow-y: auto;
  will-change: right;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0 !important;
}

.mobile-menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-brand {
  display: flex;
  align-items: center;
}

.mobile-logo {
  height: 45px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.mobile-close {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-close:hover {
  background: #1f3c88;
  color: white;
  border-color: #1f3c88;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(31, 60, 136, 0.3);
}

/* Mobile Menu Body */
.mobile-menu-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* Mobile Navigation Links */
.mobile-nav {
  margin-bottom: 32px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  color: #000000 !important;
  text-decoration: none;
  border-radius: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  background: rgba(248, 249, 250, 0.8);
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(31, 60, 136, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.mobile-nav-link:hover::before {
  left: 100%;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(31, 60, 136, 0.12);
  color: #1f3c88 !important;
  text-decoration: none;
  border-color: rgba(31, 60, 136, 0.3);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 4px 16px rgba(31, 60, 136, 0.25);
}

/* Clear active state for mobile to show what was clicked */
.mobile-nav-link:active,
.mobile-nav-link[aria-current="page"],
.mobile-nav-link.is-active {
  background: rgba(31, 60, 136, 0.18);
  color: #1f3c88 !important;
  border-color: rgba(31, 60, 136, 0.3);
  transform: translateX(8px) scale(1.02);
}

.mobile-nav-icon {
  width: 24px;
  text-align: center;
  font-size: 18px;
  color: var(--nav-primary);
  opacity: 0.8;
}

.mobile-nav-link:hover .mobile-nav-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Mobile Dropdown */
.mobile-dropdown {
  margin-bottom: 4px;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--nav-dark);
  text-align: left;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown.active .mobile-dropdown-toggle {
  background: rgba(31, 60, 136, 0.08);
  color: var(--nav-primary);
  border-color: rgba(31, 60, 136, 0.15);
}

.mobile-dropdown-toggle span {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-dropdown-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(31, 60, 136, 0.02);
  border-radius: 0 0 12px 12px;
  margin-top: 4px;
}

.mobile-dropdown.active .mobile-dropdown-content {
  max-height: 300px;
  padding: 12px 0;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 48px;
  color: var(--nav-muted);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-sub-link:hover {
  color: var(--nav-primary);
  background: rgba(31, 60, 136, 0.05);
  border-left-color: var(--nav-primary);
  text-decoration: none;
  transform: translateX(4px);
}

.mobile-sub-link.view-all {
  font-weight: 600;
  color: var(--nav-secondary);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--nav-border);
}

.mobile-sub-link.view-all:hover {
  color: var(--nav-primary);
  border-left-color: var(--nav-secondary);
}

/* Mobile Contact Section */
.mobile-contact-section {
  padding: 24px 0 0;
  border-top: 1px solid var(--nav-border);
}

.mobile-contact-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nav-dark);
  margin-bottom: 16px;
}

.mobile-contact-items {
  margin-bottom: 24px;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--nav-muted);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-contact-item:hover {
  background: rgba(31, 60, 136, 0.05);
  color: var(--nav-primary);
  border-color: rgba(31, 60, 136, 0.1);
  text-decoration: none;
  transform: translateX(2px);
}

.mobile-contact-item i {
  width: 20px;
  text-align: center;
  color: var(--nav-primary);
}

.mobile-cta {
  margin-bottom: 24px;
}

.mobile-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-light));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(31, 60, 136, 0.3);
}

.mobile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 60, 136, 0.4);
  text-decoration: none;
  color: white;
}

.mobile-emergency {
  background: linear-gradient(135deg, #fef3cd, #fde68a);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.emergency-label {
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emergency-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f59e0b;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.emergency-button:hover {
  background: #d97706;
  transform: scale(1.05);
  text-decoration: none;
  color: white;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .nav-container {
    padding: 0 16px;
  }
  
  .nav-main {
    margin: 0 20px;
  }
  
  .contact-info {
    display: none;
  }
}

@media (max-width: 992px) {
  .nav-content {
    min-height: 56px;
  }
  
  .brand-logo {
    height: 38px;
  }
  
  .navbar-ultra-modern.scrolled .brand-logo {
    height: 34px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 12px;
  }
  
  .nav-content {
    min-height: 52px;
  }
  
  .brand-logo {
    height: 36px;
  }
  
  .navbar-ultra-modern.scrolled .brand-logo {
    height: 32px;
  }
  
  .mobile-menu {
    width: min(350px, 85vw);
  }
  
  .cta-button .cta-text {
    display: none;
  }
  
  .cta-button {
    padding: 8px;
    min-width: 40px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 8px;
  }
  
  .nav-content {
    min-height: 48px;
  }
  
  .brand-logo {
    height: 32px;
  }
  
  .navbar-ultra-modern.scrolled .brand-logo {
    height: 28px;
  }
  
  .mobile-menu {
    width: 100vw;
  }
  
  .mobile-menu-header {
    padding: 12px;
  }
  
  .mobile-menu-body {
    padding: 12px;
  }
}

/* Dark mode support - keep header white with dark text */
@media (prefers-color-scheme: dark) {
  /* Force white header background in dark mode */
  .navbar-ultra-modern {
    background: #ffffff !important;
    border-bottom-color: #e5e7eb;
  }

  .navbar-ultra-modern.scrolled {
    background: #ffffff !important;
  }

  /* Desktop navigation colors */
  .nav-link,
  .brand-name {
    color: #000000 !important;
  }

  .nav-link:hover,
  .nav-link:focus {
    color: #1f3c88 !important;
    background: rgba(31, 60, 136, 0.08);
  }

  /* Mobile menu colors */
  .mobile-menu {
    background: #ffffff !important;
  }

  .mobile-menu-header {
    background: #ffffff !important;
  }

  .mobile-nav-link {
    color: #000000 !important;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    background: rgba(31, 60, 136, 0.12);
    color: #1f3c88 !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .nav-link {
    border: 2px solid transparent;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    border-color: var(--nav-primary);
  }
  
  .mobile-nav-link {
    border: 2px solid transparent;
  }
  
  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    border-color: var(--nav-primary);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .navbar-ultra-modern,
  .nav-link,
  .brand-logo,
  .mobile-menu,
  .mobile-toggle,
  .toggle-line {
    transition: none;
  }
}

.mobile-dropdown.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(31, 60, 136, 0.02);
  border-radius: 0 0 12px 12px;
  margin-top: -12px;
  padding-top: 12px;
}

.mobile-dropdown.active .mobile-dropdown-content {
  max-height: 600px;
  padding-bottom: 12px;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 56px;
  color: var(--nav-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.mobile-sub-link:hover {
  color: var(--nav-primary);
  background: rgba(31, 60, 136, 0.05);
  text-decoration: none;
  padding-left: 60px;
}

.mobile-sub-link.view-all {
  font-weight: 600;
  color: var(--nav-primary);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--nav-border);
}

/* Mobile Contact Section */
.mobile-contact-section {
  background: rgba(31, 60, 136, 0.02);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(31, 60, 136, 0.1);
  margin-top: 20px;
}

.mobile-contact-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nav-dark);
  margin-bottom: 16px;
  text-align: center;
}

.mobile-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: 10px;
  color: var(--nav-dark);
  text-decoration: none;
  border: 1px solid var(--nav-border);
  transition: all 0.3s ease;
}

.mobile-contact-item:hover {
  background: var(--nav-primary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 60, 136, 0.25);
}

.mobile-contact-item i {
  width: 20px;
  text-align: center;
  color: var(--nav-primary);
}

.mobile-contact-item:hover i {
  color: white;
}

/* Mobile CTA */
.mobile-cta {
  margin-bottom: 24px;
}

.mobile-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-light));
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(31, 60, 136, 0.3);
  margin-top: 8px;
}

.mobile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 60, 136, 0.4);
  color: white;
  text-decoration: none;
}


/* Responsive Design */
@media (max-width: 1200px) {
  .nav-container {
    padding: 0 16px;
  }
  
  .nav-main {
    margin: 0 24px;
  }
  
  .nav-menu {
    gap: 4px;
  }
  
  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .mega-dropdown {
    width: 500px;
    padding: 24px;
  }
  
  /* Hide contact info on smaller desktop screens */
  .contact-info {
    display: none !important;
  }
}

/* Desktop navigation visibility */
@media (min-width: 768px) {
  .nav-main {
    display: flex !important;
  }
  
  .mobile-toggle {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* Mobile/tablet responsive styles */
@media (max-width: 991.98px) {
  .nav-main {
    display: none !important;
  }
  
  .mobile-toggle {
    display: flex !important;
  }
  
  /* Show only logo and hamburger in header */
  .navbar-ultra-modern .nav-actions > *:not(.mobile-toggle) {
    display: none !important;
  }
  
  .navbar-ultra-modern .nav-content {
    min-height: 56px;
    gap: 12px;
  }
  
  .mobile-menu {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: min(400px, 90vw) !important;
    height: 100vh !important;
    z-index: 1000 !important;
    background: white !important;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  
  .mobile-menu.active {
    right: 0 !important;
  }
  
  .mobile-overlay {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 999 !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .nav-actions {
    gap: 12px;
    justify-content: flex-end;
    position: relative;
    z-index: 1003;
    flex-shrink: 0;
    margin-left: auto;
  }
  
  .nav-content {
    min-height: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-toggle {
    display: flex !important;
    z-index: 1004 !important;
    position: relative !important;
    background: #ffffff !important;
    border: 3px solid #000000 !important;
    width: 44px !important;
    height: 44px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .toggle-line {
    display: block !important;
    width: 20px !important;
    height: 3px !important;
    background: #000000 !important;
    margin: 2px 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
}

@media (max-width: 768px) {
  .navbar-ultra-modern {
    overflow-x: hidden;
  }
  
  .nav-container {
    padding: 0 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }
  
  .nav-content {
    min-height: 70px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  .navbar-ultra-modern.scrolled .nav-content {
    min-height: 65px;
  }
  
  .brand-logo {
    height: 50px;
    flex-shrink: 0;
  }
  
  .navbar-ultra-modern.scrolled .brand-logo {
    height: 45px;
  }
  
  .nav-brand {
    flex-shrink: 0;
    max-width: calc(100% - 60px);
  }
  
  .nav-actions {
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
  }
  
  .cta-button {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .cta-text {
    display: none;
  }
  
  .mobile-toggle {
    width: 44px !important;
    height: 44px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }
  
  .toggle-line {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-brand {
    max-width: calc(100% - 52px);
  }
  
  .mobile-toggle {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
  }
  
  .mobile-menu {
    width: 100vw;
    right: -100vw;
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-menu-body {
    padding: 16px;
  }
}

/* Body padding for fixed navbar */
body {
  padding-top: 90px;
}

/* Prevent horizontal scrolling on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Prevent body scrolling when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .navbar-ultra-modern {
    background: white;
    border-bottom: 2px solid black;
  }
  
  .nav-link {
    border: 1px solid transparent;
  }
  
  .nav-link:hover {
    border-color: black;
  }
}

/* Print styles */
@media print {
  .navbar-ultra-modern {
    display: none;
  }
  
  body {
    padding-top: 0;
  }
}

/* Scrolled state */
.navbar-modern.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.navbar-modern .container {
  padding: 8px 15px;
  transition: padding 0.3s ease;
}

.navbar-scrolled .container {
  padding: 4px 15px;
}

/* Modern Brand/Logo */
.navbar-brand-modern {
  display: flex;
  align-items: center;
  padding: 8px 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar-brand-modern:hover,
.navbar-brand-modern:focus {
  text-decoration: none;
  opacity: 0.9;
}

.logo-main {
  max-height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-scrolled .logo-main {
  max-height: 45px;
}

/* Modern Navigation Menu */
.navbar-nav-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-nav-modern .nav-item {
  position: relative;
}

.navbar-nav-modern .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark, #0b1730);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.navbar-nav-modern .nav-icon {
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.navbar-nav-modern .nav-link:hover,
.navbar-nav-modern .nav-link:focus {
  color: var(--primary-blue, #1f3c88);
  background: rgba(31, 60, 136, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.navbar-nav-modern .nav-link:hover .nav-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Active state */
.navbar-nav-modern .nav-item.active .nav-link,
.navbar-nav-modern .nav-item.active .nav-link:hover {
  color: var(--primary-blue, #1f3c88);
  background: rgba(31, 60, 136, 0.1);
  font-weight: 600;
}

/* CTA Button in Navigation */
.nav-cta .nav-link-cta {
  background: var(--primary-blue, #1f3c88);
  color: white !important;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta .nav-link-cta:hover {
  background: var(--primary-blue-600, #22408f);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 60, 136, 0.3);
  color: white !important;
  text-decoration: none;
}

/* Modern Dropdown */
.navbar-nav-modern .dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 12px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.modern-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown.open .modern-dropdown,
.dropdown:hover .modern-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modern-dropdown li {
  list-style: none;
  margin: 0;
}

.modern-dropdown li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark, #0b1730);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.modern-dropdown li a:hover {
  background: rgba(31, 60, 136, 0.05);
  color: var(--primary-blue, #1f3c88);
  padding-left: 24px;
  text-decoration: none;
}

.modern-dropdown li a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--primary-blue, #1f3c88);
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 8px 16px;
}

/* Modern Mobile Toggle */
.navbar-toggle-modern {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--primary-blue, #1f3c88);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.navbar-toggle-modern:hover {
  background: rgba(31, 60, 136, 0.1);
  transform: scale(1.05);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--primary-blue, #1f3c88);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.navbar-toggle-modern.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle-modern.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle-modern.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Emergency Contact in Mobile Menu */
.navbar-emergency-contact {
  padding: 20px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  text-align: center;
}

.emergency-text {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  margin-bottom: 8px;
  font-weight: 500;
}

.emergency-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--primary-blue, #1f3c88);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 20px;
  border: 2px solid var(--primary-blue, #1f3c88);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.emergency-phone:hover {
  background: var(--primary-blue, #1f3c88);
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-toggle-modern {
    display: flex;
  }

  .navbar-collapse-modern {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    margin-top: -1px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .navbar-collapse-modern.show {
    max-height: 600px;
    opacity: 1;
  }

  .navbar-nav-modern {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .navbar-nav-modern .nav-item {
    width: 100%;
  }

  .navbar-nav-modern .nav-link {
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    justify-content: flex-start;
  }

  .nav-cta .nav-link-cta {
    margin: 10px 16px 0;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
  }

  /* Mobile Dropdown */
  .modern-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(31, 60, 136, 0.02);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.open .modern-dropdown {
    max-height: 300px;
  }

  .modern-dropdown li a {
    padding: 12px 40px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .navbar-modern .container {
    padding: 8px 10px;
  }

  .logo-main {
    max-height: 45px;
  }

  .navbar-scrolled .logo-main {
    max-height: 40px;
  }
}

/* Fix for body padding when navbar is fixed */
body {
  padding-top: 80px;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading state for navigation */
.navbar-modern.loading {
  opacity: 0.8;
  pointer-events: none;
}

/* Accessibility improvements */
.navbar-nav-modern .nav-link:focus,
.navbar-toggle-modern:focus,
.nav-link-cta:focus {
  outline: 2px solid var(--primary-blue, #1f3c88);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar-modern {
    background: white;
    border-bottom: 2px solid #000;
  }
  
  .navbar-nav-modern .nav-link {
    color: #000;
    border: 1px solid transparent;
  }
  
  .navbar-nav-modern .nav-link:hover {
    border-color: #000;
    background: #f0f0f0;
  }
}

/* Print styles */
@media print {
  .navbar-modern {
    display: none;
  }
  
  body {
    padding-top: 0;
  }
}