/* ═══════════════════════════════════════════════════════
   SHUMOKH — MEGA MENU & ARCHITECTURAL NAVIGATION
   Lightweight, high-performance, accessible, RTL-native
   ═══════════════════════════════════════════════════════ */

.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-item-dropdown > .nav-link svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover > .nav-link svg,
.nav-item-dropdown:focus-within > .nav-link svg {
  transform: rotate(180deg);
}

/* Mega dropdown container */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -80px;
  width: 720px;
  background: rgba(10, 10, 12, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1050;
  pointer-events: none;
}

/* Invisible hover bridge to prevent menu closing */
.mega-dropdown::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.nav-item-dropdown:hover .mega-dropdown,
.nav-item-dropdown:focus-within .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #dfba73;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-header a.view-all-link {
  font-size: 0.8rem;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s;
}

.mega-header a.view-all-link:hover {
  color: #dfba73;
}

.mega-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
}

.mega-link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mega-link-card:hover {
  background: rgba(197, 160, 89, 0.08);
  border-color: rgba(197, 160, 89, 0.3);
  transform: translateX(-3px);
}

.mega-link-card .mega-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(197, 160, 89, 0.12);
  color: #dfba73;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.mega-link-card .mega-info {
  display: flex;
  flex-direction: column;
}

.mega-link-card .mega-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.2s;
}

.mega-link-card:hover .mega-title {
  color: #dfba73;
}

.mega-link-card .mega-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Mobile dropdown support inside drawer */
@media (max-width: 1023px) {
  .mega-dropdown {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   UNIFIED MEGA FOOTER SOCIAL & MOBILE DRAWER STYLES
   ═══════════════════════════════════════════════════════ */

.mega-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.mega-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.mega-footer-social a:hover {
  background: #dfba73;
  color: #0a0a0c;
  border-color: #dfba73;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(223, 186, 115, 0.25);
}

.mega-footer-social a svg {
  width: 18px;
  height: 18px;
}

/* Mobile Nav Drawer overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(10, 10, 12, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a.nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav a.nav-link:hover {
  color: #dfba73;
}

.mobile-nav .btn {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}
