/*
-----------------------------------------------
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: 70px;
  position: relative;
}

#container-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 86, 150, 0.8);
  z-index: 0;
}

#container-banner::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/assets/templates/main/images/other/divider-hero.svg);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100%;
  z-index: 0;
}

#hero-outer {
  text-align: center;
  position: relative;
  z-index: 2;
}

#hero-outer img {
  width: 100%;
  height: auto;
}

.hero-ready img {
  max-width: 339px;
}

.hero-spacer img {
  max-width: 131px;
}

.hero-content-box {
  padding: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#hero-outer .hero-title {
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 5.5em;
  color: #fff;
  text-transform: uppercase;
}

#hero-outer .hero-subtitle {
  margin-top: 0;
}

#hero-outer .hero-promise {
  list-style-type: none;
  padding-left: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 30px;
  gap: 10px;
  max-width: 351px;
  margin: 15px auto 0;
}

#hero-outer .hero-promise li {
  display: inline-block;
  font-size: 2.4em;
  line-height: 1.3em;
  font-weight: 400;
  color: #fff;
  position: relative;
  padding-left: 35px;
  min-height: 20px;
}

#hero-outer .hero-promise li:before {
  content: '';
  background-image: url(/assets/templates/main/images/icons/icon-check.svg);
  position: absolute;
  left: 0;
  top: 3px;
  height: 19px;
  width: 25px;
}

@media all and (max-width:399px) {
  #hero-outer .hero-promise li {
    font-size: 2em;
  }
}

@media all and (min-width: 571px) {
  #hero-outer .hero-title {
    font-size: 4.8em;
  }
}

@media all and (min-width: 801px) {
  #container-banner {
    padding-top: 44px;
    padding-bottom: 80px;
  }

  #container-banner::before {
    position: unset;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background-color: transparent;
  }

  .hero-content-box {
    width: 60%;
    max-width: 510px;
    margin-left: 0;
    padding-top: 50px;
    padding-bottom: 37px;
    background-color: rgba(1, 86, 150, 0.85);
    border-radius: 30px;
  }

  #hero-outer .hero-promise {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 36px;
    padding-top: 0px;
    max-width: none;
  }

  #hero-outer .hero-promise li:before {
    top: 5px;
  }

  #hero-outer .hero-title {
    font-size: 5.2em;
  }
}

@media all and (min-width: 1025px) {
  #hero-outer .hero-title {
    font-size: 6em;
  }

  .hero-ready img {
    max-width: 376px;
  }

  #hero-outer .hero-promise li {
    font-size: 3em;
  }
}

/* --- 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: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#quicklinks .ql {
  display: flex;
  flex-direction: column;
  align-items: 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;
    flex-wrap: nowrap;
  }

  #quicklinks .ql {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
}

/* --- HOMEPAGE - Home Top Content --- */
#home-top-content {
  background-color: #f2f2f2;
  padding-top: 70px;
  padding-bottom: 35px;
}

#home-top-content>.width-limiter:before {
  content: "";
  display: block;
  width: 100%;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  aspect-ratio: 1.2 / 1;
  background-image: url(/assets/templates/main/images/other/image-top-content-mobile.webp);
}

.home-top-content-box {
  padding-top: 30px;
  padding-bottom: 41px;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow:
    0 6px 10px -4px rgba(0, 0, 0, 0.2),
    /* bottom */
    -6px 0 10px -4px rgba(0, 0, 0, 0.2),
    /* left */
    6px 0 10px -4px rgba(0, 0, 0, 0.2);
  /* right */
}

.home-top-content-box h1 {
  margin-top: 0;
  margin-bottom: 20px;
}

.home-top-content-button {
  margin-top: 30px;
  text-align: left;
}

