/*
 Theme Name:     Stadsmijn Achterhoek
 Theme URI:      https://standerksen.nl/
 Description:    Divi Child theme for Stadsmijn Achterhoek
 Author:         Stan Derksen
 Author URI:     https://standerksen.nl/
 Template:       Divi
 Version:        1.0.0
*/

/**********************************************************************************************************************
  General
 **********************************************************************************************************************/
#page-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/**********************************************************************************************************************
  Custom modules and components
 **********************************************************************************************************************/
.et_pb_module.et_pb_text img.drone-scan {
    float: right;
    margin: 5px 0 0 15px;
}

@media screen and (max-width: 768px) {
    .et_pb_module.et_pb_text img.drone-scan {
        float: none;
        margin: 0 0 10px 0;
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .et_pb_module.dynamic-post-title .et_pb_title_container h1.entry-title {
        font-size: 28px;
    }
}


/**********************************************************************************************************************
  Navigation bar
 **********************************************************************************************************************/
#main-header {
    background-color: transparent;
    box-shadow: none;
    z-index: 99998;
}

#main-header.et-fixed-header {
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
    -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

#logo {
    opacity: 0;
}

#main-header.et-fixed-header {
    position: fixed;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
}

#main-header.et-fixed-header #logo {
    opacity: 1;
}

#main-header #top-menu a {
    color: #000000;
    font-weight: 800;
    -webkit-transition: all .4s ease-in-out, text-shadow 0.2s;
    -moz-transition: all .4s ease-in-out, text-shadow 0.2s;
    -ms-transition: all .4s ease-in-out, text-shadow 0.2s;
    -o-transition: all .4s ease-in-out, text-shadow 0.2s;
    transition: all .4s ease-in-out, text-shadow 0.2s;
}

#main-header #top-menu li.current-menu-ancestor > a,
#main-header #top-menu li.current-menu-item > a,
#main-header #top-menu li.current_page_item > a {
    color: #f27b25;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
}

#main-header.et-fixed-header #top-menu li.current-menu-ancestor > a,
#main-header.et-fixed-header #top-menu li.current-menu-item > a,
#main-header.et-fixed-header #top-menu li.current_page_item > a,
#main-header #top-menu li ul.sub-menu li.current-menu-item > a,
#main-header #top-menu li ul.sub-menu li.current_page_item > a {
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0);
}

#main-header #top-menu li ul.sub-menu {
    border: none;
    min-width: 400px;
    padding: 20px;
    right: 0;
    width: auto;
}

#main-header #top-menu li ul.sub-menu li {
    box-shadow: inset 4px 0 0 #f27b25;
    padding: 0;
    width: 100%;
}

#main-header #top-menu li ul.sub-menu li a {
    font-size: 16px;
    letter-spacing: 1px;
    width: 100%;
}

#main-header #top-menu li ul.sub-menu li a:hover {
    background-color: transparent;
}

@media screen and (max-width: 980px) {
    #main-header .container {
        padding: 0 5%;
        width: 100%;
    }

    #main-header .et_mobile_menu {
        border: none;
        padding: 3%;
    }

    #main-header .et_mobile_menu li a {
        background: none;
        border-bottom: 0;
        font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
        box-shadow: inset 4px 0 0 #f27b25;
    }

    #main-header .et_mobile_menu li .sub-menu {
        padding-left: 0;
    }

    #main-header .et_mobile_menu li .sub-menu li {
        padding-left: 0;
    }

    #main-header .et_mobile_menu li .sub-menu li a {
        box-shadow: inset 4px 0 0 #ffc393;
        padding: 10px 10%;
    }
}


/**********************************************************************************************************************
  News blog
 **********************************************************************************************************************/
#main-content .et_pb_posts article {
    border-left: 4px solid #FFC393;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#main-content .et_pb_posts article .entry-featured-image-url {
    float: right;
    height: 250px;
    margin: 0 0 0 30px;
    width: 250px;
}

#main-content .et_pb_posts article .entry-featured-image-url img {
    height: 250px;
    object-fit: cover;
    width: 250px;
}

#main-content .et_pb_posts article .entry-title {
    padding: 30px 30px 15px 30px;
}

#main-content .et_pb_posts article .post-meta {
    bottom: 0;
    margin: 0;
    padding: 0 30px 30px 30px;
    position: absolute;
}

#main-content .et_pb_posts article .post-content {
    padding: 0 30px 30px 30px;
}

