/*
 Theme Name:     Imavex Development
 Description:    A Custom Theme by Imavex
 Author:         Imavex
 Author URI:     https://www.imavex.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */
/* MENU */

.et-menu-nav li{
    text-align: center;
    padding-top: 5px;
}

.et-menu li li a{
    text-align:left;
}

.et-menu-nav li.menu-item-481{
    padding-top: 0px;
}

.et-menu-nav li.current-menu-item a{
    border-bottom: 3px solid #8E0728;
}

/*li.menu-item-416 a,
li.menu-item-480 a,
li.menu-item-419 a{
    margin-left: 10px;
    margin-right: 10px;
}*/

li.et_pb_menu_page_id-481{
    width: 205px;
    line-height: 20px;
    margin-top: -3px !important;
}

/*li.et_pb_menu_page_id-751{
    width: 185px;
    line-height: 20px;
    margin-top: -3px !important;
}*/

/* Book
li.et_pb_menu_page_id-574{
    width: 148px;
    line-height: 20px;
    margin-top: -3px !important;
}
*/

@media only screen and (max-width: 1504px) {
    .et_pb_menu_0_tb_header.et_pb_menu ul li a{
        font-size: 14px !important;
    }
    
    .et_pb_menu .et-menu>li{
        padding-left: 8px;
        padding-right: 8px;
    }
    
}

@media only screen and (max-width: 1369px) {
    .et_pb_row .menu-col-one{
        width: 85% !important;
    }
    
    .et_pb_row .menu-col-two{
        width: 15% !important;
    }
}


@media (max-width: 981px) {
    .custom-row.menu-row .et_pb_column_3_4{
        width: 25% !important;
    }

    .custom-row.menu-row .et_pb_column_1_4{
        width: 75% !important;
    }
    
    .et_mobile_menu{
        width: 400px;
    	margin-left: -250px;
    }
    
    li.menu-item-480,
    li.menu-item-481,
    li.menu-item-574{
        width: 100%;
    }
    
    li.menu-item-416 a,
    li.menu-item-480 a,
    li.menu-item-419 a,
    li.menu-item-481 a{
        margin-left: 0px;
        margin-right: 0px;
    }
    
    .et_mobile_menu li a{
        padding: 10px 2%;
    }
}

/* GENERAL */
/*** wrap row in a flex box ***/
.custom-row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
-webkit-flex-wrap: wrap; /* Safari 6.1+ */
flex-wrap: wrap;
}
 
@media (max-width: 981px) {
    /*** custom classes that will designate the order of columns in the flex box row ***/
    .first-on-mobile {
    -webkit-order: 1;
    order: 1;
    }

    .second-on-mobile {
    -webkit-order: 2;
    order: 2;
    }
}


/* HOMEPAGE */
#form_contact-form .frm_submit.frm_flex{
    text-align: center !important;
}

.img-slider .swiper-pagination-bullet{
    width: 12px;
    height: 12px;
}

.img-slider .swiper-pagination-bullets{
    bottom: -45px;
}

.img-slider .swiper-arrow-button{
    margin-top: 10px;
    z-index: 999;
}

.img-slider .swiper-button-prev{
    left: 38% !important;
}

.img-slider .swiper-button-next{
    right: 38% !important;
}

@media (max-width: 981px) {
    .team-row .col2,
    .team-row .col3{
        width: 47% !important;
    }
    
    .team-row .col2{
        margin-right: 5px;
    }
    
    .team-row .col3{
        margin-left: 5px;
    }
}

/* TEAM */
@media (max-width: 981px) {
    .team-photos-row .et_pb_column{
        width: 48% !important;
        margin-bottom: 10px !important;
    }
}

/* OUR PROCESS */
.home-birth-toggle h3.et_pb_toggle_title{
    width: 600px;
    background: #8E0728;
    padding: 20px;
    border-radius: 5px;
    display: block;
  	margin-left: auto;
  	margin-right: auto;
    margin-top: -70px;
}

.home-birth-toggle h3.et_pb_toggle_title:before{
    background: #ffffff;
    border: 2px solid #8E0728;
    border-radius: 5px;
    margin-right: -50px;
}

.process-toggle h3.et_pb_toggle_title{
    width: 600px;
    background: #5E003C;
    padding: 20px;
    border-radius: 5px;
    display: block;
  	margin-left: auto;
  	margin-right: auto;
    margin-top: -70px;
}

.process-toggle h3.et_pb_toggle_title:before{
    background: #ffffff;
    border: 2px solid #5E003C;
    border-radius: 5px;
    margin-right: -50px;
}

