/*
 Theme Name:  D&B Guttering Divi Child Theme
 Description: Custom Divi child theme developed for D&B Guttering
 Author:      Tom Greer - TRG Web Designs
 Template:    Divi
 Version:     2.2.0
*/


/* Theme customization starts here
-------------------------------------------------------------- */

:root {
    /* Used for sticky footer. This is set via JavaScript */
    --header-height: 0px;
    --page-loading-icon: url("https://www.dbguttering.com/wp-content/themes/Custom-Divi-Child/images/Dual-Ball-1s-200px.svg");
}


/* Sticky Footer */

#page-container #et-boc {
    display: flex;
    flex-flow: column;
    min-height: calc(100vh - var(--header-height));
}

#et-main-area {
    display: flex;
    flex-flow: column;
}

#et-main-area,
#main-content {
    flex: 1 0 auto;
}


/* Header Elements - add extra space above */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0.5em 0;
}


/* Ordered Lists - Move the list style position to outside and indent the list */

#left-area ol,
.comment-content ol,
.entry-content ol,
.et-l--body ol,
.et-l--footer ol,
.et-l--header ol,
body.et-pb-preview #main-content .container ol {
    list-style-position: outside;
    padding-left: 2em;
}

ol li {
    margin-bottom: 0.5em;
}


/* Unordered Lists - Indent the list */

#left-area ul,
.comment-content ul,
.entry-content ul,
.et-l--body ul,
.et-l--footer ul,
.et-l--header ul,
body.et-pb-preview #main-content .container ul {
    padding-left: 2em;
}

ol li {
    margin-bottom: 0.5em;
}


/* Footer Bottom Bar */

#footer-bottom .container {
    display: flex;
    flex-direction: row;
    max-width: 95%;
    width: 95%;
}

#footer-info,
#footer-bottom .et-social-icons,
#copyright {
    flex: 1 100%;
}

#footer-info {
    text-align: left;
}

#footer-bottom .et-social-icons {
    text-align: center;
}

#copyright {
    color: var(--footer-text-color);
    text-align: right;
}

#footer-bottom a:hover {
    color: var(--footer-link-hover-color) !important;
    opacity: 1;
}

@media all and (max-width: 780px) {
    #footer-bottom .container {
        flex-direction: column;
        justify-content: center;
    }
    #footer-info {
        text-align: center;
    }
    #copyright {
        text-align: center;
    }
}


/* Icons */

.icon_phone:before {
    font-family: 'ETmodules';
    content: "\e090";
    padding-right: 5px;
}

.icon_email:before {
    font-family: 'ETmodules';
    content: "\e076";
    padding-right: 5px;
}

.icon_sms::before {
    font-family: 'ETmodules';
    content: "\e066";
    padding-right: 5px;
}


/* Phone Button */

.trg-phone-button.green .et_pb_button {
    background-color: hsla(121, 100%, 34%, 1);
    color: white;
    border-color: hsla(121, 100%, 34%, 1);
}

.trg-phone-button.green .et_pb_button:hover {
    background-color: hsla(121, 100%, 29%, 1) !important;
    color: white !important;
    border-color: hsla(121, 100%, 29%, 1) !important;
}


/* Site Message */

.trg-site-message-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999999;
}

.trg-site-message {
    text-align: center;
    max-width: 90%;
}

.admin-bar .trg-site-message-container {
    margin-top: 32px;
}

.trg-site-message-top .trg-site-message-container {
    bottom: unset;
    top: 0;
}

.trg-site-message-top #main-header {
    margin-top: 2em;
    margin-top: var(--trg-site-message-height);
}

.trg-site-message-bottom footer {
    margin-bottom: 2em;
    margin-bottom: var(--trg-site-message-height);
}


/* Reverse the order of columns in a row when in mobile view */

@media (max-width: 980px) {
    .flip-columns {
        display: flex;
        flex-direction: column-reverse !important;
    }
}


/* Style Read More Links that have been converted to buttons via JS */

.et_pb_button.more-link {
    display: table;
    text-transform: capitalize !important;
    margin: 10px auto 0;
    font-size: 16px !important;
    background-color: #460500 !important;
    border: none;
    box-shadow: 0px 10px 30px -3px rgba(70, 5, 0, 0.5);
}

.et_pb_button.more-link:hover {
    background-color: #460500 !important;
    border: none;
}


