/* Header Component Styles */

/* Hamburger animation */
.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Dropdown arrow rotation */
[data-dropdown-container] button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Focus visible styles for better accessibility */
.focus-visible:focus {
  outline: 2px solid #E31C3D;
  outline-offset: 2px;
}

/* Mobile menu slide animation improvements */
[data-header-target="mobileMenu"] {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backdrop fade animation */
[data-header-target="backdrop"] {
  transition: opacity 0.3s ease-in-out;
}

/* Ensure proper z-index stacking */
.dropdown-menu {
  z-index: 60;
}

/* COMPACT & READABLE DROPDOWN MENU STYLES - OVERRIDE ALL EXISTING STYLES */

/* Main dropdown container - Made bigger for easier scanning */
.dropdown-menu.services-dropdown {
  min-width: 750px !important;
  max-width: 800px !important;
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 22px !important;
  padding: 22px !important;
  left: -220px !important;
  max-height: 80vh !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* CRITICAL: Dropdown container hover functionality */
.dropdown-container:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Dropdown sections - More spacious */
.dropdown-menu.services-dropdown .dropdown-section {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  border: 1px solid rgba(226, 232, 240, 0.4) !important;
}

.dropdown-menu.services-dropdown .dropdown-section.primary {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
  border: 2px solid rgba(251, 191, 36, 0.2) !important;
}

/* Bigger, more readable headers */
.dropdown-menu.services-dropdown .dropdown-header {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e40af !important;
  margin: 0 0 12px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid #fbbf24 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  position: relative !important;
}

.dropdown-menu.services-dropdown .dropdown-header.primary {
  font-size: 13px !important;
  color: #b45309 !important;
  font-weight: 700 !important;
}

/* Bigger, more scannable dropdown links */
.dropdown-menu.services-dropdown .dropdown-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  color: #1e40af !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
  margin: 3px 0 !important;
  position: relative !important;
  overflow: hidden !important;
  line-height: 1.4 !important;
}

/* Larger service icons */
.dropdown-menu.services-dropdown .service-icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* More spaced service categories */
.dropdown-menu.services-dropdown .service-category {
  margin-bottom: 10px !important;
}

.dropdown-menu.services-dropdown .category-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #b45309 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  margin-bottom: 6px !important;
  padding-left: 14px !important;
  opacity: 0.9 !important;
}

/* Enhanced hover effects for better UX */
.dropdown-menu.services-dropdown .dropdown-link:hover {
  background: rgba(251, 191, 36, 0.1) !important;
  transform: translateX(3px) !important;
  color: #1e40af !important;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .dropdown-menu.services-dropdown {
    min-width: 700px !important;
    max-width: 750px !important;
    left: -200px !important;
  }
}

/* Smooth hover transitions for all interactive elements */
header a,
header button {
  transition: all 0.2s ease-in-out;
}

/* Brand color utilities */
.text-brand-red {
  color: #E31C3D;
}

.bg-brand-red {
  background-color: #E31C3D;
}

.border-brand-red {
  border-color: #E31C3D;
}

.text-brand-blue {
  color: #004AAD;
}

.bg-brand-blue {
  background-color: #004AAD;
}

/* Responsive typography improvements */
@media (max-width: 640px) {
  .mobile-menu-link {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  header {
    border-bottom: 2px solid #000;
  }
  
  .dropdown-menu {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
} 
