/*
 Theme Name:   Divi Child
 Theme URI:    http://cooldesign.co.za
 Description:  A Child Theme built for Divi
 Author:       Cool Design Digital Agency
 Author URI:   http://cooldesign.co.za
 Template:     Divi
 Version:      1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/
/* =========================================================================================== 
   ERNEST LOWE (ELCO)
/* ===========================================================================================
   GENERAL STYLING

/* FIX WORDPRESS 5.7 SPACING PROBLEM
================================================================== */
body p:empty:before {
    content: none;
}

/* PUT A RED LINE AND SHADOW ABOVE THE COOKIE POPUP BAR
================================================================== */
#cookie-law-info-bar {
	border-top: 3px solid #e20a17 !important;
	padding-bottom: 25px !important;
	-webkit-box-shadow: 0px -5px 20px 1px rgba(201,201,201,1);
	-moz-box-shadow: 0px -5px 20px 1px rgba(201,201,201,1);
	box-shadow: 0px -5px 20px 1px rgba(201,201,201,1);
}

.cli_messagebar_head {
	font-weight: 700 !important;
	color: #333333 !important;
}

/* ===========================================================================================
/* HOVER SETTINGS
================================================================== */
/* REGULAR LINK UNDERLINE ON HOVER
------------------------------------------------------- */
/* .link-hover-underline a {
	color: #fff !important; 
} */
.link-hover-underline a:hover {
	font-weight: 800;
	border-bottom: solid 2px;
}

/* CONTACT AND FOOTER LINK .... underline on hover
------------------------------------------------------- */
.contact-page-link a,
.footer-link a {
/*	color: #444 !important; */
	text-decoration: none;
}
.contact-page-link a:hover {
	font-weight: bold;
	border-bottom: solid 2px;
}

.footer-link a:hover {
	font-weight: bold;
	border-bottom: solid 2px #fff;
}

/* HYDRAULICS PAGE CONTACT FORM LINK .... underline on hover
------------------------------------------------------- */
.hydraulics-page-link a {
	color: #000 !important;
	text-decoration: none;
}
.hydraulics-page-link a:hover {
	font-weight: bold;
	border-bottom: solid 2px #000;
}

/* Image hover effect - Grow
------------------------------------------------------- */
.img-hover-effect {
	transform: translateZ(0);
	transition-duration: 0.3s;
	transition-property: transform;
}

.img-hover-effect:hover {
	transform: scale(1.05);
}

.image-zoom-constrained {      
  overflow:hidden;
}

/* Blurb hover effect - Grow
------------------------------------------------------- */
.blurb-hover-effect {
	transform: translateZ(0);
	transition-duration: 0.3s;
	transition-property: transform;
}
.blurb-hover-effect:hover {
	transform: scale(1.05);
}

/* ===========================================================================================
/* VERTICALLY ALIGN A COLUMN - FROM DIVI SPACE
/* ===========================================================================================
*/
.col-vertical-align { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
} 

/* ===========================================================================================
/* GALLERY STYLING
/* ===========================================================================================
/* DISABLE DIVI GALLERY SLIDE IN EFFECT
================================================================= */
.et_pb_gallery_item {
	-webkit-animation: none !important;
	-moz-animation: none !important;
	-o-animation: none !important;
	-ms-animation: none !important;
	animation: none !important;
}

/* MAKE CLOSE 'X' PERMANENTLY VISIBLE AND SMALLER ON LIGHTBOX IMAGES
================================================================== */
button.mfp-close	 {
	opacity: 1 !important;
	color: white !important;
}

.mfp-iframe-holder .mfp-close, .mfp-image-holder .mfp-close {
	font-size: 35px !important;
	line-height: 1em !important;
	font-weight: bold;
}


/* ===========================================================================================
   BULLET STYLES
/* ===========================================================================================
/* Indented Bullet
--------------------------------------------------------*/
.indent-bullet {
	padding-left:5px;
	margin-left: 10px;
}

