/*
** Theme Name: Northern Gas Networks - Biomethane
** Author: Rik Kendell @ Digital Welly
** Date: December 2014
** Template: ngn-parent
** Version: 1.0
*/
/* -----------------------------
  1.0 - Import
 ---------------------------- */
/* -----------------------------
  1.0. Variables
 ---------------------------- */
/* -----------------------------
  2.0. Additional Files
 ---------------------------- */
.ie8 #sidebar button {
  display: none;
}
.ie8 .grid-item {
  margin-left: 5px;
  margin-right: 5px;
}
.ie8 #services .menu a {
  padding: 55px 2px 0;
}
.ie8 .homepage .hero .video-link {
  background-size: 100% 100%;
  background-repeat: repeat;
  background-image: url("../img/video-cta.jpg");
  background-position: center center;
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src="img/video-cta.jpg", sizingMethod="scale");
}
.ie8 #stage2 .three {
  background-image: url("../img/process/2-3-ie8.png");
}

/* -----------------------------
  2.0 - Base Styles
 ---------------------------- */
body {
  color: #87929f;
}

@media (max-width: 767px) {
  img {
    width: 100%;
    height: auto;
  }
}

/* -----------------------------
  3.0 - Base Typography & Links
 ---------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: #3e3080;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.83em;
}

h1 {
  color: #adbf27;
  font-family: "jaf-domus", sans-serif;
  font-size: 5.1rem;
  font-size: 51px;
  font-weight: 700 !important;
}

h2 {
  font-family: "jaf-domus", sans-serif;
  font-size: 24px;
  font-size: 2.4rem;
  line-height: 1.4;
  line-height: 28px;
}

h3 {
  font-family: "jaf-domus", sans-serif;
  font-size: 21px;
  font-size: 2.1rem;
}

#content p, #content ul li, #content ol li {
  font-size: 16px;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

a {
  color: #3e3080;
  font-weight: bold;
}
a:hover {
  text-decoration: underline;
}

.section-title {
  text-align: center;
  margin-bottom: 1em;
}

.make-enquiry {
  background: url("../img/enquiry.png") left center no-repeat transparent;
  color: #ffea00;
  padding-left: 33px;
}

/* -----------------------------
  4.0 - Global Layout & Styles
 ---------------------------- */
#main {
  min-height: inherit;
  /* img {
  	width: 100%;
  	height: auto;
  } */
}
#main ul {
  list-style: disc;
  padding-left: 2em;
}

#header {
  padding: 8px 0 21px;
}
#header .logo {
  float: left;
  margin-top: 12px;
  margin-bottom: 0;
}
#header .logo a {
  background: url("../img/logo-biomethane.jpg");
  height: 75px;
  top: auto;
  width: 172px;
}
#header .powered-by {
  float: right;
  margin-top: 17px;
}
#header .powered-by a {
  background: url("../img/logo-poweredby.png");
  height: 58px;
  width: 103px;
  display: block;
  text-indent: 100%;
  overflow: hidden;
  white-space: nowrap;
}
#header .searchbox#main-search {
  bottom: auto;
  left: 312px;
  right: auto;
  top: 36px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  #header .searchbox#main-search {
    left: 202px;
  }
}
@media (max-width: 767px) {
  #header .searchbox#main-search {
    bottom: -64px;
    background: #fff;
    border-color: #ddd;
    left: auto;
    right: 5px;
    top: auto;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
  }
}

#header-links .menu a,
#header-links #browsealoud a {
  font-weight: 300;
}

#frame {
  background: url("../img/bg-tile.jpg");
}

