/*
 Theme Name:     Rick Ruo
 Theme URI:      https://amandagiles.com
 Description:    Custom Divi Child Theme for Rick Ruo Real Estate
 Author:         Amanda Giles
 Author URI:     https://amandagiles.com
 Template:       Divi
 Version:        1.0.0
*/
 
/***********************************
 *** Header
 ***********************************/

#et-info {
    width: 100%;
    text-align: right;
}
.et-fixed-header #top-menu .property-search-menu a, 
.property-search-menu a {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff !important;    
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

#divi-sticky-header, .main-menu {
    width: 100%;
}    

@media only screen and (max-width: 1180px) {
    .container {
        width: 90%;
    }
    #divi-sticky-header.et_pb_section {
        padding: 1% 0;
    }    
    #divi-sticky-header .et_pb_row {
        padding: 0 0.8%;
        width: 98.4%;
        max-width: 98.4%;
    }    
}
@media only screen and (min-width: 981px) and (max-width: 1050px) {
    .container {
        width: 95%;
    }
    #top-menu li {
        padding-right: 18px;
    }    
    #top-menu li a {
        font-size: 14px;
    }    
}
@media only screen and (min-width: 981px) {

    .main-menu {
        padding: 0 !important;
        top: 0;
        position: fixed;
    }
    .admin-bar .main-menu {
        top: 32px;
    }    
    #logo-img img {
        transition: all 1.5s ease-out 0s;
    }
    .slow-transition {
        transition: all 0.9s ease-out 0s;
    }    
    .reduce-header-height#divi-sticky-header .et_pb_row_0_tb_header.et_pb_row {
        padding-top: 5px!important;
        padding-bottom: 5px!important;
    }    
    .reduce-header-height #logo-img img {
        transition: all 1.1s ease-out 0s;
        max-height: 80px;
        width: auto;
    }
    .reduce-header-height .et_pb_menu_0_tb_header {
        transition: all 1.1s ease-out 0s;
        padding-top: 15px;
    }
    #main-content .et_pb_section_0, #content-area {
        margin-top: 143px;
    }
    .reduce-header-height #main-content .et_pb_section_0,
    .reduce-header-height #content-area {
        margin-top: 115px;
    }
    .home #main-content .et_pb_section_0 {
        margin-top: 0;
    }   
    .page-jump {
        height: 115px; /*same height as header*/
        margin-top: -115px; /*same height as header*/        
        z-index: -1;
    }
}

@media only screen and (min-width: 981px) and (max-width: 1270px) {
    #divi-sticky-header .et_pb_column.et_pb_column_1_4 {
        width: 18%;
    }
    #divi-sticky-header .et_pb_column.et_pb_column_3_4 {
        width: 80.25%;
    }    
}

@media only screen and (max-width: 980px) {

    #logo {
        max-height: 74%;
    }

}

#et-info-phone:hover {
    opacity: .7;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}


.main-menu .et_pb_menu ul.sub-menu  li a {
    line-height: 1.4em;
}
.main-menu .nav ul li a:hover {
    background-color: transparent;
    opacity: 1.0;
    color: #428dc6;
}
.main-menu .et-menu a:hover {
    opacity: 1.0;
    color: #428dc6;
}
.et_pb_fullwidth_menu--without-logo .et_pb_menu__menu>nav>ul>li>a, 
.et_pb_menu--without-logo .et_pb_menu__menu>nav>ul>li>a {
    padding-bottom: 18px;
}

.home.admin-bar #main-header,
.et_header_style_left .logo_container {
   height: 142px;
}
.home #top-header,
.home #top-menu-nav,
.home #et_top_search {
    display: none;
}
@media only screen and (min-width:981px) {

/*    #main-header {
        padding-top: 34px!important;
    }*/
    
    .et_pb_row {
        padding: 2% 0;
    }
}

body:not(.et-tb) #main-content .container, body:not(.et-tb-has-header) #main-content .container {
    padding-bottom: 58px;
}

