/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:         3.17.5
*/


/* =Theme customization starts here
------------------------------------------------------- */
/*colours
yellow - #f4ba2a
blue - #0c57a5
*/

:root {
    --blue: #0c57a5;
    --yellow: #f4ba2a;
    --alpha: .5;
    --darkBlue: #002859;
    --darkerBlue: #003363;
}



/*///////////////////main navigation and header\\\\\\\\\\\\\\\\\\\\\\*/

/*phone number and email position & color*/
#et-info {
    float: right;
}

#top-header,
#top-header a {
    color: #0c57a5 !important;
}

/*logo and menu positioning on desktop*/

@media only screen and (min-width: 1200px) {
    #logo {
        max-height: 100% !important;
        padding-bottom: 10px;
        margin-top: -20px;
    }

    .et_header_style_left #et-top-navigation,
    .et_header_style_split #et-top-navigation {

        margin-bottom: -20px;
    }
}

/*logo size on phone*/
@media (max-width: 980px) {

    .et_header_style_left #logo,
    .et_header_style_split #logo {
        max-width: 70%;
        margin-left: 30px;
    }
}

/*phone and email info above logo on small screens*/
@media (max-width: 767px) {

    #et-info,
    #et-secondary-menu {
        text-align: left;
    }
}

/*Menu underline hover effect (https://www.elegantthemes.com/blog/divi-resources/beautiful-css-hover-effects-you-can-add-to-your-divi-menus)*/
#top-menu .current-menu-item a::before,
#top-menu .current_page_item a::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
}

#top-menu li a:before {
    content: "";
    position: absolute;
    z-index: -2;
    left: 0;
    right: 100%;
    bottom: 50%;
    background: var(--blue);
    /*** COLOR OF THE LINE ***/
    height: 1px;
    /*** THICKNESS OF THE LINE ***/
    -webkit-transition-property: right;
    transition-property: right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

#top-menu li a:hover {
    opacity: 1 !important;
}

#top-menu li a:hover:before {
    right: 0;
}

#top-menu li li a:before {
    bottom: 10%;
}

/*Removing the Divi Header Bottom Border(https://divibooster.com/removing-the-divi-header-bottom-border/)
header#main-header.et-fixed-header,
#main-header {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}
*/

/*Adding text Before and After of the Hamburger Icon (https://www.creativechildthemes.com/10-useful-code-snippets-for-your-divi-menu-mobile/)
.mobile_menu_bar:after {
    position: relative !important;
    content: 'MENU';
    bottom: 9px;
    left: 10%;
    color: #363636;
}
*/
/*Change the hamburger icon to X when opened (https://www.creativechildthemes.com/10-useful-code-snippets-for-your-divi-menu-mobile/)*/
.mobile_nav.opened .mobile_menu_bar:before {
    content: '\4d';
}

/*prevent page jump in header
#page-container {
    padding-top: 95px !important;
}*/

/*#main-header {
    top: 41px !important;
}*/

/* Full width expand mobile menu that opens under the header (https://pavenum.com/en/new-mobile-menu-styles-for-standard-divi-header/) */
@media only screen and (max-width: 1300px) {
    .mobile_nav.opened .mobile_menu_bar:before {
        content: "\4d";
    }

    #main-header .container.clearfix.et_menu_container {
        width: 100%;
    }

    /* .logo_container {
        padding-left: 30px;
    }*/

    #et-top-navigation {
        padding-right: 30px;
    }

    #mobile_menu {
        display: block !important;
        right: 0;
        left: 0;
        top: 80px;
        min-height: calc(60vh - 80px);
        transition: all .5s ease-in-out;
        transform-origin: center;
    }

    .mobile_nav.closed #mobile_menu {
        transform: rotateY(90deg);
        opacity: 0;
    }

    .mobile_nav.opened #mobile_menu {
        transform: rotateY(0);
        opacity: 1;
    }
}

/*extra mobile menu styling*/
.et_mobile_menu li:hover {
    background-color: var(--blue);
    transition: all .6s ease;
    -webkit-transition: all .6s ease;
}

.et_mobile_menu li a:hover {
    color: var(--yellow);
    transition: all .6s ease;
    -webkit-transition: all .6s ease;
    opacity: 1 !important;
}