#main-menu ul.menu {
  border-right: 1px solid #ddd;
  width: 960px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  #main-menu ul.menu {
    width: 100%;
  }
}
@media (max-width: 767px) {
  #main-menu ul.menu {
    display: none;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
  }
}
#main-menu .home {
  width: 60px;
}
#main-menu .home a {
  display: block;
  text-indent: 100%;
  overflow: hidden;
  white-space: nowrap;
  width: 60px !important;
  position: relative;
  padding: 0;
  text-indent: 300%;
}
#main-menu .home a:before {
  content: "\e80c";
  font-family: "fontello";
  display: inline-block;
  font-size: 20px;
  font-size: 2rem;
  line-height: 50px;
  position: absolute;
  top: 0;
  left: 0;
  height: 48px;
  width: 57px;
  text-indent: 0;
  text-align: center;
}
#main-menu {
  /* .current_page_item a,
  a:focus {
  	background-color: $alt-color;
  	text-shadow: none;
  }
  a:hover {
  	background-color: $brand-color;
  	text-decoration: none;
  } */
}

#content .subnav > li {
  margin-bottom: 0;
}

#section-header {
  background: #3e3080;
}
#section-header h2:before {
  border-top: 10px #3e3080 solid;
}
#section-header a {
  color: #adbf27;
}

.hero {
  background: #3e3080;
  margin: 29px 0;
}
.hero .detail {
  color: #eee;
  float: left;
  padding: 40px 30px 40px 40px;
}
.grid .grid-item {
  background: #fff;
  box-shadow: 0 0 1px #b1bac8;
  -webkit-border-radius: 0 0 5px 5px;
  -moz-border-radius: 0 0 5px 5px;
  -ms-border-radius: 0 0 5px 5px;
  -o-border-radius: 0 0 5px 5px;
  border-radius: 0 0 5px 5px;
  float: left;
}
.grid.three-up .grid-item {
  margin-bottom: 15px;
  width: 310px;
}
@media (min-width: 768px) {
  .grid.three-up .grid-item:nth-child(3n+2) {
    margin-left: 15px;
    margin-right: 15px;
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .grid.three-up .grid-item {
    width: 243px;
  }
}
@media (max-width: 767px) {
  .grid.three-up .grid-item {
    width: 100%;
  }
}
.grid.two-up .grid-item {
  margin: 0 0 15px 15px;
  width: 472px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  .grid.two-up .grid-item {
    width: 372px;
  }
}
@media (max-width: 767px) {
  .grid.two-up .grid-item {
    width: 100%;
    margin: 0 0 15px;
  }
}
.grid.two-up .grid-item:nth-child(odd) {
  margin: 0 0 15px 0;
}
.grid h3 {
  color: #3e3080;
  font-size: 24px;
  font-size: 1.75em;
  margin-bottom: 15px;
}
.grid .content {
  padding: 16px 14px;
}
.grid .content a {
  color: #87929f;
  font-weight: bold;
}

#services {
  background: #fff;
  border-top: 1px solid #d5dce7;
  overflow: hidden;
  padding: 30px 0 50px;
}
#services li {
  background-color: #f1f3f6;
  background-image: -webkit-linear-gradient(top, #f1f3f6, #dde3eb);
  background-image: linear-gradient(to bottom, #f1f3f6, #dde3eb);
  border: 1px solid #d5dce7;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
  display: inline-block;
  float: left;
  font-size: 16px;
  height: 100px;
  margin-left: 12px;
  text-align: center;
  width: 150px;
}
#services li:first-child {
  margin-left: 0;
}
@media (max-width: 1023px) and (min-width: 768px) {
  #services li {
    width: 243px;
    margin-bottom: 15px;
    margin-left: 15px;
  }
  #services li:first-child, #services li:nth-child(4) {
    margin-left: 0;
  }
}
@media (max-width: 767px) and (min-width: 480px) {
  #services li {
    margin-bottom: 15px;
    width: 145px;
  }
  #services li:nth-child(3n+1) {
    margin-left: 0;
  }
}
@media (max-width: 479px) {
  #services li {
    height: auto;
    width: 100%;
    margin: 0 0 15px;
  }
}
#services a {
  background-image: url("../img/service-icons.png");
  color: #274259;
  font-weight: bold;
  display: block;
  height: 100%;
  padding: 55px 2px 0;
}
#services .calculator a {
  background-position: -48px 3px;
}
#services .network a {
  background-position: -48px -229px;
}
#services .design a {
  background-position: -540px -229px;
}
#services .reservation a {
  background-position: -540px 3px;
}
#services .agreements a {
  background-position: -55px -436px;
}
#services .construction a {
  background-position: -540px -440px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  #services a {
    padding: 60px 0 0;
  }
  #services .calculator a {
    background-position: 0 3px;
  }
  #services .network a {
    background-position: 0 -229px;
  }
  #services .design a {
    background-position: -495px -229px;
  }
  #services .reservation a {
    background-position: -495px 3px;
  }
  #services .agreements a {
    background-position: -7px -436px;
  }
  #services .construction a {
    background-position: -495px -440px;
  }
}
@media (max-width: 479px) {
  #services a {
    padding: 45px 0 10px;
  }
  #services .calculator a {
    background-position: 29px 0px;
  }
  #services .network a {
    background-position: 29px -232px;
  }
  #services .design a {
    background-position: -459px -232px;
  }
  #services .reservation a {
    background-position: -459px 0px;
  }
  #services .agreements a {
    background-position: 27px -439px;
  }
  #services .construction a {
    background-position: -459px -443px;
  }
}

