/*
Theme Name: Taylor & Associates
Version: 1.0
Description: A child theme of Divi
Author: openform
Template: Divi
*/

@import url("../Divi/style.css");

html, body {
  overflow-x: hidden;
}

#page-container header {
	z-index: 99999;
  	position: relative;
}

* {
    user-select: none !important;
    user-drag: none !important;
    -webkit-user-drag: none !important;
}

#sl-preloader .sl-pl-spin-container div img {
	width:100px !important;
	max-width:100px !important;
}

@media (max-width: 1412px) {
    .grid__item {
        background-size: cover !important;
    }
}

@media (min-width: 981px) {
    #Contact > .et_pb_column:first-child {
        display: none;
    }
    #Contact > .et_pb_column:last-child {
        position: absolute;
        top: 0;
        right: 0;
    }
}

.et-pb-contact-message ul {
    display: none !important;
}

.et-pb-contact-message p {
    font-size: 16px;
    color: #3d5c59;
    font-weight: 600;
}

.et_contact_error i {
    border: 1px solid red;
}

ul {
    margin-left: 10px;
}

ul li::marker {
    font-size: 16px;
}

#About ul li::marker,
#Services .et_pb_row:first-child .et_pb_column:nth-child(2) ul li::marker {
    color: #aab1ac;
}

#Services .et_pb_row:last-child .et_pb_column:first-child ul li::marker,
#Services .et_pb_row:last-child .et_pb_column:last-child ul li::marker {
    color: #84af9a;
}

#Services + .et_pb_section .et_pb_row .et_pb_column:first-child ul li::marker {
    color: #84af9a;
}

.et_pb_row_0_tb_header .et_pb_column:first-child {
    z-index: 9;
}

.mobile_menu_bar {
    z-index: 99999;
}

 .mobile_nav #mobile_menu1 {
    position: fixed;
    top: 100px;
    left: 0;
    margin: 0;
    /*height: 100%;*/
}

.et_pb_sticky--top .mobile_nav #mobile_menu1 {
    top: 70px !important;
}

#Home + .et_pb_section::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-image: url(/wp-content/uploads/2025/12/T-symbol-bg.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
}

#AboutGridColumn {
    display: grid;
/*     grid-template: repeat(auto-fit, minmax(270px, 1fr)) / repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template: repeat(auto-fit, minmax(200px, 1fr)) / repeat(auto-fit, minmax(200px, 1fr));
    row-gap: 20px;
    column-gap: 20px;
}

#AboutGridColumn .et_pb_module:first-child {
    grid-area: 1 / 1 / 2 / 2;
}

#AboutGridColumn .et_pb_module:nth-child(2) {
    grid-area: 2 / 1 / 3 / 2
}

#AboutGridColumn .et_pb_module:last-child {
    grid-area: 1 / 2 / 3 / 3;
}

p:not(.has-background):last-of-type {
    padding-bottom: 1em !important;
}

#Accreditations + .et_pb_row p {
    padding-bottom: 0 !important;
}

@media (max-width: 1024px) {
    #Services + .et_pb_section .et_pb_column:nth-child(2) {
        height: 300px !important;
        background-position: center 20% !important;
        display: block !important;
    }
}

@media (min-width: 470px) and (max-width: 767px) {
    #Home > .et_pb_row:first-child {
		margin-top: 430px !important;
    }
}

@media (min-width: 768px) and (max-width: 980px) {
    #Home > .et_pb_row:first-child > .et_pb_column:first-child {
        display: block !important;
    }
/*     #About > .et_pb_column > .et_pb_row:nth-child(2) > .et_pb_column:first-child {
        display: block !important;
    } */
}

/* .serv__ul ul {
    padding-bottom: 0 !important;
} */

.et_pb_column:has(#map) {
    width: 50dvw;
}

#map {
    display: block;
    width: 100%;
    height: 550px;
}

.my-custom-infowindow {
    width: 230px;
    padding: 10px;
    padding-top: 0 !important;
}