#main-content .et_pb_posts article .post-content .more-link {
    background-color: #f27b25;
    border-left: 4px solid #ffc393;
    bottom: 0;
    color: white;
    right: 0;
    padding: 16px 28px;
    position: absolute;
    transition: all 0.2s ease;
    width: 250px;
    z-index: 10;
}

#main-content .et_pb_posts article:hover .post-content .more-link {
    border-left: 8px solid #ffc393;
}

#main-content .et_pb_text h3 {
    padding-top: 10px;
}

@media screen and (max-width: 980px) {
    #main-content .et_pb_posts article .entry-featured-image-url {
        float: left;
        margin: 30px 30px 10px 30px;
    }

    #main-content .et_pb_posts article .post-content {
        padding: 0 30px 80px 30px;
    }

    #main-content .et_pb_posts article .post-content .more-link {
        width: auto;
    }
}

@media screen and (max-width: 768px) {
    #main-content .et_pb_posts article .entry-featured-image-url {
        display: inline-block;
        float: none;
        height: auto;
        margin: 0;
        padding: 30px;
        width: 100%;
    }

    #main-content .et_pb_posts article .entry-featured-image-url img {
        height: auto;
        width: 100%;
    }

    #main-content .et_pb_posts article .entry-title {
        padding: 0 30px 15px 30px;
        word-break: break-word;
    }
}

@media screen and (max-width: 400px) {
    #main-content .et_pb_posts article .entry-featured-image-url {
        padding: 15px;
    }

    #main-content .et_pb_posts article .entry-title {
        padding: 0 15px 15px 15px;
        word-break: break-word;
    }

    #main-content .et_pb_posts article .post-meta {
        padding: 0 15px 30px 15px;
        position: static;
    }

    #main-content .et_pb_posts article .post-content {
        padding: 0 15px 70px 15px;
    }

    #main-content .et_pb_posts article .post-content p {
        font-size: 14px;
    }

    #main-content .et_pb_posts article .post-content .more-link {
        border-left: none;
        width: 100%;
    }
}


/**********************************************************************************************************************
  Projects archive
 **********************************************************************************************************************/
#main-content article.project {
    border: none;
    padding: 0;
}

#main-content article.project .et_pb_image_container {
    margin: 0 0 30px 0;
}

#main-content article.project .entry-featured-image-url {
    display: block;
    padding-top: 75%;
}

#main-content article.project .entry-featured-image-url img {
    bottom: 0;
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

#main-content #section-projects .et_pb_blog_grid .column article {
    display: none;
}

#main-content #section-projects .et_pb_blog_grid .column article:first-of-type {
    display: block;
}

/**********************************************************************************************************************
  Pagination
 **********************************************************************************************************************/
#main-content .wp-pagenavi {
    border: none;
}

#main-content .wp-pagenavi .current,
#main-content .wp-pagenavi .previouspostslink,
#main-content .wp-pagenavi .nextpostslink,
#main-content .wp-pagenavi .page {
    background-color: #ffc393;
    color: #2f2f2f !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    line-height: 1.7em;
    padding: 16px;
}

#main-content .wp-pagenavi .previouspostslink,
#main-content .wp-pagenavi .nextpostslink,
#main-content .wp-pagenavi .page {
    background-color: #f27b25;
    color: #ffffff !important;
}

/**********************************************************************************************************************
  Contact Form 7
 **********************************************************************************************************************/
