/*
-----------------------------------------------
imarketsolutions.com 
Stylesheet: Home.css
Created: 8/28/2013
Author:  Ben Schiling
Organization: iMarket Solutions
----------------------------------------------- */

/* --- BEGIN HOMEPAGE --------------------------------------------------------------------------------------------------------------------------------- */

/* --- HOMEPAGE - HERO --- */
#container-banner {
  background-position: center;
  background-size: cover;
  padding-top: 60px;
  padding-bottom: 117px;
  position: relative;
}
#container-banner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(219, 240, 255, 0.85);
}
#container-banner::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100px;
  left: 0;
  bottom: 0;
  background-image: url("/assets/templates/main/images/other/image-hero.svg");
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: bottom center;
}
#hero-outer {
  text-align: center;
}
.hero-content-box {
  position: relative;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
#hero-outer .hero-title {
  margin-top: 0px;
  margin-bottom: 10px;
  font-size: 4.5em;
}
#hero-outer .hero-subtitle {
  font-size: 2.4em;
  margin-top: 0;
  margin-bottom: 10px;
}
#hero-outer .hero-small {
  text-transform: none;
  font-family: 'Open Sans';
  margin: 0 auto 35px auto;
  max-width: 350px;
}
@media all and (max-width: 400px) {
  #hero-outer .hero-title {
    font-size: 3.6em;
  }
}
@media all and (min-width: 571px) {
  #hero-outer .hero-title {
    font-size: 4.8em;
  }
}
@media all and (min-width: 801px) {
  #container-banner {
    padding-top: 90px;
    padding-bottom: 512px;
  }
  #container-banner::before {
    display: none;
  }
  #container-banner::after {
    height: 240px;
  }
  .hero-content-box {
    max-width: 100%;
  }
  #hero-outer .hero-subtitle {
    margin-bottom: 5px;
    font-size: 3em;
  }
  #hero-outer .hero-title {
    font-size: 5.2em;
    margin-bottom: 5px;
  }
  #hero-outer .hero-small {
    max-width: 100%;
  }
}
@media all and (min-width: 1025px) {
  #hero-outer .hero-title {
    font-size: 5.5em;
  }
}

/* --- HOMEPAGE - Quicklinks --- */
#quicklinks {
  background-color: #e0f2fe;
  padding-top: 20px;
  padding-bottom: 25px;
}
#quicklinks .secondary-tools-heading {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}
#quicklinks .quicklinks-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
#quicklinks .ql {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  height: 175px;
  width: 175px;
  background-color: #f9982a;
  border: solid 10px #f9982a;
  text-align: center;

}
#quicklinks .ql:hover,
#quicklinks .ql:active {
  background-color: #fff;
}
#quicklinks .ql span {
  font-size: 2.4em;
  color: #262626;
  font-weight: 700;
  line-height: 1.3em;
}
@media all and (min-width: 801px) {
  #quicklinks {
    padding-top: 40px;
    padding-bottom: 75px;
  }
  #quicklinks .secondary-tools-heading {
    margin-bottom: 30px;
  }
  #quicklinks .quicklinks-wrap {
    max-width: 100%;
    gap: 20px;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }
  #quicklinks .ql {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
}

/* --- HOMEPAGE - Home Top Content --- */
#home-top-content {
  background-color: #fff;
  padding-top: 30px;
  padding-bottom: 0;
}
.home-top-content-box h1 {
  margin-top: 0;
  margin-bottom: 5px;
}
.home-top-content-button {
  margin-top: 30px;
  text-align: left;
  margin-bottom: 70px;
}
.home-top-content-image img {
  max-width: 100%;
  height: auto;
}
@media all and (max-width: 800px) {
  .home-top-content-image .desktop-image {
    display: none;
  }
}
/* responsive.css */
@media all and (min-width: 801px) {
  #home-top-content {
    padding-top: 0;
    padding-bottom: 80px;
    display: flex;
  }
  #home-top-content > .width-limiter {
    position: relative;
    width: 58%;
  }
  #home-top-content > .width-limiter:last-of-type {
    width: 42%;
  }
  .webp #home-top-content > .width-limiter:before {
    background-image: url(/assets/templates/main/images/other/image-top-content.webp);  
  }
  .no-webp #home-top-content > .width-limiter:before {
    background-image: url(/assets/templates/main/images/other/image-top-content.jpg);  
  }
  #home-top-content > .width-limiter:before {
    position: absolute;
    height: calc(100% + 150px);
    width: 55%;
    right: 0;
    top: -75px;
    background-position: center;
    aspect-ratio: auto;
    z-index: 1;
  }
  .home-top-content-box {
    padding: 0 30px 0 0;
    max-width: 775px;
    margin: 0 0 0 auto;
    position: relative;
    z-index: 3;
  }
  #home-top-content .hc-start {
    margin-top: 0;
  }
  .home-top-content-button {
    text-align: left;
    margin-bottom: 0;
  }
  .home-top-content-image .mobile-image {
    display: none;
  }
}
@media all and (max-width: 800px) {
  #home-top-content > .width-limiter {
    width: 100%;
  }
}