/* responsive.css */
@media all and (min-width: 801px) {
  #home-top-content {
    padding-top: 113px;
    padding-bottom: 60px;
    position: relative;
  }

  #home-top-content::after {
    content: '';
    position: absolute;
    top: calc(50% - 230px);
    left: calc(50% - 800px);
    width: 1682px;
    height: 455px;
    background-image: url(/assets/templates/main/images/icons/icon-hero.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  #home-top-content>.width-limiter {
    position: relative;
  }

  #home-top-content>.width-limiter:before {
    position: absolute;
    height: 60%;
    width: 55%;
    left: 0;
    top: calc(50% - 400px);
    border-radius: 30px;
    background-position: center;
    aspect-ratio: auto;
    z-index: 1;
    background-image: url(/assets/templates/main/images/other/image-top-content.webp);
  }

  .home-top-content-box {
    padding: 30px 20px 50px;
    max-width: 60%;
    position: relative;
    z-index: 3;
    margin: 0 0 0 auto;
    border-radius: 30px;
  }

  .home-top-content-button {
    text-align: left;
  }
}

@media all and (min-width: 1025px) {
  .home-top-content-box h1 {
    margin-bottom: 10px;
  }

  #home-top-content>.width-limiter:before {
    height: 80%;
    top: calc(50% - 400px);
  }
}

@media all and (min-width: 1301px) {
  #home-top-content>.width-limiter:before {
    height: calc(100% + 30px);
    top: calc(50% - 445px);
    left: -10px;
  }
}

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

/* --- Start Main Content Accordion --- */
#home-main-content {
  background-color: #fff;
  padding-top: 60px;
  padding-bottom: 70px;
}

#home-main-content .hmc-title {
  color: #122e52;
  text-align: center;
  max-width: 330px;
  margin: 0 auto 13px;
}

#home-main-content .hmc-subtitle {
  text-align: center;
  color: #fff;
  margin-top: 0;
  margin-bottom: 25px;
}

#main-content-accordion {
  display: flex;
  flex-direction: column;
}

.acc-limiter {
  width: 100%;
}

.acc-inner-content {
  padding: 10px 20px 30px;
  color: #404041;
}

.acc-learn-more {
  margin-bottom: 0;
  text-transform: uppercase;
  font-weight: 700;
}

.acc-learn-more a {
  color: #d73c28;
}

.acc-learn-more a:hover,
.acc-learn-more a:active {
  text-decoration: none;
  color: #8c454a;
}
/* Accordion panel on mobile */
.acc-inner-content {
  display: none;
}

.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: #122e52;
  padding: 10px 50px 10px 50px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
}

.acc-trigger:before {
  position: absolute;
  content: '';
  height: 24px;
  width: 22px;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* filter: brightness(0) invert(1); */
}

.acc-heating .acc-trigger:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-heating-mobile.svg);
}

button.tab-heating .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-heating.svg);
}

button.tab-heating:hover .hmc-button-image,
button.tab-heating.active-d .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-heating-mobile.svg);
}

.acc-air-conditioning .acc-trigger:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-ac-mobile.svg);
}

button.tab-air-conditioning .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-ac.svg);
}

button.tab-air-conditioning:hover .hmc-button-image,
button.tab-air-conditioning.active-d .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-ac-mobile.svg);
}

.acc-plumbing .acc-trigger:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-plumbing-mobile.svg);
}

button.tab-plumbing .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-plumbing.svg);
}

.acc-indoor-air-quality .acc-trigger:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-iaq-mobile.svg);
}

button.tab-indoor-air-quality .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-iaq.svg);
}

button.tab-indoor-air-quality:hover .hmc-button-image,
button.tab-indoor-air-quality.active-d .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-iaq-mobile.svg);
}

.acc-electrical .acc-trigger:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-electrical-mobile.svg);
}

button.tab-electrical .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-electrical.svg);
}

.acc-maintenance .acc-trigger:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-maintenance-mobile.svg);
}

button.tab-maintenance .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-maintenance.svg);
}

.acc-commercial-hvac .acc-trigger:before {
  background-image: url(/assets/templates/main/images/mc/icon-mc-commercial-mobile.svg);
}

button.tab-commercial-hvac .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-commercial.svg);
}

button.tab-commercial-hvac:hover .hmc-button-image,
button.tab-commercial-hvac.active-d .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-commercial-mobile.svg);
}

.acc-trigger:after {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  right: 20px;
  top: 50%;
  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;
  transition: all 0.2s;
  transform: translateY(-50%) rotate(90deg);
}

/* Rotate arrow if active */
.acc-content.active .acc-trigger:after {
  transform: translateY(-50%) rotate(270deg);
  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: #fff;
}

#main-content-nav {
  display: none;
}

