/*
Theme Name: DP Law
Author: Angel Demirev
Author URI: https://www.demirev.net/
Version: 1.0
*/

@font-face {
    font-family: 'Golden Sans';
    src: url('fonts/subset-GoldenSans-Regular.woff2') format('woff2'),
        url('fonts/subset-GoldenSans-Regular.woff') format('woff'),
        url('fonts/subset-GoldenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Golden Sans';
    src: url('fonts/subset-GoldenSans-Light.woff2') format('woff2'),
        url('fonts/subset-GoldenSans-Light.woff') format('woff'),
        url('fonts/subset-GoldenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Golden Sans';
    src: url('fonts/subset-GoldenSans-Medium.woff2') format('woff2'),
        url('fonts/subset-GoldenSans-Medium.woff') format('woff'),
        url('fonts/subset-GoldenSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Golden Sans';
    src: url('fonts/subset-GoldenSans-Black.woff2') format('woff2'),
        url('fonts/subset-GoldenSans-Black.woff') format('woff'),
        url('fonts/subset-GoldenSans-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

html{
    min-height: 100vh;
    overflow-x: hidden;
}

body{
    font-family: 'Golden Sans';
    background: #fef0e5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #332f2c;
    overflow-x: hidden;
}

.container{
    padding: 0 15px;
}

.home{
    background-color: #4e4743;
    position: relative;
}

.home:after{
    content: '';
    background-image: url('images/home-bgr.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wrapper{
    padding: 0 15px;
}

.home .wrapper{
    max-width: 1580px;
    margin: 0 auto;
}

/*Global*/

*{
    box-sizing: border-box;
}

figure{
    margin: 0;
}

img{
    max-width: 100%;
    height: auto;
}

a{
}

a:focus{
    outline: none;
    border: none;
}

button:focus{
    outline: none;
}

p{

}

h1, h2, h3, h4, h5{

}

h1{

}

h2{

}

h3{

}

h4{

}

h5{

}

ul,
ol{
    margin: 0;
    padding: 0;
}

ul li,
ol li{
    list-style: none;
}

.page-title{
    margin: 0 0 20px;
    padding: 0 0 18px;
    border-bottom: 3px solid #fff;
    position: relative;
}

.page-title h1{
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 25px;
    color: #4e4743;
    font-weight: 400;
}

.page-title time{
    margin: 20px 0 0;
    font-size: 20px;
    color: #332f2c;
    font-weight: 500;
    display: inline-block;
}

.page-title a{
    margin: 0 0 20px;
    color: #4e4743;
    display: inline-block;
    position: absolute;
    bottom: 100%;
    left: 0;
}

hr{
    border: none;
    border-bottom: 3px solid #fff;
}

/* Header */

#header{
    background: #4e4743;
    margin: 0 0 20px;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

#logo{
    max-width: 70%;
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: 0;
    position: relative;
}

.navigation button{
    background: transparent;
    padding: 10px;
    border: none;
    position: absolute;
    top: 26px;
    right: 0;
    cursor: pointer;
}

.navigation button span{
    background: #fff;
    width: 26px;
    height: 3px;
    display: block;
    position: relative;
}

.navigation button span:before{
    content: '';
    background: #fff;
    width: 26px;
    height: 3px;
    margin: 0 0 4px;
    display: block;
    position: absolute;
    bottom: 100%;
    left: 0;
}

.navigation button span:after{
    content: '';
    background: #fff;
    width: 26px;
    height: 3px;
    margin: 4px 0 0;
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
}

.navigation{}

.home .navigation{
    display: none;
}

.navigation nav{
    background: #4e4743;
    padding: 20px 15px 0;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    /* height: 0; */
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    -webkit-transform: translateY(-10%);
    -moz-transform: translateY(-10%);
    transform: translateY(-10%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.navigation.open nav{
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0%);
    -moz-transform: translateY(0%);
    transform: translateY(0%);
}

.navigation nav > ul{}

.navigation nav > ul > li{
}

.navigation nav > ul > li > a{
    margin: 0 0 32px;
    font-size: 20px;
    color: #fef0e5;
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.navigation nav > ul > li > ul{
    margin: -12px 0 32px;
    padding: 0 0 0 24px;
    display: none;
    border-left: 3px solid #fef0e5;
}

.navigation nav > ul > li.current_page_item > ul,
.navigation nav > ul > li.current-menu-parent > ul{
    display: block;
}

.navigation nav > ul > li > ul li{}

.navigation nav > ul > li > ul li a{
    margin: 0 0 22px;
    font-size: 15px;
    color: #fef0e5;
    display: inline-block;
    text-decoration: none;
}

.navigation nav > ul > li > ul li:last-child a{
    margin: 0;
}

.home h1{
    margin: 0 0 30px;
    padding: 32px 0;
    font-size: 35px;
    color: #fff;
    font-weight: 300;
    border-top: 3px solid #3f3a37;
    border-bottom: 3px solid #3f3a37;
}

.home main a{
    padding: 0 0 2px;
    font-size: 26px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid #fff;
    display: inline-block;
}

.home main .important-article{
    margin: 6% 0 20px;
}

.home main .important-article a{
    padding: 0;
    font-size: 20px;
    color: #fef0e5;
    border: none;
    text-decoration: none;
    text-transform: none;
    position: relative;
}

.home main .important-article a:after{
    content: '';
    background: url('images/arrow-right.png') top left no-repeat;
    width: 37px;
    height: 11px;
    margin: -2px 0 0;
    opacity: 0;
    position: absolute;
    top: 50%;
    right: -48px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.home main .important-article a:hover:after{
    opacity: 1;
    right: -58px;
}

#language-box{
    position: absolute;
    top: 16px;
    right: 50px
}

#language-box ul{}

#language-box ul li{}

#language-box ul li.active{
    display: none;
}

#language-box ul li a{
    width: 40px;
    height: 40px;
    font-size: 14px;
    color: #fef0e5;
    font-weight: 500;
    line-height: 36px;
    text-align: center;
    border: 3px solid #3f3a37;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}

/* Content */

main{}

#detail-page{}

#detail-page:after{
    content: '';
    display: block;
    clear: both;
}

#detail-page > .text{}

#detail-page > .text *{
    margin: 25px 0;
}

#detail-page .team-image{
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 80vh;
    margin: 0 0 50px;
}

.article-list li{
    background: #e8dcd3;
    margin: 0 0 42px;
    padding: 34px 45px;
    position: relative;
}

.article-list li header{}

.article-list li header h2{
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 20px;
    color: #4e4743;
    font-weight: 400;
}

.article-list li time{
    font-size: 20px;
    font-weight: 900;
}

.article-list li a:not(.view-more){
    border: 3px solid transparent;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.article-list li a.view-more{
    font-family: 'Golden Sans';
    margin: 56px 0 0;
    font-size: 20px;
    color: #332f2c;
    display: inline-block;
    text-decoration: underline;
}

.article-list li a:hover{
    border-color: #4e4743;
}

.team-list{
    margin: 0 -45px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
}

.team-list:after{
    content: '';
    display: block;
    clear: both;
}

.team-list .team-entry{
    margin: 0 0 60px;
    padding: 0 45px;
    text-align: center;
}

.team-list .team-entry figure{
    margin: 0 0 40px;
    line-height: 0;
    overflow: hidden;
}

.team-list .team-entry figure img{
    width: 100%;
}

.team-list .team-entry .text{}

.team-list .team-entry .text h2{
    font-family: 'Playfair Display', serif;
    margin: 0 0 16px;
    font-size: 30px;
    color: #4e4743;
}

.team-list .team-entry .text h2 a{
    color: #4e4743;
    text-decoration: none;
}

.team-list .team-entry .text p{
    margin: 0;
    font-size: 20px;
    color: #4e4743;
}

#contact-page .contact-text{

}

#contact-page .contact-text h2{
    font-size: 46px;
    font-weight: 500;
}

#contact-page .contact-text h3{
    margin-top: 20px;
    font-size: 20px;
    font-weight: 500;
}

#contact-page .contact-text p{
    font-size: 20px;
}

