/*
Theme Name: Divi Child Theme
Theme URI: https://foremostmedia.com
Description: Divi child theme
Author: Foremost Media
Author URI: https://foremostmedia.com
Template: Divi
Version: 1.0.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: divi-child-theme
*/
:root {
    --green: #5ab869;
    --blue: #2ea3f2;
    --off-black: #1a1a1a;
    --white: #ffffff;
    --body-text: #5d5d5d;
    --heading-text: var(--off-black);
}

.service-cards .grid-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.service-cards .grid-3>* {
    flex: 0 0 calc(33.333% - 25px);
    /* 3 per row */
}

/* Tablet */
@media (max-width: 1080px) {
    .service-cards .grid-3>* {
        flex: 0 0 calc(50% - 25px);
        /* 2 per row */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .service-cards .grid-3>* {
        flex: 0 0 100%;
        /* 1 per row */
    }
}

/* Image adjustments for half panel sections */
@media (max-width: 980px) {

    .image-right .half-image img,
    .image-left .half-image img {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
}

/* Contact Form 7 */
.wpcf7 {
    color: var(--body-text);
    font-family: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.wpcf7 :is(input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
    textarea.wpcf7-form-control,
    select.wpcf7-form-control) {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 0;
    background-color: var(--white);
    color: var(--body-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 textarea.wpcf7-form-control {
    min-height: 180px;
    resize: vertical;
}

.wpcf7 .wpcf7-form-control::placeholder {
    color: var(--body-text);
    opacity: 1;
}

.wpcf7 :is(input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
    textarea.wpcf7-form-control,
    select.wpcf7-form-control):focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(90, 184, 105, 0.18);
    outline: 0;
}

.wpcf7 .wpcf7-submit.et_pb_button {
    box-sizing: border-box;
    padding: 10px 50px !important;
    border: 3px solid var(--green) !important;
    border-radius: 0 !important;
    background: var(--green) !important;
    color: var(--white) !important;
    font-family: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    text-align: left;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.wpcf7 .wpcf7-submit.et_pb_button:hover,
.wpcf7 .wpcf7-submit.et_pb_button:focus-visible {
    padding: 10px 50px !important;
    border-color: var(--green) !important;
    background: transparent !important;
    color: var(--green) !important;
}

.wpcf7 .wpcf7-submit.et_pb_button::after {
    display: none;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #b3261e !important;
}

.wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b3261e;
    font-size: 14px;
}

.wpcf7 .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 12px 16px;
    border-color: var(--green);
}

@media (max-width: 480px) {
    .wpcf7 .wpcf7-submit.et_pb_button {
        width: 100%;
        text-align: center;
    }
}

.grid.grid-2 {
    margin-bottom: 16px;
}

@media(min-width:600px){
    .grid.grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 0px
    }
}

/* Global header */
.dd-flex-column {
    display: flex;
    align-items: center;
}

body:not(.et-fb) #et-boc .et-l .dd-fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.et-db #et-boc .et-l .dd-fixed-header.et_pb_section.dd-fixed-header-styling {
    background-color: #fcfcfc !important;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.2);
}

.et-db #et-boc .et-l .dd-fixed-header.dd-fixed-header-styling .et_pb_menu ul li a,
.et-db #et-boc .et-l .dd-fixed-header.dd-fixed-header-styling .et_pb_menu ul li.current-menu-item a,
.et-db #et-boc .et-l .dd-fixed-header.dd-fixed-header-styling .et_pb_menu .nav li ul.sub-menu a {
    color: #333 !important;
}

.et-db #et-boc .et-l .dd-social-follow li {
    margin-bottom: 0;
}

.et_pb_menu__menu > nav > ul > li {
    margin-top: 0 !important;
}

@media (min-width: 981px) {
    .dd-social-follow::before {
        content: "";
        position: absolute;
        bottom: 25%;
        width: 3px;
        height: 50%;
        margin-left: -25px;
        background-color: var(--green);
    }
}

.dd-search input.et_pb_searchsubmit {
    z-index: 99;
    padding: 0 20px;
    border: none !important;
    background: transparent !important;
}

.dd-search-icon {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 17px;
    border-left: 1px solid transparent;
    background-color: #263547;
}

.dd-search-icon::after {
    content: "U";
    display: block;
    color: var(--white);
    font-family: "ETmodules" !important;
    font-size: 17px;
    font-weight: 700;
    transform: scaleX(-1);
}

header .et_builder_inner_content {
    z-index: 999999;
}

.admin-bar header .et_builder_inner_content {
    z-index: 2;
}

body.admin-bar #et-boc .et-l .dd-fixed-header {
    top: 32px;
}

@media only screen and (max-width: 782px) {
    body.admin-bar #et-boc .et-l .dd-fixed-header {
        top: 46px;
    }
}

@media only screen and (min-width: 981px) and (max-width: 1258px) {
    .et_pb_row_1_tb_header.tsa-header-row {
        width: 100%;
    }

    .tsa-header-row .et_pb_menu_0_tb_header {
        margin-right: 40px !important;
    }

    ul.et_pb_social_media_follow_0_tb_header li a.icon {
        margin-right: 12px !important;
    }
}

/* Collapsed header */
@media (max-width: 1150px) {
    .tsa-header-row {
        position: relative !important;
    }

    .tsa-header-row .et_pb_menu .et_pb_menu__menu {
        display: none !important;
    }

    .tsa-header-row .et_pb_menu .et_mobile_nav_menu {
        display: flex !important;
    }

    .tsa-header-row .et_mobile_menu {
        padding: 5% !important;
        list-style: none !important;
    }

    .tsa-header-row .et_mobile_menu .sub-menu {
        padding: 0 0 0 10px !important;
        list-style: none !important;
    }

    .tsa-header-row .et_mobile_menu li {
        list-style: none !important;
    }

    .tsa-header-row .dd-flex-column {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .tsa-header-row .et_pb_image {
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .tsa-header-row .et_pb_menu {
        flex: 0 0 auto;
        width: auto !important;
        margin: 0 0 0 auto !important;
    }

    .tsa-header-row .et_pb_menu,
    .tsa-header-row .et_pb_menu_inner_container,
    .tsa-header-row .et_pb_menu__wrap,
    .tsa-header-row .et_mobile_nav_menu,
    .tsa-header-row .mobile_nav {
        position: static !important;
    }

    .tsa-header-row .et_pb_menu__wrap,
    .tsa-header-row .et_mobile_nav_menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
    }

    .tsa-header-row .mobile_menu_bar {
        padding-bottom: 0;
    }

    .tsa-header-row .et_mobile_menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box;
        z-index: 99999;
    }

    .tsa-header-row .et_mobile_menu li,
    .tsa-header-row .et_mobile_menu li a {
        width: 100%;
        box-sizing: border-box;
    }
}