/*
  Page URI:     heartmath.org/homepage
  Description:  Custom page styling
*/

/*
 * CSS DIRECTORY
 - ROWS/TIERS       - rows/page sections
 - MEDIA QUERIES    - @media
*/



/* ROW/TIER 01
================================= */
.hm-tier.sec-01 {
  margin-top: 20px;
}

#content .hm-tier.sec-01, 
#content .hm-tier.sec-01 > .row {
  position: relative;
  height: 415px;
  min-height: 415px;
  overflow: hidden;
}

#content .hm-tier.sec-01 h1 {
  position: absolute;
  top: 40px;
  left: 50%;
  padding: 0;
  margin: 0 0 0 -450px;
  font-size: 54px;
  line-height: 58px;
  color: #1b82c4;
  text-align: center;
  font-weight: 100;
}

#content .hm-tier.sec-01 h1 span {
  letter-spacing: 24px;
  margin-right: -24px;
  font-weight: 300;
}



/* ROW/TIER 02
================================= */
#content .hm-tier.sec-02 {
  padding-top: 20px;
}

#content .hm-tier.sec-02 div.hm-free-resources {
  position: absolute;
  top: -60px;
  right: 0;
  white-space: nowrap;
}



/* ROW/TIER 03
================================= */
#content .hm-tier.sec-03 > .row div.hm-colorbar {
  position: relative;
  display: block;
  width: 75%;
  margin: 0 auto;
  top: -10px;
  height: 10px;
  font-size: 0;
}

#content .hm-tier.sec-03 > .row div.hm-colorbar div {
  position: relative;
  display: inline-block;
  width: 23%;
  height: inherit;
}

#content .hm-tier.sec-03 div.our-focus > div.our-focus-cat h3 {
  line-height: 22px;
}



/* ROW/TIER 04
================================= */
#content .hm-tier.sec-04 {
  position: relative;
}

#content .hm-tier.sec-04 div.hm-hmi-video {
  white-space: nowrap;
}



/* ROW/TIER 05
================================= */
#content .hm-tier.sec-05 .row {
  position: relative;
}

#content .hm-tier.sec-05 .row div.bg {
  position: absolute;
  top: 40%;
  left: 0;
  z-index: 1;
  height: 118px;
  width: 100%;
  background: url(/assets/uploads/2015/02/sine.png) repeat-x center top; 
  opacity: 0.5;
}

#content .hm-tier.sec-05 .row .carousel {
  position: relative;
  z-index: 2;
}



/* ROW/TIER 07
================================= */
#content div.hm-tier.sec-07 div.products {
  position: relative; 
  display: block; 
  width: auto; 
  text-align: center;
}

#content div.hm-tier.sec-07 div.products img {
  position: relative; 
  z-index: 2;
}

#content div.hm-tier.sec-07 div.products img.ipad {
  margin: 0 100px;
}

#content div.hm-tier.sec-07 div.products div.bg-underlay {
  position: absolute; 
  width: 530px; 
  height: 5px; 
  background: #1b82c5; 
  left: 50%; 
  top: 160px; 
  margin-left: -250px; 
  z-index: 1;
}


/* MEDIA QUERIES
================================= */
@media only screen and (min-width : 1475px) {
  #content .hm-tier.sec-01 {
    background: url(/assets/uploads/2015/02/home-page-01-main-bg.jpg) repeat-x center top; 
  }
  
  #content .hm-tier.sec-01 > .row {
    background: url(/assets/uploads/2015/02/home-page-01-main.jpg) no-repeat center top; 
  }
}


@media only screen and (max-width : 1475px) {
  #content .hm-tier.sec-01 {
    background: none; 
  }

  #content .hm-tier.sec-01 > .row {
    background: url(/assets/uploads/2015/02/home-page-01-main-02.jpg) no-repeat center top; 
  }

  #content .hm-tier.sec-01 h1 {
    margin: 0 0 0 -400px;
  }
}


