﻿/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.35s ease;
}


/* Top bar */
.top-bar {
    height: 45px;
    background: #3a3a3a;
    color: #cfcfcf;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    align-items: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.top-right {
    display: flex;
    gap: 12px;
}

.divider {
    width: 1px;
    height: 14px;
    background: #666;
}

.professional {
    color: #f0c040;
}

/* Main nav */
.main-nav {
    /*background: #2f2f2f;*/
    background-color: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav-inner {
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 32px;
}



.nav-left,
.nav-right {
    display: flex;
    gap: 22px;
    padding: 10px;
}

    /*.nav-right {
    margin-top: 5px;
}*/

    .nav-left a,
    .nav-right a {
        font-size: 16px;
        font-weight: 600;
    }

.nav-logo a {
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
}

.nav-logo span{
    font-size: 12px;
}

.main-logo {
    display: none;
}

.side-logo {
    font-size: 18px;
}
/* ================= SCROLLED STATE ================= */
@media (min-width: 1240px) {
    .site-header.scrolled .nav-left {
        margin-left: -70%;
    }

    .site-header.scrolled .nav-right {
        margin-left: -30%;
    }

    .site-header.scrolled .top-bar {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .site-header.scrolled .main-nav {
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(6px);
        box-shadow: 0 2px 14px rgba(0,0,0,0.4);
    }

    .site-header.scrolled .main-logo {
        display: block;
    }

    /* Ensure main-nav snaps to top visually */
    .site-header.scrolled {
        transform: translateY(-45px);
    }
}



/* =========================================================
   MEGA MENU
========================================================= */

    .mega-menu {
        position: absolute;
        top: var(--header-total-height);
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.96);
        display: none;
        z-index: 999;
    }

        .mega-menu.active {
            display: block;
        }

    .mega-inner {
        display: grid;
        grid-template-columns: 260px 1fr;
        padding: 40px 80px;
        gap: 60px;
    }

    .mega-brands-list {
        list-style: none;
    }

        .mega-brands-list li {
            padding: 10px 0;
            cursor: pointer;
            opacity: 0.7;
        }

            .mega-brands-list li.active {
                opacity: 1;
            }

    .mega-content {
        display: flex;
        gap: 80px;
    }

    .mega-column h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .mega-column p {
        font-size: 14px;
        opacity: 0.85;
        margin-bottom: 6px;
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        display: none;
        z-index: 900;
    }

        .nav-overlay.active {
            display: block;
        }

    /* =========================================================
   MOBILE MENU
========================================================= */

    .mobile-menu-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 22px;
        color: #fff;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        background: #000;
        display: none;
        z-index: 2000;
    }

        .mobile-menu.active {
            display: block;
        }

    .mobile-menu-header {
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        border-bottom: 1px solid #222;
    }

    .mobile-menu-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: calc(100vh - 60px);
    }

    .mobile-primary {
        list-style: none;
        padding: 20px;
        border-right: 1px solid #222;
    }

        .mobile-primary li {
            padding: 12px 0;
            cursor: pointer;
        }

    .mobile-secondary {
        padding: 20px;
    }

    .mobile-panel {
        display: none;
    }

        .mobile-panel.active {
            display: block;
        }



    /* =========================================================
   MOBILE MENU
========================================================= */

    .mobile-menu-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 22px;
        color: #fff;
    }

    /* Mobile breakpoint */
@media (max-width: 1239px) {
    .main-logo {
        display: block;
    }
    /* Hide desktop nav */
    .nav-left,
    .nav-right {
        display: none;
    }

    /* Header layout */
    .main-nav .nav-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        overflow: visible;
    }

    /* Logo left */
    .nav-logo {
        flex: 0 0 auto;
    }

    /* Burger right */
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 3001;
        margin-right: 5% !important;
    }

    /* 🔴 HIDE BURGER WHEN MENU IS OPEN */
    body.menu-open .mobile-menu-toggle {
        display: none !important;
    }

    .top-bar {
        display: none;
    }

        .site-header .main-nav {
            /*background: rgba(0, 0, 0, 0.92);*/
            backdrop-filter: blur(6px) !important;
            box-shadow: 0 2px 14px rgba(0,0,0,0.4) !important;
        }



    /* Mobile menu overlay */
    .mobile-menu {
        position: fixed;
        inset: 0;
        background: #000;
        display: none;
        z-index: 3000;
    }

        .mobile-menu.active {
            display: block;
        }

    /* Close button */
    .mobile-menu-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }
}

/* =========================================================
   TABLET NAV FIX (769px – 1024px)
========================================================= */

@media (min-width: 769px) and (max-width: 1239px) {

    .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }

    .nav-left,
    .nav-right {
        gap: 14px;
    }

        .nav-left a,
        .nav-right a {
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
        }

    .nav-logo {
        flex: 0 0 auto;
        margin: 0 16px;
    }

    /* Prevent overlap */
    .nav-left,
    .nav-right {
        max-width: 45%;
        overflow: hidden;
    }
}