/*****************************
 *** Home                  ***
 *****************************/
@media only screen and (max-width:550px) {
    .tagline-re-appraisals span {
        white-space: normal !important;
    }
}

/*****************************
 *** Content Tweaks        ***
 *****************************/
img.alignleft,
img.alignright,
img.aligncenter {
    margin-bottom: 15px;
}

.et_pb_column_1_3 h1, .et_pb_column_1_4 h1, .et_pb_column_1_5 h1, .et_pb_column_1_6 h1, .et_pb_column_2_5 h1 {
    font-size: 31px;
}

input[type="button"], 
input[type="submit"], 
input[type="reset"], 
input[type="file"], 
button:not(.et_pb_menu__search-button) {
    background-color: #8ba3ba;
    color: #FFF;
    border: 0;
    padding: 10px 20px;
    font-size: 1.1em;    
    border-radius: 10px;
}
input[type="button"]:hover, 
input[type="submit"]:hover, 
input[type="reset"]:hover, 
input[type="file"]:hover, 
button:not(.et_pb_menu__search-button):hover {
    cursor: pointer;
    border: 1px solid #8ba3ba;
    color: #8ba3ba;
    background-color: #FFF;
}
.et_pb_menu__icon.et_pb_menu__search-button {
    margin-top: -10px;
}
.et_pb_menu__icon.et_pb_menu__search-button {
    margin-left: 22px;
}
.et_pb_search_0_tb_header .et_pb_searchform input.et_pb_s {
    border-color: rgba(0,0,0,0.2) !important;
    margin-right: 10px;
}
.search-results .post-meta {
    display: none;
}


/*** Lists of links on Buyers and Sellers pages ***/
.list-links .et_pb_text_inner ul ul {
    padding-bottom: 0;
    padding-left: 2em;
}
/* Fix mobile spacing */
@media all and (max-width: 980px) {
    .list-links .et_pb_column:first-child {
        margin-bottom: 0 !important;
    }
    .list-links .et_pb_column:nth-child(2) {
        margin-top: -15px !important;
    }

}


/*****************************
 *** Serivces / Portfolio  ***
 *****************************/
.et_pb_portfolio_item {
    width: 100%;
    float: left;
    margin-bottom: 25px;
}

.et_pb_portfolio_item h2 {
    font-size: 18px;
    line-height: 1.2;
}

@media only screen and (min-width: 675px) {
    /* Switch Services/Portfolio to 3 columns */
    .et_pb_portfolio_item {
        width: 45%;
        margin-right: 9.97%;
    }    
    .et_pb_portfolio_item:nth-child(2n) {
        margin-right: 0;
    }
    .et_pb_portfolio_item:nth-child(2n + 1) {
        clear: both;
    }        
    .et_pb_portfolio_item h2 {
        font-size: 22px;
        line-height: 1.3;
    }    
}

@media only screen and (min-width: 950px) {
    /* Switch Services/Portfolio to 3 columns */ 
    .et_pb_portfolio_item,
    .et_pb_portfolio_item:nth-child(2n),
    .et_pb_portfolio_item:nth-child(2n + 1) {
        width: 30%;
        margin-right: 4.97%;
        clear: none;
    }     
    .et_pb_portfolio_item:nth-child(3n) {
        margin-right: 0;
    }    
    .et_pb_portfolio_item:nth-child(3n + 1) {
        clear: both;
    }     

}

/***************************/
/*** Toggle Link Styling ***/
/***************************/
.et_pb_toggle_content a {
    color: inherit;
    text-decoration: underline;
}

/***************************
 *** Testimonial 
 ***************************/
