/* ═══════════════════════════════════════════════════════
   NAVBAR-MEGA-ADDON.CSS
   Mega dropdown menu — desktop + full mobile responsive
   Works alongside base.css navbar styles
═══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   MEGA TRIGGER
══════════════════════════════════════ */
.mega-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.mega-arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.mega-parent.is-open .mega-arrow {
    transform: rotate(180deg);
}

/* ══════════════════════════════════════
   MEGA PANEL — desktop dropdown
══════════════════════════════════════ */
.mega-panel {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 999;
    background: #0a0a0ae0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.mega-parent.is-open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 80px;
    display: grid;
    grid-template-columns: 160px 1fr 240px;
    gap: 0;
    min-height: 320px;
}

/* ══════════════════════════════════════
   LEFT: INDUSTRY CATEGORY TABS
══════════════════════════════════════ */
.mega-cats {
    padding-right: 24px;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-cats-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mega-cat-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}

.mega-cat-btn svg {
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.mega-cat-btn:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}

.mega-cat-btn.active {
    background: rgba(61,180,81,0.1);
    color: #3db451;
}

.mega-cat-btn.active svg {
    opacity: 1;
}

.mega-cats-divider {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════
   CENTRE: PRODUCT PANELS
══════════════════════════════════════ */
.mega-products-wrap {
    padding: 0 32px;
    position: relative;
}

.mega-products-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.mega-products-panel.active {
    display: flex;
}

.mega-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mega-prod-series {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.mega-series-link {
    font-size: 11px;
    font-weight: 700;
    color: #3db451;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.mega-series-link:hover {
    opacity: 0.7;
}

.mega-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.mega-prod-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.mega-prod-item:hover {
    background: rgba(255,255,255,0.04);
}

.mega-prod-num {
    font-size: 10px;
    font-weight: 800;
    color: #3db451;
    letter-spacing: 1px;
    line-height: 1.6;
    flex-shrink: 0;
    width: 18px;
}

.mega-prod-name {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0px;
    line-height: 1.3;
    transition: color 0.2s;
}

.mega-prod-item:hover .mega-prod-name {
    color: #fff;
}

.mega-prod-type {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.35);
    line-height: 1.4;
    margin-top: 2px;
}

/* ══════════════════════════════════════
   RIGHT: CTA CARDS
══════════════════════════════════════ */
.mega-cta {
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-cta-card {
    padding: 18px 16px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.02);
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, background 0.2s;
}

.mega-cta-card:hover {
    border-color: rgba(61,180,81,0.3);
    background: rgba(61,180,81,0.04);
}


.mega-cta-card.secondary:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

.mega-cta-icon {
    width: 36px;
    height: 36px;
    background: rgba(61,180,81,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3db451;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.mega-cta-card.secondary .mega-cta-icon {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
}

.mega-cta-eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 6px;
}

.mega-cta-text {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

.mega-cta-btn {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #3db451;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.mega-cta-btn:hover {
    opacity: 0.7;
}

.mega-cta-btn.secondary-btn {
    color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════════
   BACKDROP
══════════════════════════════════════ */
.mega-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.mega-backdrop.is-visible {
    display: block;
}

/* ══════════════════════════════════════
   NAV CTA LINK (right side)
══════════════════════════════════════ */
.nav-cta-link {
    display: inline-block;
    padding: 9px 22px;
    background: #00000000;
    border: 1px solid rgba(61, 180, 81, 0.3);
    color: #3db451 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-cta-link:hover {
    background: #49d060;
    transform: translateY(-1px);
}

.nav-cta-link {
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(61, 180, 81, 0.3);
    padding: 5px 14px !important;
    transition: background 0.2s, border-color 0.2s !important;
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .mega-inner {
        grid-template-columns: 140px 1fr 200px;
        padding: 24px 40px;
        gap: 0;
    }
    .mega-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (768px)
   Full mobile nav — hide desktop mega, show sticky overlay
══════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hide desktop nav links entirely */
    .nav-links {
        display: none !important;
    }

    /* Hide mega panel on mobile — sticky overlay used instead */
    .mega-panel {
        display: none !important;
    }

    .mega-backdrop {
        display: none !important;
    }

    /* Nav CTA link — hide on mobile (in sticky overlay instead) */
    .nav-cta-link {
        display: none;
    }

    /* Navbar layout on mobile */
    #navbar {
        padding: 0 20px;
        height: 56px;
    }

    .logo-wrap {
        gap: 2px;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (480px)
══════════════════════════════════════ */
@media (max-width: 480px) {
    #navbar {
        padding: 0 16px;
        height: 52px;
    }
}

/* ══════════════════════════════════════
   STICKY OVERLAY MENU — mobile nav
══════════════════════════════════════ */
#sticky-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #0a0a0a;
    z-index: 10000;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 80px 32px 40px;
    box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}

#sticky-menu-content.is-open {
    right: 0;
}

#sticky-menu-content .close-button {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

#sticky-menu-content .close-button:hover {
    border-color: #3db451;
    color: #3db451;
}

#sticky-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#sticky-menu-content ul li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
    letter-spacing: -0.2px;
}

#sticky-menu-content ul li a:hover {
    color: #3db451;
}

