/* 
 Theme Name:     Bare bones for Divi
 Author:         Divi theme examples
 Author URI:     http://www.divithemeexamples.com 
 Template:       Divi
 Version:        1.3 
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 


/*** Square Service Buttons - Responsive ***/
/* Note: class has typo "serivce" not "service" */
.serivce_button.et_pb_button,
.service_button.et_pb_button {
    /* No background-color - let Divi's background images show through */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.3 !important;
    font-size: clamp(12px, 2.5vw, 16px) !important;
}

/* Wrapper full width with padding for spacing */
.et_pb_button_module_wrapper:has(.serivce_button),
.et_pb_button_module_wrapper:has(.service_button) {
    width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    margin: 10px 0 0 0 !important; /* Remove side margins causing overflow */
}

/* Mobile: Service buttons - Enhanced Design */
@media only screen and (max-width: 767px) {

    /* === SERVICE BUTTON GRID === */
    /* Match site-wide 94% width with consistent margins */
    .et_pb_section_57 .et_pb_row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        width: 94% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .et_pb_section_57 .et_pb_column {
        width: 50% !important;
        max-width: 50% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Last (5th) column - display as 2-column grid to continue pattern */
    .et_pb_section_57 .et_pb_column.et-last-child {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Fix wrapper margin causing overflow */
    .et_pb_button_module_wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .et_pb_section_57 .et_pb_button_module_wrapper {
        padding: 4px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    /* Ensure buttons don't overflow their wrappers */
    .et_pb_section_57 .serivce_button.et_pb_button,
    .et_pb_section_57 .service_button.et_pb_button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* === SERVICE BUTTON STYLING === */
    /* Design: Refined Natural Luxury - earthy, premium, trustworthy */
    .serivce_button.et_pb_button,
    .service_button.et_pb_button {
        /* No background-color - let Divi's background images show through */

        /* Layout - elegant card proportions */
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        min-height: 130px !important;
        width: 100% !important;

        /* Typography - bold, confident, readable */
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.02em !important;
        text-transform: none !important;
        color: #ffffff !important;

        /* Text positioning */
        padding: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        text-align: center !important;

        /* Card styling - layered depth */
        border-radius: 12px !important;
        overflow: hidden !important;
        position: relative !important;

        /* Rich layered shadow for depth */
        box-shadow:
            0 1px 2px rgba(0,0,0,0.07),
            0 4px 8px rgba(0,0,0,0.07),
            0 8px 16px rgba(0,0,0,0.1),
            inset 0 0 0 1px rgba(255,255,255,0.08) !important;

        /* Smooth interactions */
        transition:
            transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
            filter 0.25s ease !important;

        /* Image treatment - slight desaturation for consistency */
        filter: saturate(0.95) !important;

        /* Subtle border for definition */
        border: 1px solid rgba(0,0,0,0.06) !important;
    }

    /* Frosted glass text container */
    .serivce_button.et_pb_button::before,
    .service_button.et_pb_button::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 55%;
        /* Rich gradient with earthy undertone */
        background: linear-gradient(
            to top,
            rgba(20, 35, 20, 0.92) 0%,
            rgba(25, 40, 25, 0.75) 40%,
            rgba(30, 45, 30, 0.4) 70%,
            transparent 100%
        ) !important;
        pointer-events: none;
        z-index: 1;
    }

    /* Subtle top vignette for polish */
    .serivce_button.et_pb_button::after,
    .service_button.et_pb_button::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.15) 0%,
            transparent 100%
        ) !important;
        pointer-events: none;
        z-index: 1;
    }

    /* Text styling - crisp and prominent */
    .serivce_button.et_pb_button,
    .service_button.et_pb_button {
        position: relative;
        z-index: 2;
    }

    /* Inner text wrapper */
    .et_pb_section_57 .serivce_button.et_pb_button,
    .et_pb_section_57 .service_button.et_pb_button {
        padding: 14px 12px !important;
        /* Refined text shadow - crisp, not blurry */
        text-shadow:
            0 1px 2px rgba(0,0,0,0.8),
            0 2px 8px rgba(0,0,0,0.4) !important;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    /* Hover state - subtle lift */
    .serivce_button.et_pb_button:hover,
    .service_button.et_pb_button:hover {
        transform: translateY(-2px) scale(1.01) !important;
        filter: saturate(1.05) brightness(1.02) !important;
        box-shadow:
            0 2px 4px rgba(0,0,0,0.08),
            0 8px 16px rgba(0,0,0,0.12),
            0 16px 32px rgba(0,0,0,0.08),
            inset 0 0 0 1px rgba(255,255,255,0.12) !important;
    }

    /* Active/pressed state - satisfying click */
    .serivce_button.et_pb_button:active,
    .service_button.et_pb_button:active {
        transform: translateY(0) scale(0.98) !important;
        filter: saturate(1) brightness(0.98) !important;
        box-shadow:
            0 1px 2px rgba(0,0,0,0.1),
            0 2px 4px rgba(0,0,0,0.08),
            inset 0 0 0 1px rgba(0,0,0,0.1) !important;
        transition-duration: 0.1s !important;
    }

    /* Focus state for accessibility */
    .serivce_button.et_pb_button:focus,
    .service_button.et_pb_button:focus {
        outline: none !important;
        box-shadow:
            0 0 0 3px rgba(64, 120, 50, 0.4),
            0 4px 8px rgba(0,0,0,0.1),
            0 8px 16px rgba(0,0,0,0.08) !important;
    }

    /* === FOOTER SOCIAL ICONS === */
    .et_pb_social_media_follow {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .et_pb_social_media_follow li {
        margin: 4px !important;
    }

    .et_pb_social_media_follow a.icon {
        width: 36px !important;
        height: 36px !important;
    }
}



/*** SITE-WIDE MOBILE WIDTH - Use full screen space ***/
@media only screen and (max-width: 980px) {
    .et_pb_row {
        width: 92% !important;
        max-width: 100% !important;
    }
}

@media only screen and (max-width: 767px) {
    /* Rows - nearly full width with small breathing room */
    .et_pb_row {
        width: 94% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Sections - remove horizontal padding, reduce vertical padding */
    .et_pb_section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* FAQ section - tighter spacing on mobile */
    .et_pb_section_62 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    /* Full-width sections should be truly full */
    .et_pb_fullwidth_section {
        width: 100% !important;
    }

    /* Columns - use available space */
    .et_pb_column {
        margin-bottom: 0 !important;
    }

    /* Text modules - comfortable reading width */
    .et_pb_text {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Buttons and CTAs - full width on mobile */
    .et_pb_button_module_wrapper {
        width: 100% !important;
    }

    /* Forms - full width */
    .et_pb_contact_form,
    .gform_wrapper {
        width: 100% !important;
    }
}


/* ##### Menu Button STYLES ##### */

#top-menu .sub-menu {
   background-color: #ffffff; /* Background color dropdown */
   border-top: 3px solid #25313a; /* Top border color dropdown */
}

#top-menu .sub-menu li a {
   font-size: 14px; /* Font size dropdown */
   width: 100%;
   color: #000000;
   border-bottom: 1px solid #768792; /* Border bottom menu item color */
}

.sub-menu li:hover {
   background-color: #f0d36b; /* Hover color menu item */
}

.sub-menu .current_page_item {
   background-color: #f0d36b; /* Current menu item color dropdown */
}

#top-menu .sub-menu li {
   padding-left: 0px;
   padding-right: 0px;
   width: 100%;
}

