/*
 Theme Name:     Advance Community Health
 Theme URI:      https://angeloakcreative.com/
 Description:    Customizations for the Advance Community Health website.
 Author:         Angel Oak Creative
 Author URI:     https://angeloakcreative.com/
 Template:       Divi
 Version:        0.2.20
*/

/* 
*** GTranslate plugin
*/
#gtranslate_selector {
    cursor: pointer;
}

/* 
*** Popups for Divi plugin
*/
.da-overlay {
    background: rgba(48,108,156,0.08);
}

.da-close {
    font-size: 2em !important;
    padding: 30px !important;
    color: #064B77 !important;
    opacity: 1 !important;
}

.da-close:hover {
    opacity: 0.8 !important;
    transform: rotate(90deg) !important;
}

#et-boc .area-outer-wrap[data-da-shadow=yes] [data-da-area] {
    box-shadow: 0 3px 10px -1px rgb(48 108 156 / 10%), 0 2px 50px 2px rgb(48 108 156 / 10%) !important;
    -webkit-box-shadow: 0 3px 10px -1px rgb(48 108 156 / 10%), 0 2px 50px 2px rgb(48 108 156 / 10%) !important;
}

/* 
*** Divi Supreme Pro plugin -- popups
*/
.mfp-bg {
    background: rgba(48,108,156,0.3) none repeat scroll 0% 0% !important;
}
  
.mfp-close:hover {
    opacity: 0.8 !important;
    transform: rotate(90deg) !important;
}

/* 
*** Branded background embellishments
*/
.ach-embellishments-brand-01:before {
    position: absolute;
    content: '';
    height: 250px;
    width: 250px;
    background: url('./assets/embellishments/brand/embellishments-brand-01.svg');
    opacity: 0.20;
    z-index: -1;
    bottom: 100px;
    left: -105px;
}
.ach-embellishments-brand-02:before {
    position: absolute;
    content: '';
    height: 250px;
    width: 250px;
    background: url('./assets/embellishments/brand/embellishments-brand-01.svg');
    opacity: 0.20;
    z-index: -1;
    top: 100px;
    right: -105px;
}
/* Adjust branded embellishments for various screen sizes */
@media only screen and (max-width: 1024px) {
    .ach-embellishments-brand-01:before {
        bottom: 50px;
        left: -105px;
    }
    .ach-embellishments-brand-02:before {
        top: 50px;
        right: -105px;
    }
}

@media only screen and (max-width: 980px) {
    .ach-embellishments-brand-01:before {
        bottom: 250px;
        left: -100px;
    }
    .ach-embellishments-brand-02:before {
        top: 250px;
        right: -100px;
    }
}

@media only screen and (max-width: 768px) {
    .ach-embellishments-brand-01:before {
        bottom: 160px;
        left: -105px;
    }
    .ach-embellishments-brand-02:before {
        top: 160px;
        right: -105px;
    }
}

@media only screen and (max-width: 600px) {
    .ach-embellishments-brand-01:before {
        height: 170px;
        width: 170px;
        bottom: 140px;
        left: -70px;
    }
    .ach-embellishments-brand-02:before {
        height: 170px;
        width: 170px;
        top: 140px;
        right: -70px;
    }
}

@media only screen and (max-width: 500px) {
    .ach-embellishments-brand-01:before {
        height: 150px;
        width: 150px;
        bottom: 110px;
        left: -60px;
    }
    .ach-embellishments-brand-02:before {
        height: 150px;
        width: 150px;
        top: 110px;
        right: -60px;
    }
}

@media only screen and (max-width: 400px) {
    .ach-embellishments-brand-01:before {
        bottom: 65px;
        left: -60px;
    }
    .ach-embellishments-brand-02:before {
        top: 65px;
        right: -60px;
    }
}

@media only screen and (max-width: 300px) {
    .ach-embellishments-brand-01:before {
        bottom: 20px;
    }
    .ach-embellishments-brand-02:before {
        top: 20px;
    }
}

@media only screen and (max-width: 250px) {
    .ach-embellishments-brand-01:before {
        height: 70px;
        width: 70px;
        bottom: 60px;
        left: -30px;
    }
    .ach-embellishments-brand-02:before {
        height: 70px;
        width: 70px;
        top: 60px;
        right: -30px;
    }
}

/* 
*** Locations icons 

.ach-locations-services-section {
    display: inline-flex;
    justify-content: flex-start;
    width: 80%;
    margin-bottom: 10px;
}

.ach-locations-services-section:last-child {
    margin-bottom: 0;
}

.ach-locations-services-single-container {
    display: inline-flex;
    align-items: center;
    margin: 0 20px;
    width: 50%;
}

.ach-locations-services-single-container:first-child {
    margin-left: 0;
}

.ach-locations-services-single-container img {
    width: 30px;
    padding-right: 8px;
}

.ach-locations-services-single-container p {
    font-family: 'Visby',Helvetica,Arial,Lucida,sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #6D6F72;
    text-transform: uppercase;
    line-height: 1.3em;
}
*/
/* 
*** Top navigation
*/
#ach-nav-top-bar .et_pb_column {
    display: inline-flex;
    justify-content: flex-end;
}

#ach-nav-top-bar .et_pb_column > div {
    margin-right: 15px;
}

#ach-nav-top-bar .et_pb_column > div:last-child {
    margin-right: 0;
}

.et_pb_menu__search-input {
    font-family: 'Poppins',Helvetica,Arial,Lucida,sans-serif;
    padding: 2%;
}

