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

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

/* --- Start Hero ---*/

#container-banner {
  background-position: center;
  background-size: cover;
}
#hero-outer {
  text-align: center;
}
#hero-outer .hero-title {
  margin-top: 0px;
  font-size: 4.5em;
}
#hero-outer ul {
  list-style-type: none;
}
@media all and (min-width: 571px) {
  #hero-outer .hero-title {
    font-size: 5.3em;
  }
}
@media all and (min-width: 801px) {
  .hero-content-box {
    width: 60%;
  }
  #hero-outer .hero-title {
    font-size: 6.1em;
  }
}
@media all and (min-width: 1025px) {
  #hero-outer .hero-title {
    font-size: 7.0em;
  }
}

/* --- End Hero --- */

/* --- Home Top Content --- */
/* CODELIBENTRY_ENTRY: 9 */

/* mobile.css */
.webp #home-top-content {
  background-image: url("/assets/templates/main/images/bgs/home-top-content.webp");
}
.no-webp #home-top-content {
  background-image: url("/assets/templates/main/images/bgs/home-top-content.jpg");
}
#home-top-content {
  background-size: cover;
  background-position: center;
}
#home-top-content .home-top-content-right {
  text-align: center;
}
#home-top-content .home-top-content-right img {
  max-width: 100%;
}

@media all and (max-width: 800px) {
  #home-top-content .home-top-content-image-desktop {
    display: none;
  }
}

/* responsive.css */
@media all and (min-width: 801px) {
  #home-top-content .home-top-content-box {
    width: 60%;
    box-shadow: 0 5px 15px rgba(0,0,0,.23);
    padding: 0 20px;
    position: relative;
  }
  #home-top-content .width-limiter {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  #home-top-content .home-top-content-right {
    width: 40%;
  }
}

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

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

/* CODELIBENTRY_ENTRY: 12 */

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

#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 20px;
  color: #222;
}
/* Accordion panel on mobile */
.acc-inner-content { 
  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: #959595;
  padding: 10px 60px 10px 60px;
  box-shadow: 0 5px 10px rgba(0,0,0,.5);
  color: #fff;
}
.acc-trigger:before {
  position: absolute;
  content: '';
  height: 40px;
  width: 40px;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.acc-trigger#acc-1:before,
.tab-item:nth-of-type(1) button::before {
  background-image: url(/assets/templates/main/images/mc/mc-ac.svg);
}
.acc-trigger#acc-2:before,
.tab-item:nth-of-type(2) button::before {
  background-image: url(/assets/templates/main/images/mc/mc-heating.svg);
}
.acc-trigger#acc-3:before,
.tab-item:nth-of-type(3) button::before {
  background-image: url(/assets/templates/main/images/mc/mc-iaq.svg);
}
.acc-trigger#acc-4:before,
.tab-item:nth-of-type(4) button::before {
  background-image: url(/assets/templates/main/images/mc/mc-maintenance.svg);
}
.acc-trigger#acc-5:before,
.tab-item:nth-of-type(5) button::before {
  background-image: url(/assets/templates/main/images/mc/mc-plumbing.svg);
}
.acc-trigger#acc-6:before,
.tab-item:nth-of-type(6) button::before {
  background-image: url(/assets/templates/main/images/mc/mc-electrical.svg);
}
.acc-trigger:after {
  position: absolute;
  content: '';
  height: 30px;
  width: 30px;
  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-trigger:focus {
  color: #3a6899;
}
.acc-title {
  margin-top: 0;
  margin-bottom: 0;
} 
#main-content-accordion .cta-button {
  margin: 20px auto;
}

/* Tab Styles */

@keyframes fadein {
  from {
    display: block;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeout {
  from {
    display: block;
    opacity: 1;
  }
  to {
    opacity: 0;
    display: none;
  }
}
#main-content-nav {
  display: none;
}
@media all and (min-width: 801px) {
  #main-content-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }   
}

.tab-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 0;
  padding-bottom: 0;
  margin-bottom: 20px;
  list-style: none; 
  border-bottom: 2px solid #222;
}
.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: #ddd;
  color: #222;
  position: relative;
  padding-top: 50px;
  height: auto;
  border-radius: 0;
}

.tab-item button::after {
  content:'';
  position:absolute;
  bottom:0;
  height:4px;
  background-color:#222;
  left:51%;
  right:51%;
  -ms-transition-property:left,right;
  -webkit-transition-property:left,right;
  transition-property:left,right;
  -ms-transition-duration:.3s;
  -webkit-transition-duration:.3s;
  transition-duration:.3s;
  -ms-transition-timing-function:ease-out;
  -webkit-transition-timing-function:ease-out;
  transition-timing-function:ease-out;
}

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

button.tab-link:hover::after,
button.tab-link.active-d::after {
  left: 0;
  right: 0;
}

#main-content-nav li button::before {
  content: '';
  position: absolute;
  display: inline-block;
  left: 0;
  top: 5px;
  background-size: auto 35px;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 35px;
  margin: auto;
  transition: top 0.3s;
}

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

@media all and (min-width: 801px) {
  #main-content-accordion .acc-content {
    display: none;
    opacity: 0;
    animation: fadeout 0.5s 1 ease-in-out;
  }
  /* Desktop style to show panel */
  /* #main-content-accordion > .acc-content.active {
    display: block;
    opacity: 1;   
    animation: fadein 0.5s 1 ease-in-out;
  } */

  #main-content-accordion > .acc-content.active-d {
    display: block;
    opacity: 1;   
    animation: fadein 0.5s 1 ease-in-out;
  }
}

/* End Tab Styles */

/* -------------------- Main Content Accordion Desktop ------------------ */
@media all and (min-width: 801px) {
  .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: #ddd;
    text-align: center;
  }
  .acc-inner-content {
    display: block;
    padding-left: 0px;
  }
  #main-content-accordion .acc-trigger:before {
    content: none;
  }
  .acc-title-outer {
    padding-left: 0;
  }
}

/* --------------- End Main Content Accordion ---------------------- */

/* --------------- Start Maintenance Program ---------------------- */

/* CODELIBENTRY_ENTRY: 17 */

/* Mobile.css */
.webp #maintenance-secondary {
  background-image: url("/assets/templates/main/images/bg-subpage.webp");
}
.no-webp #maintenance-secondary {
  background-image: url("/assets/templates/main/images/bg-subpage.jpg");
}
#maintenance-secondary {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}
.ma-image img {
  max-width: 100%;
  height: auto;
}
.ma-points {
  padding-left: 0px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}
.ma-points li {
  position: relative;
  padding-left: 40px;
  margin-right: 20px;
  margin-left: 20px;
  display: block;
}
.ma-points li:before {
  content: '';
  background-image: url(/assets/templates/main/images/icons/icon-maintenance-program.png);
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 40px;
  position: absolute;
  top: 0px;
  left: 0px;
}
.ma-subtitle,
#maintenance-secondary .view-all {
  text-align: center;
}

@media all and (min-width: 401px) {
  .ma-points {
    width: 50%;
  }
}

/* Responsive.css */
@media all and (min-width: 801px) {
  .ma-points li {
    display: inline-block;
  }
  .ma-points {
    width: 100%;
    text-align: center;
  }
}

/* --------------- End Maintenance Program ---------------------- */

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

/* --- HOMEPAGE --------------------------------------------------------------------------------------------------------------------------------- */
/* --- LAYOUTS/ANIMATION --------------------------------------------------------------------------------------------------------------------------------- */



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