.site-header {
    position: relative;
    
    // Logo
    .site-logo {
        display: inline-block;
        max-width: 300px;
        position: relative;
        height: 100%;
        width: 100%;
        .title {
            text-decoration: none;  
            color: inherit;
            display: inline-block;
        }
        img {
            width: 100%;
            height: auto;
        }
    }
    
    // Top nav
    .header-nav {
        .menu {
            display: flex;
            .menu-item {
                margin: 0 4px;
            }
        }
    }
    
    // Search form
    .search-form {
        display: inline-block;
        padding: 4px;
        border: solid 1px;
        input {
            background-color: transparent;
            border: 0;
            outline: 0;
            font-size: 20px;
            font-family: inherit;
            text-indent: 3px;
        }
        button {
            border: 0;
            background: transparent;
            outline: 0;
            font-size: 22px;
            opacity: 1;
            transition: opacity 0.2s ease-in-out;
            &:hover {
                cursor: pointer;
                opacity: 0.5;
                transition: opacity 0.2s ease-in-out;
            }
        }
    }

    // Menu
    .main-nav {
        .menu {
            display: flex;
            flex-wrap: wrap;
            .menu-item {
                margin: 0 7px;
                a {
                    white-space: nowrap;
                    display: block;
                    color: inherit;
                    z-index: 39;
                }
            }
        } 
        .menu-item-has-children {
            .sub-menu {
                display: block;
                visibility: hidden;
                opacity: 0;
                position: absolute;
                flex-direction: column;
                z-index: 30;
                padding: 0;
                .menu-item {
                    margin: 0;
                    padding: 0;
                    a {
                        display: block;
                        padding: 8px 12px;
                    }
                }
            }
            &:hover > .sub-menu {
                visibility: visible;
                opacity: 1;
                transition: opacity 0.25s ease-in-out;
               -moz-transition: opacity 0.25s ease-in-out;
               -webkit-transition: opacity 0.25s ease-in-out;
            }
        }
    }
    
    // Layout: Classic
    &.classic {
        .upper {
            .container {
                display: grid;
                place-items: center end;
            }
        }
        .main {
            .container {
                display: grid;
                grid: auto / 1fr 1fr 1fr 1fr;
                .tagline {
                    grid-column: 1;
                }
                .main-nav_wrap {
                    grid-column: 2 / span 3;
                    grid-row: 1 / span 2;
                    place-self: center end;
                    .menu {
                        .menu-item:last-of-type {
                            margin-right: 0;
                        }
                    }
                }
            }
        }
    }
    
    // Layout: Stack Center
    &.stack-center {
        .main {
            .container {
                display: grid;
                place-items: center;
                .site-logo {
                    text-align: center;
                }
            }
        }
        .lower {
            .container {
                display: grid;
                place-items: center;
            }
        }
    }
    
    // Layout: Stack Left
    &.stack-left {
        .main {
            .container {
                display: grid;
                place-items: center start;
            }
            
        }
        .lower {
            place-items: center start;
            .menu {
                .menu-item:first-of-type {
                    margin-left: 0;
                }
            }
        }
    }
    
    // Navicon
    #navicon {
        display: none;
        width: 38px;
        height: 28px;
        position: relative;
        margin: 10px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
        cursor: pointer;
        span {
            display: block;
            position: absolute;
            height: 4px;
            width: 100%;
            border-radius: 9px;
            opacity: 1;
            left: 0;
            -webkit-transform: rotate(0deg);
            -moz-transform: rotate(0deg);
            -o-transform: rotate(0deg);
            transform: rotate(0deg);
            -webkit-transition: 0.25s ease-in-out;
            -moz-transition: 0.25s ease-in-out;
            -o-transition: 0.25s ease-in-out;
            transition: 0.25s ease-in-out;
            &:nth-child(1) {
                top: 0px;
            }
            &:nth-child(2),&:nth-child(3) {
                top: 12px;
            }
            &:nth-child(4) {
                top: 24px;
            }
        }
        &.open {
            span:nth-child(1) {
                top: 12px;
                width: 0%;
                left: 50%;
            }
            span:nth-child(2) {
                -webkit-transform: rotate(45deg);
                -moz-transform: rotate(45deg);
                -o-transform: rotate(45deg);
                transform: rotate(45deg);
            }
            span:nth-child(3) {
                -webkit-transform: rotate(-45deg);
                -moz-transform: rotate(-45deg);
                -o-transform: rotate(-45deg);
                transform: rotate(-45deg);
            }
            span:nth-child(4) {
                top: 12px;
                width: 0%;
                left: 50%;
            }
        }
    }
    
}

// Mobile menu 
.mobile-nav {
    .menu-arrow {
        display: none;
        position: absolute;
        right: 0;
        top: 0;
        cursor: pointer;
        z-index: 40;
        .fa-chevron-right, .fa-chevron-down {
            display: none;
            color: inherit;
        }
    }
    .menu-item-has-children {
        .menu-arrow {
            display: inline-block;
            .fa-chevron-right {
                display: initial;
                transform: rotate(0);
                transition: all 0.3s ease-in-out;
            }    
        }
        &.expanded {
            .menu-arrow {
                .fa-chevron-right {
                    transform: rotate(90deg);
                    transition: all 0.3s ease-in-out;
                }   
            }
            .sub-menu {
                display: block !important;
                padding: 0 0 5px 0;
                .menu-item {
                    border: 0;
                    a {
                        padding: 4px 0px 4px 20px;
                    }
                    .menu-arrow {
                        display: none !important;
                    }
                }
            }
        }
    }
}

// Menu responsive show/hide
@media(max-width: $laptop - 1) {
    .site-header {
         #navicon {
            display: inline-block;
        }
        .main-nav {
            display: none;    
        }    
    }
}
@media(min-width: $laptop) {
    .mobile-nav {
        display: none !important;
    }
}
