/* ─────────────────────────────────────────────
   ALPHA IT — GLOBAL NAVIGATION STYLES v5
   Aligned with nav.js v5 class names
───────────────────────────────────────────── */

/* NAV BASE */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 16, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(241, 156, 73, 0.15);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(11, 16, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(241, 156, 73, 0.2);
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    height: 76px;
    gap: 0;
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.nav-logo svg { height: 34px; width: auto; }

.nav-logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F19C49;
    line-height: 1;
}

/* DESKTOP NAV LIST */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 0 2rem;
    padding: 0;
    flex: 1;
    gap: 0.25rem;
}

.nav-item { position: static; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 0.93rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.nav-link:hover { color: #F19C49; }
.nav-link.active { color: #F19C49; }
.nav-link.nav-active { color: #F19C49; font-weight: 600; }
.mega-link.nav-active { background: rgba(241,156,73,0.08); border-color: rgba(241,156,73,0.2); }
.mega-link.nav-active .mega-link-title { color: #F19C49; }
.mobile-group-items a.nav-active { color: #F19C49; font-weight: 600; }

.nav-link .chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-item.mega-open > .nav-link .chevron,
.nav-item.open > .nav-link .chevron {
    transform: rotate(180deg);
}

/* NAV CTA */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* ─── MEGA PANELS ─── */
.mega-panel {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: #12181F;
    border-top: 2px solid rgba(241, 156, 73, 0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

/* Open via JS class (mega-open) OR hover */
.nav-item.has-mega.mega-open > .mega-panel,
.nav-item.has-mega:hover > .mega-panel {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mega-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2.5rem;
}

.mega-col-head {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #F19C49;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(241, 156, 73, 0.4);
    padding-bottom: 0.1rem;
}

.mega-links { display: flex; flex-direction: column; gap: 0.15rem; }

.mega-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    color: rgba(255,255,255,0.82);
    transition: background 0.15s, color 0.15s;
}

.mega-link:hover {
    background: rgba(241, 156, 73, 0.08);
    color: #F19C49;
}

.mega-icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: rgba(241, 156, 73, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #F19C49;
    margin-top: 1px;
    transition: background 0.15s;
}

.mega-link:hover .mega-icon {
    background: rgba(241, 156, 73, 0.18);
}

.mega-icon svg { width: 16px; height: 16px; }

.mega-link-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mega-link-title {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
    color: inherit;
}
.mega-link-desc {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.2rem;
    line-height: 1.4;
}

.mega-link:hover .mega-link-desc { color: rgba(241, 156, 73, 0.6); }

/* ─── OVERLAY ─── */
.nav-overlay {
    position: fixed;
    inset: 0;
    top: 76px;
    background: rgba(0,0,0,0.5);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
/* JS adds .active class */
.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ─── HAMBURGER ─── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE DRAWER ─── */
/* JS creates: <div class="mobile-drawer" id="mobileDrawer"> */
.mobile-drawer {
    position: fixed;
    top: 76px;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: calc(100dvh - 76px);
    background: #12181F;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(241, 156, 73, 0.2);
    border-left: 1px solid rgba(255,255,255,0.06);
}

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

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    padding: 0.4rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.drawer-close:hover { color: #F19C49; }
.drawer-close svg { width: 22px; height: 22px; }

.mobile-nav {
    padding: 0.5rem 0 3rem;
    display: flex;
    flex-direction: column;
}

/* Mobile accordion groups */
.mobile-group { border-bottom: 1px solid rgba(255,255,255,0.07); }

.mobile-group-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.mobile-group-trigger:hover { color: #F19C49; }

.mobile-group-trigger .mchevron {
    width: 16px;
    height: 16px;
    transition: transform 0.25s;
    flex-shrink: 0;
    color: rgba(255,255,255,0.4);
}

.mobile-group.open .mobile-group-trigger .mchevron { transform: rotate(180deg); }
.mobile-group.open .mobile-group-trigger { color: #F19C49; }

/* JS creates: <div class="mobile-group-items"> */
.mobile-group-items {
    display: none;
    flex-direction: column;
    padding: 0.25rem 0 0.75rem 1.5rem;
    gap: 0;
    background: rgba(255,255,255,0.02);
}

.mobile-group.open .mobile-group-items { display: flex; }

.mobile-group-items a {
    display: block;
    padding: 0.6rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.92rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.mobile-group-items a:hover {
    color: #F19C49;
    background: rgba(241, 156, 73, 0.06);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 480px) {
    .nav-wrap { padding: 0 1.25rem; }
    .mobile-drawer { max-width: 100%; }
}
