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

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

/* --- HOMEPAGE - HERO --- */
#container-banner {
  background-position: bottom;
  background-size: cover;
  padding-top: 63px;
  padding-bottom: 344px;
  position: relative;
}
#container-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 400px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(240, 238, 255, 0.56) 20%, rgba(255, 255, 255, 0) 100%);
}
#container-banner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 11px;
  background: linear-gradient(to right, #db0915 50%, #055e9d 50%);
}
#hero-outer {
  text-align: center;
  position: relative;
  z-index: 1;
}
#hero-outer .width-limiter {
  width: calc(100% - 38px);
}
.hero-content-box {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
#hero-outer .hero-title {
  margin-top: 0px;
  margin-bottom: 8px;
  font-size: 7em;
  line-height: 1em;
  text-align: left;
}
#hero-outer .hero-title .hero-red {
  color: #db0915;
}
#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;
  gap: 21px;
}
#hero-outer .hero-promise li {
  display: inline-block;
  font-size: 1.8em;
  line-height: 30px;
  font-weight: 700;
  position: relative;
  padding-left: 43px;
  min-height: 20px;
}
#hero-outer .hero-promise li:before {
  content: "";
  background-image: url(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/icons/icon-check.svg);
  position: absolute;
  left: 2px;
  top: -3px;
  height: 34px;
  width: 34px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
@media all and (min-width: 571px) {
  #hero-outer .hero-title {
    font-size: 4.8em;
  }
}
@media all and (min-width: 801px) {
  #container-banner {
    padding-top: 96px;
    padding-bottom: 168px;
  }
  #container-banner::before {
    width: 1163px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(240, 238, 255, 0.56) 20%, rgba(255, 255, 255, 0) 100%);
  }
  .hero-content-box {
    width: 60%;
    max-width: 517px;
    margin-left: 0;
  }
  #hero-outer .hero-promise {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 40px;
    padding-top: 32px;
    justify-content: start;
  }
  #hero-outer .hero-promise li {
    font-size: 2.4em;
    padding-left: 51px;
  }
  #hero-outer .hero-promise li:before {
    top: -5px;
    width: 39px;
    height: 38px;
  }
  #hero-outer .hero-title {
    font-size: 5.2em;
  }
}
@media all and (min-width: 1025px) {
  #hero-outer .hero-title {
    font-size: 10em;
    line-height: 0.88em;
  }
}

/* --- HOMEPAGE - Quicklinks --- */
#quicklinks {
  background-color: #e2e7ea;
  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: 10px;
  align-items: stretch;
  justify-content: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -133px;
  position: relative;
}
#quicklinks .ql {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 15px;
  width: calc(50% - 5px);
  text-decoration: none;
  background-color: #ffffff;
  text-align: center;
  padding: 20px 30px 18px;
  border-radius: 20px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.35);
}

#quicklinks .ql:hover,
#quicklinks .ql:active {
  background-color: #feb92f;
}
#quicklinks .ql span {
  font-size: 1.8em;
  color: #262626;
  font-weight: 700;
  line-height: 1.55em;
}
@media all and (min-width: 801px) {
  #quicklinks {
    padding-top: 40px;
    padding-bottom: 87px;
  }
  #quicklinks .secondary-tools-heading {
    margin-bottom: 30px;
  }
  #quicklinks .quicklinks-wrap {
    max-width: 100%;
    gap: 20px;
    flex-wrap: nowrap;
    margin-top: -157px;
  }
  #quicklinks .ql {
    gap: 13px;
    padding: 33px 26px 35px;
  }
  #quicklinks .ql img {
    max-width: 114px;
    margin: 0 auto;
    width: 100%;
  }
  #quicklinks .ql span {
    font-size: 24px;
    line-height: 28px;
  }
}

