/*
 Theme Name:     J N Piling
 Theme URI:      http://www.bowhouse.co.uk
 Description:    Custom theme for J N Piling Ltd
 Author:         Bow House Ltd
 Author URI:     http://www.bowhouse.co.uk
 Template:       Divi
 Version:        1.0.0
*/
 
@import url("../Divi/style.css");
 
/* =Theme customization starts here
------------------------------------------------------- */

/* ----- CUSTOM GUTTER AND COLUMN WIDTHS ----- */

.et_pb_gutters3 .et_pb_column_1_4, .et_pb_gutters3.et_pb_row .et_pb_column_1_4 {
	width:23.125%;
}

.et_pb_gutters3 .et_pb_column, .et_pb_gutters3.et_pb_row .et_pb_column {
	margin-right: 2.5%;
}

.et_pb_row .et_pb_column:last-child, .et_pb_row_inner .et_pb_column:last-child {
	margin-right: 0 !important;
}

.et_pb_gutters3 .et_pb_column_1_2, .et_pb_gutters3.et_pb_row .et_pb_column_1_2 {
	width:48.75%;
}

.et_pb_gutters3 .et_pb_column_1_3, .et_pb_gutters3.et_pb_row .et_pb_column_1_3 {
	width:31.666%;
}

.et_pb_gutters3 .et_pb_column_2_3, .et_pb_gutters3.et_pb_row .et_pb_column_2_3 {
	width:65.833%;
}

.et_pb_gutters3 .et_pb_column_3_4, .et_pb_gutters3.et_pb_row .et_pb_column_3_4 {
	width:74.375;
}

.et_pb_gutters3 .et_pb_column_2_3 .et_pb_row_inner .et_pb_column_1_3 {
	width:48%;
	margin-right:4%;
}

/* ----- CUSTOM GUTTERS & WIDTHS FOR FILTERABLE PORTFOLIO ----- */

.et_pb_gutters3 .et_pb_column_4_4 .et_pb_grid_item,
.et_pb_gutters3 .et_pb_column_4_4 .et_pb_filterable_portfolio .et_pb_portfolio_item.et_pb_grid_item,
.et_pb_gutters3.et_pb_row .et_pb_column_4_4 .et_pb_grid_item,
.et_pb_gutters3.et_pb_row .et_pb_column_4_4 .et_pb_filterable_portfolio .et_pb_portfolio_item.et_pb_grid_item {
	width:23.125%;
	margin:0 2.5% 2.5% 0;
}


/* ----- HEADER AND NAVS ----- */

#et-info-phone::before {
	padding:4px;
	border-radius:50%;
	border:2px solid #333;
	margin-right:5px;
}

#top-header .et-social-icon a, #top-header.et-fixed-header .et-social-icon a {
	border-radius:50%;
	border:none;
	padding:4px;
}

#top-header .et-social-facebook a, #top-header.et-fixed-header .et-social-facebook a,
#top-header .et-social-youtube a, #top-header.et-fixed-header .et-social-youtube a,
#top-header .et-social-instagram a, #top-header.et-fixed-header .et-social-instagram a {
	color:#fff;
	background:#333;
	border:2px solid #333;
}

#top-menu-nav > ul > li > a:hover {
	color:#224086;
	opacity:1;
}

#top-header .et-social-twitter a, #top-header.et-fixed-header .et-social-twitter a, #top-header .et-social-linkedin a, #top-header.et-fixed-header .et-social-linkedin a {
	border:2px solid #333;
}

#top-menu-nav > ul > li > a:hover {
	color:#3d8ac1;
}

#et-secondary-menu > ul > li.current-menu-item a {
	color:#5a3d52;
}

#et-secondary-menu > ul > li.current-menu-item a:hover {
	opacity:1;
}

.et_mobile_menu li a {
    font-size: 16px;
}

.et_mobile_menu .menu-item-has-children > a {
    background:none;
}

.et_mobile_menu li a:hover {
	opacity: 1;
	background-color: rgba(32, 64, 137, 0.1);
}

