
/* =========================================================
MAIN NAV
========================================================= */

#mainHeader,
#mainNav {
	background: #000;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,0) 100%
    );

    transition:
        background-color 0.22s ease,
        box-shadow 0.22s ease;

}

#mainHeader.nav-shrink,
#mainNav.nav-shrink {

    box-shadow:
        0 2px 12px rgba(0,0,0,0.18);

}

/* =========================================================
HEADER WRAPPER
========================================================= */

#menu-desktop-wrapper {

    height: var(--nav-height);

    background: #1b1b1b;

    transition:
        height 0.22s ease;

}

/* =========================================================
SHRINK
========================================================= */

#mainHeader.nav-shrink #menu-desktop-wrapper,
#mainNav.nav-shrink #menu-desktop-wrapper {

    height: var(--nav-shrink-height);

}

/* =========================================================
SHRINK + SEARCH OPEN
========================================================= */

#mainHeader.nav-shrink.search-open #menu-desktop-wrapper,
#mainNav.nav-shrink.search-open #menu-desktop-wrapper {

    height: 56px;

}

/* =========================================================
HEADER INNER
========================================================= */

#menu-desktop {

    height: 100%;

    display: flex;

    align-items: center;

    gap: 2rem;

}

/* =========================================================
LOGO
========================================================= */

.header-logo {

    flex-shrink: 0;

    position: relative;

    z-index: 30;

}

.header-logo img {

    max-height: 18px;

    transform-origin: center center;

    transition:
        transform 0.22s ease;

}

#mainHeader.nav-shrink .header-logo img,
#mainNav.nav-shrink .header-logo img {

    transform: scale(0.78);

}

/* =========================================================
CENTER AREA
========================================================= */

.header-center {

    position: relative;

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 0;

}

/* =========================================================
DESKTOP NAV
========================================================= */

.desktop-nav-wrap {

    width: 100%;

    display: flex;

    align-items: center;

    transition:
        opacity 0.2s ease,
        transform 0.25s ease;

}

.header-center.search-active .desktop-nav-wrap {

    opacity: 0;

    transform: translateY(-6px);

    pointer-events: none;

}

.desktop-nav {

    display: flex;

    align-items: center;

    justify-content: space-evenly;

    width: 100%;

    height: 100%;

    font-size: 15px;

    white-space: nowrap;

    transition:
        font-size 0.22s ease;

}

#mainHeader.nav-shrink .desktop-nav,
#mainNav.nav-shrink .desktop-nav {

    font-size: 12px;

}

/* =========================================================
MENU LINKS
========================================================= */

.menuButton {

    display: flex;

    align-items: center;

    justify-content: center;

    height: 100%;

    color: #fff;

    font-size: inherit;

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.025em;

    text-decoration: none !important;

    transition:
        opacity 0.2s ease,
        color 0.2s ease;

}

.menuButton:hover {

    opacity: 0.82;

    color: #fff;

}

/* =========================================================
SEARCH OVERLAY
========================================================= */

.desktop-search-overlay {

    z-index: 20;

}

/* =========================================================
HEADER ACTIONS
========================================================= */

.header-actions {

    gap: 0.75rem;

}

/* =========================================================
SEARCH TOGGLE
========================================================= */

.header-search-toggle {

    position: relative;

    z-index: 30;

}

.desktop-search-toggle {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    transition:
        width 0.22s ease,
        height 0.22s ease,
        transform 0.22s ease,
        opacity 0.2s ease;

}

.desktop-search-toggle i {

    transition:
        font-size 0.22s ease;

}

#mainHeader.nav-shrink .desktop-search-toggle,
#mainNav.nav-shrink .desktop-search-toggle {

    width: 34px;

    height: 34px;

}

#mainHeader.nav-shrink .desktop-search-toggle i,
#mainNav.nav-shrink .desktop-search-toggle i {

    font-size: 14px;

}

/* =========================================================
LOGIN BUTTON
========================================================= */

.header-login-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    height: 38px;

    padding:
        0 1rem;

    border-radius: 999px;

    background:
        rgba(255,255,255,0.08);

    color: #fff;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none !important;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        height 0.22s ease,
        padding 0.22s ease,
        font-size 0.22s ease;

}

.header-login-btn:hover {

    background:
        rgba(255,255,255,0.14);

    color: #fff;

    opacity: 1;

}