.button, .hero .detail a {
  padding: 7px 20px;
  display: inline-block;
  color: #3c3c3b;
  background: #ffea00;
  border: 0;
  border-bottom: 2px solid #ae8c00;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
  -webkit-transition: background 0.2s ease-in-out;
  -moz-transition: background 0.2s ease-in-out;
  -ms-transition: background 0.2s ease-in-out;
  -o-transition: background 0.2s ease-in-out;
  transition: background 0.2s ease-in-out;
  font-size: 16px;
  line-height: 1.4;
  margin-top: 15px;
}
.button:active, .hero .detail a:active {
  position: relative;
  top: 1px;
  border-bottom: 1px solid #ae8c00;
  margin-bottom: 1px;
}
.button:hover, .hero .detail a:hover {
  background: #ffec1c;
  text-decoration: none;
}

ul.arrows {
  list-style: none;
}
ul.arrows a {
  background: url("../img/link-arrow.png") right 3px no-repeat transparent;
  padding-right: 15px;
}

#footer {
  padding: 25px 0;
}
#footer .make-enquiry {
  float: left;
  font-size: 1.167em;
  color: #ffea00;
  text-align: right;
  text-decoration: underline;
}
#footer .logo a {
  background: url("../img/logo-footer.png");
  height: 75px;
  width: 169px;
}

#footer-menu ul li a {
  font-weight: 300;
}

#page .gform_wrapper ul {
  padding: 0;
}
#page .gform_wrapper ul.gfield_radio {
  margin-left: 20px !important;
}
#page .gform_wrapper input[type=button],
#page .gform_wrapper input[type=submit] {
  background: #ffea00;
  border: 0;
  border-bottom: 2px solid #ae8c00;
  font-family: "jaf-domus", sans-serif;
  line-height: 1;
}
#page .gform_wrapper input[type=button]:active,
#page .gform_wrapper input[type=submit]:active {
  position: relative;
  top: 1px;
  border-bottom: 1px solid #ae8c00;
  margin-bottom: 1px;
}
#page .gform_wrapper input[type=button]:hover,
#page .gform_wrapper input[type=submit]:hover {
  background: #ffec1c;
  text-decoration: none;
}

/* -----------------------------
  5.0 - Custom Layout & Styles
 ---------------------------- */
