/* ========================================
   GLOBAL HEADER STYLES
   ========================================
   Comprehensive header and navigation styles for ZAutoSound
   Extracted from main.css for better organization
   ======================================== */

/* ========================================
   NAVIGATION CORE STYLES
   ======================================== */

/* Navigation active state */
.nav-active {
  color: #ef4444 !important;
  position: relative;
}

.nav-active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ef4444;
  border-radius: 2px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #374151 !important;
}

.nav-link:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626 !important;
}

/* ========================================
   HAMBURGER MENU ANIMATION
   ======================================== */

.hamburger-line {
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenuButton.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#mobileMenuButton.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobileMenuButton.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   MOBILE MENU STYLES
   ======================================== */

#mobileMenu {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  display: none; /* Force hidden by default */
}

#mobileMenu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  display: block; /* Show when active */
}

/* Mobile menu backdrop */
#mobileMenuBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#mobileMenuBackdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   MOBILE MENU ITEMS
   ======================================== */

/* Enhanced Mobile Menu Items - Only apply to mobile/tablet */
@media (max-width: 1023px) {
  .mobile-menu-item {
    position: relative;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 18px 24px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: transparent;
    font-size: 16px;
  }

  .mobile-menu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .mobile-menu-item:hover,
  .mobile-menu-item:focus {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05));
    color: #dc2626;
    transform: translateX(4px);
  }

  /* Active state for current page */
  .mobile-menu-item.text-red-600,
  .mobile-menu-item.text-red-600.bg-red-50 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1)) !important;
    color: #dc2626 !important;
    font-weight: 600 !important;
    border-left: 4px solid #dc2626;
    padding-left: 20px;
    box-shadow: inset 0 1px 3px rgba(239, 68, 68, 0.1);
  }

  .mobile-menu-item.text-red-600::before,
  .mobile-menu-item.text-red-600.bg-red-50::before {
    opacity: 1;
    filter: brightness(1.2);
  }

  /* Current page indicator */
  .current-page-indicator {
    font-size: 12px;
    font-weight: 500;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    white-space: nowrap;
    border: 1px solid rgba(239, 68, 68, 0.2);
  }

  /* Add icons to mobile menu items */
  .mobile-menu-item::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .mobile-menu-item:hover::before {
    opacity: 1;
    transform: scale(1.1);
  }

  /* Icon styles for different menu items */
  .mobile-menu-item[href*="home"]::before,
  .mobile-menu-item[href="/"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
  }

  /* Active home icon with red color */
  .mobile-menu-item.text-red-600[href*="home"]::before,
  .mobile-menu-item.text-red-600[href="/"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23dc2626" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
  }

  .mobile-menu-item[href*="service"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
  }

  .mobile-menu-item[href*="audio"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>');
  }

  .mobile-menu-item[href*="video"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/></svg>');
  }

  .mobile-menu-item[href*="security"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,7C13.4,7 14.8,8.6 14.8,10V11H16V16H8V11H9.2V10C9.2,8.6 10.6,7 12,7M12,8.2C11.2,8.2 10.4,8.7 10.4,10V11H13.6V10C13.6,8.7 12.8,8.2 12,8.2Z"/></svg>');
  }

  .mobile-menu-item[href*="tint"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3Z"/></svg>');
  }

  .mobile-menu-item[href*="gallery"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M21,19V5c0-1.1-0.9-2-2-2H5c-1.1,0-2,0.9-2,2v14c0,1.1,0.9,2,2,2h14C20.1,21,21,20.1,21,19z M8.5,13.5l2.5,3.01 L14.5,12l4.5,6H5L8.5,13.5z"/></svg>');
  }

  .mobile-menu-item[href*="about"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,17C11.4,17 11,16.6 11,16V12C11,11.4 11.4,11 12,11C12.6,11 13,11.4 13,12V16C13,16.6 12.6,17 12,17M12,9A1,1 0 0,1 11,8A1,1 0 0,1 12,7A1,1 0 0,1 13,8A1,1 0 0,1 12,9Z"/></svg>');
  }

  .mobile-menu-item[href*="review"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"/></svg>');
  }

  .mobile-menu-item[href*="warrant"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"/></svg>');
  }

  .mobile-menu-item[href*="contact"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z"/></svg>');
  }

  .mobile-menu-item[href*="signup"]::before,
  .mobile-menu-item[href*="sign-up"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23374151" viewBox="0 0 24 24"><path d="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z"/></svg>');
  }

  /* Better touch targets */
  .mobile-menu-item {
    min-height: 60px !important;
    font-size: 16px;
    -webkit-tap-highlight-color: rgba(239, 68, 68, 0.1);
  }

  /* Swipe indicators */
  .mobile-menu-item::after {
    content: '›';
    margin-left: auto;
    color: #9ca3af;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: translateX(-4px);
    opacity: 0;
  }

  .mobile-menu-item:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: #dc2626;
  }
}