/* Small Blue Bullet image 
--------------------------------------------------------*/
.image {
	list-style-image: url("images/bullet.png");
	padding-right: 10px;
}

/* Small Blue Bullet image 
--------------------------------------------------------*/
.image-red {
	list-style-image: url("images/bullet-red.png");
	margin-left: 10px;
	padding-left: 5px;
}

/* Red Tick Icon Bullet
--------------------------------------------------------*/
ul.red_tick li {
	list-style: none;
	list-style-position: outside;
}

ul.red_tick li:before {
	font-family: 'ETmodules';
	content: "\4e";
	font-size: 16px;
	font-weight: 700;
	color: red;
	padding-right: 8px;
	margin-left: -26px
}

/* ===========================================================================================
   BUTTON STYLES
/* ===========================================================================================

/* Scroll to Top button
------------------------------------------------------- */
.et_pb_scroll_top.et-pb-icon {
/*	background: #e04b4b;  /* red */
	background: #ce5143; /* dark watermelon red */	
}

/* Red Button
------------------------------------------------------- */
.button-red {
/*	background-color: #e04b4b;  /* lighter red */
	background-color: #ce5143; /* dark watermelon red */
	border: none;
	border-radius: 5px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	padding: 5px 8px;
	margin-bottom: 7px;
	width: auto;
}

.button-red:hover {
/*	background-color: #d90505; /* slightly darker red */
	background-color: #c73221; /* darker watermelon red */
	text-decoration: none !important; 
	padding: 5px 12px;
	font-weight: bold;
}

/* Blue Button
------------------------------------------------------- */
.button-blue {
	background-color: #5c9cfc; /* medium-light blue */
	border: none;
	border-radius: 5px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	padding: 5px 8px;
	width: auto;
}

.button-blue:hover {
	background-color: #4d70d7; /* darker blue */
	text-decoration: none !important;
	padding: 5px 12px;
	font-weight: bold;
}

/* Navy Button
------------------------------------------------------- */
.button-navy{
	background-color: #1e609c;
	border: none;
	border-radius: 5px;
	box-shadow: none;
	color: #000000;
	cursor: pointer;
	padding: 5px 8px;
	width: auto;
}

.button-navy:hover {
	background-color: #153F65;
	text-decoration: none !important;
	padding: 5px 12px;
	font-weight: bold
}

/* ===========================================================================================
   HEADER STYLES
/* ===========================================================================================
/* Paint a 3-pixel red border above the top menu
------------------------------------------------------- */
#top-header {
	border-top: 3px solid #e20a17 /* logo red */
}

/* Right align top menu Phone and Email details
------------------------------------------------------- */
@media only screen and (min-width: 768px) {
    #et-info { float:right !important; }
}

/* Add a SHADOW below the main header
------------------------------------------------------- */
#main-header { 
	-webkit-box-shadow: 0px 9px 20px 2px rgba(0,0,0,0.24);
	-moz-box-shadow: 0px 9px 20px 2px rgba(0,0,0,0.24);
	box-shadow: 0px 9px 20px 2px rgba(0,0,0,0.24);
}

/* Add a SHADOW to the Fixed Header too
------------------------------------------------------- */
#main-header.et-fixed-header { 
	-webkit-box-shadow: 0px 9px 20px 2px rgba(0,0,0,0.24)!important;
	-moz-box-shadow: 0px 9px 20px 2px rgba(0,0,0,0.24)!important;
	box-shadow: 0px 9px 20px 2px rgba(0,0,0,0.24)!important;
}

/* Reduce spacing above the logo
------------------------------------------------------- */
#logo {
/*	padding-top: 2px; */
}

/* ===========================================================================================
   MENU STYLES
/* ===========================================================================================
/* Increase sub-menu width - this is the sub-menu text width
------------------------------------------------------- */
#top-menu li li a {
	padding: 3px 20px; 
/*	width: 360px;   /* was 210px */
	width: 660px;
}