/* 5.1 - Homepage */
.homepage #section-header {
  display: none;
}
.homepage .hero .detail {
  width: 608px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  .homepage .hero .detail {
    width: 481px;
  }
}
@media (max-width: 767px) {
  .homepage .hero .detail {
    padding: 20px 30px;
    width: 100%;
  }
}
.homepage .hero .video-link {
  background: url("../img/home-adp.png") center no-repeat;
  background-size: cover;
  float: right;
  line-height: 0;
  width: 352px;
  height: 200px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  .homepage .hero .video-link {
    width: 277px;
  }
}
@media (max-width: 767px) {
  .homepage .hero .video-link {
    background-position: 0 25%;
    width: 100%;
  }
}
.homepage .hero .video-link a {
  display: block;
  height: 100%;
  width: 100%;
}
.homepage .hero .video-link img {
  width: 100%;
  height: auto;
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  -ms-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}
.homepage .hero .video-link a:hover img {
  opacity: 0.75;
}
.homepage .grid {
  margin-bottom: 1em;
}
.homepage .grid h2 a {
  color: #3e3080;
}
@media (min-width: 768px) {
  .homepage .grid .grid-item.mid {
    margin: 0 15px;
  }
}
@media (max-width: 767px) {
  .homepage .grid .grid-item.mid {
    margin: 15px 0;
  }
}
.homepage .grid .thumb {
  background-color: #f6f6f6;
  display: block;
  min-height: 140px;
  text-align: center;
  padding: 23px 0;
}
.homepage .grid .thumb img {
  display: block;
  margin: auto;
  width: auto;
}

/* 5.2 - Contact */
.contact .hero {
  padding: 70px 65px 50px 50px;
}
@media (max-width: 767px) {
  .contact .hero {
    padding: 20px 30px;
  }
}
.contact .hero .detail {
  padding: 0;
  width: 400px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  .contact .hero .detail {
    width: 318px;
  }
}
@media (max-width: 767px) {
  .contact .hero .detail {
    float: none;
    width: 100%;
  }
}

.call-us, .email-us {
  color: #fff;
}

.call-us > a {
  margin-left: 10px;
}

#contact-form {
  float: right;
  width: 352px;
  margin: 0;
}
@media (max-width: 1023px) and (min-width: 768px) {
  #contact-form {
    width: 262px;
  }
}
@media (max-width: 767px) {
  #contact-form {
    float: none;
    width: 100%;
  }
}
#contact-form .gform_wrapper .gform_body,
#contact-form .gform_wrapper .gform_footer,
#contact-form .gform_wrapper .gfield {
  width: 100% !important;
}
#contact-form .gform_wrapper input[type=text],
#contact-form .gform_wrapper select {
  width: 100% !important;
}
#contact-form .gform_wrapper input[type=button],
#contact-form .gform_wrapper input[type=submit] {
  float: right;
  margin: 0;
  padding: 8px 30px;
}
#contact-form .gform_wrapper .validation_error {
  color: #ffea00;
}
#contact-form .gform_wrapper .gfield.gfield_error,
#contact-form .gform_wrapper .gfield.gfield_contains_required {
  background-color: transparent;
  border-top: 0;
  border-bottom: 0;
  padding-left: 0 !important;
}
#contact-form .gform_wrapper .gfield.gfield_error .gfield_label,
#contact-form .gform_wrapper .gfield.gfield_error .validation_message,
#contact-form .gform_wrapper .gfield.gfield_contains_required .gfield_label,
#contact-form .gform_wrapper .gfield.gfield_contains_required .validation_message {
  display: none;
}
#contact-form .gform_wrapper .gfield_error input[type=text] {
  border: 1px solid #ffea00 !important;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5), inset 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.js #contact-form .gform_wrapper form label.gfield_label {
  color: #fff;
  display: inline-block !important;
  height: auto;
  position: inherit;
  width: auto;
}

