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


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


/*** Serivce Button Style ***/
.serivce_button { 
  width:270px;
  height:270px;
  object-fit: cover;
  max-width: 100%;
}

@media only screen and (max-width: 600px) {
  .serivce_button {
    width: 90% !important;
  }
}



/*** MAKE SITE WIDER ON SMALLER SCREENS ***/
@media only screen and (max-width: 980px) {
.et_pb_row {
width: 90%; /*** you might need !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: #216936; /* 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: #294208; /* Change hover button background color here */
        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;
}


/*image aspect ratio landscape 4:3*/
/* Ensure the container has a relative position */
.image-4-3 {
    position: relative;
    width: 100%; /* Full width to ensure it scales with the screen */
    overflow: hidden;
}

/* Maintain a 4:3 aspect ratio, adjusting dynamically */
/* Ensure the container has a relative position */
.image-4-3 {
    position: relative;
    width: 100%; /* Full width to ensure it scales with the screen */
    overflow: hidden;
    height: 0; /* Height is controlled by padding to maintain aspect ratio */
    padding-top: 75%; /* 4:3 aspect ratio */
}

/* Position the image wrap to fill the entire container */
.image-4-3 .et_pb_image_wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Set the image to cover the area, cropping as necessary */
.image-4-3 .et_pb_image_wrap img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translate(-50%, -50%);
    min-height: 100%;
    object-fit: cover;
}


/* ===========================
   CUSTOM NAVIGATION - Added 2026-02-23
   =========================== */

.ga-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* --- MOBILE BAR --- */
.ga-nav__mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 16px;
}

.ga-nav__phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #216936;
    text-decoration: none;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
.ga-nav__phone-btn:active { background: rgba(33,105,54,0.1); }

/* Hamburger */
.ga-nav__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}
.ga-nav__hb-box {
    width: 22px;
    height: 16px;
    position: relative;
    display: block;
}
.ga-nav__hb-line,
.ga-nav__hb-line::before,
.ga-nav__hb-line::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
}
.ga-nav__hb-line { top: 7px; }
.ga-nav__hb-line::before { content: ''; top: -7px; }
.ga-nav__hb-line::after { content: ''; top: 7px; }

/* X state */
.ga-nav__hamburger[aria-expanded="true"] .ga-nav__hb-line { transform: rotate(45deg); }
.ga-nav__hamburger[aria-expanded="true"] .ga-nav__hb-line::before { top: 0; transform: rotate(90deg); }
.ga-nav__hamburger[aria-expanded="true"] .ga-nav__hb-line::after { opacity: 0; }

/* Desktop bar hidden on mobile */
.ga-nav__desktop-bar { display: none; }