/* Sub-menu background width
------------------------------------------------------- */
.nav li ul  {
/*	width: 400px; */
	width: 700px
}

/* Light grey background bands on 'Our Company' headings in drop-down menu
------------------------------------------------------- 
.menu-light-grey-background  {
	background-color: #ececec !important;
}

/* Dark grey background bands on 'Product' headings in drop-down menu - DISABLED
------------------------------------------------------- 
.menu-grey-background  {
	background-color: #d1d1d1 !important;
}
*/

/* Menu hover speed and colors
------------------------------------------------------- */
#top-menu-nav > ul > li > a:hover  {
	opacity: 1.0; 
	-webkit-transition: all 0.1s ease-in-out;
	-moz-transition: all 0.1s ease-in-out;
	transition: all 0.1s ease-in-out; 
}

#et-secondary-menu > ul > li > a:hover,
#et-info-email:hover,
.et-social-icons a:hover {
	color: #444;
	text-decoration: underline;
	opacity: 1.0; 
	font-weight: bold;
	-webkit-transition: all 0.1s ease-in-out;
	-moz-transition: all 0.1s ease-in-out;
	transition: all 0.1s ease-in-out;
}
/* Menu item red on hover
------------------------------------------------------- */
#top-menu-nav #top-menu a:hover { 
/*	color: #e04b4b !important; /* lighter red */
	color: red !important; /* red */	
	background-color: #fff;
}	

/* ===========================================================================================
   MOBILE MENU - ADD SEACRH BAR
/* ===========================================================================================
/* Provided by DIVICIO.US:
   https://www.divicio.us/tutorials/enable-search-on-mobile-for-divi-centered-and-centered-inline-logo-headers/
*/
/* Enable Search on Mobile for Divi Centered and Centered Inline Logo Headers */
    @media (max-width: 980px) {
        /* make search icon visible */
        .et_header_style_centered #et_top_search, 
        .et_vertical_nav.et_header_style_centered #main-header #et_top_search,
        .et_header_style_split #et_top_search, 
        .et_vertical_nav.et_header_style_split #main-header #et_top_search {
            display: block !important;
            float: right;
            z-index: 99999;
        }
        /* align search icon for Centered header */
        .et_header_style_centered #et_search_icon:before {
            top: 7px;
            left: -3px;
        }
        /* align search icon for Centered Inline Logo header*/
        .et_header_style_split #et_search_icon:before {
            margin-top: 0;
            left: -3px;
        }
        /* make search field visible */
        .et_header_style_centered .et_search_outer, 
        .et_header_style_split .et_search_outer {
            display: block;
        }
        /* set max-width for search form container */
        .et_header_style_centered .container.et_search_form_container,
        .et_header_style_split .container.et_search_form_container.et_pb_search_visible,
        .et_header_style_split .container.et_search_form_container.et_pb_search_form_hidden {
            max-width: 100% !important;
        }
        /* apply in-animation for search form container */
        .et_header_style_centered .container.et_search_form_container.et_pb_search_visible,
        .et_header_style_split .container.et_search_form_container.et_pb_search_visible {
            z-index: 999;
            -webkit-animation: fadeInTop 1s 1 cubic-bezier(.77,0,.175,1);
            -moz-animation: fadeInTop 1s 1 cubic-bezier(.77,0,.175,1);
            -o-animation: fadeInTop 1s 1 cubic-bezier(.77,0,.175,1);
            animation: fadeInTop 1s 1 cubic-bezier(.77,0,.175,1);
        }
        /* apply out-animation for menu bar elements */
        .et_header_style_centered .et_pb_menu_hidden #et_search_icon:before, 
        .et_header_style_centered .et_pb_menu_hidden .mobile_menu_bar,
        .et_header_style_centered .et_pb_menu_hidden .select_page,
        .et_header_style_split .et_pb_menu_hidden #et_search_icon:before, 
        .et_header_style_split .et_pb_menu_hidden .mobile_menu_bar,
        .et_header_style_split .et_pb_menu_hidden .select_page {
            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);
        }
        /* apply in-animation for "Select Page" container */
        .et_header_style_centered .et_pb_menu_visible .select_page,
        .et_header_style_split .et_pb_menu_visible .select_page {
            opacity: 1;
            -webkit-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
            -moz-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
            -o-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
            animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
        }
        /* adjust close search icon horizontal positioning */
        .et_header_style_centered span.et_close_search_field,
        .et_header_style_split span.et_close_search_field {
            right: 5px;
        }
        /* adjust search form input horizontal positioning */
        .et_header_style_centered .et-search-form input,
        .et_header_style_split .et-search-form input {
           left: 10px;
           right: auto;
        }
        /* adjust search form input and close icon vertical positioning */
        .et_header_style_centered .et-search-form input, 
        .et_header_style_centered span.et_close_search_field,
        .et_vertical_nav.et_header_style_centered .et-search-form input, 
        .et_vertical_nav.et_header_style_centered span.et_close_search_field,
        .et_header_style_split .et-search-form input, 
        .et_header_style_split span.et_close_search_field  {
            top: unset !important;
            line-height: 2em;
        }
        .et_header_style_centered span.et_close_search_field,
        .et_header_style_split span.et_close_search_field  {
            bottom: 20px;
        }
        /* set width values for search form */
        .et_header_style_centered .et-search-form,
        .et_header_style_split .et-search-form {
            width: 100% !important;
            max-width: 100% !important;
            bottom: 20px;
        }
        /* adjust close search icon top margin */
        .et_header_style_centered .et_close_search_field:after,
        .et_header_style_split .et_close_search_field:after {
            margin-top: -2px;
        }
    }
    /* END */

