header {
    font-size: 17px !important;
    a {
        font-weight: 500;
    }
    .btn {
        font-size: 17px !important;
        font-weight: 500 !important;
    }
    @include media-breakpoint-down(md) {
        overflow: visible;
    }
    .container-fluid {
        padding: 0;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    position: relative;
    display: flex;
    flex-direction: column;

    & > * {
        position: relative;
        z-index: 2;
    }

    .navBar {
        padding-top: 1.25em;
        padding-bottom: 1.25em;
    }
    .header__title {
        display: flex;
        flex-grow: 1;
        @include media-breakpoint-down(md) {
            padding-left: 1em;
            padding-right: 1em;
        }
    }
    #nav-button {
        appearance: none;
        // bottom: 0.25em;
        margin-right: 1.5em;
        z-index: 9900;
        position: relative;
        background-color: $green;

        @include media-breakpoint-up(lg) {
            display: none;
        }

        cursor: pointer;
        transition: opacity 0.25s ease;
        border: none;
        padding: 10px 10px 0px 10px;

        & > div {
            height: 32px;
            width: 32px;
            position: relative;
        }

        & div {
            .top {
                @include transform(translateY(7px) translateX(0) rotate(45deg));
                background: $green;
            }

            .middle {
                opacity: 0;
                background: $green;
            }

            .bottom {
                @include transform(
                    translateY(-12px) translateX(0) rotate(-45deg)
                );
                background: $green;
            }
        }

        &.collapsed {
            position: relative;

            div span {
                @include transform(translateY(0) translateX(0) rotate(0));
                opacity: 1;
            }
            div {
                .top,
                .middle,
                .bottom {
                    background: $white;
                }
            }
        }

        div span {
            background: $white;
            border: none;
            height: 3px;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            transition: all 0.35s ease;
            cursor: pointer;

            &:nth-of-type(2) {
                top: 0.5em;
            }

            &:nth-of-type(3) {
                top: 1em;
            }
        }

        &:hover {
            & div span {
                background: $green;
            }
        }
    }
    #nav__brand {
        @include media-breakpoint-down(xl) {
            max-width: 240px;
        }
        @include media-breakpoint-down(md) {
            position: relative;
            z-index: 9100;
            padding-left: 1.5em;
            max-width: 240px;

            margin-bottom: 0.25em;
        }
    }
    #nav__menu {
        @include media-breakpoint-down(md) {
            position: absolute;
            padding-top: 5em;
            padding-bottom: 1em;
            top: 0;
            left: 0;
            right: 0;
            z-index: 9000;
            background-color: $navy;
            width: 100%;
            border-radius: 0.5em;
            transform: translateX(-100%);
            opacity: 0;
            transition: transform 0.25s ease-in-out, opacity 0.35s ease-in-out;
            &.visible {
                transform: translateX(0%);
                opacity: 1;
            }
        }
        ul {
            @include media-breakpoint-down(md) {
                flex-direction: column;
                width: 100%;
                li {
                    a {
                        display: block;
                        font-size: 21px;
                        &:hover {
                            background-color: $blue;
                            border-radius: 0.25em;
                        }
                    }
                }
            }
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: row;
            list-style: none;
            line-height: 1em;
            li {
                padding: 0 0.5em;
                position: relative;
                a {
                    font-weight: 500;
                    border-bottom: 2px solid transparent;
                    transition: border-bottom 0.5s ease-in-out;
                    &:hover {
                        text-decoration: none;
                        border-bottom: 2px solid;
                    }
                    &.active {
                        border-bottom: 2px solid;
                    }
                }
                &.menu-item-has-children:hover,
                &.menu-item-has-children:focus {
                    ul.sub-menu {
                        visibility: visible;
                        opacity: 1;
                        pointer-events: all;
                        transform: translateY(0%);
                        @include media-breakpoint-down(md) {
                            display: block;
                        }
                    }
                }
                ul.sub-menu {
                    pointer-events: none;
                    transition: transform 0.3s ease-in-out,
                        opacity 0.5s ease-in-out;
                    @include media-breakpoint-down(lg) {
                        display: none;
                    }
                    @include media-breakpoint-up(lg) {
                        transform: translateY(-25%);
                        visibility: hidden;
                        opacity: 0;
                        position: absolute;
                        top: 100%;
                        padding: 1em 0 0 0;
                        padding-top: 1em;
                    }
                    display: flex;
                    flex-direction: column;
                    overflow: hidden;
                    margin: 0;
                    z-index: 100;
                    &:before {
                        @include media-breakpoint-up(lg) {
                            content: " ";
                            position: absolute;
                            top: 0.25em;
                            left: 0;
                            right: 0;
                            margin-left: auto;
                            margin-right: auto;
                            width: 0;
                            border-left: 0.75em solid transparent;
                            border-bottom: 0.75em solid white;
                            border-right: 0.75em solid transparent;
                        }
                    }
                    li {
                        display: block;
                        @include media-breakpoint-up(lg) {
                            background-color: $white;
                            min-width: 240px;
                            text-align: center;
                            border-bottom: 1px solid $light_blue;
                            color: $navy !important;
                        }

                        &:first-of-type {
                            border-top-left-radius: 0.5em;
                            border-top-right-radius: 0.5em;
                        }
                        &:last-of-type {
                            border-bottom-left-radius: 0.5em;
                            border-bottom-right-radius: 0.5em;
                        }

                        a {
                            @include media-breakpoint-up(lg) {
                                color: $navy !important;
                                font-weight: 400;
                            }
                            font-size: 0.85em;
                            padding: 0.5em 1em;
                            display: block;
                            border-bottom: 0 !important;
                        }
                    }
                }
            }
        }
    }
    #buttons {
        display: flex;
        gap: 0.5em;
        @include media-breakpoint-down(md) {
            // display: none;
            margin-top: 2em;
            .btn {
                width: 50%;
            }
        }
        .btn {
            font-size: 18px;
            font-weight: 700;
            min-width: unset;
            line-height: 1em;
            padding-top: 0.75em;
            padding-bottom: 0.75em;
            box-sizing: border-box;
            &--white {
                background-color: rgba($white, 0.25);
                border: 2px solid transparent;
                &:hover {
                    background-color: $white;
                    color: $blue;
                }
            }
            &--outline {
                background-color: transparent;
                border: 2px solid $white;
                padding-left: 0.5em;
                padding-right: 0.5em;
                &:hover {
                    background-color: rgba($white, 0.5);
                }
            }
        }
    }
    .pageTitle {
        color: $white;
        display: flex;
        justify-content: center;
        flex-direction: column;
        flex-grow: 1;
        align-self: stretch;

        @include media-breakpoint-down(md) {
            margin-bottom: 1.5em !important;
        }
        h1 {
            font-size: 3em;
            margin-bottom: 0.5em;
            line-height: 1.2em;
            @include media-breakpoint-down(md) {
                font-size: 2em;
            }
        }
        .termsList {
            list-style: none;
            display: flex;
            flex-direction: row;
            gap: 0.5em;
            margin: 0;
            padding: 0;
            justify-content: center;
            flex-wrap: wrap;
        }
        ul {
            padding-left: 1em;
        }
    }
}