#top-menu li li a {
   padding-top: 10px;
   padding-bottom: 8px;
}

#top-menu .sub-menu {
   padding-top: 0px;
   padding-bottom: 0px;
}

.nav ul li a:hover {
   opacity: 1;
   background-color: rgba(0,0,0,0);
}



/* Divi Engine CTA Button in the Divi Menu */

/* CTA button styles */
.menu_cta a {
    color: #ffffff!important; /* Change button text color here */
    background-color: #25A94E; /* Change button background color here */
     border-radius: 50px; /* Set this to 0px if you want a square CTA button */
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    text-align: center;
    line-height: 9px;
    font-weight: 600;
    padding: 18px 16px!important;
    text-transform: uppercase;
    display: block;
    padding-left: 32px!important;
    padding-right: 32px!important;
    border: 0px;
}

/* Media query to ensure hover styles are only applied to desktop */
@media (min-width: 981px) {
    
    /* Hover styles for our CTA Button */
    .menu_cta a:hover {
        opacity: 1!important;
        color: #f0d36b!important; /* Change hover button text color here */
        background-color: #25A94E; /* Change hover button background color here - darker green */
        transform: scale(1.1); /* If you don't want the button to get bigger when you hover on it, delete this line */
    }
}
    
/* Fix the padding in the primary menu to accomodate the button */
.et_pb_menu--with-logo .et_pb_menu__menu>nav>ul>li>a {
    padding-top: 0px;
    padding-bottom: 0px;
}
 
/* Make sure that the alignment in the menu is correct */
.et_pb_menu .et_pb_menu__menu>nav>ul>li {
    align-items: center;
}

/*Gravity Forms Spinner*/
.gform_ajax_spinner {
    box-sizing: border-box;
    margin-top: 11px;
    margin-left: 10px;
    border: 6px solid rgba(247,150,33,1);
    border-left: 6px solid rgba(247,150,33,0);
    border-top: 6px solid rgba(247,150,33,.15);
    border-right: 6px solid rgba(247,150,33,.5);
    animation: spinner 1.1s infinite linear;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    position: absolute;
    z-index: 1;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) { /* Adjusts styles for mobile */
    .gform_ajax_spinner {
        margin-left: 0;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 10px;
    }
}

    @keyframes spinner {
        0% {
            transform: translateX(-50%) rotate(0deg);
        }
        100% {
            transform: translateX(-50%) rotate(360deg);
        }
    }



/*Gravity Forms Address Field Full Width*/
#gform_6 #field_6_12 .ginput_complex.ginput_container {
  margin-inline: 0 !important;
}
#gform_6 #field_6_12 .ginput_container_address span {
  padding-inline: 0 !important;
}