/* ----------------------------------------------------------------
- Main css file, optimize theme (09/05/22)
---------------------------------------------------------------- */

/* -----------------------------------------
- Init : Site header
----------------------------------------- */
.site-header .wrap {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}


/* -----------------------------------------
- Init : Main branding
----------------------------------------- */
.site-header .wrap .main-branding {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.site-header .main-branding .brand-link {
    background-color: #F6F5F3;
    width: 100%;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: none;
}

.site-header .main-branding .brand-link-title {
    font-family: Lato;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0em;
    text-align: left;
    color: black;
    text-decoration: none;
}

.site-header .main-branding img {
    height: 26px;
    width: auto;
    margin-left: 1rem;
}

.site-header .main-branding .footermenu {
    padding: 15px;
    border-top: 1px solid #E7E6E3;
    border-bottom: 1px solid #E7E6E3;
    background: #ffffff;
    z-index: 9;
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

/* .site-header .main-branding .footermenu img {
  	height: 100%;
} */


/* -----------------------------------------
- Init : Site branding
----------------------------------------- */
.header-image .site-description, 
.header-image .site-title {
    display: none;
}

.title-area .site-branding {
    display: flex;
}

.title-area .site-branding img {
    width: 100%;
    height: 97px;
    object-fit: contain;
}


@media only screen and (max-width: 1170px) {
    .header-image .site-description, 
    .header-image .site-title {
        display: block;
    } 
}


/* -----------------------------------------
- Init : Site header menu
----------------------------------------- */
.site-header {
    overflow: unset;
    z-index: 9999;
}

.menu .menu-item > a:focus + ul.sub-menu, 
.menu .menu-item.sfHover > ul.sub-menu {
    top: 0;
    left: 100%;
}

.genesis-nav-menu .menu-item:hover,
.genesis-nav-menu .menu-item {
    position: relative;
}

.genesis-nav-menu .menu-item a {
    font-weight: 600;
}

.genesis-nav-menu .menu-item.menu-item-has-children::after {
    font-family: FontAwesome;
    content: '\f078';
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    height: 10px;
    width: 10px;
    color: #da3828;

    display: none;
}

.genesis-nav-menu .menu-item .sub-menu {
    box-shadow: 0 0 5px 0 #00000014;
}

.genesis-nav-menu .menu-item .sub-menu a {
    border-left: 2px solid #eee;
}

.genesis-nav-menu .menu-item .sub-menu .menu-item:hover a,
.genesis-nav-menu .menu-item .sub-menu .current-menu-item a {
    border-left-color: #da3828;
}

@media only screen and (max-width: 1170px) {

    .site-header {
        overflow: auto;
    }

    .menu .menu-item > a:focus + ul.sub-menu, 
    .menu .menu-item.sfHover > ul.sub-menu {
        left: 0;
        position: relative;
        width: 100%;
    }

    .genesis-nav-menu .menu-item .sub-menu a {
        width: 100%;
    }

    .genesis-nav-menu .menu-item.menu-item-has-children::after {
        display: block;
    }

}

@media only screen and (max-width: 550px) {

    .site-header {
        width: calc( 100% - 60px );
    }

}


/* -----------------------------------------
- Init : Blog items
----------------------------------------- */
.linkmorepage .backgroundheaderitem {
    position: relative;
}

.linkmorepage .backgroundheaderitem img {
    height: 175px;
    width: 100%;
    object-fit: cover;
}

.linkmorepage .backgroundheaderitem .overlayblogitem {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


/* -----------------------------------------
- Init : Workspaces
----------------------------------------- */
.workspaces .halfworkspace.background {
    position: relative;
}

.workspaces .halfworkspace.background img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}


/* -----------------------------------------
- Init : Team contact
----------------------------------------- */
.teamcontact .teamperson .teamperson-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
}


/* -----------------------------------------
- Init : Header image
----------------------------------------- */
@media only screen and (max-width: 1170px) {

    .page-with-image .backgroundcontent {
        margin-top: 0;
    }

    body.page-template-default .site-inner .headerpage {
        min-height: 450px;
        height: auto;
        position: relative;
    }

    body.page-template-default .site-inner .headerpage .backgroundheaderitem {
        height: 100%;
        width: 100%;
        position: absolute;
    }

    body.page-template-default .headerpage .entry-header {
        bottom: 2.5rem;
    }

}

@media only screen and (max-width: 800px) {

    body.page-template-default .site-inner .headerpage {
        min-height: 350px;
        
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    body.page-template-default .headerpage .entry-header {
        top: unset;
        margin: 0;
        padding: 0 5%;
    }

}

@media only screen and (max-width: 500px) {

    body.page-template-default .site-inner .headerpage {
        min-height: 250px;
    }

    body.home .headerpage .backgroundheaderitem {
        height: 50%;
    }

}

@media only screen and (max-width: 400px) {

    body.page-template-default .site-inner .headerpage {
        min-height: 225px;
    }

}