@media (min-width: 1200px) {
  #content .hm-tier.sec-03 div.our-focus {
   position: absolute;
   top: 190px;
   z-index: 2;
 }

  #content .hm-tier.sec-03 > .row > .container {
    min-height:475px; 
  }
 
  #content .hm-tier.sec-03 > .row > .container div.hm-bg {
    position: absolute;
    top: -100px; 
    right: -200px;
    width: 382px;
    height: 575px; 
    background: url(/assets/uploads/2015/02/woman.png) no-repeat right 10px;
    z-index: 1;
  }
  
  #content .hm-tier.sec-03 div.hm-heading {
    position: relative;
    display: table;
    width: 650px;
    height: 184px;
    top: -16px;
    padding: 20px 100px 0;
    margin: 0 auto 12px auto;
    max-height: 184px;
    background: url(/assets/uploads/2015/02/speech-bubble.png) no-repeat center top;
    background-size: 100% 184px;
    text-align: center;
  }
  
  #content .hm-tier.sec-03 div.hm-heading div.inner {
    position: relative; 
    display: table-cell;
    vertical-align: middle;
  }

  #content .hm-tier.sec-03 div.our-focus > div.our-focus-cat {
    width: 32.5%;
  }

  #content .hm-tier.sec-04 > .row > .container {
    padding-top: 100px;
  }
}


@media (max-width: 1199px) {
  #content .hm-tier.sec-03 div.our-focus > div.our-focus-cat {
    width: 100%;
    margin-bottom: 16px;
  }

  #content .hm-tier.sec-03 div.our-focus > div.our-focus-cat.last {
    margin-bottom: 0;
  }

  #content .hm-tier.sec-03 div.our-focus > div.our-focus-cat img {
    display: none;
  }

  #content .hm-tier.sec-03 div.hm-heading div.inner {
    padding: 24px 15px 12px;
  }

  #content .hm-tier.sec-03 > .row > .container {
    background: none;
  }

  #content .hm-tier.sec-03 div.our-focus-wrap p {
    padding: 0;
  }
}


@media only screen and (min-width : 992px) {
  .hm-tier.sec-02 {
    margin: 15px auto;
  }
}


@media only screen and (max-width : 991px) {
  #content .hm-tier.sec-01 > .row {
    background-position: 66% top;
  }

  #content .hm-tier.sec-02 div.hm-free-resources {
    position: relative;
    top: 0;
    right: 0;
    text-align: center;
    margin-top: 24px;
  }

  #content .hm-tier.sec-02 {
    padding-top: 0;
  }

  #content .hm-tier.sec-04 > .row {
    padding-bottom: 40px;
  }
}

@media only screen and (min-width : 700px) and (max-width : 991px) {
  #content .hm-tier.sec-01 h1 {
    top: 40px;
    margin: 0 0 0 -320px;
    font-size: 44px;
    line-height: 48px;
  }

  #content .hm-tier.sec-01 h1 span {
    letter-spacing: 19px;
    margin-right: -19px;
  }
}


@media (max-width: 767px) {
  #content div.hm-tier.sec-07 div.products {
    position: relative; 
    display: block; 
    width: auto; 
    text-align: center;
  }
  
  #content div.hm-tier.sec-07 div.products img {
    margin: 0 10px;
  }
  
  #content div.hm-tier.sec-07 div.products img.ipad {
    display: none;
  }
  
  #content div.hm-tier.sec-07 div.products div.bg-underlay {
    display: none;
  }
}


@media only screen and (max-width : 699px) {
  #content .hm-tier.sec-01 h1 {
    top: 16px;
    left: 10%;
    margin: 0;
    font-size: 40px;
    line-height: 42px;
  }

  #content .hm-tier.sec-01 h1 span {
    letter-spacing: 17px;
    margin-right: -17px;
  }
}


@media only screen and (max-width : 520px) {
  .hm-tier.sec-01 {
    margin-top: 0;
  }

  #content .hm-tier.sec-02 .row.wrapper {
    padding-top: 20px;
  }

  #content .hm-tier.sec-01 > .row {
    background: none;
    padding-bottom: 0;
  }

  #content .hm-tier.sec-01, 
  #content .hm-tier.sec-01 > .row {
    height: auto;
    min-height: inherit;
  }

  #content .hm-tier.sec-01 h1 {
    position: relative;
    top: 0;
    left: 0;
    margin: 0 auto;
    font-size: 40px;
  }

  #content .hm-tier.sec-01 h1 span {
    letter-spacing: 17px;
    margin-right: -17px;
  }
}


@media only screen and (max-width : 380px) {
  #content .hm-tier.sec-01 h1 span {
    letter-spacing: 0;
    margin-right: 0;
  }
}