@media (max-width: 765px) {
    .home-birth-toggle h3.et_pb_toggle_title,
    .process-toggle h3.et_pb_toggle_title{
    	width: 250px;
    }
    
    .process-toggle h3.et_pb_toggle_title{
        margin-top: -50px;
    }
    
    .process-toggle h3.et_pb_toggle_title,
    .home-birth-toggle h3.et_pb_toggle_title{
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* HOME BIRTH */
.divider-right .dsm-text-divider-before.dsm-divider,
.divider-left .dsm-text-divider-after.dsm-divider{
    display: none;
}

/* FINANCE */
.estimator .gform_title,
.estimator #gfield_instruction_1_1,
.estimator .gform_button.button{
    display: none;
}

.estimator .ginput_container{
    display: inline-block;
}

.estimator .gform_wrapper.gravity-theme .gfield{
    text-align: left;
}

.estimator .gform_wrapper.gravity-theme .gfield_label{
    width: 200px;
    text-align: right;
    padding-right: 20px;
}

.estimator .gform_wrapper.gravity-theme .gfield input.large,
.estimator .gform_wrapper.gravity-theme .gfield select.large{
    width: 200px;
    margin-left: 5px;
    border: none;
}

.estimator #field_1_1 .ginput_container:before,
.estimator #field_1_4 .ginput_container:before,
.estimator #field_1_5 .ginput_container:before{
    content: '$';
}

.estimator #field_1_3 .ginput_container:before{
    content: '$';
    color: #EFEAE8;
}

@media (max-width: 765px) {
    .estimator .gform_wrapper.gravity-theme .gfield_label{
        width: 100%;
    }
    
    .estimator .gform_wrapper.gravity-theme .gfield input.large,
    .estimator .gform_wrapper.gravity-theme .gfield select.large{
        width: 95%;
        min-height: 50px !important;
    }
    
    .estimator .ginput_container{
        display: block;
    }
    
    .estimator .gform_wrapper.gravity-theme .gfield_label{
        text-align: center;
    }
    
    .estimator .gform_wrapper.gravity-theme .gfield input.large,
    .estimator .gform_wrapper.gravity-theme .gfield select.large{
        margin-left: 0px !important;
    }
}

/* GRAVITY FORM */
#gform_submit_button_2{
    background: #005959;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
}

#gform_submit_button_2:hover{
    background: #8E0728;
}

input#gform_submit_button_2.gform_button.button {
    position: relative !important;
    margin: auto !important;
}

@media (max-width: 765px) { 
    #gform_submit_button_2{
        padding: 12px 12px;
        font-size: 14px;
    }
}

/* FORM */
.with_frm_style input[type=text]::placeholder,
.with_frm_style input[type=email]::placeholder,
.with_frm_style textarea::placeholder,
.with_frm_style select option.frm-select-placeholder{
    color:#000000 !important;
}

/* FOOTER */
@media (max-width: 981px) {    
    #mobile_menu2.et_mobile_menu,
    .estimator .gform_wrapper.gravity-theme .gfield input.large,
	.estimator .gform_wrapper.gravity-theme .gfield select.large{
    	margin-left: -40px;
    }
}


/*-------------------------------------------------------------------*/
/*-----------------------Header/Menu Styles--------------------------*/
/*-------------------------------------------------------------------*/

@media (min-width: 981px) {
    span#et-info-phone {
        float: right;
    }
    .container.clearfix.et_menu_container {
        width: 95%;
        max-width: 100%;
        margin:auto;
    }
    /* Increase Logo Size on Desktop */
    #logo {
        max-height: 85%;
        width: auto;
    }
}
@media (max-width:981px) {
    .container.clearfix.et_menu_container {
        width: 95%;
        max-width: 100%;
        margin:auto;
    }
    /* Increase Logo Size on Mobile */
    #logo {
        max-height: 80%;
        width:auto;
    }
}
span#et-info-phone:before {
    margin-right: 5px;
}
span#et-info-phone {
    font-weight: bold;
}
div#et-info {
    width: 100%;
}

/*------------------------------------------*/
/*-----------Scroll to Top Button-----------*/
/*------------------------------------------*/

