/* =========================================================
   ASHARP — FINAL FIXED HEADER
   Desktop + Tablet + Mobile
   ========================================================= */

:root {
    --ash-header-height: 88px;
}


/* =========================================================
   FIXED HEADER
   ========================================================= */

html body > .nx-header {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 2147483000 !important;

    transform: none !important;
    translate: none !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;

    will-change: auto !important;
}


/* Header background */

html body > .nx-header > .bg-pure-black {
    width: 100% !important;

    background: rgba(3, 7, 12, 0.97) !important;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}


/* Header inner */

html body > .nx-header .nx-header-area {
    min-height: var(--ash-header-height) !important;

    display: flex !important;
    align-items: center !important;

    flex-wrap: nowrap !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* =========================================================
   GSAP SCROLLSMOOTHER OFFSET
   ========================================================= */

html body > #smooth-wrapper {
    padding-top: var(--ash-header-height) !important;
}


/* Do NOT add another body padding */

html body {
    padding-top: 0 !important;
}


/* Anchor links */

html {
    scroll-padding-top:
        calc(var(--ash-header-height) + 16px);
}


/* =========================================================
   HEADER SCROLL STATE
   ========================================================= */

html body > .nx-header.header--scrolled > .bg-pure-black {
    background: rgba(3, 7, 12, 0.995) !important;

    border-bottom-color:
        rgba(255, 255, 255, 0.11);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.34);
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    html body > .nx-header .nx-main-menu {
        display: block !important;
    }

    html body > .nx-header .nx-header__navicon {
        display: none !important;
    }

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991px) {

    :root {
        --ash-header-height: 78px;
    }


    html body > .nx-header .nx-header-area {
        width: 100% !important;
        max-width: 100% !important;

        height: 78px !important;
        min-height: 78px !important;

        padding: 7px 14px !important;
    }


    /* Hide desktop menu */

    html body > .nx-header .nx-main-menu {
        display: none !important;
    }


    /* Logo */

    html body > .nx-header .nx-header__logo {
        flex: 0 0 auto !important;

        margin-right: auto !important;
    }


    html body > .nx-header .nx-header__logo img {
        width: auto !important;
        height: auto !important;

        max-width: 132px !important;
        max-height: 58px !important;

        object-fit: contain !important;
    }


    /* Hide desktop contact button */

    html body > .nx-header .nx-get-started-btn {
        display: none !important;
    }


    /* Mobile hamburger */

    html body > .nx-header .nx-header__navicon {
        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 46px !important;

        width: 46px !important;
        height: 46px !important;

        margin-left: 10px !important;

        color: #ffffff !important;

        font-size: 27px !important;
        line-height: 1 !important;

        cursor: pointer !important;

        position: relative !important;

        z-index: 10 !important;
    }


    /* Mobile menu above fixed header */

    .nx-offcanvas__area {
        position: fixed !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100dvh !important;

        z-index: 2147483100 !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575px) {

    :root {
        --ash-header-height: 72px;
    }


    html body > .nx-header .nx-header-area {
        height: 72px !important;
        min-height: 72px !important;

        padding: 6px 10px !important;
    }


    html body > .nx-header .nx-header__logo img {
        max-width: 118px !important;
        max-height: 54px !important;
    }


    html body > .nx-header .nx-header__navicon {
        flex-basis: 44px !important;

        width: 44px !important;
        height: 44px !important;
    }

}


/* =========================================================
   STOP THEME / GSAP FROM MOVING HEADER
   ========================================================= */

html body > .nx-header.has_fade_anim,
html body > .nx-header.has_text_move_anim,
html body > .nx-header.has_char_anim {
    transform: none !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/* Any GSAP-added inline transform on header */
html body > .nx-header[style] {
    transform: none !important;
}


/* =========================================================
   OFFCANVAS SAFETY
   ========================================================= */

.nx-offcanvas__area {
    transform-style: flat !important;
}

.nx-offcanvas__area.nx-show {
    visibility: visible !important;
    pointer-events: auto !important;
}