/*
 Theme Name:   O2 Environmental Child Theme
 Theme URI:    http://www.aonach.com/
 Description:  A Divi child theme 
 Author:       Aonach
 Author URI:   http://www.aonach.com/
 Template:     Divi
 Version:      1.0.0
*/

@import url("../Divi/style.css");


/* Added Styles */

/* Helpers */
.card {
	padding: 25px;
  background: #fff !important;
  border: 1px solid #d2d1d1;
	box-shadow: 5px 2px 10px #ededed;
  transition: background ease-in 0.5s;
}

.clickable:hover {
  background: #fffcf7 !important;
  cursor: pointer;
}

.et_pb_section .join-rows:first-child {
	border-bottom: none;
	position: relative;
	z-index: 99;
	box-shadow: 5px -4px 10px #ededed;
}

.et_pb_section .join-rows:last-child {
	border-top: none;
	margin-top: -3px;
}

h2.header,
.et_pb_text > h2.header,
.main-body h1 {
	margin: -25px -25px 25px;
	padding: 20px 25px;
	background: #00549f;
	color: #fff;
}

.main-body h2 {
	margin-bottom: 15px;
}

h2.header,
.et_pb_text > h2.header {
	margin-bottom: 0;
}

h2 + h3 {
  color: #333;
  font-weight: 500;
  font-size: 16px;
}

.larger-body h2 {
  padding-bottom: 22px;
}

.larger-body ol li,
.larger-body ul li,
.larger-body p,
.main-body ol li,
.main-body ul li,
.main-body p {
  /*font-size: 16px;
  line-height: 1.5em;*/
}

.larger-body ul,
.main-body ul {
	margin: 15px 0;
}

.section-heading {
  text-align: center;
}

/* Base Styles */
h3 {
  line-height: 1.4em;
}

#main-content {
  background-color: transparent;
}

#main-footer {
  border-top: 5px solid #d8d8d8;
}

#main-footer #footer-widgets {
  padding-top: 4%;
}

/* Contact Form Widget */
.textwidget #gform_wrapper_1 {
	margin-bottom: 0;
}

.textwidget #gform_wrapper_1 ul li {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

.textwidget #gform_wrapper_1 ul li:before,
.textwidget #gform_wrapper_1 ul li label {
	display: none;
}

.textwidget #gform_wrapper_1 .gform_footer {
	padding: 0;
}

.textwidget #gform_wrapper_1 input[type="submit"] {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 5px;
	background-color: #88afd2;
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-size: 1rem;
	font-weight: 600;
	border: 2px solid #fff;
	transition: background 0.5s;
}

.textwidget #gform_wrapper_1 input[type="submit"]:hover {
	background: #00549f;
	cursor: pointer;
}

#main-footer #footer-widgets .footer-widget:last-child {
	padding: 25px;
	background: #f1f2f3;
	margin: -26px 0 5.5%;
  border: 1px solid #033058;
  box-shadow: 5px 2px 10px #023563;
}

#main-footer #footer-widgets .footer-widget:last-child .widget_text {
	width: 100%;
}

#main-footer .footer-widget:last-child h4 {
  color: #00549f;
}

.et_pb_fullwidth_section .et_pb_slide_description .et_pb_slide_title {
  font-size: 50px;
}

.et_pb_fullwidth_section .et_pb_slide_description .et_pb_slide_content {
  font-size: 20px;
  line-height: 1.5em
}



.et_pb_row.featured-logos {
	background: #00549f;
	text-align: center;
	padding: 25px 10%;
}

.et_pb_row.featured-logos img {
	max-height: 70px;
}

.et_pb_row.featured-logos .et_pb_column_0 img,
.et_pb_row.featured-logos .et_pb_column_3 img {
	margin-top: 15px;
}

.recent-projects h3 {
	margin: -25px -100px 30px;
  padding: 15px 25px 15px 50px;
	background: #f1f2f3;
	border-bottom: 1px solid #ddd;
	font-size: 16px;
  color: #333;
}

.recent-projects .subtitle {
	display: block;
	font-weight: 600;
	font-style: italic;
}

.recent-projects .card {
  padding: 25px 100px 40px;
  position: relative;
}

.recent-projects .card:before {
  content: "";
  position: absolute;
  width: 2px;
  height: calc(100% - 95px);
  left: 53px;
  bottom: 20px;
  background-color: #e2e3e4;
}

.recent-projects.about-us-projects .card {
  padding: 25px 50px;
}

.recent-projects.about-us-projects h3 {
  margin: -25px -50px 30px;
  padding: 15px 25px 15px 50px;
}

.recent-projects .card:before {
  display: none;
}

.recent-projects .with-subtitle h3 {
  margin: 0 0 30px;
  padding: 0;
  background: transparent;
  border-bottom: none;
}

.recent-projects .card ol li,
.recent-projects .card ul li,
.recent-projects .card p {
	font-size: 15px;
	line-height: 1.6em;
}

.recent-projects .card ul {
	margin: 15px 0;
}