/* --- HOMEPAGE - Home Top Content --- */
#home-top-content {
  background-color: #e2e7ea;
  padding-top: 19px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  position: relative;
}
#home-top-content::before {
  content: "";
  display: block;
  width: 100%;
  background-size: cover;
  aspect-ratio: 0.882 / 1;
  background-image: url(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/backgrounds/bg-top-content-mobile.webp);
}
.home-top-image-caption {
  position: absolute;
  bottom: 73.5vw;
  left: 59.7vw;
}
.home-top-image-caption p {
  font-size: 14px;
  line-height: 28px;
  margin-bottom: 0;
  font-style: italic;
  color: #2b2b2b;
}
.home-top-content-box {
  padding-top: 20px;
  padding-bottom: 37px;
}

.home-top-content-box h1 {
  margin-top: 0;
  margin-bottom: 8px;
}
.home-top-content-button {
  margin-top: 29px;
}
/* responsive.css */
@media all and (min-width: 801px) {
  #home-top-content {
    padding-top: 0;
    padding-bottom: 0;
  }
  #home-top-content {
    position: relative;
  }
  #home-top-content:before {
    position: absolute;
    height: 100%;
    width: 40.625vw;
    left: 0;
    bottom: 0;
    right: initial;
    top: initial;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    aspect-ratio: unset;
    z-index: 1;
    background-image: url(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/backgrounds/bg-top-content.webp);
  }
  .home-top-content-box {
    padding: 0 0 101px;
    max-width: 61%;
    position: relative;
    z-index: 3;
    margin-left: auto;
  }
  .home-top-content-box .width-limiter {
    width: 100%;
  }
  .home-top-content-button {
    text-align: left;
    margin-top: 21px;
  }
  .home-top-image-caption {
    bottom: 32.51vw;
    left: 30.1vw;
    z-index: 1;
  }
  .home-top-image-caption p {
    font-size: 16px;
  }
  .home-top-content-box h1 {
    margin-top: 4px;
    margin-bottom: 12px;
  }
  .home-top-content-box .width-limiter > p:last-of-type {
    margin-bottom: 0;
  }
}

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

/* --- Start Main Content Accordion --- */

#home-video {
  background-image: url(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/backgrounds/bg-video-mobile.webp);
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  position: relative;
  text-align: center;
  padding-top: 63px;
}
#home-video::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.9);
}
#home-video .width-limiter {
  position: relative;
  z-index: 1;
  width: calc(100% - 41px);
}
#home-video h2.h1 {
  margin: 0;
  font-size: 34px;
  line-height: 42px;
}
#home-video h2.h1 span.text-red {
  color: #db0915;
}
#home-video h3 {
  margin-top: -6px;
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 36px;
  color: #2b2b2b;
}
#home-main-content {
  padding-top: 64px;
  padding-bottom: 143px;
}
#home-main-content .hmc-title {
  text-align: center;
  max-width: 330px;
  margin: 0 auto 19px;
}
#home-main-content .hmc-subtitle {
  text-align: center;
  color: #fff;
  margin-top: 0;
  margin-bottom: 25px;
}

@media all and (min-width: 801px) {
  #home-video {
    background-image: url(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/backgrounds/bg-video.webp);
    padding-top: 92px;
  }
  #home-video h2.h1 {
    font-size: 45px;
    line-height: 54px;
  }
  #home-video h3 {
    font-size: 30px;
    line-height: 36px;
    margin-top: 10px;
    margin-bottom: 29px;
  }
  .home-video-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
  }
}