/* ===========================================================================================
   MOBILE MENU - COLLAPSIBLE MOBILE MENU
/* ===========================================================================================
*/ 
 
/* ===========================================================================================
   GRAVITY FORMS CUSTOMISATION
/* ===========================================================================================
/* GRAVITY FORMS - REMOVE LABEL ON FIELDS USING PLACEHOLDER 
================================================================= */
.gform_wrapper .top_label .gfield_label,
.gform_wrapper .field_sublabel_below .ginput_complex.ginput_container label {	
	display: none !important;
}

/* GRAVITY FORMS - FIELD STYLING
================================================================= */
body .gform_wrapper .gform_body .gform_fields .gfield input[type="text"],
body .gform_wrapper .gform_body .gform_fields .gfield input[type="email"], 
body .gform_wrapper .gform_body .gform_fields .gfield input[type="tel"], 
body .gform_wrapper .gform_body .gform_fields .gfield textarea {
	background: #ffffff;
	border: none;
	border-radius: 0;
	color: #333 !important;
	padding: 10px 15px !important;
}

.gform_wrapper .gform_fileupload_multifile .gform_drop_area  {
	background: #fff !important;
}

/*
body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_fileupload .gform_button_select_files {
	color: #ffffff;	
	background: #e04b4b; /* lighter red 
	border: solid 2px #e04b4b; /* lighter red 
	border-radius: 5px;	
	font-size: 15px;	
	cursor: pointer;
}  
*/

/* GRAVITY FORMS - 'SEND MESSAGE' BUTTON STYLING 
================================================================= */
body .gform_wrapper .gform_footer input[type=submit] { 
	width: 98.5%;
}

body .gform_wrapper .gform_footer input[type=submit] { 
/*	float:right; */
	color: #ffffff;
	background: #e04b4b; /* lighter red */
	border: solid 2px #e04b4b; /* lighter red */
	font-size: 15px;
	font-weight: bold;
	letter-spacing: 1px;
	padding: 12px 23px; 
	cursor: pointer;
/*	height: 35px; 
	min-width: 150px; 
	border: 0; */
}

/* Change to slightly darker red ON HOVER
----------------------------------------------------------------- */
body .gform_wrapper .gform_footer input:hover[type=submit] {
	font-size: 16px;
	background: #d90505; /* slightly darker red */
}