.home-main-buttons {
  text-align: center;
  margin-top: 25px;
}

#main-content-accordion .cta-button {
  margin: 20px auto;
}

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

  /* Tab Styles */
  .acc-title a {
    color: #122e52;
  }

  #main-content-nav {
    display: flex;
    justify-content: center;
  }

  .tab-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-left: 0;
    padding-bottom: 0;
    margin-bottom: 20px;
    list-style: none;
    border-bottom: 1.2px solid #122e52;
  }

  .tab-link {
    display: block;
    padding: .5rem 1rem;
    color: #0d6efd;
    text-decoration: none;
    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: #fff;
    color: #404041;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    padding-top: 10px;
    padding-left: 65px;
    padding-right: 40px;
    padding-bottom: 10px;
    height: auto;
    border-radius: 0;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    text-transform: none;
  }

  #main-content-nav li button::before,
  #main-content-nav li button .hmc-button-image {
    content: '';
    position: absolute;
    display: inline-block;
    left: 25px;
    top: 6px;
    background-size: auto 24px;
    background-position: center;
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
    margin: auto;
    transition: top 0.2s;
  }

  #main-content-nav li button::before {
    /* background-color: #fff; */
    border-radius: 50%;
  }

  /* #main-content-nav li button.active-d:before,
  #main-content-nav li button:hover:before,
  #main-content-nav li button:active:before {
    background-color: #122e52;
  } */
  /* #main-content-nav li button.active-d .hmc-button-image,
  #main-content-nav li button:hover .hmc-button-image,
    #main-content-nav li button:active .hmc-button-image {
    filter: brightness(0) invert(1);
  } */

  /* .tab-item button::after {
    content:'';
    position:absolute;
    bottom:-3px;
    height:5px;
    background-color:#f9982a;
    left:51%;
    right:51%;
    transition-property:left,right;
    transition-duration:.2s;
    transition-timing-function:ease-out;
  } */

  /* Active styles for tab button */
  button.tab-link:hover,
  /* button.tab-link.active, */
  button.tab-link.active-d {
    color: #fff;
    background-color: #122e52;
  }

  /* button.tab-link:hover::after,
  button.tab-link.active-d::after {
    left: 0;
    right: 0;
  } */
  .home-mc-image {
    display: block;
    width: 55%;
  }

  .home-mc-image img {
    border-radius: 20px;
    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: flex;
    opacity: 1;
    align-items: center;
    padding: 0;
  }

  #main-content-accordion>.acc-content>div:not(.home-mc-image) {
    width: 45%;
  }

  .acc-title {
    font-size: 3.0em;
  }

  .home-mc-image img {
    display: block;
    width: 100%;
    height: auto;
  }

  .home-main-buttons {
    border-top: 1.2px solid #122e52;
    padding-top: 34px;
  }
}

@media all and (min-width: 801px) and (max-width:1024px) {
  .tab-item button {
    font-size: 14px;
    padding-left: 50px;
    padding-right: 20px;
  }

  #main-content-nav li button::before,
  #main-content-nav li button .hmc-button-image {
    left: 15px;
  }
}

@media all and (min-width:1025px) {
  .tab-item button {
    font-size: 18px;
  }

  #main-content-nav li button::before,
  #main-content-nav li button .hmc-button-image {
    background-size: auto 27px;
  }
}

/* --- Main Content Accordion Desktop --- */
@media all and (min-width: 801px) {
  #home-main-content {
    padding-top: 80px;
    padding-bottom: 100px;
  }

  #home-main-content .hmc-title {
    max-width: 100%;
    margin-bottom: 48px;
  }

  .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;
    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-left: 0px;
    padding-right: 68px;
    padding-top: 20px;
  }

  #main-content-accordion .acc-trigger:before {
    content: none;
  }

  .acc-title-outer {
    padding-left: 0;
    margin: 0;
    padding-bottom: 0;
  }
}

/* --- 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 --- */

/* RWL Homepage Styles */
section#recent-projects {
  padding-top: 20px;
  padding-bottom: 20px;
}

section#recent-projects .h1 {
  margin-top: 0;
  text-align: center;
}

section#recent-projects .rp-button {
  text-align: center;
  margin-top: 15px;
}