/* Default button appearance */
.et_pb_scroll_top.et-pb-icon {
    right: 15px; /* space from right */
    bottom: 20px; /* space from bottom */
    padding: 6px; /*padding size*/
    border-radius: 30px; /* make the circle */
    background: #000000 /* button color */;    
    font-size: 32px; /* icon size */
    transition: all .1s ease-in-out; /* add transition */
}
/* Button Appearance on Mouseover */
.et_pb_scroll_top.et-pb-icon:hover {
    bottom: 25px /* space from bottom */;
    background: #000000 /*button hover color*/; 
    transition: all .1s ease-in-out; /*add transition*/
    box-shadow: 0 10px 15px #162c4e4a; /*box shadow on hover*/
}
/* Animation tweaks */
.et_pb_scroll_top.et-visible {
    -webkit-animation: fadeInBottom 1s 1 cubic-bezier(.50,0,.160,1);
    -moz-animation: fadeInBottom 2s 1 cubic-bezier(.50,0,.160,1);
    -o-animation: fadeInBottom 1s 1 cubic-bezier(.50,0,.160,1);
    animation: fadeInBottom 1s 1 cubic-bezier(.50,0,.160,1);
}
.et_pb_scroll_top.et-hidden {
    opacity: 0;
    -webkit-animation: fadeOutBottom 1s 1 cubic-bezier(.77,0,.175,1);
    -moz-animation: fadeOutBottom 1s 1 cubic-bezier(.77,0,.175,1);
    -o-animation: fadeOutBottom 1s 1 cubic-bezier(.77,0,.175,1);
    animation: fadeOutBottom 1s 1 cubic-bezier(.77,0,.175,1);
}

/*------------------------------------------*/
/*------Nesting Mobile Menu Settings--------*/
/*------------------------------------------*/

.et_mobile_menu {
    overflow: scroll !important;
    max-height: 85vh!important;
}
#top-menu .menu-item-has-children .menu-item-has-children > a:first-child::after,
#et-secondary-nav .menu-item-has-children .menu-item-has-children > a:first-child::after {
    content: '5';
}
#main-header #mobile_menu.et_mobile_menu .menu-item-has-children {
    position: relative;
}
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle {
    position: absolute;
    background-color: rgba(0,0,0,0.03);
    z-index: 1;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    top: 3px;
    right: 10px;
    cursor: pointer;
    text-align: center;
    color:#000000;
}
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped {
    background-color: rgba(0,0,0,0.1);
    color:#000000;
}
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle::before {
    font-family: "ETmodules" ;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 40px;
    font-size: 24px;
    text-transform: none;
    speak: none;
    content: '33';
    color:#000000;
}
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped::before {
    content: '32';
    background-color:#DEDEDE;
}
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle ~ ul.sub-menu {
    display: none !important;
    padding-left: 0;
    color:#000000!important;
}
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped ~ ul.sub-menu {
    display: block !important;
    background-color: rgba(0,0,0,0.03);
    color:#000000;
}
#main-header #mobile_menu.et_mobile_menu li li {
    padding-left: 0;
}
#main-header #mobile_menu.et_mobile_menu li a,
#main-header #mobile_menu.et_mobile_menu li li a,
#main-header #mobile_menu.et_mobile_menu li li li a {
    padding-left: 20px;
    padding-right: 20px;
    color:#000000;
}
#main-header #mobile_menu.et_mobile_menu .menu-item-has-children .sub-menu-toggle + a {
    padding-right: 20px;
    color:#000000;
}
#main-header #mobile_menu.et_mobile_menu .menu-item-has-children > a {
    background-color: transparent;
    font-weight: inherit;
}
#main-header #mobile_menu.et_mobile_menu li.current-menu-item > a {
    font-weight: bolder;
}

/*-------------------------------------------------------------------*/
/*-------MOBILE MENU SLIDE IN EFFECT - FIXED MOBILE HEADER-----------*/
/*-------------------------------------------------------------------*/

/* Fix the mobile header */
@media (max-width: 980px) {
    .et_non_fixed_nav.et_transparent_nav #main-header, .et_non_fixed_nav.et_transparent_nav #top-header, .et_fixed_nav #main-header, .et_fixed_nav #top-header {
        position: fixed;
    }
}
/* Set the mobile menu full height and move it down so it doesn't overlap the fixed header */
#mobile_menu {
    display: block!important;
    height:auto;
    right: 0;
    position: fixed;
    overflow: auto;
    z-index:2!important;
    -webkit-transition: -webkit-transform 0.4s 0s;
    -moz-transition: -moz-transform 0.4s 0s;
    transition: transform 0.4s 0s;
    -overflow-scrolling:touch!important;
    -webkit-overflow-scrolling:touch!important;
}
/* Move the mobile menu fully off the screen when closed using translateX(100%) */
.mobile_nav.closed #mobile_menu {
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transform: translateX(100%);
}
/* Move the mobile menu back onto the screen when open using translateX(0%) */
.mobile_nav.opened #mobile_menu {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}
/* Switch the menu icon to a CROSS when opened */
.mobile_nav.opened .mobile_menu_bar:before {
    content: "4d";
}

/*-------------------------------------------------------------------*/
/*--------------------------Footer Styles----------------------------*/
/*-------------------------------------------------------------------*/

footer#main-footer {
    display: none;
}