/*------------------------------------*\
    FONTS
\*------------------------------------*/

@font-face {
    font-family: 'Gotham';
    src: local('Gotham Bold'), local('Gotham-Bold'),
        url('/wp-content/themes/lib/font/Gotham-Bold.woff2') format('woff2'),
        url('/wp-content/themes/lib/font/Gotham-Bold.woff') format('woff');
    font-weight: bold;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: local('Gotham Book'), local('Gotham-Book'),
        url('/wp-content/themes/lib/font/Gotham-Book.woff2') format('woff2'),
        url('/wp-content/themes/lib/font/Gotham-Book.woff') format('woff');
    font-weight: normal;
    font-display: swap;
    font-style: normal;
}

/*------------------------------------*\
    MAIN
\*------------------------------------*/

html, body {
    height: 100%;
    padding: 0;
    margin: 0;     
}

body {
    font-size: 14px;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    font-family: 'Gotham', Helvetica, Arial, sans-serif;
    color: #31251D;
}

.wrapper {
    display: flex; 
    min-height: 100vh;
    flex-wrap: wrap;
}

.content-area {
    order: 2;
    padding-left: 300px;
    width: 100%;
    box-sizing: border-box;
}

p, ul {
    line-height: 150%;
}

h1 {
    font-size: 5em;
    color: #636c57;
    max-width: 1000px;
    text-transform: uppercase;
    margin: 1em 0 0.1em 0;
    line-height: 100%;
}

.container {
    padding: 40px;
}

.flex-container {
    display: flex;
    min-height: 100vh;
}

.flex-item {
    width: 40%;
    padding: 40px;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
}

.flex-image {
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    justify-content: flex-end;
    padding: 0 40px 20px 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: calc(60% - 260px);
    box-sizing: border-box;
}

.flex-container ul {
    margin-left: 0;
    margin-top: 0;
    padding-left: 14px;
}

.flex-image p {
    margin: 0;
    color: #fff;
    text-align: right;
    font-size: 1.25em;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.5);
}

.flex-container h2, .container h2 {
    font-size: 1.75em;
    text-transform: uppercase;
    max-width: 700px;
    margin: 0.25em 0;
}

.next_page {
    margin-top: 2em;
}

.next_page a {
    min-width: 170px;
    text-transform: uppercase;
    display: inline-block;
    -webkit-transition: 0.2s background-color ease-in;
    transition: 0.2s background-color ease-in;
    background-color: #636c57;
    color: #f0ece3;
    font-size: 1.25em;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75em 1em;
}

.next_page a:hover {
    background-color: #31251d;
}

.next_page a img {
    margin-right: 10px;
    max-width: 20px;
    display: inline-block;
    vertical-align: middle;
}

.next_page p {
    font-weight: bold;
}

/* Sidebar */

.sidebar {
    box-sizing: border-box;
    width: 300px;
    order: 1;
    background-color: rgba(240, 236, 227, 0.95);
    padding: 40px;
    display: flex;
    align-content: center;
    justify-content: space-between;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
}

.logo-m {
    display: none;
}

.logo-img {
    width: 100%;
}

.menu {
    margin: 2em 0;
}

.menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu ul li {
    margin-bottom: 20px;
}

.menu a {
    outline: none;
    font-size: 1.15em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    color: #31251d;
    display: block;
}

.menu .current-menu-item a, .menu a:hover {
    color: #636c57;
}

.footer_soc {
    margin-bottom: 20px;
}

.footer_soc a {
    -webkit-transition: 0.2s opacity ease-in;
    transition: 0.2s opacity ease-in;
    display: inline-block;
    width: 20px;
    margin-right: 20px;
}

.footer_soc a:hover {
    opacity: 0.8;
}

.footer p {
    margin: 0.25em 0;
    font-size: 0.9em;
}

.menu_burger {
    display: none;
    position: absolute;
    top: 0px;
    right: 14px;
}

.menu_burger:not(.active) .btn--close {
    display: none;
}

.menu_burger.active .btn--open {
    display: none;
}

.menu_burger svg {
    width: 46px;
    height: 46px;
}

.btn--open, 
.btn--close {
    fill: #31251D;
    cursor: pointer;
}

/*------------------------------------*\
    COMPONENTS
\*------------------------------------*/

/* Slider */

.hero-slider {
    line-height: 0;
}

.hero-slider-wrap {
    position: relative;
}

.slide {
    position: relative;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.slide-left, .slide-right {
    position: absolute;
    top: 50%;
    left: 40px;
    display: block;
    cursor: pointer;
    width: 40px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 1;
    -webkit-transition: 0.2s opacity ease-in;
    transition: 0.2s opacity ease-in;
}

.slide-right {
    left: auto;
    right: 40px;
}

.slide-left:hover, .slide-right:hover {
    opacity: 0.8;
}

.slide__text {
    padding-right: 40px;
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-size: 5em;
    color: #fff;
    max-width: 750px;
    text-transform: uppercase;
    line-height: 100%;
    margin: 0;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.5);
}

/* About Page */

.page-template-template-about h1 {
    margin-top: 0;
}

/* Process Page */