.my-custom-infowindow h2 {
    color: #3d5c59;
    font-size: 16px;
    text-align: left;
    font-weight: 500;
}

.gm-style-iw-chr > button.gm-ui-hover-effect {
    position: absolute !important;
    right: 0;
    top: 3px;
}

form input,
form textarea {
    width: 100%;
}

.et_pb_contact_field[data-type="select"]::after {
    display: none !important;
}

form .et_pb_contact_field_checkbox label {
    display: flex !important;
}

form .et_pb_contact_field_checkbox label i {
    aspect-ratio: 1/1;
}

form .et_pb_contact_field textarea.et_pb_contact_message {
    min-height: 100px !important;
    resize: none !important;
}

.footer__logo {
    border: 2px solid #ededee;
    border-radius: 10px;
}

.footer__logo .et_pb_image_wrap {
    padding: 10px;
}

.footer__logo:first-child {
    max-width: 150px !important;
    width: 100%;
}

.footer__logo:last-child {
    max-width: 150px !important;
    width: 100%;
}

.footer__logo:first-child img {
    max-width: 100px;
    width: 100%;
}

.footer__logo:last-child img {
    max-width: 40px;
    width: 100%;
}

ul li {
    line-height: 18px !important;
}

/* MEDIA QUERIES */

@media (min-width: 768px) and (max-width: 1700px) {
    .grid__item.overlay__image {
        background-image: linear-gradient(180deg,rgba(235,238,237,0.8) 0%,rgba(235,238,237,0.8) 100% 100%), url(https://mtaylor.co.za/wp-content/uploads/2025/12/serv_grid_1.webp);
    }
    
    #Services .et_pb_row:nth-child(2) > .et_pb_column:first-child {
        background-image: linear-gradient(180deg,rgba(96,120,117,0.8) 0%,rgba(96,120,117,0.8) 100% 100%), url(https://mtaylor.co.za/wp-content/uploads/2025/12/serv_grid_2.webp);
        align-items: flex-start;
    }
    #Services .et_pb_row:nth-child(2) > .et_pb_column:first-child .et_pb_module {
        max-width: 100% !important;
    }
    
    #Services + .et_pb_section .et_pb_row > .et_pb_column:last-child {
        background-image: linear-gradient(180deg,rgba(132,174,155,0.8) 0%,rgba(132,174,155,0.8) 100% 100%), url(https://mtaylor.co.za/wp-content/uploads/2025/12/serv_grid_4.webp);
    }
    #Services + .et_pb_section .et_pb_row > .et_pb_column:last-child .et_pb_module {
        max-width: 100% !important;
    }
    #Services .et_pb_row:first-child .et_pb_column:first-child {
        padding-right: 30px !important;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    #Home + .et_pb_section + .et_pb_section > .et_pb_row {
        background-size: cover !important;
    }
}

@media (min-width: 981px) and (max-width: 1250px) {
    #Contact .et_pb_contact_field.et_pb_module {
        width: calc(100% - var(--horizontal-gap-parent, 5.5%)*0.5) !important;
    }
    #Accreditations {
        margin-top: 120px;
    }
    .grid__item.overlay__image > .et_pb_module {
        max-width: 100% !important;
    }
    #Services .et_pb_row:first-child .et_pb_column:last-child {
        padding-right: 40px !important;
    }
}

@media (max-width: 980px) {
    #HeaderContactColumn {
        display: none !important;
    }
    .et_pb_column:has(#map), #map {
        width: 100dvw !important;
    }
    #Contact + .et_pb_row p,
    #Contact + .et_pb_row + .et_pb_row p,
    #Accreditations +.et_pb_row p {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 980px) {
    #AboutGridColumn {
        grid-template: repeat(auto-fit, minmax(50px, 1fr)) / repeat(auto-fit, minmax(140px, 1fr)) !important;
        row-gap: 10px !important;
        column-gap: 10px !important;
    }
    
}