/*show mobile menu on tablet landscape and below*/
@media only screen and (max-width: 1300px) {

    #top-menu-nav,
    #top-menu {
        display: none;
    }

    #et_top_search {
        display: none;
    }

    #et_mobile_nav_menu {
        display: block;
    }
}

/*hero image content*/
@media only screen and (max-width: 1380px) {
    .home-strapline .et_pb_text_0 {
        transform: translateX(0px) translateY(154px) !important;
    }
}

/*STICKY CONTACT BUTTON LEFT - not on phone*/

/*This places the button where we want it*/
#ds-sticky-button {
    position: fixed;
    left: 0 !important;
    /*Positions the button to the left of the page*/
    top: 500px;
    /*Sets the distance of the button from the top of page*/
    width: 200px !important;
    /*Sets dimensions of the button*/
    height: 25px !important;
    /*Sets dimensions of the button*/
    z-index: 99999;
    /*Keeps the button on top*/
    transform: rotate(-90deg);
    /*Rotates the button*/
    transform-origin: left top 0;
    /*Places the button after rotation*/
}

/*Styles the link text to make it look like a button - You can edit all these values to match your design*/
#ds-sticky-button a {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0px;
    border: none;
    color: var(--blue);
    font-size: 16px;
    background: var(--yellow);
    padding: 5px 15px 5px 15px;
    text-decoration: none;
    transition: all .6s ease;
    -webkit-transition: all .6s ease;
}

/*Styles the button on hover - You can edit all these values to match your design*/
#ds-sticky-button a:hover {
    background: var(--blue);
    color: var(--yellow);
    text-decoration: none;
    transition: all .6s ease;
    -webkit-transition: all .6s ease;
}

/*Moves the button up a bit on smaller screens - You can adjust this to get the button where you want it or just remove it if you don't want to change the location*/
@media only screen and (max-width: 980px) {
    #ds-sticky-button {
        display: none;
    }

    #ds-sticky-button a {
        display: none;
    }
}

/*hide button on contact page*/
.page-id-27 #ds-sticky-button,
.single #ds-sticky-button {
    display: none;
}

/*//////////////////Homepage items\\\\\\\\\\\\\\\*/

/*panels at start of content*/
.home-panels-1 h4 {
    background-image: url(images/icon-05.png);
    background-size: 46px 31px;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding-left: 50px;
    padding-bottom: 0;
    font-size: 24px;
}

.home-panels-1 p {
    padding-top: 10px;
}

/*Services boxes*/

/*
.services-box {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;

    align-items: center;
    min-height: 145px;
}
*/

/*Services zoom effect*/
.image-zoom img {
    transition: all 0.7s;
    -moz-transition: all 0.7s;
    -webkit-transition: all 0.7s;
    /*-webkit-filter: grayscale(.7);
    filter: grayscale(.7);*/
}

.image-zoom img:hover {
    transform: scale(1.5);
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    /* -webkit-filter: grayscale(0); */
    /* filter: grayscale(0);*/
}

.image-zoom-constrained {
    overflow: hidden;
}


/*Lazy load YouTube(https://www.labnol.org/internet/light-youtube-embeds/27941/)*/
.youtube-player {
    position: relative;
    padding-bottom: 56.23%;
    /* Use 75% for 4:3 videos */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: transparent;
    margin: 5px;
}

.youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: transparent;
}

.youtube-player img {
    bottom: 0;
    display: block;
    left: 0;
    margin: auto;
    max-width: 100%;
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    height: auto;
    cursor: pointer;
    -webkit-transition: .4s all;
    -moz-transition: .4s all;
    transition: .4s all;
}

/* .youtube-player img:hover {
    -webkit-filter: brightness(75%);
} */

.youtube-player .play {
    height: 72px;
    width: 72px;
    left: 50%;
    top: 50%;
    margin-left: -36px;
    margin-top: -36px;
    position: absolute;
    background: url("images/play-button.png") no-repeat;
    cursor: pointer;
}

/*/////////////////forms\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/

/*mailchimp sign up*/

.product .related h2,
.et_pb_column_1_2 .et_quote_content blockquote p {
    font-size: 30px !important;
}



/*thank you message*/
.et-pb-contact-message p {
    background-color: var(--yellow);
    padding: 10px 10px 20px 10px !important;
    color: #fff;
    border-radius: 4px;

}

/*////////////////testimonials\\\\\\\\\\\\\\\\\\\\\\\\\\*/

