:root {
    --primary-color: #4c646b;
    --secondary-color: #1e353c;
}

* {outline: none !important;}

::selection {
    background-color: var(--secondary-color);
    color: #fff;
}

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    overflow-y: scroll;
}

body {
    color: #6a6a6a;
    background: #f1f0f0;
}

p {margin: 0 0 20px 0;	}

img {max-width: 100%;}

a {
    text-decoration: none;
    outline: none;
}

a{
    color: #4da7ca;
    -o-transition: all .4s;
    -ms-transition: all .4s;
    -moz-transition: all .4s;
    -webkit-transition: all .4s;
    transition: all .4s;
}

/*a:hover {*/
/*    color: #4290ae;*/
/*}*/

.bg-main {
    background: var(--primary-color);
}

.float-left {
    float: left
}

.float-right {
    float: right;
}

.menu-toggle {
    max-width: 32px;
}

#header {
    position: relative;
    padding: 0 !important;
}

#header.header-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('../images/background/bg1_2560x1440.jpeg') no-repeat center center;
    background-size: cover;
    z-index: 0;
    overflow: hidden;
}

@media screen and (max-width: 767px) and (orientation: portrait) {
    background: url('../images/background/bg1_1080x1440.jpeg') no-repeat center center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

.overlay.active {
    opacity: 1; /* Make the overlay fully visible */
}

@media screen and (max-width: 767px) and (orientation: landscape) {
    #header.header-wrapper {
        height: auto;
        min-height: 100vh;
        padding: 0px;
    }
}

#header.header-wrapper .header-wrapper-inner {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

#nav-bar.top {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 30px;
    height: auto;
    width: 100%;
    z-index: 500;
    -o-transition: all .5s;
    -ms-transition: all .5s;
    -moz-transition: all .5s;
    -webkit-transition: all .5s;
    transition: all .5s;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

#nav-bar.top.solid {
    position: fixed;
    top:0;
    width: 100%;
    background: var(--secondary-color);
    padding-top: 5px;
    padding-bottom: 5px;
    -o-transition: all .5s;
    -ms-transition: all .5s;
    -moz-transition: all .5s;
    -webkit-transition: all .5s;
    transition: all .5s;
}

/*#nav-bar.top h1{*/
/*    margin-bottom: 0;*/
/*}*/
#nav-bar.top.solid .toggleDrawer i {
    padding-top: 8px;
}

#nav-bar.logo, #nav-bar .toggleDrawer{
    font-family: 'Didact Gothic', serif;
    color: white;
}

 .slider-text {
    display: table;
    /*    opacity: 0;*/
    min-height: 100vh;
    padding: 15px 15px;
    z-index: 9;
    transition: background-image 1s ease-in-out;
}

.slider-text > .slider-text-inner .desc {
    z-index: 2;
    position: absolute;
    bottom: 45px;
    left: 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 767px) {
    .slider-text > .slider-text-inner .desc {
        bottom: 15px;
        padding: 10px;
    }
}


.slider-text > .slider-text-inner h1 {
    position: relative;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: 1.25em;
    color: #000;
    font-weight: 400;
}
.slider-text > .slider-text-inner h2 {
    position: relative;
    margin-bottom: 20px;
    font-family: 'Didact Gothic', serif;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 3px;
    color: #202020;
    font-weight: 400;
}

#header .bottom {
    bottom: 10%;
    display: block;
    position: absolute;
    width: 100%;
    z-index: 3;
}
#header .bottom a img {
    width: 50px;
}
#header .bottom a {
    opacity: 0.7;
}
#header .bottom a:hover {
    opacity: 1;
}

.element-visible {
    opacity: 1 !important;
}
.with-appearance {
    transition: all 1.5s cubic-bezier(0.42, 0, 0.58, 1);
    opacity: 0;
}
.what-we-do,
.where-do-we-work {
    padding-top: 100px;
    padding-bottom: 100px;
    color: white;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75em;
}
.section-subtitle {
    font-size: 12px;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0px;
}
.section-title {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: white;
    margin-bottom: 30px;
    line-height: 1.25em;
}