/* --- MOBILE OVERLAY --- */
.ga-nav__overlay {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, visibility 0s 0.3s;
}
.ga-nav__overlay[aria-hidden="false"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.ga-nav__overlay-inner {
    padding: 16px 20px 40px;
    max-width: 480px;
    margin: 0 auto;
}

/* Mobile menu items */
.ga-nav__mob-menu { list-style: none; padding: 0; margin: 0; }
.ga-nav__mobile-item { border-bottom: 1px solid rgba(0,0,0,0.06); }

.ga-nav__mobile-link,
.ga-nav__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font-family: 'Ubuntu', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ga-nav__mobile-link:active,
.ga-nav__mobile-toggle:active { color: #216936; }

.ga-nav__expand-icon {
    color: #999;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    flex-shrink: 0;
}
.ga-nav__mobile-toggle[aria-expanded="true"] .ga-nav__expand-icon { transform: rotate(180deg); }

/* Accordion submenu */
.ga-nav__submenu {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.ga-nav__mobile-item--expandable.is-expanded > .ga-nav__submenu { max-height: 800px; }

.ga-nav__submenu .ga-nav__mobile-link {
    font-size: 15px;
    padding: 12px 0;
    color: #555;
}

/* Mobile CTA */
.ga-nav__mob-cta {
    display: block;
    margin-top: 24px;
    padding: 16px;
    background: #216936;
    color: #fff !important;
    font-family: 'Ubuntu', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
.ga-nav__mob-cta:active { background: #1a5529; }

/* Body scroll lock */
body.ga-nav-open { overflow: hidden; position: fixed; width: 100%; }

/* Body padding for fixed nav */
body { padding-top: 56px; }

/* WP Admin Bar compatibility */
.admin-bar .ga-nav { top: 32px; }
.admin-bar .ga-nav__overlay { top: 88px; }
@media screen and (max-width: 782px) {
    .admin-bar .ga-nav { top: 46px; }
    .admin-bar .ga-nav__overlay { top: 102px; }
}

/* --- DESKTOP (1024px+) --- */
@media (min-width: 1024px) {
    .ga-nav__mobile-bar,
    .ga-nav__overlay { display: none !important; }

    .ga-nav__desktop-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        height: 100px;
        max-width: 1400px;
        margin: 0 auto;
    }
    .ga-nav__logo { flex-shrink: 0; margin-right: 24px; }
    .ga-nav__logo img { height: 80px; width: auto; }
    .ga-nav__desktop-links { flex: 1; display: flex; justify-content: flex-end; min-width: 0; overflow: visible; }

    .ga-nav__menu {
        display: flex;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 2px;
    }
    .ga-nav__item { position: relative; }
    .ga-nav__link {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 10px 10px;
        font-family: 'Ubuntu', -apple-system, sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
    }
    .ga-nav__link:hover { background: rgba(33,105,54,0.08); color: #216936; }

    .ga-nav__dd-arrow { transition: transform 0.2s; }
    .ga-nav__item:hover .ga-nav__dd-arrow { transform: rotate(180deg); }

    /* Dropdown - 2-column grid */
    .ga-nav__mega {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
        min-width: 420px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        padding: 16px 20px;
        margin: 4px 0 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
        list-style: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px 16px;
    }
    .ga-nav__item--has-dd:hover > .ga-nav__mega {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        transition-delay: 0s;
    }
    .ga-nav__mega-group {
        min-width: 180px;
        flex: 1;
    }
    .ga-nav__mega-heading {
        font-family: 'Ubuntu', -apple-system, sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #216936;
        margin: 0 0 8px;
        padding-bottom: 6px;
        border-bottom: 2px solid #f0d36b;
    }
    .ga-nav__mega-heading a {
        color: inherit;
        text-decoration: none;
    }
    .ga-nav__mega-heading a:hover { text-decoration: underline; }
    .ga-nav__mega-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .ga-nav__mega-link {
        display: block;
        padding: 4px 8px;
        font-family: 'Ubuntu', -apple-system, sans-serif;
        font-size: 15px;
        color: #444;
        text-decoration: none;
        border-radius: 4px;
        transition: background 0.15s, color 0.15s;
        line-height: 1.4;
    }
    .ga-nav__mega-link:hover { background: rgba(33,105,54,0.08); color: #216936; }
    .ga-nav__mega-standalone {
        display: block;
        padding: 4px 8px;
        font-family: 'Ubuntu', -apple-system, sans-serif;
        font-size: 15px;
        font-weight: 500;
        color: #444;
        text-decoration: none;
        border-radius: 4px;
        transition: background 0.15s, color 0.15s;
        line-height: 1.4;
    }
    .ga-nav__mega-standalone:hover { background: rgba(33,105,54,0.08); color: #216936; }
    .ga-nav__mega-group--single { padding: 2px 0; }

    /* CTA button */
    .ga-nav__cta-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        padding: 10px 18px;
        margin-left: 16px;
        background: #216936;
        color: #fff !important;
        font-family: 'Ubuntu', -apple-system, sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 50px;
        white-space: nowrap;
        transition: background 0.2s, transform 0.2s;
    }
    .ga-nav__cta-btn:hover { background: #1a5529; transform: scale(1.03); }

    body { padding-top: 100px; }
}
