/*=======================================
            Header & Spacing
========================================*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.5s ease-in-out;
    z-index: 99;
    background-color: #000;
    padding: 30px 0;

    @media (max-width: 600px) {
        padding: 20px 0;
    }

    &.nav-up {
        padding: 20px 0;
        border-bottom: 1px solid #EA682D;
        background-color: #000 !important;

        .logo {
            width: 150px;

            @media (max-width: 600px) {
                width: 120px;
            }

            svg[data-id="logo-colour"] {
                opacity: 1;
            }

            svg#logo-white {
                opacity: 0;
            }

        }

    }

}

.admin-bar header {
    top: 32px;

    @media (max-width: 1000px) {
        top: 0;
    }

}

body {
    margin-top: 133px;
    background-color: #000;
}


html.no-scroll {
    overflow-y: hidden;
    scrollbar-gutter: stable;
}




/*=======================================
            Header Contents
========================================*/

header {

    .contents {
        align-items: center;
        position: relative;
    }

    /* Logo */

    .logo {
        position: relative;
        width: 150px;

        svg[data-id="logo-colour"] {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
            opacity: 0;
        }

        svg#logo-white {
            position: relative;
            z-index: 2;
        }

        @media (max-width: 600px) {
            width: 120px;
        }

        svg path {
            transition: all 0.3s ease-in-out;
        }

    }

    /* Menu */

    .right {
        position: relative;
        top: 2px;
        align-items: center;

        @media (max-width: 600px) {
            top: 10px;
        }

        /* Burger */

        .menu-toggle {

            .btn-menu {
                display: flex;
                align-items: center;
                justify-content: center;
                min-height: 29px;
                padding-left: 0;
                padding-right: 0;
                border: none;
                background-color: transparent;
                color: inherit;
                cursor: pointer;
                transition: 0.3s ease;
            }

            .btn-menu:focus {
                outline: none;
            }

            .btn-menu__text {
                margin-left: 10px;
                font-size: 1.125rem;
                font-weight: 700;
                line-height: 1;
            }

            .btn-menu__bars {
                display: block;
                position: relative;
                width: 36px;
                height: 5px;
                background-color: #fff;
                transition: 0.3s;

                @media (max-width: 600px) {
                    width: 30px;
                    height: 4px;
                }

            }

            .btn-menu__bars:before, .btn-menu__bars:after {
                content: "";
                display: block;
                position: absolute;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: #fff;
                transition: 0.3s;
            }

            .btn-menu__bars:before {
                transform: translate(0, -12px);

                @media (max-width: 600px) {
                    transform: translate(0, -10px);
                }

            }

            .btn-menu__bars:after {
                transform: translate(0, 12px);

                @media (max-width: 600px) {
                    transform: translate(0, 10px);
                }

            }

            &.open .btn-menu .btn-menu__bars {
                background-color: transparent;
            }

            &.open .btn-menu .btn-menu__bars:before {
                transform: rotate(45deg);
                background-color: #000;
            }

            &.open .btn-menu .btn-menu__bars:after {
                transform: rotate(-45deg);
                background-color: #000;
            }


        }

    }

}




/*=======================================
            Menu
========================================*/

body.menu-open {

    header {
        background-color: #fff !important;
        border-bottom-color: #fff !important;

        .logo svg path {
            transition: none;
            fill: #000;
        }

    }

}

body.admin-bar {

    .main-menu {
        top: calc(134px + 32px);

        @media (max-width: 1000px) {
            top: 115px;
        }

        @media (max-width: 600px) {
            top: 99px;
        }

    }

    &.nav-is-up {

        .main-menu {
            top: calc(114px + 32px);

            @media (max-width: 1000px) {
                top: 115px;
            }

            @media (max-width: 600px) {
                top: 99px;
            }

        }

    }

}

body.nav-is-up {

    .main-menu {
        top: 114px;

        @media (max-width: 1000px) {
            top: 115px;
        }

        @media (max-width: 600px) {
            top: 99px;
        }
    }

}

body.home.nav-is-up .main-menu {
    top: 134px;

}

.main-menu {
    position: fixed;
    width: 100%;
    top: 134px;
    height: calc(100vh - 133px);
    background-color: #fff;
    padding-top: 50px;
    transition: left 0.5s ease-in-out;
    left: 100%;
    z-index: 100;
    overflow-y: auto;
    padding-bottom: 50px;

    @media (max-width: 1000px) {
        height: calc(100vh - 115px);
    }

    @media (max-width: 600px) {
        top: 98px;
        height: calc(100vh - 98px);
    }

    &.show {
        left: 0;
    }

    .menu-item {
        justify-content: space-between;
        align-items: flex-start;
        padding: 15px 0;
        border-top: 1px solid var(--grey);
        cursor: pointer;

        &:last-of-type {
            border-bottom: 1px solid var(--grey);
        }

        &:hover {

            .title,
            .title a {
                color: #000;
            }

        }

        &.accordion {

            .title a {
                pointer-events: none;
            }

        }


        .title {
            font-size: 60px;
            line-height: 1;
            color: var(--grey);
            display: block;
            margin-bottom: -5px;
            width: 330px;
            text-decoration: none;
            transition: all 0.3s ease-in-out;

            a {
                color: var(--grey);
                text-decoration: none;
                transition: all 0.3s ease-in-out;
            }

            @media (max-width: 1000px) {
                width: calc(100% - 40px);
            }

            @media (max-width: 600px) {
                font-size: 40px;
            }

            &.page-link {
                display: block;
                width: 100%;
            }

        }

        .child-links-wrap {
            width: calc(100% - 330px - 40px);
            display: none;
            padding: 10px 0 20px;

            @media (max-width: 1000px) {
                order: 3;
                width: 100%;
                padding-top: 30px;
            }

            .child-links {
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: flex-start;
                flex-wrap: wrap;

                .column {
                    width: 200px;
                    margin-right: 30px;

                    @media (max-width: 600px) {
                        width: 100%;
                        margin-right: 0;
                    }

                    .menu-link {
                        display: block;
                        font-size: 22px;
                        color: #000;
                        text-decoration: none;
                        font-weight: 400;
                        line-height: 1.2;
                        margin-bottom: 5px;

                        &:hover {
                            text-decoration: underline;
                        }

                        @media (max-width: 600px) {
                            font-size: 18px;
                        }

                    }

                }

            }

        }

        .icon {
            width: 40px;
            position: relative;
            top: 7px;

            @media (max-width: 600px) {
                width: 30px;
                top: 3px;
            }

        }

        &.open {

            .icon svg line:last-of-type {
                display: none;
            }

        }



    }

}