.et_pb_menu__search-form {
    background: rgba(48,108,156,0.08);
}
.ach-navigation-column-left {
    display: flex;
    justify-content: flex-start;
  }
  
  .ach-navigation-column-left > .et_pb_button_module_wrapper  {
    margin: 0 !important;
      padding-right: 0.8rem;
  }
  .ach-navigation-column-right {
    display: flex;
    justify-content: flex-end;
    margin: auto;
  }

/* 
*** Top navigation (second row on desktop devices)
*/
  
.ach-navigation-column-left {
    display: flex;
    justify-content: flex-start;
}
  
.ach-navigation-column-left > .et_pb_button_module_wrapper  {
    margin: 0 !important;
    padding-right: 0.8rem;
}
.ach-navigation-column-right {
    display: flex;
    justify-content: flex-end;
    margin: auto;
}

.ach-navigation-column-right > .et_pb_text {
    display: inline-flex;
    vertical-align: middle;
    justify-content: center;
    margin: 0 !important;
    padding-right: 2rem;
}

.ach-navigation-column-right > .et_pb_text:last-child {
    padding-right: 0;
}

@media only screen and (max-width: 1075px) {
    .et_pb_menu_0_tb_header.et_pb_menu ul li a {
        font-size: 17px !important;
    }
}
/* 
*** Bottom navigation
*/
#ach-nav-footer-main .ach_menu {
	padding: 0 !important;
	margin: 0 !important;
	font-family: 'Poppins',Helvetica,Arial,Lucida,sans-serif;
	color: #4E2396;
	font-size: 18px;
}

#ach-nav-footer-main .ach_menu li {
	list-style-type: none;
}

#ach-nav-footer-main .ach_menu li:hover {
	opacity: 0.8;
}

#ach-nav-footer-main .ach_menu a {
	color: #4E2396;
}

/* Search icon on screens iPad and greater */
@media only screen and (min-width: 768px) {
    #ach-nav-top-main .et_pb_menu__search-button {
        margin-left: 25px;
    }
}

@media only screen and (max-width: 767px) {
    .ach-locations-services-section {
        display: block;
        margin: 0;
    }
    .ach-locations-services-single-container {
        margin: 0;
    }
    .ach-locations-services-single-container img {
        margin-right: 15px;
    }
}

/* 
*** Style staff blurbs on individual location pages
*/
.ach-staff .et_pb_blurb_container {
    vertical-align: middle !important;
}

/* 
*** Buttons in blog posts 
*/
/* Outer container of button */
.wp-block-button.et_pb_button {
	margin-top: 15px;
	cursor: pointer;
}

.wp-block-button.et_pb_button:hover {
	border-radius: 9999px;
}

/* Inner container of button */
.wp-block-button.et_pb_button .wp-block-button__link {
    color: #fff;
	background-color: inherit;
    border-radius: 9999px;
    box-shadow: none;
    cursor: pointer;
    padding: 0 !important;
	text-transform: uppercase;
	font-size: 17px;
	text-decoration: none;
}

.wp-block-button.et_pb_button .wp-block-button__link:hover {
    color: #F36B10;
	background-color: inherit;
    border-radius: 9999px !important;
    box-shadow: none;
    cursor: pointer;
    padding: 0 !important;
	text-transform: uppercase;
	font-size: 17px;
}

/* 
*** Gravity Forms global styles
*/
/* Set typeface */
.gform_title, .gform_description, .gform_body,
.gfield, .ginput_container, .ginput_container select,
.ginput_container input, .ginput_container input::placeholder, 
.gform_footer .button, .ginput_container_fileupload {
	font-family: 'Visby',Helvetica,Arial,Lucida,sans-serif !important;
}

/* Set borders */
.gform_body input, .gform_body select, .gform_body textarea {
	border: 1px solid #064B77;
    border-radius: 5px;
}

.ginput_container_fileupload input {
	border: none !important;
}

/* Submit buttons */
.gform_footer .button {
	border: 2px solid #f36b10;
	background: #f36b10;
	color: #ffffff;
	padding: 5.1px 17px;
	border-radius: 100px;
	letter-spacing: 1px;
	font-size: 17px;
	text-transform: uppercase;
	font-weight: 800;
    cursor: pointer;
}

.gform_footer .button:hover {
	border: 2px solid #f36b10;
	background: #ffffff;
	color: #f36b10;
}

/* 
*** Reverse stacking orders on mobile and tablet 
*/
@media all and (max-width: 980px) {
    /* Wrap row in a flex box */
    .ach-reverse-stacking {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap; /* Safari 6.1+ */
        flex-wrap: wrap;
    }
     
    /* Custom classes that will designate the order of columns in the flex box row */
    .ach-first-on-mobile {
        -webkit-order: 1;
        order: 1;
        margin-bottom: 30px !important;
    }
     
    .ach-second-on-mobile {
        -webkit-order: 2;
        order: 2;
    }
     
    .ach-third-on-mobile {
        -webkit-order: 3;
        order: 3;
    }
     
    .ach-fourth-on-mobile {
        -webkit-order: 4;
        order: 4;
    }

    .ach-fifth-on-mobile {
        -webkit-order: 5;
        order: 5;
    }

    .ach-sixth-on-mobile {
        -webkit-order: 6;
        order: 6;
    }

    /* Add bottom margin to last column */
    .ach-reverse-stacking:last-child .et_pb_column:last-child {
        margin-bottom: 30px;
    }
}