ul.client-logos li {
	display: inline-block;
	width: 20%;
	margin: 0 -4px;
	vertical-align: middle;
	padding: 20px;
}

ul.client-logos li img {
	width: 250px;
	max-width: 100%;
	-webkit-filter: grayscale(1);
	filter: grayscale(1);
	opacity: 0.4;
	transition: all ease 0.25s;
}

ul.client-logos li img:hover {
	opacity: 0.9;
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
}

ul.client-logos li:nth-child(2) img {
	height: 120px;
	width: auto;
}

/* Testimonial Modules */
.et_pb_testimonial_description {
	display: block;
}

.et_pb_testimonial_description_inner {
	width: auto !important;
}

/* Meet The Team */
.et_pb_row.featured-tag {
	padding: 0;
}

.et_pb_row.featured-tag img {
	width: 100%;
}

.et_pb_row.featured-tag .et_pb_text {
	padding: 20px 30px;
}

.et_pb_row.featured-tag .et_pb_text h2 {
	margin: -20px -30px 20px;
	padding: 18px 30px 15px;
	background: #f1f2f3;
	border-bottom: 1px solid #ddd;
	font-size: 22px;
}

.et_pb_row.featured-tag .et_pb_text h2 .role {
	display: block;
	font-size: 13px;
	margin: 7px 0 0;
	font-style: italic;
	color: #868686;
}

.et_pb_row .tag {
	position: relative;
}

.et_pb_row .tag .et_pb_text {
  padding: 0 10% 0 50px;
}

.et_pb_row .tag img {
	max-width: 150px;
	padding: 6px;
	background: #fff;
	border: 1px solid #ccc;
	position: relative;
	margin: 15px 20px 20px 0px;
	/*box-shadow: 5px 2px 10px #ededed;*/
}

.et_pb_row .tag .featured-tag img {
  max-width: 280px;
  left: -60px;
  top: -25px;
  margin: 15px -30px -20px 0;
}

.et_pb_row .tag h2 {
	font-size: 22px;
}

.et_pb_row .tag h2 .role {
	display: block;
	margin: 6px 0 10px;
	font-size: 14px;
	line-height: 1.4em;
	font-style: italic;
	color: #848484;
}

.button-align .et_pb_button_module_wrapper {
    display: inline-block;
    margin-right: 15px;
}

.card .service-block {
  font-size: 14px;
}

.card .service-block p:first-child {
	padding: 0;
}

.card .service-block p:first-child img {
	position: relative;
  top: -18px;
  right: -20px;
  width: 60px;
  margin: 0 0 -15px -15px;
  display: none;
}

.card .service-block h2.services {
	width: calc(100% - 40px);
  color: #00549f;
  font-size: 20px;
}

/* Hero Video */
.no-video {
  display: none;
}
#video-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 100;
  background-color: rgba(0, 84, 159, 0.82);
}
#video-overlay-two {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.7);
}
.hero-video-holder-1 {
  position: relative;
  height: 400px;
  width: 100%;
  overflow: hidden;
}
.hero-video-holder-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.hero-video-holder-2 > * {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100% !important;
  width: 100%;
}

#leader .text {
	position: absolute;
  width: 80%;
  left: 50%;
  top: 32.2%;
  transform: translateX(-50%);
  z-index: 1000;
  text-align: center;
  overflow: hidden;
  max-width: 1000px;
}

#leader .text h1 {
  font-size: 42px;
  color: #fff;
}

#leader .text h1 + p {
  color: #fff;
  font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
  font-size: 20px;
  line-height: 1.3em;
  margin-top: 20px;
}

/* Services Page */
.et_pb_text.enquiry-form {
  padding: 25px;
  border: 1px solid #ccc;
  background: #f1f2f3;
}

.et_pb_text.enquiry-form h3 {
  color: #00549f;
}

.card.et_pb_testimonial {
  position: relative;
}

.card .et_pb_testimonial_description_inner > p.icon {
  padding: 0;
}

.card .et_pb_testimonial_description_inner > p.icon > img {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-60%);
  border: 1px solid #d2d1d1;
  padding: 5px;
  background: #fff;
}

@media only screen and (min-width: 981px) {
  .et_pb_fullwidth_section .et_pb_slide_description {
    padding: 16% 2% 16% 15%;
  }

  .et_pb_slider .et_pb_container {
    width: 85%;
  }
}

/* Blog Styles */
.search #content-area article.et_pb_post ,
.archive #content-area article.et_pb_post ,
.blog #content-area article.et_pb_post {
  padding: 25px;
  background: #fff !important;
  border: 1px solid #d2d1d1;
  box-shadow: 5px 2px 10px #ededed;
  transition: background ease-in 0.5s;
  margin: 0 0 35px;
  overflow: hidden;
}

.search #content-area article.et_pb_post .entry-title,
.archive #content-area article.et_pb_post .entry-title,
.blog #content-area article.et_pb_post .entry-title {
  margin: 0;
  line-height: 1.3em;
  color: #00549f;
  font-weight: 600;
  font-size: 22px;
}