#top-menu-nav > ul > li > a:hover,
#et-secondary-menu > ul > li > a:hover,
#et-info-email:hover,
.et-social-icons a:hover {

}

/* ----- FOOTER ----- */

div#page-container {
	background:url(/wp-content/themes/JNPiling/images/footer-piling-tile-final.jpg) center bottom repeat-x;
} 

footer#main-footer {
	background:url(/wp-content/themes/JNPiling/images/footer-giken-final.jpg) center bottom no-repeat;
	height:490px;
	padding-top:330px;
}

@media all and (max-width: 980px) {
	footer#main-footer {
		background-position: -280px bottom;
	}

}

#footer-bottom {
	background:none;
	padding-top:0;
}

#footer-bottom .et-social-icons {
	float:none;
	text-align:center;
	margin-bottom:1em;
}

#footer-bottom .et-social-icon a {
	font-size:20px;
	padding:6px;
	border:1px solid #888;
}

#footer-cta-section {
	background:none;
	padding: 0;
}

#footer-cta p {
	font-size:18px;
	line-height:1.4em;
}

#footer-cta h2 {
	font-size:28px;
}

#footer-bottom div p {
	margin:0;
	padding:0;
	text-align:center;
	color:#aaa;
}

@media all and (min-width: 981px) {

	#footer-cta-section {
		margin-bottom:-310px;
		padding:40px 0;
	}

	#footer-cta {
		text-align:right;
		margin-left:30px;
	}

}

@media all and (max-width: 480px) {

	#footer-bottom { padding-top:1em; }

	#footer-bottom .et-social-icons,
	footer#main-footer p.not-mobile {
		display:none;
	}

}

/* ----- CONTENT SLIDER ----- */

#home-slider .et_pb_slide_description, #home-slider .et_pb_slider_fullwidth_off .et_pb_slide_description {
	top:20%;
	padding:3% 5%;
	margin:15% 5% auto;
	border:2px solid #fff;
	box-shadow:0 1px 3px rgba(0, 0, 0, 0.6);
}

#home-slider .et_pb_container { width:65%; }

@media all and (max-width: 981px) {

	#home-slider .et_pb_container { width:90%; }

	#home-slider .et_pb_slide_description, #home-slider .et_pb_slider_fullwidth_off .et_pb_slide_description {
		margin:15% 0 auto;
	}

}

.et_pb_bg_layout_dark .et_pb_slide_description {
	text-shadow: 0 0px 15px rgba(0, 0, 0, 0.85);
}

/* ----- COMPANY INTRO ----- */

#home-intro .et_pb_blurb_content {
 max-width:100%;
}

#home-intro .et_pb_main_blurb_image, #our-products-heros .et_pb_main_blurb_image {
	margin-bottom:0;
}

#home-intro .et_pb_main_blurb_image img {
	display:block;
}

#home-intro .et_pb_blurb_container {
	padding: 0 19px 19px;
	border-width: 0px 1px 1px 1px;
	border-color: #ddd;
	border-style: solid;
}

#home-intro .et_pb_blurb_container h1 {
	background:#222;
	color:#fff;
	margin:0 -20px 19px;
	padding:0.25em 19px;
	font-size:22px;
}

/* ----- PRODUCT BUTTONS ----- */

#home-product-buttons .et_pb_blurb_content, #our-products-heroes .et_pb_blurb_content {
	position:relative;
}

#home-product-buttons .et_pb_main_blurb_image, #our-products-heroes .et_pb_blurb_image {
	margin:0;
}

#home-product-buttons .et_pb_main_blurb_image img, #our-products-heroes .et_pb_blurb_content img {
	display:block;
}

#our-products-heroes .et_pb_blurb_content img {
	width:100%;
}

#home-product-buttons .et_pb_blurb_container, #our-products-heroes .et_pb_blurb_container { 
	width:100%;
	position:absolute;
	z-index:5;
    opacity: 1;
}