#mobileMenu.active .mobile-menu-item {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger animation for menu items */
#mobileMenu.active .mobile-menu-item:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.active .mobile-menu-item:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-menu-item:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.active .mobile-menu-item:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.active .mobile-menu-item:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.active .mobile-menu-item:nth-child(6) { transition-delay: 0.3s; }
#mobileMenu.active .mobile-menu-item:nth-child(7) { transition-delay: 0.35s; }
#mobileMenu.active .mobile-menu-item:nth-child(8) { transition-delay: 0.4s; }
#mobileMenu.active .mobile-menu-item:nth-child(9) { transition-delay: 0.45s; }
#mobileMenu.active .mobile-menu-item:nth-child(10) { transition-delay: 0.5s; }
#mobileMenu.active .mobile-menu-item:nth-child(11) { transition-delay: 0.55s; }
#mobileMenu.active .mobile-menu-item:nth-child(12) { transition-delay: 0.6s; }

/* ========================================
   MOBILE MENU ENHANCEMENTS
   ======================================== */

/* Special styling for primary CTA button in mobile menu */
.mobile-menu-item.mobile-cta {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: white !important;
  font-weight: 600;
  margin: 12px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  border: none;
}

.mobile-menu-item.mobile-cta::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>');
}

.mobile-menu-item.mobile-cta:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Services sub-menu grouping */
.mobile-services-group {
  background: rgba(248, 250, 252, 0.8);
  margin: 8px 0;
  border-radius: 8px;
  overflow: hidden;
}

.mobile-services-group .mobile-menu-item {
  padding-left: 48px;
  font-size: 14px;
  min-height: 48px;
  color: #6b7280;
}

.mobile-services-group .mobile-menu-item::before {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* ========================================
   DROPDOWN MENU STYLES
   ======================================== */

/* Dropdown menu styles */
.group:hover .group-hover\:opacity-100,
.group:hover [class*="group-hover:opacity-100"] {
  opacity: 1 !important;
}

.group:hover .group-hover\:visible,
.group:hover [class*="group-hover:visible"] {
  visibility: visible !important;
}

/* Alternative dropdown implementation - more specific */
.nav-desktop .group:hover .absolute,
.nav-desktop .relative.group:hover > .absolute {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Services dropdown specific */
.nav-desktop .group .absolute {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 16rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 50;
  transform: translateY(-4px);
}

/* ========================================
   RESPONSIVE NAVIGATION
   ======================================== */

/* Desktop Navigation - Show on large screens */
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .nav-desktop-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .nav-mobile-button, #mobileMenuButton {
    display: none !important;
  }
  
  .nav-mobile-actions {
    display: none !important;
  }
  
  .nav-mobile-menu, #mobileMenu {
    display: none !important;
  }
}

/* Mobile Navigation - Show on small screens */
@media (max-width: 1023px) {
  .nav-desktop {
    display: none !important;
  }
  
  .nav-desktop-actions {
    display: none !important;
  }
  
  .nav-mobile-button, #mobileMenuButton {
    display: flex !important;
    visibility: visible !important;
  }
  
  .nav-mobile-actions {
    display: flex !important;
  }
  
  .nav-mobile-menu, #mobileMenu {
    display: block !important;
  }
}

/* Login/Signup text visibility control */
.login-text, .signup-text {
  display: inline; /* Show text on desktop by default */
}

/* Hide only the text on mobile screens (below 768px), keep the buttons/icons visible */
@media (max-width: 767px) {
  .login-text, .signup-text {
    display: none !important;
  }
}

/* ========================================
   MOBILE HEADER POSITIONING
   ======================================== */