#testimonials-secondary {
  padding-top: 0;
}

/* --- HOMEPAGE - MAIN CONTENT --- */

/* --- Start Main Content Accordion --- */
#home-main-content {
  background-color: #1c5d8c;
  padding-top: 30px;
  padding-bottom: 70px;
}
#home-main-content .hmc-title {
  color: #fff;
  text-align: center;
  max-width: 330px;
  margin: 0 auto 10px;
}
#home-main-content .hmc-subtitle {
  text-align: center;
  color: #fff;
  margin-top: 0;
  margin-bottom: 25px;
}
#main-content-accordion {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
.acc-limiter {
  width: 100%;
}
.acc-inner-content {
  padding: 10px 20px 30px;
  color: #fff;
}
.acc-learn-more {
  margin-bottom: 0;
  text-transform: uppercase;
  font-weight: 700;
}
.acc-learn-more a {
  color: #fff;
}
.acc-learn-more a:hover,
.acc-learn-more a:active {
  text-decoration: none;
}
/* Accordion panel on mobile */
.acc-inner-content { 
  display: none;
}
.acc-inner-content p,
.acc-inner-content h4 {
  color: #fff;
}
.acc-inner-content h4:first-of-type {
  margin-top: 0;
}
.home-mc-image {
  display: none;
}
/* Show all accordion panels if no js */
/* Show inner content if outer is active */
html.no-js .acc-inner-content,
.acc-content.active .acc-inner-content {
  display: block;
}
.acc-title-outer {
  width: 100%;
  position: relative;
  margin-bottom: 15px;
  background-color: #fff;
  padding: 10px 45px 10px 60px;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.25);
  color: #1d3649;
}
.acc-trigger:before {
  position: absolute;
  content: '';
  height: 32px;
  width: 40px;
  top: 50%;
  left: 10px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.acc-trigger#acc-1:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-guarantee-mobile.svg);
}
.tab-item:nth-of-type(1) button::before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-guarantee.svg);
}
.acc-trigger#acc-2:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-heating-mobile.svg);
}
.tab-item:nth-of-type(2) button::before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-heating.svg);
}
.acc-trigger#acc-3:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-ac-mobile.svg);
}
.tab-item:nth-of-type(3) button::before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-ac.svg);
}
.acc-trigger#acc-4:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-iaq-mobile.svg);
}
.tab-item:nth-of-type(4) button::before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-iaq.svg);
}
.acc-trigger#acc-5:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-plumbing-mobile.svg);
}
.tab-item:nth-of-type(5) button::before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-plumbing.svg);
}
.acc-trigger#acc-6:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-electrical.png);
}
.tab-item:nth-of-type(6) button::before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-electrical.png);
}
.acc-trigger:after {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  right: 20px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(0deg);
  -ms-transform: translateY(-50%) rotate(0deg);
  transform: translateY(-50%) rotate(0deg);
  background-image: url(/assets/templates/main/images/icons/icon-arrow-down.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
  -webkit-transform: translateY(-50%) rotate(90deg);
  -ms-transform: translateY(-50%) rotate(90deg);
  transform: translateY(-50%) rotate(90deg);
}
/* Rotate arrow if active */
.acc-content.active .acc-trigger:after {
  -webkit-transform: translateY(-50%) rotate(270deg);
  -ms-transform: translateY(-50%) rotate(270deg);
  transform: translateY(-50%) rotate(270deg);
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}
.acc-trigger {
  display: block;
}

.acc-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 2.4em;
} 
.acc-title a {
  text-decoration: none;
  color: #1d3649;
}