.citation {
    font-style: normal;
    font-size: .9em;
    color: var(--yellow);
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    margin-top: 0;
    padding-top: 0;
}

.citation-2 {
    font-style: normal;
    font-size: .9em;
    color: var(--blue);
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    margin-top: 0;
    padding-top: 0;
}

.citation-2 span {
    color: var(--yellow);
}

/*////////////////About Us\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/

/*staff image overlay*/
.overlay-container {
    position: relative;
    width: 100%;
    background-image: linear-gradient(180deg, #f4ba2a 63%, #ba8e1f 100%);
    background-color: #f4ba2a;
    margin-bottom: 0px !important;
    text-align: left;
    margin-left: 0;
}

.image {
    display: block;
    /*width: 100%;*/
    height: auto;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 40, 89, 0.8);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
}

.overlay-container:hover .overlay {
    height: 100%;
}

.text {
    color: white;
    font-size: 15px;
    position: absolute;
    top: 40%;
    left: 45%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.5em;
    padding-left: 20px;
    width: 90%;
}

/*////////////////Services page items\\\\\\\\\\\\\\\\\\\\\\\\\\*/

/*service list*/
.services-list p span.icon {
    color: var(--yellow);
    text-align: center;
    padding-bottom: 20px;
}

.services-list .fas {
    display: block;
    text-align: left;
}

/*Services grid*/
.services-grid {
    display: grid;
    grid-template-columns: 80px 1fr 80px 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 50px;
}

@media only screen and (max-width: 750px) {
    .services-grid {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-column-gap: 10px;
        grid-row-gap: 50px;
    }
}

@media only screen and (max-width: 700px) {
    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-column-gap: 10px;
        grid-row-gap: 20px;
    }

    .services-grid-item {
        color: var(--blue);
        font-size: 18px;
        line-height: 1.5em
    }
}

.services-grid-item {
    color: var(--blue);
    font-size: 18px;
}

.services-grid .icon {
    color: var(--yellow);
}

/*////////////////footer\\\\\\\\\\\\\\\\\\\\\\\\\\*/


.footer-container {
    display: grid;
    grid-gap: 35px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media only screen and (max-width: 800px) {
    .footer-container {
        display: grid;
        grid-gap: 35px;
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 600px) {
    .footer-container {
        display: grid;
        grid-gap: 35px;
        grid-template-columns: 1fr;
    }
}

.grid-item h6 {
    color: #FED03E;
    font-size: 1.5em;
}

.grid-item p {
    font-size: 1.2em;
}

@media only screen and (max-width: 600px) {
    .grid-item h6 {
        font-size: 1.1em;
    }

    .grid-item p {
        font-size: .9em;
    }
}

.grid-item p #footer-bottom {
    padding: 0;
    background-color: #fff;
}
/*mobile only change to phone number colour*/
@media only screen and (max-width: 600px) {
.tel-no a{
    color: var(--yellow);
}
}
a[href^=tel]{
    color: var(--yellow);
}
/*hid the Divi footer - site uses a global section*/
#main-footer {
    display: none;
}

/*affiliate logo grid*/
.affiliate-logo-grid {
    display: inline-grid;
    grid-template-columns: auto auto auto;
}

.affiliate-logo-grid-item-1,
.affiliate-logo-grid-item-2 {
    padding-right: 10px;
}

/*hide the Ultimate GDPR plugin settings button once accept has been clicked*/
.ct-ultimate-gdpr-trigger-modal-round {
    display: none !important;
}

/*Google reCaptcha*/
.google-captcha-notice {
    font-size: .8rem;
}

.grecaptcha-badge {
    display: none;
}

/*////////////////FOOTER WEIRDNESS!!\\\\\\\\\\\\\*/
/*Divi is displaying the footer contact form on all other forms when the submit button is pressed*/
/*Until I can find a solution this CSS hides it from display on live

h1.et_pb_contact_main_title:nth-of-type(2) {
    display: none;
}
*/
/*
#footer-hide .et_pb_contact_field_4,
#footer-hide .et_pb_contact_field_5,
#footer-hide .et_pb_contact_field_6,
#footer-hide .et_pb_contact_field_7,
#footer-hide .et_pb_contact_field_8,
#footer-hide button {
    display: none;
}*/

/*.page-id-27 

#et_pb_contact_form_0 {
    display: none;
}

.show-footer-form {
    display: block !important;
}

.show-brochure-form {
    display: block !important;
}
*/