.wpcf7 form .wpcf7-flexbox {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.wpcf7 form .wpcf7-flex-50 {
    display: flex;
    margin-bottom: 3%;
    width: 48.5%;
}

.wpcf7 form .wpcf7-flex-100 {
    display: flex;
    margin-bottom: 3%;
    width: 100%;
}

.wpcf7 form .wpcf7-form-control-wrap {
    width: 100%;
}

.wpcf7 form .wpcf7-text,
.wpcf7 form .wpcf7-textarea,
.wpcf7 form .wpcf7-email {
    appearance: none;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: inset 4px 0 0 0 #ffc393;
    color: #2f2f2f;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 16px;
    transition: box-shadow 300ms ease 0ms;
    width: 100%;
}

.wpcf7 form .wpcf7-text:hover,
.wpcf7 form .wpcf7-textarea:hover,
.wpcf7 form .wpcf7-email:hover,
.wpcf7 form .wpcf7-text:focus,
.wpcf7 form .wpcf7-textarea:focus,
.wpcf7 form .wpcf7-email:focus {
    box-shadow: inset 4px 0 0 0 #ff9d59;
}

.wpcf7 form .wpcf7-submit {
    color: #ff9d59;
    background-color: #ffffff;
    border-width: 0;
    border-radius: 0;
    box-shadow: -4px 0 0 0 #ffc393;
    cursor: pointer;
    letter-spacing: 1px;
    line-height: 1.7em;
    float: right;
    font-size: 16px;
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    padding: 16px 28px;
    transition: all 0.2s;
}

.wpcf7 form .wpcf7-submit:hover {
    box-shadow: -8px 0 0 0 #ff9d59;
}

.wpcf7 form .ajax-loader {
    margin: 0;
}

@media screen and (max-width: 768px) {
    .wpcf7 form span.ajax-loader {
        display: inline-block;
        margin-top: 5px;
    }
}

.wpcf7 form .wpcf7-not-valid-tip {
    display: none;
}

.wpcf7 form .wpcf7-not-valid {
    background-color: #ffeeee;
    box-shadow: inset 4px 0 0 0 #ff0000;
}

.wpcf7 form .wpcf7-response-output {
    background-color: #ffffff;
    border: none;
    font-size: 14px;
    line-height: 1em;
    padding: 16px;
    margin: 0 0 3% 0;
}

.wpcf7 form.sent .wpcf7-response-output {
    box-shadow: inset 4px 0 0 0 #008000;
}

.wpcf7 form.invalid .wpcf7-response-output {
    box-shadow: inset 4px 0 0 0 #ff0000;
}

.wpcf7 .wpcf7-file-input input[type="file"] {
    position: absolute;
    left: 0;
    opacity: 0;
    top: 0;
    bottom: 0;
    width: 100%;
}

.wpcf7 .wpcf7-file-input span.wpcf7-form-control-wrap {
    width: 0%;
}

.wpcf7 .wpcf7-file-input label {
    background-color: #ffffff;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    line-height: 1em;
    padding: 16px 16px 16px 64px;
    position: relative;
    width: 100%;
}

.wpcf7 .wpcf7-file-input label.file-selected {
    color: #2f2f2f;
}

.wpcf7 .wpcf7-file-input label:before {
    background-color: #ffc393;
    color: #ffffff;
    content: "\f13b";
    font-family: dashicons;
    font-size: 26px;
    left: 0;
    padding: 16px 10px 16px 12px;
    position: absolute;
    top: 0;
}

.wpcf7 .wpcf7-date-input input[type="date"] {
    appearance: none;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: inset 4px 0 0 0 #ffc393;
    color: #2f2f2f;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 16px;
    transition: box-shadow 300ms ease 0ms;
    width: 100%;
}

.wpcf7 .wpcf7-date-input span.offer-date {
    position: relative;
}

.wpcf7 .wpcf7-date-input span.offer-date:before {
    background-color: #ffffff;
    color: #999;
    content: 'Uiterste ophaaldatum';
    font-size: 14px;
    left: 16px;
    line-height: 18px;
    padding: 16px 0;
    pointer-events: none;
    position: absolute;
    top: 0;
}

.wpcf7 .wpcf7-date-input span.hidden.offer-date:before {
    display: none;
}

.wpcf7 .wpcf7-select-input select {
    appearance: none;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: inset 4px 0 0 0 #ffc393;
    color: #2f2f2f;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 16px;
    transition: box-shadow 300ms ease 0ms;
    width: 100%;
}

.wpcf7 .wpcf7-select-input span:after {
    content: "\f347";
    font-family: dashicons;
    line-height: 18px;
    padding: 16px 14px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

@media screen and (max-width: 768px) {
    .wpcf7 form .wpcf7-flex-50 {
        display: flex;
        margin-bottom: 3%;
        width: 100%;
    }

    .wpcf7 form .wpcf7-submit {
        box-shadow: inset 4px 0 0 0 #ffc393;
        width: 100%;
    }

    .wpcf7 form .wpcf7-submit:hover {
        box-shadow: inset 8px 0 0 0 #ff9d59
    }

    .wpcf7 form .ajax-loader {
        display: none;
    }
}

/**********************************************************************************************************************
  Google reCAPTCHA v3
 **********************************************************************************************************************/
.grecaptcha-badge {
    display: none;
}


/**********************************************************************************************************************
  Materials marketplace pop-up
 **********************************************************************************************************************/
#sa-marketplace-popup {
    display: none;
    height: auto;
    left: calc(50% - 490px);
    position: absolute;
    top: 50px;
    width: 980px;
    z-index: 99999;
}

#sa-marketplace-popup .et_pb_button_module_wrapper {
    display: inline-block;
    margin-right: 30px;
    width: auto;
}