#main-content-nav {
  display: none;
}
.home-main-buttons {
  text-align: center;
  margin-top: 25px;
}

#main-content-accordion .cta-button {
  margin: 20px auto;
}
#home-main-content .cta-button a:hover,
#home-main-content .cta-button a:active {
  background-color: #1d3649;
}

@media all and (min-width: 801px) {
  /* Tab Styles */
  #main-content-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  }
  .tab-nav {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    /* -ms-flex-wrap: wrap;
    flex-wrap: wrap; */
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
    padding-left: 0;
    padding-bottom: 0;
    margin-bottom: 31px;
    list-style: none;
    border-bottom: 1px solid #fff;
  }
  .tab-link {
    display: block;
    padding: .5rem 1rem;
    color: #0d6efd;
    text-decoration: none;
    -webkit-transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
    -o-transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
  }
  #home-main-content .tab-item {
    margin-bottom: 0;
  }
  .tab-item button {
    background-color: transparent;
    color: #fff;
    font-family: "Open Sans";
    font-size: 18px;
    font-weight: 400;
    position: relative;
    padding-top: 80px;
    padding-bottom: 10px;
    height: auto;
    border-radius: 0;
    text-transform: none;
  }
  #main-content-nav li button::before {
    content: '';
    position: absolute;
    display: inline-block;
    left: calc(50% - 34px);
    top: 0px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 74px;
    height: 71px;
    margin: auto;
    -webkit-transition: top 0.2s;
    -o-transition: top 0.2s;
    transition: top 0.2s;
  }

  .tab-item button::after {
    content:'';
    position:absolute;
    bottom:-13px;
    width: 100%;
    height:25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("/assets/templates/main/images/mc/icon-main-content.svg");
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
  }

  /* Active styles for tab button */
  button.tab-link:hover,
  /* button.tab-link.active, */
  button.tab-link.active-d {
    text-shadow: 1px 0 0 #fff;
  }

  button.tab-link:hover::after,
  button.tab-link.active-d::after {
    opacity: 1;
  }
  .home-mc-image {
    display: block;
  }
  .home-mc-image img {
    display: none;
  }
  #main-content-accordion .acc-content {
    display: none;
    opacity: 0;
    min-height: 318px;
    text-align: left;
  }

  #main-content-accordion > .acc-content.active-d {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 1;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 0 30px 0;
  }
  .acc-title {
    font-size: 3.0em;
  }
  .home-mc-image img {
    display: block;
  }
}

/* --- Main Content Accordion Desktop --- */
@media all and (min-width: 801px) {
  #home-main-content {
    padding-top: 45px;
    padding-bottom: 100px;
  }
  #home-main-content .hmc-title {
    max-width: 100%;
    margin-bottom: 45px;
  }
  .acc-limiter {
    max-width: 1250px;
    margin: 0 auto;
    width: calc(100% - 40px);
  }
  #main-content-accordion {
    display: block;
  }
  .display-mobile {
    display: none;
  }
  .acc-title-outer {
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding-right: 0;
  }
  .acc-trigger:after {
    content: none;
  }
  .acc-content {
    padding: 20px 30px;
    background-color: transparent;
    text-align: center;
    border-bottom: 1px solid #fff;
  }
  .acc-inner-content {
    display: block;
    padding: 0 0 0 40px;
  }
  #main-content-accordion .acc-trigger:before {
    content: none;
  }
  #acc-content-1 .acc-title-outer {
    display: none;
  }
  .acc-title-outer {
    padding-left: 40px;
  }
  .acc-title-outer a {
    color: #fff;
  }
}

/* --- Promotions --- */
#promotions-secondary li a {
  margin-left: 36px;
}
@media all and (min-width: 801px) {
  #promotions-secondary li a {
    margin-left: 22px;
  }
}

/* --- Static Campaign Section --- */
@media all and (max-width: 800px) {
  #cmpgn-st .cmpgn-st-hp-desktop {
    display: none;
  }
}
@media all and (min-width: 801px) {
  #cmpgn-st .cmpgn-st-hp-mobile {
    display: none;
  }
}

/* --- END HOMEPAGE --- */