#home-product-buttons .et_pb_blurb_container {
	text-align: center;
	top:55px;
}

#our-products-heroes .et_pb_blurb_container {
	bottom:34px;
}

#home-product-buttons .et_pb_blurb_container h4, #our-products-heroes .et_pb_blurb_content h4 {
	color:#fff;
	font-size:22px;
	text-shadow: 0 0px 4px rgba(0, 0, 0, 0.50);
	background: rgba(0,0,0,0.25);
}

#home-product-buttons .et_pb_blurb_container h4 a {
	display:inline-block;
	padding:10px 45px;
}

#our-products-heroes .et_pb_blurb_content h4 a {
	display:inline-block;
	padding:10px 15px;
}

@media all and (max-width: 1279px) {

	#home-product-buttons .et_pb_blurb_container {
		top:25%;
	}

	#home-product-buttons .et_pb_blurb_container h4 {
		font-size:20px;
	}

	#home-product-buttons .et_pb_blurb_container h4 a {
		padding:10px 15px ;
	}
}

@media all and (max-width: 768px) {
	#home-product-buttons .et_pb_blurb_container {
		top:0;
	}
}

#home-product-buttons .et_pb_blurb_content:hover a, #home-product-buttons .et_pb_blurb_content:hover h4 a, #our-products-heroes .et_pb_blurb_content:hover a, #our-products-heroes .et_pb_blurb_content:hover h4 a {
	color:#fef474;
	transition: all 500ms ease;
}
/*
#home-product-buttons .et_pb_blurb_content h4 a:hover {
	color:#fef474;
	transition: all 500ms ease;
}
*/
#home-product-buttons .et_pb_blurb_content:hover {
	background-color: #fef474;
	transition: all 500ms ease;
	cursor: pointer;
}

#home-news article {
	margin-bottom:30px;
}

#home-news article:last-child {
	margin-bottom:0;
}

#home-news.et_pb_blog_grid .et_pb_post {
	padding:0;
	border:none;
}

#home-case-studies {
	background-size:cover;
}

#case-study-cta {
	background:#224086;
}

.et-social-icon a {
	padding:4px;
	border:1px solid #fff;
	border-radius:50%;
}

.et_pb_bg_layout_light .et-pb-arrow-prev,
.et_pb_bg_layout_light .et-pb-arrow-next {
    color: #ccc;
}

.et_pb_button {
	background:#e28a3a;
	border-color:#c36c25;
	box-shadow: 1px 1px 3px #333;
}

.et_pb_button:hover, .et_pb_bg_layout_light .et_pb_button:hover, .et_pb_pricing_table_button:hover, .et_pb_contact_submit:hover, .et_pb_contact_reset:hover {
	background:#d57d2e;
	border-color:#c36c25;
	box-shadow: 1px 1px 3px #333;
}

.et_pb_section { padding:0; }
.et_pb_row { padding:0; }

.et_pb_row, .et_pb_column .et_pb_row_inner { padding: 15px 0; }

a.et_pb_button {
	color:#fff !important;
}

a.more-link {
	text-transform:uppercase;
	font-family:'Oswald';
	width:63px;
	display:block;
	white-space:nowrap;
	border-top:1px solid #ccc;
	margin-top:0.65em;
}

a.more-link:hover {
	color: #b2a714;
	transition: color 400ms linear;
}

/* ----- GENERAL ----- */

.et_pb_contact_submit, .et_password_protected_form .et_submit_button, .et_pb_bg_layout_light .et_pb_newsletter_button, .comment-reply-link, .form-submit input, .et_pb_bg_layout_light .et_pb_promo_button, .et_pb_bg_layout_light .et_pb_more_button, .woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, .woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button {
	color:#fff !important;
}

.et_pb_bg_layout_light .et-pb-arrow-prev, .et_pb_bg_layout_light .et-pb-arrow-next {
	color:#fff !important;
}

.entry-content .et_pb_section {
	padding-top:0;
}