@media screen and (max-width: 1080px) {
    #sa-marketplace-popup {
        left: 0;
        margin: 25px;
        top: 0;
        width: calc(100% - 50px);
    }

    #sa-marketplace-popup .et_pb_button_module_wrapper {
        display: block;
        width: 100%;
    }

    #sa-marketplace-popup .sa-marketplace-button {
        text-align: center;
        width: 100%;
    }
}


/**********************************************************************************************************************
  Cookie banner
 **********************************************************************************************************************/
body #cookie-notice {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

body #cookie-notice .cookie-notice-container {
    padding: 30px;
}

body #cookie-notice #cn-notice-buttons {
    display: block;
    margin-top: 15px;
}

body #cookie-notice #cn-notice-buttons .cn-button {
    background-color: #f27b25 !important;
    border-radius: 0;
    box-shadow: -4px 0 0 0 #ffc393;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.7em;
    margin: 0;
    padding: 16px 28px;
    text-transform: uppercase;
}

body #cookie-notice #cn-notice-buttons .cn-more-info {
    background-color: #ffffff !important;
    color: #f27b25;
    margin-left: 19px;
}

body #cookie-notice #cn-close-notice {
    display: none;
}

/**********************************************************************************************************************
  Products archive
 **********************************************************************************************************************/
.et_pb_products_archive .row {
    width: 100%;
}

.et_pb_products_archive .row .category {
    display: inline-block;
    float: right;
    margin-bottom: 4%;
}

.et_pb_products_archive .row.flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.et_pb_products_archive .row .product {
    margin-bottom: 4%;
    width: 23%;
}

.et_pb_products_archive .row .product .tile {
    box-shadow: 0 7px 12px -5px rgba(0, 0, 0, 0.2);
    padding-bottom: 10px;
}

.et_pb_products_archive .row .product .tile img {
    display: block;
    margin-bottom: 10px;
}

.et_pb_products_archive .row .product .tile .name {
    color: #267b3d;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    overflow: hidden;
    padding: 0 15px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.et_pb_products_archive .row .product .tile .price {
    color: #f27b25;
    font-size: 14px;
    font-weight: 700;
    padding: 0 15px;
}

.et_pb_products_archive .row .product .tile .price.with-vat {
    color: rgba(0, 0, 0, 0.4);
    font-weight: normal;
}

@media screen and (max-width: 782px) {
    .et_pb_products_archive .row .product {
        width: 48%;
    }
}

@media screen and (max-width: 400px) {
    .et_pb_products_archive .row .product .tile .name {
        font-size: 14px;
        line-height: 20px;
    }

    .et_pb_products_archive .row .product .tile .price {
        font-size: 12px;
        line-height: 18px;
    }
}

/**********************************************************************************************************************
  Products description
 **********************************************************************************************************************/
.et_pb_products_description {
    font-size: 18px;
}

.et_pb_products_description p {
    padding-bottom: 0.5em;
}

.et_pb_products_description p:last-of-type {
    padding-bottom: 0;
}

.et_pb_products_description p span.vat {
    color: rgba(0, 0, 0, 0.4);
    font-size: 12px;
}

/**********************************************************************************************************************
  Products images
 **********************************************************************************************************************/
.et_pb_products_images .main {
    margin-bottom: 15px;
}

.et_pb_products_images .main img {
    display: block;
}

.et_pb_products_images .main img.hidden {
    display: none;
}

.et_pb_products_images .additional {
    overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    overflow-y: hidden;
    touch-action: pan-x;
    white-space: nowrap;
}

.et_pb_products_images .additional .image {
    cursor: pointer;
    display: inline-block;
    margin-right: 15px;
}

.et_pb_products_images .additional .image:last-of-type {
    margin-right: 0;
}

.et_pb_products_images .additional .image img {
    display: block;
}

@media screen and (max-width: 576px) {
    .et_pb_products_images .additional .image {
        width: 100px;
    }
}

@media screen and (max-width: 400px) {
    .et_pb_products_images .additional .image {
        width: 75px;
    }
}