.services {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: white;
}

.services .section-subtitle {
    font-size: 12px;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0px;
}

.services .section-title {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.25em;
}

.services p{
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75em;
    color: #000;
    margin-bottom: 20px;
}

/* line animation */
.services .line {
    text-align: center;
    height: 1px;
    width: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    margin: auto 0 20px;
}

.services .item:hover .line {
    width: 100%;
    transition-property: all;
    transition-duration: 0.8s;
    transition-timing-function: ease-in-out;
}

.services .position-re {
    height: 100%;
}

.services .item {
    overflow: hidden;
    /*margin-bottom: 30px;*/
    height: 100%;
    position: relative;
}

.services .item .con {
    height: 50%;
    padding: 20px;
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    -webkit-transition: all .3s;
    transition: all .3s;
    text-align: left;
    z-index: 20;
    box-sizing: border-box;
    background: -moz-linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .01) 10%, rgba(0, 0, 0, .75) 70%);
    background: -webkit-linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .01) 10%, rgba(0, 0, 0, .75) 70%);
    background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .01) 10%, rgba(0, 0, 0, .75) 70%);
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

.services .item .con .line,
.services .item .con h5 {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    margin-top: 0px;
    margin-bottom: 10px;
}

#drawer-right {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    margin-right: -300px;
    background: #2c2c2b;
    width: 300px;
    padding: 20px;
    z-index: 999;
}

#drawer-right h1, #drawer-right h2{color: white;}

#drawer-right .nav-pills>li>a {
    font-size: 18px;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 3px;
    margin-bottom: 0px;
    line-height: 2em;
}
#drawer-right .nav-pills>li>a:hover {
    color: rgba(255, 255, 255, 0.8);
}
#drawer-right ul {
    padding-left: 0!important;
}
#drawer-right .nav-pills>li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#drawer-right .social{
    margin-top: 50px
}

.testimonials .container h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5em;
    margin: 0 0 20px 0;
}

.testimonials .container span {
    font-size: 18px;
    margin-bottom: 0px;
    padding-top: 0px;
    font-weight: 400;
    font-family: 'Didact Gothic', sans-serif;
    color: #fff;
    line-height: 1em;
}


.content-block{
    background:transparent no-repeat center center fixed;
    -webkit-background-size:100%;
    -moz-background-size:100%;
    -o-background-size:100%;
    background-size:100%;
    background-size:cover;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;
    overflow:hidden;
    padding: 60px 0;
}
.testimonials{
    padding: 100px 0;
}

.block-body {
    margin-top: 60px;
}

#testimonials {
    background-image:
            url(../images/services/komunia.jpg),
            linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    background-blend-mode: overlay;
    color: white;
}

.recent-work-picture {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.recent-work-picture img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    display: block;
    -o-transition: all .4s ;
    -ms-transition: all .4s;
    -moz-transition: all .4s;
    -webkit-transition: all .4s;
    transition: 0.5s all ease-in-out;
}

.recent-work-picture img:hover {
    transform: scale(1.06);
}

.portfolio header h3 {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: #000;
    line-height: 1.25em;
    margin-bottom: 0px;
}

.portfolio header span {
    font-size: 12px;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0;
}

#services h1, #services h2{
    color: white;
}
.service i {
    font-size: 60px;
}
.service {
    padding: 0 25px;
}

.map-image {
    position: relative; /* Ensures the pseudo-element is positioned relative to this container */
}

.map-image img {
    z-index: 0;
    position: relative;
}