.strong-view.wpmtst-default.u-no-border .wpmtst-testimonial,
.strong-view.wpmtst-default.u-no-border .wpmtst-testimonial-inner,
.strong-view.wpmtst-default.u-no-border.slider-container.slider-adaptive:not(.slider-mode-horizontal) .wpmslider-viewport {
	border: none !important;
}
.testimonial-name {
	text-align: left !important;
	font-style: italic;
	margin-top: 1em;
}
.testimonial_rotator_wrap {
    margin-top: 0;
}
.testimonial_rotator.format-list .slide {
    margin: 15px 0; /* Was 40px 0 */
}
.testimonial_rotator.template-default .testimonial_rotator_author_info {
    padding-top: 3px;
}

/***************************
 *** Form Customization 
 ***************************/
.label-above .nf-field-label {
    margin-bottom: 0;
}
input.text, input.title, input[type=email], input[type=password], input[type=tel], input[type=text], select, textarea {
    padding: 5px;
}
#ninja_forms_required_items, .nf-field-container {
    margin-bottom: 10px;
}

/***************************
 *** Slider module
 ***************************/
.et_pb_slide_image img {
    max-height: 100%;
    width: 100%;
    height: auto;
    max-width: 100%;    
}
.et_pb_slide {
    padding: 0 !important;
}

/*-------- HomeSlider height adjustment ----------------*/
/*------------- Single Line slider----------------------*/
/*-------- Edit the height px to change height ---------*/
@media only screen and ( min-width:981px ) {  /*---Will only affect desktop view---*/
/*---@media only screen and ( min-width:768px and max-width:980px ) { ---Use for tablets----*/
/*---@media only screen and ( max-width:767px ) { ---Use for phones----*/
    /* Set the slider height */
    .homeslider.et_pb_slider, .homeslider.et_pb_slider .et_pb_container {
        height: 610px !important; /*---Edit the height #px to change height---*/
    }
    .homeslider.et_pb_slider, .homeslider.et_pb_slider .et_pb_slide {
        max-height: 610px; /*---Edit the height #px to change height---*/
    }

}
/*-------- HomeSlider Height Adjustment End----------------*/

body #page-container .et_pb_section .homeslider.et_pb_fullwidth_slider_0.et_pb_slider .et_pb_more_button.et_pb_button {
    padding-left: 1.7em!important;
    padding-right: 1.7em!important;    
}


@media all and (max-width: 980px) {
    /*** wrap row in a flex box ***/
    .home_row_reorder {
      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 ***/
    .first-on-mobile {
    -webkit-order: 1;
    order: 1;
    }

    .second-on-mobile {
    -webkit-order: 2;
    order: 2;
    }

    .third-on-mobile {
    -webkit-order: 3;
    order: 3;
    }

    .fourth-on-mobile {
    -webkit-order: 4;
    order: 4;
    }
    /*** add margin to last column ***/
    .home_row_reorder:last-child .et_pb_column:last-child {
    margin-bottom: 30px;
    }
 
}



@media all and (max-width: 880px) {
    .property-search-subtext {
        font-size: 0.7em;
        margin-top: -5px;
    }
}

.nh-button.et_pb_module,
.ma-button.et_pb_module {
    overflow: visible !important;
    max-width: 300px;
    margin: 0 auto;
}
.nh-button.et_pb_module .et_pb_main_blurb_image {
    position: absolute;
    left: -7px;
    top: -10px;
}
.nh-button.et_pb_module .et_pb_blurb_container {
    padding-left: 35px;
}
.ma-button.et_pb_module .et_pb_main_blurb_image {
    position: absolute;
    left: -12px;
    top: 5px;
    width: 75px;
}
.ma-button.et_pb_module .et_pb_blurb_container {
    padding-left: 72px;
}


/***********************************
 *** Footer
 ***********************************/
footer .et_pb_text_inner p a {
    color: #ffffff;
    text-decoration: none;
}
footer .et_pb_text_inner p a:hover {
    color: #ffffff;
    text-decoration: underline;
}
@media all and (min-width: 768px) {
    .inline-col .et_pb_module {
        display: inline-block;
    }
}