/* =========================================================
LOGIN BUTTON SHRINK
========================================================= */

#mainHeader.nav-shrink .header-login-btn,
#mainNav.nav-shrink .header-login-btn {

    height: 30px;

    padding:
        0 0.8rem;

    font-size: 11px;

}

/* =========================================================
LOGOUT BUTTON
========================================================= */

.header-logout-btn {
    background-color: #212529;
    border-color: #212529;
    color: #ffffff;
}

.header-logout-btn:hover,
.header-logout-btn:focus {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 991.98px) {

    /* =========================================
       MOBILE NAV ARCHITECTURE
    ========================================= */

    #mainHeader,
    #mainNav {

        transform: none !important;

        isolation: isolate;

    }

    /* =========================================
       DEFAULT MOBILE STATE
    ========================================= */

    #mainNav {

        position: relative;

        top: auto;

        left: auto;
        right: auto;

        width: 100%;

        z-index: 1000;

    }

    /* =========================================
       FIXED STATE AFTER SCROLL
    ========================================= */

    #mainNav.mobile-nav-fixed {

        position: fixed;

        top: var(--mobile-nav-offset, 0px);

        left: 0;
        right: 0;

        width: 100%;

        z-index: 3000;

        transition:
            top 0.18s ease-out,
            box-shadow 0.18s ease-out,
            background-color 0.18s ease-out;

        will-change:
            top,
            box-shadow,
            background-color;

    }

    /* =========================================
       PREVENT CONTENT JUMP
    ========================================= */

    body.mobile-nav-active {

        padding-top: var(--nav-height-mobile);

    }

    /* =========================================
       MOBILE HEADER HEIGHT
    ========================================= */

    #menu-desktop-wrapper,
    #mainHeader.nav-shrink #menu-desktop-wrapper,
    #mainNav.nav-shrink #menu-desktop-wrapper,
    #mainHeader.nav-shrink.search-open #menu-desktop-wrapper,
    #mainNav.nav-shrink.search-open #menu-desktop-wrapper {

        height: var(--nav-height-mobile) !important;

        min-height: var(--nav-height-mobile) !important;

        max-height: var(--nav-height-mobile) !important;

        overflow: hidden;

        padding: 0;

        margin: 0;

    }

    /* =========================================
       HEADER INNER
    ========================================= */

    #menu-desktop {

        height: 100% !important;

        min-height: 100% !important;

        max-height: 100% !important;

        padding-top: 0;

        padding-bottom: 0;

        gap: 1rem !important;

        align-items: center;

    }

    /* =========================================
       HIDE DESKTOP NAV
    ========================================= */

    .desktop-nav {

        display: none;

    }

    /* =========================================
       MOBILE LOGO
    ========================================= */

    .header-logo img {

        height: 20px;

        width: auto;

        max-width: none;

    }

    /* =========================================
       ACTIONS
    ========================================= */

    .header-actions {

        height: 100%;

        align-items: center;

    }

    /* =========================================
       MOBILE BUTTONS
    ========================================= */

    .mobile-nav-toggle,
    .mobile-search-toggle {

        width: 42px;

        height: 42px;

        min-height: 42px;

        max-height: 42px;

        padding: 0;

        margin: 0;

    }

}

/* =========================================================
MOBILE NAV TOGGLE
========================================================= */

.mobile-nav-toggle,
.mobile-search-toggle {

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 1.15rem;

    padding: 0.25rem 0.5rem;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

}

.mobile-nav-toggle:hover,
.mobile-search-toggle:hover {

    opacity: 0.82;

}

.mobile-nav-toggle:active,
.mobile-search-toggle:active {

    transform: scale(0.95);

}

/* =========================================================
MOBILE ACTION BUTTONS
========================================================= */

.mobile-nav-toggle,
.mobile-search-toggle {

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    outline: none !important;

    appearance: none;

    -webkit-appearance: none;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    padding: 0;

    margin: 0;

}

/* =========================================================
REMOVE BOOTSTRAP ACTIVE STATES
========================================================= */

.mobile-nav-toggle:focus,
.mobile-nav-toggle:active,
.mobile-search-toggle:focus,
.mobile-search-toggle:active {

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    outline: none !important;

}

/* =========================================================
MOBILE ACTION BUTTONS
========================================================= */

.mobile-nav-toggle {

    font-size: 1.45rem;

}

.mobile-nav-toggle i {

    font-size: inherit;

}

