/* TEST 1 */

/* HEADER: Navigation  */


.navigation {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1rem;
}

/* mobile nav hamburger */
.navTrigger {
    grid-column: 2 /10;
    grid-row: 1/2;
    display: block;
    width: 1.9rem;
    height: 1.5rem;
    padding: 1rem 0 0 0;
    z-index: 3;
}

.navLogoBar {
    grid-column: 9/11;
    grid-row: 1/2;
    margin: 1rem 0 0 0;
    height: 1.5rem;
}

/* mobile nav hamburger styling */
.navActive .navTrigger {
    opacity: 1;
    grid-column: 2 /10;
    grid-row: 1/2;
}

.navIcon {
    display: inline-block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition-property: background-color, transform;
    transition-duration: 0.5s;
    z-index: 2;
}

.navIcon:before,
.navIcon:after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    position: absolute;
    background: white;
    transition-property: margin, transform;
    transition-duration: 0.5s;
}

.navIcon:before {
    margin-top: -7px;
}

.navIcon:after {
    margin-top: 7px;
}

.navActive .navIcon {
    background: rgba(0, 0, 0, 0);
}

.navActive .navIcon:before {
    margin-top: 0;
    transform: rotate(45deg);
}

.navActive .navIcon:after {
    margin-top: 0;
    transform: rotate(-45deg);
}


/* mobile nav pre-activation */
.nav {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(-100%);
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-column-gap: 1rem;
}

/* mobile nav post-activation */
.navActive .nav {
    opacity: 1;
    background: black;
    transform: translateX(0);
}

.navList {
    grid-column: 2/10;
    grid-row: 1/2;
    padding-top: 3.2rem;
}

.navItem {
    text-align: left;
    padding: .7rem 0;
    list-style-type: none;
}

.hideMenuItem {
    display: inline-block;
}

.hideName {
    display: inline;
}

.navLink {
    font-size: .8rem;
    text-decoration: none;
    letter-spacing: 1px;
    color: #96d3e8;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    transition-delay: 500ms;
}

.navLink:hover {
    color: #fff;
}

.navActive .navLink {
    opacity: 1;
}

.navLogoMenu {
    grid-column: 2/10;
    grid-row: 2/3;
    height: 3.5em;
    margin: 2rem 0;
}

nav.scroll {
    background-color: #A1572F;
}






/* MEDIA QUERIES ------------------------------------------------------------------------------------------- */


@media only screen and (min-width:375px) {}

@media only screen and (min-width:480px) {}

@media only screen and (min-width:768px) {

    .navLogoBar {
        grid-column: 10/12;
    }
}