#main-content-accordion {
  display: flex;
  flex-direction: column;
}
.acc-limiter {
  width: 100%;
}
.acc-inner-content {
  padding: 7px 20px 16px;
}
.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: 11px;
  background-color: #2b2b2b;
  padding: 11px 48px 6px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
}
.acc-trigger:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 37px;
  top: 52%;
  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(https://dewees-hvac.imarketbeta.com/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(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/mc/icon-mc-ac.svg);
}
.acc-plumbing .acc-trigger:before,
button.tab-plumbing .hmc-button-image {
  background-image: url(https://dewees-hvac.imarketbeta.com/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(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/mc/icon-mc-iaq.svg);
}
.acc-electrical .acc-trigger:before,
button.tab-electrical .hmc-button-image {
  background-image: url(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/mc/icon-mc-electrical.svg);
}
.acc-maintenance .acc-trigger:before,
button.tab-maintenance .hmc-button-image {
  background-image: url(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/mc/icon-mc-maintenance.svg);
}
.acc-commercial-hvac .acc-trigger:before,
button.tab-commercial-hvac .hmc-button-image {
  background-image: url(https://dewees-hvac.imarketbeta.com/assets/templates/main/images/mc/icon-mc-commercial-active.svg);
}

.acc-trigger:after {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  background-image: url(https://dewees-hvac.imarketbeta.com/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: 23px;
}

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

@media all and (min-width: 801px) {
  /* Tab Styles */
  #main-content-nav {
    display: flex;
    justify-content: center;
  }
  .acc-title a {
    color: #055e9d;
  }
  .tab-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding-left: 0;
    padding-bottom: 0;
    margin-bottom: 20px;
    list-style: none;
    border-bottom: 1px solid #4b90e2;
  }
  .tab-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  }
  #home-main-content .tab-item {
    margin-bottom: 0;
    position: relative;
  }
  /* #home-main-content .tab-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    background: linear-gradient(to right, #DB0915 50%, #055E9D 50%);
    border-radius: 50%;
    z-index: -1;
  }
  #home-main-content .tab-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 135px;
    height: 135px;
    background-color: #fff;
    border-radius: 50%;
    z-index: -1;
  } */
  .tab-item button {
    background-color: transparent;
    color: #2b2b2b;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-top: 139px;
    padding-bottom: 8px;
    height: auto;
    border-radius: 0;
    text-transform: none;
    font-family: "Roboto", sans-serif;
  }
  /* #main-content-nav li button .hmc-button-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #DB0915 50%, #055E9D 50%);
    z-index: -1;
  } */
  #main-content-nav li button::before,
  #main-content-nav li button .hmc-button-image {
    content: "";
    position: absolute;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    top: 0px;
    background-size: auto 45px;
    background-position: center;
    background-repeat: no-repeat;
    width: 116px;
    height: 116px;
    margin: auto;
    transition: top 0.2s;
    border-radius: 50%;
  }
  #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: #000000;
  }
  #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: #4b90e2;
    left: 51%;
    right: 51%;
    transition-property: left, right;
    transition-duration: 0.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: #2b2b2b;
  }

  button.tab-link:hover::after,
  button.tab-link.active-d::after {
    left: 0;
    right: 0;
  }
  .home-mc-image {
    display: block;
    max-width: 510px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    flex: 0 0 auto;
  }
  .home-mc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
  }
  #main-content-accordion .acc-content {
    display: none;
    opacity: 0;
    text-align: left;
  }

  #main-content-accordion > .acc-content.active-d {
    display: flex;
    opacity: 1;
    align-items: center;
    padding: 4px 0 29px;
  }
  .acc-title {
    font-size: 3em;
  }
  .home-mc-image img {
    display: block;
  }
  .home-main-buttons {
    margin-top: 27px;
  }
}

/* --- Main Content Accordion Desktop --- */
@media all and (min-width: 801px) {
  #home-main-content {
    padding-top: 92px;
    padding-bottom: 135px;
  }
  #home-main-content .hmc-title {
    max-width: 100%;
    margin-bottom: 37px;
  }
  .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;
    padding: 0;
    margin-bottom: 9px;
  }
  .acc-trigger:after {
    content: none;
  }
  .acc-content {
    padding: 20px 30px;
    background-color: transparent;
    text-align: center;
    border-bottom: 1px solid #4b90e2;
  }
  .acc-inner-content {
    display: block;
    padding-left: 0px;
    padding-top: 0;
    padding-bottom: 0;
  }
  #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;
}