.search #content-area article.et_pb_post.has-post-thumbnail img,
.archive #content-area article.et_pb_post.has-post-thumbnail img,
.blog #content-area article.et_pb_post.has-post-thumbnail img {
  float: left;
  width: 20%;
  margin-right: 15px;
  margin-bottom: 20px;
}

#sidebar .et_pb_widget {
  padding: 0 20px 20px;
  background: #fff !important;
  border: 1px solid #d2d1d1;
  box-shadow: 5px 2px 10px #ededed;
  transition: background ease-in 0.5s;
  margin: 0 0 35px;
  overflow: hidden;
}

#sidebar .et_pb_widget .widgettitle {
  padding: 10px 20px;
  margin: 0 -20px 20px;
  background: #00549f;
  color: #fff;
}

#sidebar .et_pb_widget.widget_categories ul li {
  font-size: 13px;
}

#sidebar .et_pb_widget.widget_categories ul.children {
  margin-top: 7px;
  margin-bottom: 12px;
}

#sidebar .et_pb_widget.widget_text {
  padding: 0;
}

#sidebar .et_pb_widget.widget_text .widgettitle {
  margin: 0;
}

#sidebar .et_pb_widget.widget_text a:hover > img {
  opacity: 0.8;
}

.single-post #content-area article.et_pb_post .et_pb_section {
  background: none;
  padding-top: 0;
}

.single-post #content-area article.et_pb_post .et_pb_row {
  padding-top: 0;
}
.wp-pagenavi{
    text-align: right;
    border-top: 1px solid #e2e2e2;
    padding-top: 13px;
    clear: both;
    margin-bottom: 30px;
}
.wp-pagenavi a,
.wp-pagenavi span{
    color: #666;
    margin: 0 5px;
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 400 !important;
    border: none !important;
}

/* Meet Our Team Promo */
.our-team-promo .card {
  padding: 0;
  width: 19.875%;
  margin-right: 2.5%;
}

.our-team-promo .card .et_pb_main_blurb_image {
  margin: 0;
}

.our-team-promo .card .et_pb_main_blurb_image img {
  width: 100%;
}

.our-team-promo .card .et_pb_blurb_container {
  padding: 10px 15px;
}

.our-team-promo .card:first-child {
  width: 31.875%;
  margin-right: 3.5%;
}

.our-team-promo .card .et_pb_blurb h4 {
  line-height: 1.4em;
}

.our-team-promo .card  .role {
  font-size: 13px;
  line-height: 15px;
}


@media only screen and (min-width: 1350px) {
  .our-team-promo .et_pb_button.about-action {
    float: right;
  }
}

@media only screen and (max-width: 1280px) {
  .our-team-promo .card .et_pb_blurb_container {
    padding: 15px 10px;
  }
}

@media only screen and (max-width: 1024px) {

  .home .et_pb_slider .et_pb_slide {
    background-position: -85px center;
  }
 
  
  .home .et_pb_slider .et_pb_slide .et_pb_slide_description {
    text-align: left;
    margin-left: 20%;
    padding: 80px 0;
  }

}

@media only screen and (max-width: 768px) {

  .home .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_description .et_pb_slide_title {
    font-size: 32px;
  }

  .home .et_pb_slider .et_pb_slide .et_pb_slide_description {
    text-align: center;
    margin: 0;
  }

  .home .et_pb_slider.et_pb_module .et_pb_container {
    width: 100%;
  }

  #leader .text h1 + p {
    display: none;
  }

  #leader .text h1 {
    font-size: 36px;
  }

  .hero-video-holder-1 {
    height: 200px;
  }
  
  .recent-projects .card {
    padding: 25px 15px;
  }

  .recent-projects h3 {
    margin: -25px -15px 30px;
    padding: 10px 12px;
  }

  .recent-projects .subtitle {
    clear: both;
  }

  .recent-projects img {
    float: none !important;
    margin: 0 0 20px !important;
  }
  
  .et_pb_row .tag .et_pb_text {
    padding: 0 5px;
  }

  .et_pb_row .tag img {
    position: static;
    max-width: 100% !important;
    float:  none;
    margin: 0 0 5px !important;
  }
  
  ul.client-logos li {
    width: 33.33%;
    padding: 10px 15px;
  }
  
}

@media only screen and (max-width: 479px) {
  
  h1 {
	font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 16px;
  }

  h5 {
    font-size: 14px;
  }

  h6 {
    font-size: 12px;
  }
  
  .et_pb_row.featured-logos .et_pb_column.et_pb_column_1_4 {
    width: 47.25% !important;
    margin-right: 2.5%;
  }
  
  ul.client-logos li {
    width: 50%;
    padding: 5px 10px;
  }
  
  ul.client-logos li img,
  ul.client-logos li:nth-child(2) img {
    height: auto;
  }
  
  ul.client-logos li:nth-child(2) img {
    width: 50px;
  }
  
}













