/* ═══════════════════════════════════════════════════════════════════ */
/*  MENU UPGRADE — Premium Main Menu (2026)                              */
/*  Home | Solutions (mega) | Products | Portfolio | Global Presence |   */
/*  Company (dropdown) | Contact  +  Client Portal button                */
/* ═══════════════════════════════════════════════════════════════════ */

/* ─── DESKTOP ─────────────────────────────────────────────────────── */
@media (min-width: 769px) {

  /* Keep the whole bar on one line, comfortably */
  .nav-links { gap: 2px !important; margin-right: 14px !important; }
  .nav-link {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }

  /* ── Solutions 4-column mega menu ── */
  .mega-dropdown-solutions {
    min-width: 960px !important;
    max-width: 96vw;
  }
  .mega-inner-4col {
    display: grid !important;
    grid-template-columns: 0.9fr 1fr 1fr 1fr !important;
    gap: 0 !important;
  }
  .mega-inner-4col .mega-col { padding: 26px 20px !important; }
  .mega-inner-4col .mega-col-featured {
    background: linear-gradient(150deg, #0B5FD4 0%, #6941C6 100%) !important;
    border-radius: 18px 0 0 0 !important;
  }

  /* Highlight (AI & Automation) column */
  .mega-col-highlight {
    background: linear-gradient(180deg, rgba(122,61,240,0.05), rgba(11,95,212,0.02)) !important;
    position: relative;
  }
  .mega-col-highlight::before {
    content: '';
    position: absolute;
    top: 22px; bottom: 22px; left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(122,61,240,0.25), transparent);
  }

  /* ── Mega menu footer bar ── */
  .mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 26px;
    background: linear-gradient(90deg, rgba(11,95,212,0.05), rgba(122,61,240,0.05));
    border-top: 1px solid rgba(11,95,212,0.1);
  }
  .mega-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0b5fd4;
    transition: gap 0.25s ease, color 0.25s ease;
  }
  .mega-footer-link:hover { gap: 12px; color: #0a4fb0; }
  .mega-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0b5fd4, #7a3df0);
    box-shadow: 0 6px 16px -6px rgba(11,95,212,0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
  }
  .mega-footer-cta:hover {
    transform: translateY(-2px);
    gap: 12px;
    box-shadow: 0 10px 22px -6px rgba(122,61,240,0.6);
  }

  /* ── Company simple dropdown (single column card) ── */
  .simple-dropdown {
    min-width: 300px !important;
    left: auto !important;
    right: 0;
    transform: translateY(8px) !important;
  }
  .dropdown-company:hover .simple-dropdown,
  .dropdown-company.mobile-open .simple-dropdown {
    transform: translateY(0) !important;
  }
  .simple-dropdown::before { display: none !important; }
  .simple-dropdown-inner {
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 2px;
  }

  /* ── Client Portal — solid button on the far right ── */
  .nav-portal-btn {
    background: linear-gradient(135deg, #10203f 0%, #1e3a6e 100%) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px -4px rgba(16,32,63,0.5), 0 0 0 1px rgba(255,255,255,0.06) inset !important;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1) !important;
  }
  .nav-portal-btn::before { display: none !important; }
  .nav-portal-btn::after { display: none !important; }
  .nav-portal-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(16,32,63,0.65) !important;
    background: linear-gradient(135deg, #16294d 0%, #274b8c 100%) !important;
  }
  .nav-portal-btn .pmm-icon { color: #7fb4ff !important; }
  /* hide the mobile chevron on desktop */
  .nav-portal-btn .pmm-arrow,
  .nav-link .pmm-arrow { display: none; }

  /* POPULAR badge */
  .mega-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #e11d48);
    vertical-align: middle;
    box-shadow: 0 2px 8px -2px rgba(225,29,72,0.6);
  }
}

/* ─── MOBILE ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* 4-col mega collapses to a single scrollable stack (featured hidden) */
  .mega-inner-4col {
    display: block !important;
    grid-template-columns: none !important;
  }
  .mega-inner-4col .mega-col-featured { display: none !important; }
  .mega-inner-4col .mega-col { padding: 8px 14px !important; }
  .mega-col-highlight::before { display: none !important; }

  .simple-dropdown-inner { padding: 4px 6px; }

  /* Mega footer stacks on mobile */
  .mega-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px 16px;
  }
  .mega-footer-link,
  .mega-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
  }
  .mega-footer-link { color: #7fb4ff !important; padding: 8px; }
  .mega-footer-cta {
    padding: 12px;
    border-radius: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, #0b5fd4, #7a3df0);
  }

  /* Client Portal button styling inside mobile drawer */
  .nav-portal-item { margin-top: 6px; }
  .nav-portal-btn {
    background: linear-gradient(135deg, rgba(127,180,255,0.14), rgba(122,61,240,0.12)) !important;
    border: 1px solid rgba(127,180,255,0.25) !important;
    border-radius: 12px !important;
  }
  .nav-portal-btn .pmm-icon { color: #7fb4ff !important; }

  /* POPULAR badge in mobile */
  .mega-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #e11d48);
    vertical-align: middle;
  }
}