.page-template-template-why h1 {
    margin-bottom: 0.5em;
}

.process_scheme {
    max-width: 900px;
    margin: 2em 0;
}

/* Projects Archive */

.projects-list {
    margin-top: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project-list-item {
    width: 49%;
    height: calc(50vh - 140px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    margin-bottom: 2%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.project-list-item a {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.project-list-item::before {
    -webkit-transition: 0.2s background-color ease-in;
    transition: 0.2s background-color ease-in;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 236, 227, 0);
}

.project-list-item:hover::before {
    background-color: rgba(240, 236, 227, 0.25);
}

.container .project-list-item h2 {
    text-shadow: 0px 2px 6px rgba(0,0,0,0.5);
    color: #fff;
    font-size: 2.5em;
    margin: 0;
}

.project-list-item-gallery {
    display: none;
    padding-top: 15vh;
    background: rgba(0,0,0,0.85);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.project-list-item-gallery .hero-slider {
    width: 70vw;
    height: 70vh;
    margin: 0 auto;
}

.project-list-item-gallery .hero-slider .slide {
    height: 70vh;
}

.project-list-item-gallery .slide-left {
    left: 6vw;
}

.project-list-item-gallery .slide-right {
    right: 6vw;
}

.project-list-item-gallery .btn--close {
    fill: #fff;
    position: absolute;
    right: 3vw;
    top: 6vh;
    width: 50px;
    height: 50px;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media (max-width: 1279px) {

    h1, .slide__text {
        font-size: 3em;
    }

    .flex-container h2, .container h2 {
        font-size: 1.25em;
    }

    .next_page a {
        font-size: 1em;
        min-width: 135px;
    }

    .next_page a img {
        max-width: 15px;
    }

    .project-list-item {
        height: calc(50vh - 104px);
    }

}

@media (max-width: 1023px) {

    .content-area {
        padding-left: 230px;
    }

    .sidebar {
        width: 230px;
    }

    .flex-container {
        flex-wrap: wrap;
    }

    .flex-item {
        width: 100%;
        box-sizing: border-box;
    }

    .flex-image {
        position: relative;
        right: auto;
        top: auto;
        height: 320px;
    }

    .container .project-list-item h2 {
        font-size: 1.5em;
    }

    .page-template-template-enquire .flex-image {
        background-position: center center;
    }

}

@media (max-height: 449px) and (max-width: 1023px)  {

    .content-area {
        padding-top: 0 !important;
    }

    .sidebar {
        position: relative;
    }

    .menu ul li {
        margin-bottom: 10px;
    }

    .content-area {
        padding-left: 0;
        width: calc(100% - 230px);
    }

}

@media (max-height: 449px) and (min-width: 1024px)  {

    .content-area {
        padding-top: 0 !important;
    }

    .sidebar {
        position: relative;
    }

    .menu ul li {
        margin-bottom: 10px;
    }

    .content-area {
        padding-left: 0;
        width: calc(100% - 300px);
    }

}

@media (max-width: 767px) {

    .menu_burger {
        display: block;
    }

    .logo {
        margin-left: -20px;
    }

    .logo-img {
        max-width: 100px;
    }

    .slide__text {
        font-size: 2em;
    }

    h1 {
        font-size: 2.5em;
        margin-top: 0;
    }

    .flex-container {
        justify-content: space-between;
        flex-direction: column;
        overflow: hidden;
        min-height: calc(100vh - 46px);
    }

    .flex-container h2, .container h2 {
        font-size: 1.5em;
    }

    .flex-item, .container {
        padding: 20px;
    }

    .flex-image {
        padding: 0 20px 20px 0;
        height: 220px;
    }

    .flex-image p {
        font-size: 0.8em;
    }

    .content-area {
        padding-left: 0;
        width: 100%;
    }

    body:not(.home) .content-area {
        padding-top: 46px;
    }

    .sidebar {
        width: 100%;
        z-index: 2;
        padding: 10px 40px;
        height: 46px;
        overflow: hidden;
        -webkit-transition: 0.4s height cubic-bezier(.79,.14,.15,.86);
        transition: 0.4s height cubic-bezier(.79,.14,.15,.86);
    }

    .sidebar.active {
        height: 100%;
    }

    .slide-left, .slide-right {
        width: 20px;
    }

    .slide-left {
        left: 20px;
    }

    .slide-right {
        right: 20px;
    }

    .slide__text {
        left: 20px;
        padding-right: 20px;
        bottom: 20px;
    }

    .next_page {
        margin-top: 0em;
    }

    .page-template-template-about .next_page a {
        font-size: 0.8em;
        text-transform: capitalize;
    }

    .project-list-item {
        height: 320px;
        width: 100%;
        margin-bottom: 20px !important;
    }

    .project-list-item:last-child {
        margin-bottom: 0px !important;
    }

    .project-list-item-gallery .hero-slider {
        width: 100vw;
    }

    .project-list-item-gallery .btn--close {
        right: 12px;
        top: -2px;
    }

}

@media (max-width: 479px) {

    .project-list-item {
        height: 220px;
    }

}

/*.btn {
    display: block;
}*/