/* ==========================================================================
   CYBER VISION ENTERPRISE - LUXURY HEADER & NAVIGATION STYLES
   Modern Glassmorphic Header, Mega-Menu, Mobile Drawer & Bottom Navigation
   ========================================================================== */

/* 1. TOP TRUST BARS */
.topbar-desktop {
  background: #070d1e;
  color: #94a3b8;
  font-size: 0.775rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  position: relative;
  z-index: 60;
}

.topbar-desktop a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.topbar-desktop a:hover {
  color: #38bdf8;
}

.topbar-mobile {
  background: #070d1e;
  color: #cbd5e1;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  position: relative;
  z-index: 60;
}

@media (max-width: 767px) {
  .topbar-desktop { display: none !important; }
  .topbar-mobile { display: block !important; }
}

@media (min-width: 768px) {
  .topbar-desktop { display: block !important; }
  .topbar-mobile { display: none !important; }
}

/* 2. MAIN STICKY HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #cbd5e1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.header-logo-link {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

@media (max-width: 480px) {
  .header-logo-img {
    height: 38px;
  }
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.03);
}

/* 3. DESKTOP NAVIGATION MENU */
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1023px) {
  .nav-links-wrap {
    display: none !important;
  }
}

.nav-item-link {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  color: #334155;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item-link:hover {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.06);
}

.nav-item-link.active {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.08);
  font-weight: 700;
}

/* 4. MEGA MENU DROPDOWN */
.has-dropdown {
  position: relative;
}

.mega-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 900px;
  max-width: 94vw;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.22);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.has-dropdown:hover .mega-menu-dropdown,
.has-dropdown:focus-within .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.mega-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #eff6ff;
}

.mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mega-list li a {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
  display: block;
  padding: 3px 0;
  transition: all 0.2s ease;
}

.mega-list li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.mega-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mega-more-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mega-pill-link {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 4px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  color: #64748b;
  transition: all 0.2s ease;
}

.mega-pill-link:hover {
  color: var(--primary);
  border-color: #bfdbfe;
  background: #eff6ff;
}

/* 5. HEADER "FREE QUOTE" BUTTON */
.btn-free-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #ffffff !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 20px;
  min-height: 42px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-free-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
  filter: brightness(1.08);
}

/* 6. MOBILE HAMBURGER TOGGLE */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 1023px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

.mobile-nav-toggle:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary);
}

/* 7. MOBILE SIDE DRAWER */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.mobile-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  overflow-y: auto;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
}

.mobile-side-drawer.show {
  transform: translateX(0);
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: #eff6ff;
  color: var(--primary);
}

/* 8. FIXED MOBILE BOTTOM NAVIGATION BAR */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 900;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s ease;
}

.mobile-bottom-item.active,
.mobile-bottom-item:hover {
  color: var(--primary);
}

.mobile-bottom-fab {
  position: relative;
  top: -16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.mobile-bottom-fab:hover {
  transform: scale(1.08);
}

.mobile-bottom-spacer {
  height: 68px;
  display: block;
}

@media (min-width: 768px) {
  .mobile-bottom-spacer {
    display: none;
  }
}
