/* =========================================================
   ENTRAX — TOP BAR
   SHARED COMPONENT
========================================================= */


/* =========================================================
   DESKTOP
========================================================= */

.topbar {

    position: relative;

    z-index: 1000;

    width: 100%;

    background:
        var(--entrax-white);

    border-bottom:
        1px solid var(--color-border);

}


.topbar-inner {

    width: 100%;

    min-height: 78px;

    display: flex;

    align-items: center;

    padding:
        0 3.2vw;

}


/* =========================================================
   LOGO
========================================================= */
.topbar-logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

    text-decoration: none;

}


.topbar-logo-image {

    display: block;

    width: 200px;

    height: auto;

    max-width: 100%;

}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.topbar-navigation {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 1;

    height: 100%;

    margin-left: 70px;

}


.topbar-navigation a {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 78px;

    padding:
        0 28px;

    color:
        var(--entrax-navy);

    font-family:
        var(--font-navigation);

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color var(--transition-normal);

}


/* =========================================================
   CONTACT LINK — DESKTOP
========================================================= */

/* Hidden on all pages by default */
.topbar-navigation .contact-nav-link {
    display: none;
}

/* Show CONTACT only on the Contact page */
body[data-page="contact"] .topbar-navigation .contact-nav-link {
    display: flex;
}


/* =========================================================
   HOVER
========================================================= */

.topbar-navigation a:hover {

    color:
        var(--entrax-orange);

}


.topbar-navigation a::after {

    content: "";

    position: absolute;

    bottom: 18px;

    left: 50%;

    width: 0;

    height: 2px;

    transform:
        translateX(-50%);

    background:
        var(--entrax-orange);

    transition:
        width var(--transition-normal);

}


.topbar-navigation a:hover::after {

    width: 26px;

}


/* =========================================================
   ACTIVE PAGE
========================================================= */

.topbar-navigation a.active {

    color:
        var(--entrax-orange);

}


.topbar-navigation a.active::after {

    width: 26px;

}


/* =========================================================
   GET IN TOUCH
========================================================= */

.topbar-cta {

    min-width: 160px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 24px;

    flex-shrink: 0;

    background:
        var(--entrax-bright-orange);

    color:
        var(--entrax-white);

    font-family:
        var(--font-navigation);

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background var(--transition-normal);

}

/* =========================================================
   CONTACT PAGE — HIDE GET IN TOUCH
========================================================= */

body[data-page="contact"] .topbar-cta {
    display: none;
}




/* ------ Hover effect ---- */
.topbar-cta:hover {

    background:
        var(--entrax-orange);

}


.topbar-cta-arrow {

    font-size: 20px;

    font-weight: 300;

    transition:
        transform var(--transition-normal);

}


.topbar-cta:hover .topbar-cta-arrow {

    transform:
        translateX(5px);

}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.topbar-menu-button {

    display: none;

    width: 42px;

    height: 42px;

    padding: 8px;

    border: none;

    background: transparent;

    cursor: pointer;

}


.topbar-menu-button span {

    display: block;

    width: 24px;

    height: 2px;

    margin: 5px auto;

    background:
        var(--entrax-navy);

    transition:
        transform var(--transition-normal),
        opacity var(--transition-normal);

}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.mobile-navigation {

    display: none;

}







/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .topbar-inner {

        min-height: 72px;

        padding:
            0 28px;

    }


    .topbar-logo-image {
        width: 135px;
    }


    .topbar-navigation {

        margin-left: 25px;

    }


    .topbar-navigation a {

        min-height: 72px;

        padding:
            0 14px;

        font-size: 10px;

    }


    .topbar-cta {

        min-width: 135px;

        height: 44px;

        gap: 15px;

    }

}



/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 700px) {

    .topbar-inner {

        min-height: 70px;

        justify-content: space-between;

        padding:
            0 var(--content-padding-mobile);

    }


    /* Logo */

    .topbar-logo-image {

        width: 120px;

    }




    /* Hide desktop navigation */

    .topbar-navigation {

        display: none;

    }


    /* Hide desktop CTA */

    .topbar-cta {

        display: none;

    }


    /* Show hamburger */

    .topbar-menu-button {

        display: block;

    }


    /* =====================================================
       MOBILE NAVIGATION
    ===================================================== */

    .mobile-navigation {

        display: flex;

        flex-direction: column;

        max-height: 0;

        overflow: hidden;

        background:
            var(--entrax-white);

        border-top:
            1px solid transparent;

        transition:
            max-height 0.4s ease,
            border-color 0.3s ease;

    }


    .mobile-navigation.active {

        max-height: 500px;

        border-top:
            1px solid var(--color-border);

    }


    .mobile-navigation a {

        display: flex;

        align-items: center;

        min-height: 56px;

        padding:
            0 var(--content-padding-mobile);

        border-bottom:
            1px solid var(--color-border);

        color:
            var(--entrax-navy);

        font-family:
            var(--font-navigation);

        font-size: 11px;

        font-weight: 600;

        text-decoration: none;

    }


                /* =====================================================
                CONTACT LINK — SMARTPHONE
                ===================================================== */

                /* Hidden by default */
                .mobile-navigation .contact-nav-link {
                    display: none;
                }

                /* Show CONTACT only on Contact page */
                body[data-page="contact"] .mobile-navigation .contact-nav-link {
                    display: flex;
                }

                body[data-page="contact"] .mobile-navigation-cta {
                    display: none;
                }


    .mobile-navigation a.active {

        color:
            var(--entrax-orange);

    }


    .mobile-navigation-cta {

        justify-content: space-between;

        margin:
            18px var(--content-padding-mobile);

        padding:
            0 20px !important;

        border: none !important;

        background:
            var(--entrax-bright-orange);

        color:
            var(--entrax-white) !important;

    }

}