﻿@charset "utf-8";
/* CSS Document */
.mainNav {
    transition: all .3s ease, height .3s ease;

    __upperNav,
    __lowerNav {
        width: 100%;
    }

    __upperNav .wrapper,
    __lowerNav .wrapper {
        width: 100%;
        max-width: 1440px;
        padding: 0 40px;
    }

    __claim {
        text-align: center;
        border-bottom: 1px solid #dfdfdf;
        padding: 22px 5%;

        img {
            max-width: 550px;
            width: 100%;
        }
    }


    __upperNav {
        background: primary-color;


        .wrapper {
            display: flex;
            justify-content: space-between;
            line-height: 44px;
            color: $white;
            font-size: 16px;
        }

        ul {
            max-width: 50%;
            display: inline-block;
            text-align: left;
            font-size: 16px;
            width: 100%;

            li {
                display: inline-block;
                vertical-align: top;

                :hover {
                    color: $secondary-color;

                    a {
                        color: $secondary-color;
                    }
                }

                :after {
                    content: '|';
                    margin: 0 3px;
                    color: $white;
                }

                :last-of-type {
                    :after {
                        display: none;
                    }
                }

                a {
                    color: $white;
                    text-decoration: none;
                }
            }

            :nth-of-type(2) {
                text-align: right;

                li {
                    a {
                        margin: 0 3px;

                        i {
                            position: relative;
                            top: 2px;
                        }
                    }
                }
            }
        }

    }

    .wrapper {
        font-size: 0;
    }

    __lowerNav {
        padding: 15px 0;
        background: $white;
        transition: all .3s ease;
        border-bottom: thin solid #09B6CD;
        z-index: 3;
    }

    __lowerNav .wrapper {
        display: flex;
        justify-content: center;
        align-content: flex-end;
        align-items: center;
    }

    __logo {
        width: 100%;
        max-width: 60px;
        margin-right: 40px;

        a {
            display: block;
        }

        img {
            width: 100%;
            height: auto;
        }
    }

    __menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease-in-out;

        li {


            a {
                display: flex;
                align-items: center;
                vertical-align: middle;
                font-size: 16px;
                font-weight: 600;
                color: $neu-01;

                transition: all .35s ease;

                :not(last-of-type),
                :not(first-of-type) {
                    margin: 0 20px;
                }
            }

            img {
                max-width: 100px;
                vertical-align: middle;
                padding-left: 10px;
            }


        }
    }

    __menu li {
        position: relative;

        :hover {

            a {
                color: $neu-01;
            }
        }
    }

    __menu li a {
        position: relative;
    }

    __subMenuContainer {
        width: 100%;
        margin: 0 auto;
        background: white;
    }

    __subMenu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        right: 0;
        text-align: center;
        position: absolute;
        left: 0;
        top: 100%;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        z-index: 5;
        padding: 30px 0;
        transition: opacity .2s linear .4s, visibility 1000ms linear .41s;
        background: white;
        border-top-color: #dfdfdf;
        box-shadow: rgba(35, 44, 53, 0.1) 0px 40px 40px 0px;

        li {
            flex: 1;
            max-width: 20%;
        }

        article {
            max-width: 80%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }

        figure {
            max-width: 200px;
            margin: 25px auto 0;
        }

        img {
            width: 100%;
        }

        span {
            font-size: 14px;
            line-height: normal;
            color: $neu-03;

            a {
                color: $primary-color;
                font-weight: 600;
            }
        }


    }

    __subMenu:nth-of-type(1) {
        flex-wrap: wrap;

        li:nth-of-type(3) {
            flex: 1 100%;
            max-width: 100%;
            margin: 30px 0 0;
        }

        figure {
            max-width: 170px;
            margin-top: 15px;
            align-self: flex-end;
        }
    }

    __subMenu:nth-of-type(2) {
        li {
            max-width: 23%;
        }

        figure {
            max-width: 150px;
            margin: 0 auto;
        }
    }

    __subMenu:nth-of-type(3) {
        li {
            max-width: 23%;
        }

        figure {
            margin: 20px auto;

            img {
                width: auto;
                height: 75px;
            }
        }
    }

    .selected {
        opacity: 1;
        visibility: visible;
        overflow: auto;
    }

    .overlayContainer video {
        width: 100%;
        height: auto;
        transition: all .5s ease-in-out .5s;
    }

    .video {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 215px;
        cursor: pointer;
    }

    .triangle {
        border-top: 5px solid $neu-03;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        width: 0;
        height: 0;
        margin-left: 10px;
    }

    __title {
        font-size: 14px;
        font-weight: 500;
        color: $aux-color6;

        a {
            color: $primary-color;
            font-weight: 600;
        }
    }

    __subTitle {
        font-size: 14px;
        color: $aux-color6;
        font-weight: 600;
    }

    .stickyFixed {
        position: fixed;
        top: 0;
    }

    __mobileNav {
        display: none;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        position: absolute;
        right: -100%;
        top: 69px;
        background: $white;
        padding-top: 30px;
        transition: right .3s ease-in-out;
        z-index: 4;

        .open {
            right: 0;
        }

        .stickyFixed {
            top: 69px;
        }

    }

    __menuMobile {
        width: 100%;
        display: none;
        padding: 15px 0;
        background: $white;
        box-shadow: 0 0 1px rgba(0, 0, 0, .3);
        border-bottom: 1px solid rgba(0, 0, 0, 0.13);
        z-index: 5;

        .wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
    }

    __mobileNav ul {
        display: flex;
        flex-direction: column;
        text-align: center;

        li {
            padding: 10px 0;
        }

        a {
            font-size: 17px;
            color: $primary-color;
            font-weight: 600;
            vertical-align: middle;

            +a {
                padding-left: 10px;
            }
        }

        img {
            max-width: 100px;
            vertical-align: middle;
        }

        .svg-inline--fa {
            margin: 0 3px;

        }
    }

    .menu {
        display: block;
        width: 30px;
        height: 20px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        // z-index: 6;
    }

    .menu-line {
        height: 4px;
        background-color: $primary-color;
        border-radius: 3px;
        transition: all 250ms cubic-bezier(0.18, 0.89, 0.32, 1.28);

        :first-child {
            animation: firstLinetoClose 240ms cubic-bezier(0.23, 0.95, 0.58, 1.37);

        }

        :last-child {
            animation: lastLinetoClose 240ms cubic-bezier(0.23, 0.95, 0.58, 1.37);
        }
    }

    .menu.open .menu-line {

        :first-child {
            animation: firstLinetoOpen 240ms cubic-bezier(0.23, 0.95, 0.58, 1.37);
            animation-fill-mode: forwards;
        }

        :nth-child(2) {
            opacity: 0;
        }

        :last-child {
            animation: lastLinetoOpen 240ms cubic-bezier(0.23, 0.95, 0.58, 1.37);
            animation-fill-mode: forwards;
        }
    }

    @keyframes firstLinetoOpen {
        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(7px);
        }

        100% {
            transform: translateY(8px) rotate(45deg);
        }
    }

    @keyframes firstLinetoClose {
        0% {
            transform: translateY(8px) rotate(0);
        }

        100% {
            transform: translateY(0);
        }
    }

    @keyframes lastLinetoOpen {
        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-7px);
        }

        100% {
            transform: translateY(-8px) rotate(-45deg);
        }
    }

    @keyframes lastLinetoClose {
        0% {
            transform: translateY(-8px);
        }

        100% {
            transform: translateY(0);
        }
    }

    @include tablet {

        __upperNav,
        __claim,
        __lowerNav {
            display: none;
        }

        __menuMobile {
            display: block;
        }

        __mobileNav {
            display: inline-block;
        }
    }
}