@media only screen and (min-width:1024px) {

    .navigation {
        position: relative;
        grid-template-columns: repeat(9, 1fr)
    }

    .nav {
        position: relative;
        opacity: 1;
        transform: translateX(0%);
        grid-column: 2 / 10;
        grid-row: 1 / 2;
        display: inline;
    }

    .navActive .nav {
        opacity: 1;
        background-color: transparent;
    }

    .navList {
        padding: 1em 0;
    }

    .hideName {
        display: none;
    }

    .navItem {
        display: inline;
        padding: 2rem 1.5rem 2rem 0;
    }

    .hideMenuItem {
        display: none;
    }

    .navLink {
        opacity: 1;
        font-size: .7rem;
    }

    .navTrigger {
        display: none;
    }

    .navLogoBar {
        grid-column: 9/10;
    }

    .navLogoMenu {
        display: none;
    }



    
    
    .PrimaryNav {
        max-width: 720px;
        padding: 0;
        width: 100%;
    }

    .Nav-item {
        float: left;
        width: 16%;
        text-align: center;
        padding: .7rem 0 .7rem 0;
        
    }

    .Nav-item.is-active a {
        color: #e82d00;
        display: block;
    }

    .Nav-item a {
        color: #96d3e8;
        text-decoration: none;
    }

    .Nav-item a:hover {
        color: #fff;
    }

    .with-indicator {
        position: relative;
    }

    .with-indicator .Nav-item:last-child:before,
    .with-indicator .Nav-item:last-child:after {
        content: '';
        display: block;
        position: absolute;
        pointer-events: none;
        -webkit-transition: left 1s ease;
        transition: left 1s ease;
    }

    .with-indicator .Nav-item:last-child:before {
        border: 1px solid;
        border-top-color: #fff;
        width: 0;
        height: 7px;
        top: 0;
        left: 8%;
    }

    .with-indicator .Nav-item:last-child:after {
        top: -6px;
        bottom: -6px;
        left: 0;
        width: 16%;
        background-image: url(../img/icon_timeline.svg);
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: 13%;
    }

    .with-indicator .Nav-item:nth-child(1).is-active ~ .Nav-item:last-child:after {
        left: 0%;
    }

    .with-indicator .Nav-item:nth-child(1).is-active ~ .Nav-item:last-child:before {
        left: 8%;
    }

    .with-indicator .Nav-item:nth-child(2).is-active ~ .Nav-item:last-child:after {
        left: 16%;
    }

    .with-indicator .Nav-item:nth-child(2).is-active ~ .Nav-item:last-child:before {
        left: 24%;
    }

    .with-indicator .Nav-item:nth-child(3).is-active ~ .Nav-item:last-child:after {
        left: 32%;
    }

    .with-indicator .Nav-item:nth-child(3).is-active ~ .Nav-item:last-child:before {
        left: 40%;
    }

    .with-indicator .Nav-item:nth-child(4).is-active ~ .Nav-item:last-child:after {
        left: 48%;
    }

    .with-indicator .Nav-item:nth-child(4).is-active ~ .Nav-item:last-child:before {
        left: 56%;
    }
    
   .with-indicator .Nav-item:nth-child(5).is-active ~ .Nav-item:last-child:after {
        left: 64%;
    }
    
    .with-indicator .Nav-item:nth-child(5).is-active ~ .Nav-item:last-child:before {
        left: 72%;
    }
    
    

    .with-indicator .Nav-item:nth-child(1):hover ~ .Nav-item:last-child:after {
        left: 0% !important;
    }

    .with-indicator .Nav-item:nth-child(1):hover ~ .Nav-item:last-child:before {
        left: 8% !important;
    }

    .with-indicator .Nav-item:nth-child(2):hover ~ .Nav-item:last-child:after {
        left: 16% !important;
    }

    .with-indicator .Nav-item:nth-child(2):hover ~ .Nav-item:last-child:before {
        left: 24% !important;
    }

    .with-indicator .Nav-item:nth-child(3):hover ~ .Nav-item:last-child:after {
        left: 32% !important;
    }

    .with-indicator .Nav-item:nth-child(3):hover ~ .Nav-item:last-child:before {
        left: 40% !important;
    }

    .with-indicator .Nav-item:nth-child(4):hover ~ .Nav-item:last-child:after {
        left: 48% !important;
    }

    .with-indicator .Nav-item:nth-child(4):hover ~ .Nav-item:last-child:before {
        left: 56% !important;
    }
    
    .with-indicator .Nav-item:nth-child(5):hover ~ .Nav-item:last-child:after {
        left: 64% !important;
    }

    .with-indicator .Nav-item:nth-child(5):hover ~ .Nav-item:last-child:before {
        left: 72% !important;
    }


    .with-indicator .Nav-item:last-child:hover:before,
    .with-indicator .Nav-item:last-child.is-active:before {
        left: 88% !important;
    }

    .with-indicator .Nav-item:last-child:hover:after,
    .with-indicator .Nav-item:last-child.is-active:after {
        left: 80% !important;
    }

    *,
    *:before,
    *:after {
        box-sizing: border-box;
    }

    .PrimaryNav:before,
    .PrimaryNav:after {
        content: " ";
        display: table;
    }

    .PrimaryNav:after {
        clear: both;
    }







}


@media only screen and (min-width: 1200px) {}

@media only screen and (orientation: landscape) and (max-width:1440px) {}

@media only screen and (orientation: landscape) and (max-width:812px) {

    .navItem {
        padding: .6rem 0;
    }

    .navLink {
        font-size: .9rem;
    }

    .navLogoBar {
        grid-column: 10/12;
    }

    .navLogoMenu {
        grid-column: 8/10;
        grid-row: 1/2;
        height: 3.5em;
        margin-top: 3.5rem;
    }
}

@media only screen and (orientation: landscape) and (max-width:667px) {
    .navLink {
        font-size: .8rem;
    }
}

@media only screen and (orientation: landscape) and (max-width:568px) {

    .navItem {
        padding: .45rem 0;
    }
}
