/*
╔══════════════════════════════════════════════════════════════════╗
║  AK NETWORK SOLUTIONS — BEAUTIFUL MEGA MENU                      ║
║  ak_mega_menu.css                                                 ║
║                                                                   ║
║  Features:                                                        ║
║  ✅ Full-width dropdown with icon grid                           ║
║  ✅ Featured service highlight panel                             ║
║  ✅ Smooth fade + slide animations                               ║
║  ✅ Active state indicators                                      ║
║  ✅ Mobile hamburger with accordion                              ║
║  ✅ Sticky nav with blur backdrop                                ║
║  ✅ Brand colors: navy #0A1628 + orange #F97316                 ║
╚══════════════════════════════════════════════════════════════════╝
*/

/* ════════════════════════════════════════════════════════════
   NAV WRAPPER — Sticky + glassmorphism on scroll
════════════════════════════════════════════════════════════ */
#ak-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #0A1628;
  height: 70px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#ak-nav.ak-scrolled {
  height: 60px;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.ak-nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.ak-nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ak-nav-logo img { height: 38px; width: auto; }
.ak-nav-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.ak-nav-logo-text span { color: #F97316; }

/* ════════════════════════════════════════════════════════════
   TOP-LEVEL MENU LIST
════════════════════════════════════════════════════════════ */
.ak-menu {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.ak-menu > li {
  position: relative;
}
.ak-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.ak-menu > li > a:hover,
.ak-menu > li.ak-active > a {
  color: #fff;
  background: rgba(249,115,22,0.12);
}
.ak-menu > li.ak-has-mega > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.5);
  transition: transform 0.2s;
  margin-left: 2px;
}
.ak-menu > li.ak-has-mega:hover > a::after {
  transform: rotate(180deg);
  border-top-color: #F97316;
}
.ak-menu > li > a .ak-menu-icon {
  font-size: 15px;
  opacity: 0.7;
}

/* Orange accent bar on active */
.ak-menu > li.current-menu-item > a,
.ak-menu > li.current-menu-ancestor > a {
  color: #F97316;
}

/* ════════════════════════════════════════════════════════════
   MEGA DROPDOWN PANEL
════════════════════════════════════════════════════════════ */
.ak-mega {
  position: fixed;
  left: 0; right: 0;
  top: 70px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  border-top: 3px solid #F97316;
  padding: 32px 0 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
}
.ak-scrolled ~ .ak-mega,
#ak-nav.ak-scrolled .ak-mega {
  top: 60px;
}
.ak-menu > li:hover .ak-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ak-mega-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  gap: 32px;
}

/* ── Column layouts ──────────────────────── */
.ak-mega-inner.cols-4 { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
.ak-mega-inner.cols-3 { grid-template-columns: 1.5fr 1fr 1.2fr; }
.ak-mega-inner.cols-2 { grid-template-columns: 1.5fr 1.2fr; }
.ak-mega-inner.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Column heading */
.ak-mega-col-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #F97316;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

/* Service link item */
.ak-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.ak-mega-link:hover {
  background: #f8fafc;
  transform: translateX(3px);
}
.ak-mega-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0f6ff, #e0eeff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.ak-mega-link:hover .ak-mega-link-icon {
  background: linear-gradient(135deg, #fff3eb, #ffe4cc);
}
.ak-mega-link-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0A1628;
  line-height: 1.3;
}
.ak-mega-link-text span {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

/* ── Featured Panel (rightmost column) ───── */
.ak-mega-featured {
  background: linear-gradient(135deg, #0A1628, #1a3a5c);
  border-radius: 14px;
  padding: 24px 20px;
  color: #fff;
}
.ak-mega-featured-badge {
  display: inline-block;
  background: #F97316;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.ak-mega-featured h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.3;
}
.ak-mega-featured p {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 18px;
  line-height: 1.6;
}
.ak-mega-featured-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ak-mega-featured-stat .num {
  font-size: 20px;
  font-weight: 800;
  color: #F97316;
}
.ak-mega-featured-stat .label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
.ak-mega-cta {
  display: block;
  margin-top: 18px;
  background: #F97316;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.ak-mega-cta:hover { background: #ea6c0a; }

/* ── Location grid ─────────────────────── */
.ak-mega-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.ak-mega-location-grid a {
  font-size: 12.5px;
  color: #475569;
  text-decoration: none;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.ak-mega-location-grid a:hover { color: #F97316; }
.ak-mega-location-grid a::before {
  content: '📍';
  font-size: 10px;
  opacity: 0.6;
}

/* ── Simple dropdown (non-mega) ────────── */
.ak-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  border-top: 3px solid #F97316;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  z-index: 9998;
  list-style: none;
  margin: 0;
}
.ak-menu > li:hover .ak-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ak-dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s;
}
.ak-dropdown li a:hover {
  background: #f8fafc;
  color: #F97316;
  padding-left: 22px;
}

/* ════════════════════════════════════════════════════════════
   CTA BUTTON
════════════════════════════════════════════════════════════ */
.ak-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F97316;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ak-nav-cta:hover {
  background: #ea6c0a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

/* ════════════════════════════════════════════════════════════
   HAMBURGER + MOBILE NAV
════════════════════════════════════════════════════════════ */
.ak-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.ak-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.ak-hamburger.ak-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ak-hamburger.ak-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ak-hamburger.ak-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

#ak-mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: #0A1628;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 9997;
  padding: 16px 0 32px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#ak-mobile-nav.ak-open {
  transform: translateX(0);
}

/* Mobile menu items */
.ak-mobile-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.ak-mobile-item > a:hover { color: #F97316; }
.ak-mobile-item > a .ak-chevron {
  font-size: 10px;
  transition: transform 0.25s;
  opacity: 0.5;
}
.ak-mobile-item.ak-mobile-open > a .ak-chevron {
  transform: rotate(180deg);
  color: #F97316;
  opacity: 1;
}

/* Mobile sub-items */
.ak-mobile-sub {
  list-style: none;
  margin: 0; padding: 0;
  background: rgba(255,255,255,0.04);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ak-mobile-item.ak-mobile-open .ak-mobile-sub {
  max-height: 800px;
}
.ak-mobile-sub li a {
  display: block;
  padding: 10px 24px 10px 40px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.15s;
}
.ak-mobile-sub li a:hover {
  color: #F97316;
  padding-left: 46px;
}

/* Mobile CTA */
.ak-mobile-cta-wrap {
  padding: 20px 24px 0;
}
.ak-mobile-cta-wrap a {
  display: block;
  text-align: center;
  background: #F97316;
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ak-menu, .ak-nav-cta { display: none; }
  .ak-hamburger { display: flex; }
  #ak-mobile-nav { display: block; }
}
@media (max-width: 480px) {
  .ak-nav-inner { padding: 0 16px; }
  #ak-mobile-nav { top: 70px; }
}

/* ════════════════════════════════════════════════════════════
   PUSH BODY DOWN (compensate for fixed nav)
════════════════════════════════════════════════════════════ */
body { padding-top: 70px !important; }