/* Improved header positioning for mobile */
@media (max-width: 768px) {
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    width: 100% !important;
  }
  
  /* Better mobile spacing */
  nav {
    padding: 12px 16px;
    position: relative !important;
  }
  
  /* Ensure mobile menu button doesn't scroll */
  .nav-mobile-button, #mobileMenuButton {
    position: relative !important;
    transform: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
  }
  
  /* Override any inline transform styles */
  .nav-mobile-button[style*="transform"], #mobileMenuButton[style*="transform"] {
    transform: none !important;
  }
  
  /* Mobile contact bar - appears above main nav */
  .mobile-contact-bar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 51;
  }

  .mobile-contact-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .mobile-contact-bar .contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
  }

  .mobile-contact-bar .contact-info a:hover {
    opacity: 0.9;
  }

  .mobile-contact-bar .business-hours {
    font-size: 12px;
    opacity: 0.9;
  }
  
  /* Mobile menu positioning - Fix height and scrolling */
  #mobileMenu {
    top: 100%;
    max-height: calc(100vh - 120px) !important;
    min-height: auto !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding-bottom: 20px !important;
  }
  
  /* Ensure menu items are properly sized */
  .mobile-menu-item {
    padding: 16px 20px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
  
  /* Last menu item shouldn't have border */
  .mobile-menu-item:last-child {
    border-bottom: none !important;
  }

  /* Mobile search bar in menu */
  .mobile-search-container {
    padding: 16px 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(248, 250, 252, 0.5);
  }

  .mobile-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    position: relative;
  }

  .mobile-search-container::before {
    content: '🔍';
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
  }

  /* Emergency contact highlight */
  .mobile-emergency-contact {
    background: rgba(220, 38, 38, 0.1);
    margin: 8px 16px;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    font-size: 14px;
    color: #dc2626;
    font-weight: 600;
  }

  .mobile-emergency-contact a {
    color: #dc2626;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* Old tablet section - keep mobile menu functionality */
@media (min-width: 769px) and (max-width: 1023px) {
  /* Ensure mobile menu still works on tablets */
  #mobileMenu {
    max-width: 400px !important;
    right: 16px !important;
    left: auto !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    width: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
  }
  
  .mobile-menu-item {
    padding: 14px 18px !important;
    min-height: 50px !important;
  }

  /* Tablet-specific mobile menu adjustments */
  .mobile-search-container {
    padding: 12px 16px;
  }

  .mobile-quick-actions {
    padding: 12px;
    gap: 8px;
  }

  .mobile-quick-action {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ========================================
   MOBILE MENU ADVANCED FEATURES
   ======================================== */

/* Progressive disclosure for services */
.mobile-services-toggle {
  background: rgba(239, 68, 68, 0.05);
  border: none;
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 4px;
}

.mobile-services-toggle:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.mobile-services-toggle.expanded {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.mobile-services-toggle::after {
  content: '+';
  font-size: 20px;
  font-weight: bold;
  color: #dc2626;
  transition: transform 0.3s ease;
}

.mobile-services-toggle.expanded::after {
  transform: rotate(45deg);
}

.mobile-services-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  margin: 4px 0 8px 0;
}

.mobile-services-submenu.expanded {
  max-height: 400px;
  border: 2px solid rgba(239, 68, 68, 0.2);
  background: rgba(254, 242, 242, 0.9);
  box-shadow: inset 0 2px 4px rgba(239, 68, 68, 0.1);
}

.mobile-services-submenu a {
  display: block;
  padding: 14px 20px;
  color: #4B5563;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  background: transparent;
}

.mobile-services-submenu a:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-left-color: rgba(239, 68, 68, 0.3);
  padding-left: 24px;
}

/* Active state for submenu items (current page) */
.mobile-services-submenu a.text-red-600 {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626 !important;
  border-left-color: #dc2626;
  font-weight: 600;
  padding-left: 24px;
}

/* Quick action buttons */
.mobile-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-quick-action {
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-quick-action.primary {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.mobile-quick-action.secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.mobile-quick-action:hover {
  transform: translateY(-2px);
}

.mobile-quick-action.primary:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Social links in mobile menu */
.mobile-social-links {
  padding: 16px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(248, 250, 252, 0.3);
}

.mobile-social-links h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.mobile-social-links .social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.mobile-social-links .social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.mobile-social-links .social-icons a:hover {
  transform: scale(1.1);
}

/* ========================================
   HEADER BASE STYLES
   ======================================== */

/* Ensure header is visible */
header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navigation container visibility */
nav {
  min-height: 60px;
}