/*
-----------------------------------------------
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: 150px;
  padding-bottom: 33px;
}
#hero-outer {
  text-align: center;
}
.hero-content-box {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px 24px 44px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
#hero-outer .hero-title {
  margin-top: 0px;
  margin-bottom: 22px;
  font-size: 4.5em;
  color: #262626;
}
#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: center;
  justify-content: center;
  gap: 20px;
}
#hero-outer .hero-promise li {
  display: inline-block;
  font-size: 2.0em;
  line-height: 1.3em;
  font-weight: 700;
  color: #034ea2;
  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-circle.svg);
  position: absolute;
  left: 0;
  top: 3px;
  height: 20px;
  width: 20px;
}
@media all and (min-width: 571px) {
  #hero-outer .hero-title {
    font-size: 4.8em;
  }
}
@media all and (min-width: 801px) {
  #container-banner {
    padding-top: 80px;
    padding-bottom: 230px;
  }
  .hero-content-box {
    width: 60%;
    max-width: 620px;
    margin-left: 0;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  #hero-outer .hero-promise {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 40px;
    padding-top: 20px
  }
  #hero-outer .hero-promise li {
    font-size: 2.4em;
  }
  #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: 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: 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: #eef8fe;
  padding-top: 60px;
  padding-bottom: 60px;
}
#home-top-content > .width-limiter:before {
  content: "";
  display: block;
  width: 100%;
  background-size: cover;
  aspect-ratio: 1.2 / 1;
  background-image: url(/assets/templates/main/images/other/image-top-content-mobile.webp);
}

.home-top-content-box {
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.95);
}
.home-top-content-box h1 {
  margin-top: 0;
  margin-bottom: 5px;
}
.home-top-content-button {
  margin-top: 30px;
  text-align: center;
}
/* responsive.css */
@media all and (min-width: 801px) {
  #home-top-content {
    padding-top: 170px;
    padding-bottom: 170px;
  }
  #home-top-content > .width-limiter {
    position: relative;
  }
  #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;
    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;
  }
  .home-top-content-button {
    text-align: left;
  }
}

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

/* --- Start Main Content Accordion --- */
#home-main-content {
  background-color: #4596d1;
  padding-top: 60px;
  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: flex;
  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;
}
.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: #034ea2;
  padding: 10px 60px 10px 60px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
}
.acc-trigger:before {
  position: absolute;
  content: '';
  height: 32px;
  width: 40px;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0) invert(1);
}
.acc-heating .acc-trigger:before,
button.tab-heating .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-heating.svg);
}
.acc-air-conditioning .acc-trigger:before,
button.tab-air-conditioning .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-ac.svg);
}
.acc-plumbing .acc-trigger:before,
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,
button.tab-indoor-air-quality .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-iaq.svg);
}
.acc-electrical .acc-trigger:before,
button.tab-electrical .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-electrical.svg);
}
.acc-maintenance .acc-trigger:before,
button.tab-maintenance .hmc-button-image {
  background-image: url(/assets/templates/main/images/mc/icon-mc-maintenance.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 */
  #main-content-nav {
  display: flex;
  justify-content: center;
  }
  .tab-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-left: 0;
    padding-bottom: 0;
    margin-bottom: 20px;
    list-style: none; 
    border-bottom: 1px solid #fff;
  }
  .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: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    padding-top: 80px;
    padding-bottom: 10px;
    height: auto;
    border-radius: 0;
    text-transform: none;
  }
  #main-content-nav li button::before,
  #main-content-nav li button .hmc-button-image {
    content: '';
    position: absolute;
    display: inline-block;
    left: calc(50% - 34px);
    top: 0px;
    background-size: auto 45px;
    background-position: center;
    background-repeat: no-repeat;
    width: 68px;
    height: 68px;
    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: #034ea2;
  }
  #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;
  }

  button.tab-link:hover::after,
  button.tab-link.active-d::after {
    left: 0;
    right: 0;
  }
  .home-mc-image {
    display: block;
  }
  .home-mc-image img {
    border-radius: 5px;
    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;
  }
  .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: 80px;
    padding-bottom: 100px;
  }
  #home-main-content .hmc-title {
    max-width: 100%;
  }
  .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;
  }
  #main-content-accordion .acc-trigger:before {
    content: none;
  }
  .acc-title-outer {
    padding-left: 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;
}