/* 5.3 - Videos */
.videos .overview {
  background: #3e3080;
  color: #eee;
  margin: 29px 0;
  padding: 40px 30px;
}
.videos .overview .content {
  float: left;
  width: 740px;
}
@media (max-width: 1023px) and (min-width: 768px) {
  .videos .overview .content {
    width: 570px;
  }
}
@media (max-width: 767px) {
  .videos .overview .content {
    width: 100%;
  }
}
.videos .download-box {
  background: #fff;
  float: right;
  padding: 25px 0;
  text-align: center;
  width: 185px;
}
@media (max-width: 767px) {
  .videos .download-box {
    padding: 25px 20px;
    width: 100%;
  }
  .videos .download-box p {
    float: left;
    text-align: left;
    width: 60%;
  }
  .videos .download-box a {
    float: right;
    margin-top: 0;
    width: 40%;
  }
}
@media (max-width: 479px) {
  .videos .download-box a,
  .videos .download-box p {
    width: 50%;
  }
  .videos .download-box p {
    text-align: center;
  }
}
.videos .grid {
  margin-bottom: 1em;
}
.videos .thumb {
  background-color: #3e3080;
  height: 168px;
  width: 100%;
}
.videos .thumb a {
  background-position: center;
  background-size: cover;
  display: block;
  height: 100%;
  width: 100%;
  -webkit-transition: opacity 0.5s ease-out;
  -moz-transition: opacity 0.5s ease-out;
  -ms-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
  transition: opacity 0.5s ease-out;
}
.videos .thumb a:hover {
  -webkit-opacity: 0.75;
  -moz-opacity: 0.75;
  -ms-opacity: 0.75;
  -o-opacity: 0.75;
  opacity: 0.75;
}
.videos .content h3 a {
  color: #3c3c3b;
}

.single-video h1 {
  color: #3c3c3b;
}

/* 5.4 - Content Page */
.resource {
  background: #f6f6f6;
  margin-bottom: 10px;
  padding: 20px;
}
.resource:last-child {
  margin-bottom: 0;
}
.resource .description {
  color: #4a4a4a;
  float: left;
  width: 73%;
}
.resource .button, .resource .hero .detail a, .hero .detail .resource a {
  margin-top: 0;
  float: right;
  text-align: center;
  width: 25%;
}
@media (max-width: 767px) {
  .resource .description,
  .resource .button,
  .resource .hero .detail a,
  .hero .detail .resource a,
  .resource h3 {
    float: none;
    text-align: center;
    width: 100%;
  }
}

/* 5.5 - Infographic */
.infographic .sm-wrapper {
  width: 100%;
}
@media (min-width: 768px) {
  .infographic #section-header {
    display: none;
  }
}
@media (max-width: 767px) and (min-width: 480px) {
  .infographic #section-header .sm-wrapper {
    width: 470px;
  }
}
.infographic #sidebar {
  z-index: 10;
}

.stage > div,
.stage > h2 {
  background-position: center;
  background-repeat: no-repeat;
  margin: auto;
  width: 100%;
}
.stage p {
  display: none;
}
.stage a {
  display: block;
  height: 100%;
  text-indent: -999px;
  width: 100%;
}

#stage1,
#stage5 {
  background-color: #3e3080;
}

#stage3,
#stage4 {
  background-color: #f1f3f6;
}

#stage2 {
  background-color: #adbf27;
}