/* Divi Buttons - Remove extraneous padding from bottom of button so that text appears vertically centered */

.et_pb_button_module_wrapper a.et_pb_button,
.et_pb_button_module_wrapper a.et_pb_button:hover {
    padding-bottom: 0 !important;
}


/* Page loading animation */

.trg-page-load-overlay {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--page-loading-icon) 50% 50% no-repeat;
    background-color: rgba(255, 255, 255, 0.8);
}


/* Buttons */

.et_pb_button {
    box-shadow: 0px 10px 30px -3px rgba(0, 41, 61, 0.5);
    transition: .5s all ease-in-out;
}

.et_pb_button_module_wrapper a.et_pb_button,
.et_pb_button_module_wrapper a.et_pb_button:hover {
    padding-bottom: 7px !important;
}

.et_pb_button:hover {
    transform: scale(1.03);
}


/* Move navigation menu to the bottom of header */

.et_header_style_left #et-top-navigation nav>ul>li>a,
.et_header_style_split #et-top-navigation nav>ul>li>a {
    padding-bottom: 25px !important;
}

#top-menu-nav {
    padding-top: 25px;
}

#et_top_search {
    margin-top: 25px;
}

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

.sub-menu .menu-item a {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.header-button .trg-phone-button {
    position: absolute;
    top: 10px;
    right: 0;
}

.header-phone .trg-phone-button .et_pb_button {
    font-size: 18px;
    border: 0;
}


/* Social Buttons in header */

.header-social {
    position: absolute;
    right: 215px;
    top: 10px;
}

.header-social .et-social-icon {
    transition: .5s all ease-in-out;
}

.header-social .et-social-icon:hover {
    transform: scale(1.03);
}

.header-social .et-social-facebook {
    background-color: #3b5998;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0px 10px 30px -3px rgba(59, 89, 152, 0.5);
}

.header-social .et-social-facebook a {
    color: white;
    width: 25px;
}

.header-social .et-social-facebook a:hover {
    color: white;
    opacity: 1;
}


/* Phone Button */

@media (max-width: 767px) {
    .trg-phone-number {
        display: none;
    }
    .trg-phone-button a.et_pb_button {
        padding: 2px 3px 0px 8px !important;
        margin-right: 30px;
    }
}


/* Mobile Nav Menu */

.et_mobile_nav_menu {
    margin-top: -5px !important;
}

.et_mobile_menu {
    margin-top: 18px;
}


/* Heading Underlines */

.heading-line-below {
    background-color: #edbe6c;
    height: 5px;
    margin-top: calc(-0.5em - 10px) !important;
    box-shadow: 0px 2px 18px -1px #460500;
    z-index: -1;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-duration: .2s;
    animation-duration: .2s;
}


/* Featured Images */

.featured-image img {
    -o-object-fit: cover;
    object-fit: cover;
}


/* Force Blog Index images to 16:9 ratio */

.entry-featured-image-url {
    padding-top: 56.25%;
}

.entry-featured-image-url img {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -o-object-fit: cover;
    object-fit: cover;
    height: 100%;
    height: 100% !important;
}


/* Sidebar Columns */

.et_pb_row .sidebar-column {
    background-color: #006da2;
    box-shadow: 20px 20px 0px 0px #003d5c, 20px 36px 18px -6px rgba(0, 61, 92, 0.4);
    padding: 10px;
}


/* Blue Tiles */

.blue-tile {
    box-shadow: 15px 15px 0px 0px #003d5c, 15px 31px 13px -6px rgba(0, 61, 92, 0.4) !important;
}


/* Testimonials */

.trg-testimonials-tile-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.trg-testimonial {
    background-color: #edbe6c;
    box-shadow: 20px 20px 0px 0px #ac7515, 20px 36px 18px -6px rgba(172, 117, 21, 0.4);
    padding: 20px;
    color: #242424;
    margin-bottom: 40px;
}

.trg-testimonials-tile-container a {
    width: 95%;
}

.trg-testimonials-tile-container a:nth-child(even) {
    align-self: flex-end;
}

.trg-testimonial h1,
.trg-testimonial h2,
.trg-testimonial h3,
.trg-testimonial h4,
.trg-testimonial h5,
.trg-testimonial h6 {
    color: #442e08;
    margin: 0;
}