#contact-page .contact-text a{
    color: #4e4743;
    text-decoration: none;
}

#contact-page .contact-text a[href^="tel:"]{
    margin: 0 0 10px;
    display: inline-block;
    font-weight: 500;
}

#contact-page .contact-map{
    height: 100vh;
    position: relative;
}

#contact-page .contact-map #map{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.membership-table{
    margin: 0 !important;
}

.membership-table + *{
    margin-top: 0 !important;
}

.membership-table ~ p a{
    font-size: 20px;
    color: #332f2c;
    font-weight: 900;
}

.membership-table table{
    width: auto;
    margin: 0 !important;
}

.membership-table table tr{}

.membership-table table tr td{}

.membership-table table tr td:first-child{
    padding-right: 38px;
}

.membership-table table tr td strong{
    font-family: 'Playfair Display', serif;
    font-size: 35px;
    color: #4e4743;
    font-weight: 400;
}

/* Footer */

/* Media Queries */

@media all and (min-width: 450px){
    #logo{
        max-width: 290px;
    }

    .team-list .team-entry{
        width: 50%;
        float: left;
    }
}

@media all and (min-width: 992px){

    body{
        min-height: 100vh;
        font-size: 18px;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-flow: row wrap;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
    }

    .container{
        padding: 0;
    }

    .home{
        display: block;
    }

    .home{
        background-image: url('images/home-bgr.png');
        background-position: center right;
        background-repeat: no-repeat;
    }

    .home:after{
        display: none;
    }

    body:after{
        content: '';
        display: block;
        clear: both;
    }

    #header{
        width: 30%;
        margin: 0;
        padding: 6.5% 20px 0;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        transform: translateX(-100%);
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }

    .animate #header{
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        transform: translateX(0%);
    }

    .home #header{
        background: transparent;
        width: auto;
        padding: 145px 0;
        float: none;
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        transform: translateX(0%);
    }

    #logo{
        max-width: none;
        margin: 0 0 150px;
    }

    #logo:after{
        content: '';
        margin: 30px 0 0;
        border-bottom: 3px solid #3f3a37;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
    }

    .home #logo{
        margin: 0;
        opacity: 0;
        -webkit-transform: translateY(-20%);
        -moz-transform: translateY(-20%);
        transform: translateY(-20%);
        -webkit-transition: all 0.3s ease-in-out 0.1s;
        -moz-transition: all 0.3s ease-in-out 0.1s;
        transition: all 0.3s ease-in-out 0.1s;
    }

    .home.animate #logo{
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        transform: translateY(0);
    }

    .home #logo:after{
        display: none;
    }

    .navigation button{
        display: none;
    }

    .navigation nav{
        margin: 0 0 32px;
        padding: 0;
        opacity: 1;
        visibility: visible;
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        overflow: visible;
    }

    .navigation nav > ul > li > a{
        display: block;
    }

    .navigation nav > ul > li > a:hover:after,
    .navigation nav > ul > li.current-menu-item > a:after,
    .navigation nav > ul > li.current-menu-parent > a:after{
        content: '';
        background: #fff;
        width: 10px;
        height: 10px;
        margin: -5px 0 0;
        border-radius: 100%;
        position: absolute;
        top: 50%;
        right: -40px;
    }

    #language-box{
        position: relative;
        top: auto;
        right: auto;
    }

    .home .text{
        max-width: 700px;
        width: 50%;
        opacity: 0;
        -webkit-transform: translateY(-10%);
        -moz-transform: translateY(-10%);
        transform: translateY(-10%);
        -webkit-transition: all 0.3s ease-in-out 0.3s;
        -moz-transition: all 0.3s ease-in-out 0.3s;
        transition: all 0.3s ease-in-out 0.3s;
    }

    .home.animate .text{
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        transform: translateY(0);
    }

    main{
        width: 70%;
        margin: 0 0 0 30%;
        padding: 6% 110px;
    }

    body:not(.home) main{
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        transform: translateX(100%);
        -webkit-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
    }

    .animate:not(.home) main{
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        transform: translateX(0%);
    }

    .home h1{
        margin: 0 0 80px;
        padding: 52px 0;
        font-size: 45px;
    }

    .home main a{
        font-size: 30px;
        opacity: 0;
        -webkit-transform: translateY(-20%);
        -moz-transform: translateY(-20%);
        transform: translateY(-20%);
        -webkit-transition: all 0.3s ease-in-out 0.4s;
        -moz-transition: all 0.3s ease-in-out 0.4s;
        transition: all 0.3s ease-in-out 0.4s;
    }

    .home.animate main a{
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        transform: translateY(0);
    }

    .home main .important-article{
        opacity: 0;
        -webkit-transform: translateY(-20%);
        -moz-transform: translateY(-20%);
        transform: translateY(-20%);
        -webkit-transition: all 0.3s ease-in-out 0.5s;
        -moz-transition: all 0.3s ease-in-out 0.5s;
        transition: all 0.3s ease-in-out 0.5s;
    }

    .home.animate main .important-article{
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        transform: translateY(0);
    }

    .home main .important-article a{
        font-size: 28px;
    }

    main.team-detail{
        padding: 0;
    }

    .home main{
        width: auto;
        margin: 0;
        padding: 0;
        float: none;
    }

    #detail-page > .text *{
        margin: 38px 0;
    }

    #detail-page .team-image{
        width: 50%;
        height: 100vh;
        margin: 0;
        float: left;
    }

    #detail-page .team-text{
        width: 50%;
        float: left;
    }

    #detail-page .team-text{
        height: 100vh;
        padding: 110px 6% 0;
        overflow-x: auto;
    }

    #detail-page .team-text .text{
        padding: 0 0 50px;
    }

    .article-list li header h2{
        font-size: 30px;
    }

    .article-list{
        margin: 0 -40px;
    }

    #contact-page{
        padding: 0;
    }

    #contact-page .contact-text{
        width: 50%;
        padding: 110px 6%;
        float: left;
    }

    #contact-page .contact-map{
        width: 50%;
        float: left;
    }

    #contact-page .contact-text h3{
        margin-top: 50px;
        font-size: 30px;
        font-weight: 500;
    }

    #contact-page .contact-text p{
        font-size: 25px;
    }

    .page-title{
        margin: 0 0 50px;
        padding: 0 0 58px;
    }

    .page-title h1{
        font-size: 35px;
    }

}

@media all and (min-width: 1200px){
    #header{
        width: 20%;
    }

    main{
        width: 80%;
        margin: 0 0 0 20%;
    }

    .team-list .team-entry{
        width: 33.33%;
    }
}

@media all and (min-width: 1700px){
    #header{
        padding: 6.5% 53px 0;
    }
}