@media (min-width: 1200px) {
    .map-image:before {
        content: '';
        width: 90%;
        height: 90%; /* Ensure the pseudo-element has a height */
        position: absolute;
        top: -12%;
        left: -6%;
        background-image: url(../images/white_square_in_center_13x13.png);
        background-repeat: repeat;
        z-index: 0; /* Ensure the pseudo-element is above the image */
        margin: 10px; /* Adding a 10px margin */
    }
}
/* text field */
input[type="password"]:focus,
input[type="email"]:focus,
input[type="text"]:focus,
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus,
textarea:focus {
    outline: none;
}
input[type="password"],
input[type="email"],
input[type="text"],
input[type="file"],
textarea {
    max-width: 100%;
    margin-bottom: 10px;
    padding: 10px 15px;
    height: auto;
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
    display: block;
    width: 100%;
    line-height: 1.75em;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    background-image: none;
    border: 1px solid #000;
    resize: none;
}
textarea, .text-input{
    margin-bottom: 10px;
}
input:focus,
textarea:focus {
    border-bottom-width: 1px;
    border-color: #000;
}
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
    text-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    line-height: 1.75em;
    -webkit-transition: background-color .15s ease-out;
    transition: background-color .15s ease-out;
    background: transparent;
    border: 0px solid transparent;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover {
    border: 0px solid transparent;
}

/* placeholder */
::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
    font-weight: 400;
}
:-moz-placeholder {
    color: rgba(0, 0, 0, 0.7);
}
::-moz-placeholder {
    color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}
:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.7);
}

.contact-us {
    background-color: white;
}

.contact-us .content {
    width: 100%;
    height: 100%;
    padding: 40px 40px 40px 60px;
}
@media screen and (max-width: 1200px){
    .contact-us .content {
        padding: 40px 40px 40px 40px;
    }
}

.contact-us .content .inner {
    max-width: 600px;
}

.contact-us .content .inner h4 {
    font-family: 'Playfair Display', serif;
    color: #000;
    font-weight: 400;
    font-size: 34px;
    margin: 0 0 20px 0;
    /*line-height: 1.75em;*/

}
@media screen and (max-width: 1200px){
    .contact-us .content .inner h4 {
        margin: 0 0 15px 0;
        font-size: 24px;
    }
}

.contact-us .content .inner h6 {
    font-size: 12px;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#send-button {
    border: 1px solid #2c2c2b;
    background-color: #2c2c2b;
    color: white;
    padding: 10px 25px;
    cursor: pointer;
}

#send-button:hover {
    background-color: white;
    color: #2c2c2b;
    border: 1px solid #2c2c2b;
}

#footer{
    background: var(--secondary-color);
    color: white;}

.footer-img {
    max-width: 30px;
    display: inline-block;
}

.footer-img img:hover {
    background-color: var(--primary-color);
    border-radius: 11px;
}

.separator {
    display: inline-block;
    margin: 0 12px;
    font-size: 24px;
    color: #ffffff;
    vertical-align: middle;
}

@media (max-width: 767px){

    #header .bottom {
        bottom: 13%;
    }

    .recent-work {
        background-position: center;
    }

    .recent-work:before {
        opacity: 1;
    }

    .recent-work span {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    #drawer-right {
        padding: 10px 20px;
    }

    #drawer-right .nav-pills>li>a {
        font-size: 17px;
    }

    .nav-stacked>li+li {
        margin-top: 0;
    }

    .nav>li>a {
        padding: 8px 15px;
    }

    #drawer-right .social {
        margin-top: 5px;
    }

    #header {
        background-size: cover;
    }
}
/*TODO: consider using those colors*/
/*https://palettes.shecodes.io/palettes/1241#palette*/
/*https://palettes.shecodes.io/palettes/1433#palette*/
/*https://palettes.shecodes.io/palettes/1241#palette*/

/* Popup container */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

/* Popup content */
.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
    min-width: min(500px, 100%);
    min-height: 300px;
}

.popup-content text {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    border: 1px solid #000;
}

.popup-content p {
    font-family: 'Playfair Display', serif;
    color: #000;
    font-size: 30px;
    font-weight: 400;
}

/* Close button */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.mw-600 {
    max-width: 600px;
}