#stage1 {
  padding-top: 125px;
}
#stage1 .title {
  background-image: url("../img/process/1-1-title.png");
  height: 155px;
}
#stage1 .two {
  background-image: url("../img/process/1-2.png");
  height: 397px;
}
@media (max-width: 767px) {
  #stage1 .two {
    background-image: url("../img/process/mobile/1-2.png");
    height: 361px;
  }
}
#stage1 .three {
  background-image: url("../img/process/1-3.png");
  height: 253px;
}
@media (max-width: 767px) {
  #stage1 .three {
    background-image: url("../img/process/mobile/1-3.png");
    height: 428px;
  }
}
#stage1 .four {
  background-image: url("../img/process/1-4.png");
  height: 370px;
}
@media (max-width: 1023px) {
  #stage1 .four {
    background-image: url("../img/process/tablet/1-4.png");
    height: 464px;
  }
}
@media (max-width: 767px) {
  #stage1 .four {
    background-image: url("../img/process/mobile/1-4.png");
    height: 521px;
  }
}
#stage1 .five {
  background-image: url("../img/process/1-5.png");
  height: 176px;
}
@media (max-width: 1023px) {
  #stage1 .five {
    background-image: url("../img/process/tablet/1-5.png");
    height: 367px;
  }
}
@media (max-width: 767px) {
  #stage1 .five {
    background-image: url("../img/process/mobile/1-5.png");
    height: 311px;
  }
}
#stage1 .six {
  position: relative;
  left: 1px;
  background-image: url("../img/process/1-6.png");
  height: 390px;
}
@media (max-width: 1023px) {
  #stage1 .six {
    background-image: url("../img/process/tablet/1-6.png");
    height: 224px;
  }
}
@media (max-width: 767px) {
  #stage1 .six {
    background-image: url("../img/process/mobile/1-6.png");
    height: 413px;
  }
}

#stage3 .title {
  background-image: url("../img/infographic_amends_042020/1 Desktop.png");
  height: 320px;
}
@media (max-width: 1023px) {
  #stage3 .title {
    background-image: url("../img/infographic_amends_042020/1 Tablet.png");
    height: 336px;
  }
}
#stage3 .two {
  position: relative;
  background-image: url("../img/infographic_amends_042020/2 Desktop.png");
  height: 223px;
}
@media (max-width: 1023px) {
  #stage3 .two {
    left: 2px;
    background-image: url("../img/infographic_amends_042020/2 Tablet.png");
    height: 353px;
  }
}
@media (max-width: 767px) {
  #stage3 .two {
    background-image: url("../img/infographic_amends_042020/2 Desktop.png");
    height: 223px;
  }
}

#stage2 .title {
  background-image: url("../img/infographic_amends_042020/3 Desktop.png");
  height: 314px;
}
#stage2 .two {
  background-image: url("../img/infographic_amends_042020/4 Desktop.png");
  height: 346px;
}
@media (max-width: 767px) {
  #stage2 .two {
    background-image: url("../img/infographic_amends_042020/4 Mobile.png");
    height: 395px;
  }
}
#stage2 .three {
  position: relative;
  left: -1px;
  background-image: url("../img/process/3-3.png");
  height: 803px;
}
@media (max-width: 768px) {
  #stage2 .three {
    left: 0px;
    background-image: url("../img/process/mobile/3-3.png");
    height: 866px;
  }
}

#stage4 .title {
  background-image: url("../img/process/4-1-title.png");
  height: 336px;
}
@media (max-width: 1023px) {
  #stage4 .title {
    height: 303px;
  }
}
#stage4 .two {
  background-image: url("../img/process/4-2.png");
  height: 331px;
}

#stage5 {
  padding-bottom: 120px;
}
#stage5 .title {
  background-image: url("../img/process/5-1-title.png");
  height: 350px;
}
#stage5 .two {
  background-image: url("../img/process/5-2.png");
  height: 348px;
}
#stage5 .three {
  background-image: url("../img/process/5-3.png");
  height: 719px;
}
@media (max-width: 767px) {
  #stage5 .three {
    background-image: url("../img/process/mobile/5-3.png");
    height: 722px;
  }
}

/* -----------------------------
  6.0 - Non-Semantic helper classes
 ---------------------------- */
/* Clearfix */
.cf:after {
  content: "";
  display: table;
  clear: both;
}

/* Image replacement */
.ir, .videos .thumb a, .stage > h2 {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */
  *text-indent: -9999px;
}
.ir:before, .videos .thumb a:before, .stage > h2:before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
}
