/*************************************************************************
**************************************************************************

American Dream Trailers
http://americandreamtrailers.com

Design and Development
Keith Mitchell
http://thepixelforest.com

TABLE OF CONTENTS
. GLOBAL
. COPY STYLES
. LINKS
. HEADER
. HERO
. SERVICES
. PRICING
. BLOG
. MEDIA
. SIGNUP
. FOOTER
. RETINA OVERRIDES
. RESPONSIVE FORMATTING

**************************************************************************
. GLOBAL
*************************************************************************/

/* yeah baby, set the awesome */
* {
  -moz-box-sizing: border-box;
       box-sizing: border-box;
}
/* clearfix */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

@font-face {
  font-family: 'intro-rust';
  src: url('fonts/intro-rust-webfont.woff') format('woff2'),
       url('fonts/intro-rust-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'intro-head';
  src: url('fonts/intro-head-webfont.woff') format('woff2'),
       url('fonts/intro-head-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: #444444;
  -webkit-text-size-adjust: none; /* mobile resizing */
  font: 13px/21px "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
  background-repeat: no-repeat;
  background-attachment: fixed;

  background: #7aa848;
  background: -webkit-linear-gradient(-45deg, #6c7899 0%, #d1d9ee 50%, #6c7899 100%);
  background:    -moz-linear-gradient(-45deg, #6c7899 0%, #d1d9ee 50%, #6c7899 100%); 
  background:     -ms-linear-gradient(-45deg, #6c7899 0%, #d1d9ee 50%, #6c7899 100%);
  background:         linear-gradient(-45deg, #6c7899 0%, #d1d9ee 50%, #6c7899 100%);
}
#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: #FAF9F7;  
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

/*************************************************************************
. COPY STYLES
*************************************************************************/

p {
  margin: 0;
  padding: 0 0 21px 0;
}
h1, h2, h3 {
  margin: 0 0 21px 0;
  padding: 0;
  color: #222222;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
}
h1 {
  font-size: 32px;
  line-height: 38px;
  color: #FFFFFF;
  font-family: "intro-rust", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h2, h3 {
  font-size: 38px;
  line-height: 42px;
  font-family: "intro-head", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h3 {
  font-size: 28px;
  line-height: 36px;
}

/*************************************************************************
. LINKS
*************************************************************************/

/* default */
a:link, a:visited, a:active {
  color: #444444;
  text-decoration: underline;
  -webkit-transition: all .3s ease;
          transition: all .3s ease;
}
a:hover {color: #6DA266;}

#nav a:link, #nav a:visited, #nav a:active {color: #FFFFFF; text-decoration: none;}
#nav a + a:hover {color: #FFFFFF; border-bottom: 1px solid #FFFFFF;}

ul.social a:link, ul.social a:visited, ul.social a:active {color: #444444; text-decoration: none;}
ul.social a:hover {color: #888888;}

ul.credits a:link, ul.credits a:visited, ul.credits a:active {color: #B5B5B5; text-decoration: underline;}
ul.credits a:hover {color: #888888;}

/*************************************************************************
. HERO
*************************************************************************/

#hero {
  width: 100%;
  height: 675px;
  padding: 20px 30px 0 30px;
  background: url(../images/header-hero.jpg) no-repeat top center;
}
#intro {
  margin: 45px auto 0 auto;
  clear: both;
  text-align: center;
}
#intro h1 {
  margin-bottom: 10px;
}
#intro h2 {
  color: #ffffff;
  font: 28px/32px "intro-head", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#intro a {
  margin-top: 15px;
  padding: 8px 15px;
  display: inline-block;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0);
}
#intro a:hover {  
  border: 2px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.15);
}

/*************************************************************************
. NAV
*************************************************************************/

#nav {
  max-width: 960px;
  height: 55px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
#nav a{
  height: 55px;
  float: right;
  margin-left: 25px;
  padding-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
#nav a.logo {
  width: 265px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: block;
  float: left;
  background: transparent url(../images/logo-american-dream-trailers.png) no-repeat;
}

/*************************************************************************
. MISSION
*************************************************************************/

#mission {
  max-width: 1020px;
  margin: 0 auto;
  padding: 25px 30px 0 30px;
}
#mission h2 {
  text-align: center;
}
#mission p:nth-of-type(1) {
  width: 48%;
  float: left;
}
#mission p:nth-of-type(2) {
  width: 48%;
  float: right;
}

/*************************************************************************
. SPECS
*************************************************************************/

#specs {
  width: 100%; 
  position: relative;
}
#specs-inner {
  position: relative;
}
#specs-inner img {
  width: 100%;
  height: auto;
  float: left;
}
#specs-desc {
  width: 320px;
  position: absolute;
  top: 23%;
  right: 10%;
}
#specs-desc a.pdf {
  padding: 12px 0;
  display: block;
  color: #fff;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 0 0 5px #6aa148, inset 0 0 0 6px #4a8a32;
  background: #7aa848;
  background: -webkit-linear-gradient(45deg, #7aa848 0%, #509746 100%);
  background:    -moz-linear-gradient(45deg, #7aa848 0%, #509746 100%);  
  background:     -ms-linear-gradient(45deg, #7aa848 0%, #509746 100%);
  background:         linear-gradient(45deg, #7aa848 0%, #509746 100%);
}
ul.tooltips {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.tooltips li {
  width: 29px;
  height: 29px;
  position: absolute;
  cursor: pointer;
  border-radius: 15px;
  border: 3px solid rgba(255,255,255,1.0);
  background: rgba(0,0,0,0.08) url(../images/icon-plus.png) no-repeat center;
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  -webkit-transition: all .6s ease;
          transition: all .6s ease;
}
ul.tooltips li:hover {
  background: #6da266 url(../images/icon-plus.png) no-repeat center;
} 
ul.tooltips li:nth-child(1) {top: 45%; left: 45%;}
ul.tooltips li:nth-child(2) {top: 24%; left: 40%;}
ul.tooltips li:nth-child(3) {top: 44%; left: 33%;}
ul.tooltips li:nth-child(4) {top: 63%; left: 37%;}
ul.tooltips li:nth-child(5) {top: 52%; left: 18%;}

/* hit area */
ul.tooltips li a {
    width: 100%;
    height: 100%;
    display: block;
}

/*************************************************************************
. VIDEO
*************************************************************************/

#video {
  width: 100%;
  background: url(../images/bg-gallery.jpg) top center;
}
#video-inner {
  margin: 0 auto;
  overflow: hidden;
}
#video video {
  display: block;
  cursor: pointer;
}

/*************************************************************************
. GALLERY
*************************************************************************/

#gallery {
  width: 100%;
  padding: 65px 30px 65px 30px;
  position: relative;
  background: url(../images/bg-gallery.jpg) top center;
}
#gallery-inner {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}

/* slideshow dependencies */
#gallery-inner.swipe {
  overflow: hidden;
  visibility: hidden;
  position: relative;
  border-radius: 5px
}
#slide-container {
  overflow: hidden;
  position: relative;
}
#slide-container > div {
  width:100%;
  height: 360px;
  float:left;
  display: block;
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 5px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.3);
}

/* slide controls */
#slide-controls a.prev, #slide-controls a.next {
  width: 38px;
  height: 67px;
  margin: -48px 0 0 15px;
  position: absolute;
  top: 50%;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0) url(../images/gallery-arrows.png) 0 0; 
  -webkit-transition: all .3s ease;
          transition: all .3s ease;
}
#slide-controls a.next {
  margin: -48px 15px 0 0;
  right: 0;
  background-position: -35px 0;
}
#slide-controls a.prev:hover {  
  border: 2px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.15) url(../images/gallery-arrows.png) 0 0;
}
#slide-controls a.next:hover {  
  border: 2px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.15) url(../images/gallery-arrows.png) -35px 0;
}

/* slide indicators */
#indicators-container {
  max-width: 760px;
  margin: 8px auto 0 auto;
  position: relative;
}
ul#indicators {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
ul#indicators li {
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  display: inline-block;
  border-radius: 8px;
  background: #FFFFFF;
}
ul#indicators li.on {
  background: #8395c9;
}

/*************************************************************************
. CUSTOMIZE
*************************************************************************/

#customize {
  width: 100%;
  min-height: 800px;
  padding: 55px 30px 70px 30px;
  background: #E2A07C url(../images/bg-customize.jpg) no-repeat bottom center;
}
#customize-inner {
  max-width: 960px;
  margin: 0 auto;
  color: #FFFFFF;
  text-align: center;
}
#customize-inner h2 {
  color: #FFFFFF;
}
#customize-inner p {
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 30px;
}

/* items */
#customize .item {
  width: 230px;
  margin: 3px;
  float: left;
}
#customize .item .photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #777777;
}
#customize .item .photo img {
  text-align: center;
}
#customize .item .desc {
  width: 100%;
  /* height: 70px; */
  height: 45px;
  padding-top: 12px;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 5px #6aa148, inset 0 0 0 6px #4a8a32;
  background: #7aa848;
  background: -webkit-linear-gradient(45deg, #7aa848 0%, #509746 100%);
  background:    -moz-linear-gradient(45deg, #7aa848 0%, #509746 100%);  
  background:     -ms-linear-gradient(45deg, #7aa848 0%, #509746 100%);
  background:         linear-gradient(45deg, #7aa848 0%, #509746 100%);
}
#customize .item .desc span {
  width: 90px;
  margin: 2px auto;
  padding: 3px 30px 0 30px;
  display: block;
  font-size: 15px;
  border-top: 1px solid #589940;
}
#customize .item .desc span sup {
  height: 0;
  padding-right: 1px;
  vertical-align: text-top;
  font-size: 10px;
  line-height: 13px;
}

/*************************************************************************
. ESTIMATE
*************************************************************************/

#estimate {
  width: 100%;
  padding: 55px 30px 0 30px;
  background: #FAF9F7;
}
#estimate-inner {
  max-width: 960px;
  min-height: 340px;
  margin: 0 auto;
  display: block;
  border-bottom: 1px solid #D6D6D6;
  background: url(../images/bg-estimate.jpg) no-repeat bottom right;
}
#estimate-inner form {
  width: 100%;
  max-width: 480px;
}
#estimate-inner select {
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
  padding-left: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent url('../images/icon-arrow-select1.svg') no-repeat right center;
  background-size: 17px;
  border: 1px solid #D6D6D6;

}

input[type="text"], textarea {
  width: 49%;
  height: 30px;
  margin-bottom: 20px;
  float: left;
  outline: none;
  font: 13px/21px "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: none;
  border: none;
  border-bottom: 1px solid #D6D6D6;
}
input.email {
  float: right;
}
textarea {
  width: 100%;
  height: 90px;
  overflow: auto;
}
input[type="submit"] {
  width: 100%;
  height: 40px;
  margin-bottom: 80px;
  display: block;
  clear: both;
  cursor: pointer;
  font-size: 12px;
  color: #FFFFFF;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  background: #7aa848;
  background: -webkit-linear-gradient(45deg, #7aa848 0%, #509746 100%);
  background:    -moz-linear-gradient(45deg, #7aa848 0%, #509746 100%);  
  background:     -ms-linear-gradient(45deg, #7aa848 0%, #509746 100%);
  background:         linear-gradient(45deg, #7aa848 0%, #509746 100%);
  -webkit-appearance: none;
  -webkit-transition: all .3s ease;
          transition: all .3s ease;
}
input[type="submit"]:hover {
  color: #DDEFC9;
}

/*************************************************************************
. FOOTER
*************************************************************************/

#footer {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 30px 60px 30px;
  font-size: 11px;
  color: #B5B5B5;
}

/* social links */
ul.social {
  margin: 0;
  padding: 0;
  list-style: none;
  float: left;
}
ul.social li {
  margin-right: 15px;
  display: inline-block;
  text-transform: uppercase;
}
ul.social li a {
  margin-bottom: 10px;
  padding-left: 20px;
  display: inline-block;
  line-height: 16px;
}
ul.social a.facebook {
  background: transparent url(../images/icon-facebook.png) no-repeat top left;
}
ul.social a.instagram {
  background: transparent url(../images/icon-instagram.png) no-repeat top left;
}
ul.social a.newsletter {
  background: transparent url(../images/icon-newsletter.png) no-repeat top left;
}
ul.social a.info {
  background: transparent url(../images/icon-info.png) no-repeat top left;
}

/* credits */
ul.credits {
  margin: 0;
  padding: 0;
  list-style: none;
  float: right;
}
ul.credits li {
  margin-left: 15px;
  display: inline-block;
}

/*************************************************************************
. RETINA GRAPHICS
*************************************************************************/

@media (-webkit-min-device-pixel-ratio: 2) {

  #nav a.logo {
    background: transparent url(../images/logo-american-dream-trailers-2x.png) no-repeat;
    background-size: 265px 36px;
  }
  #estimate-inner {
    background: url(../images/bg-estimate-2x.jpg) no-repeat bottom right;
    background-size: 455px 340px;
  }
  ul.social a.facebook {
    background: transparent url(../images/icon-facebook-2x.png) no-repeat top left;
    background-size: 16px 16px;
  }
  ul.social a.instagram {
    background: transparent url(../images/icon-instagram-2x.png) no-repeat top left;
    background-size: 16px 16px;
  }
  ul.social a.newsletter {
    background: transparent url(../images/icon-newsletter-2x.png) no-repeat top left;
    background-size: 16px 16px;
  }
  ul.social a.newsletter {
    background: transparent url(../images/icon-info-2x.png) no-repeat top left;
    background-size: 16px 16px;
  }

}

/*************************************************************************
. RESPONSIVE FORMATTING
*************************************************************************/

/*****************************
/ iPad portrait & tiny tablets
**/

@media only screen and (max-width: 959px) {
  /* specs */
  #specs-inner {
    overflow: hidden;
  }
  #specs-desc {
    max-width: 750px;
    width: auto;
    margin: 0 auto;
    padding: 0 30px 40px 30px;
    position: static;
  }
  #specs-inner img {
    width: 140%;
  }
  ul.tooltips li:nth-child(1) {top: 45%; left: 63%;}
  ul.tooltips li:nth-child(2) {top: 24%; left: 55%;}
  ul.tooltips li:nth-child(3) {top: 33%; left: 38%;}
  ul.tooltips li:nth-child(4) {top: 50%; left: 44%;}
  ul.tooltips li:nth-child(5) {top: 52%; left: 26%;}

  /* gallery */
  #slide-container > div {
    border-radius: 0;
  }

  /* estimate */
  #estimate {
    width: 100%;
    padding: 55px 30px 0 30px;
  }
  #estimate-inner {
    padding-bottom: 40%;
    background-size: 60% auto;
    background-position: bottom center;
  }
  #estimate-inner form {
    width: 100%;
    max-width: none;
  }

  /* footer */
  ul.social {
    width: 100%;
    float: none;
    text-align: center;
  }
  ul.social li {
    margin: 0 15px;
  }
  ul.credits {
    margin-top: 12px;
    float: none;
    text-align: center;
  }

}

/*****************************
/ mobile phones
**/

@media only screen and (max-width: 767px) {

  /* hero */
  #hero {
    height: 520px;
    padding: 15px 15px 10px 15px;
    background-size: cover;
  }

  /* nav */
  #nav a {
    display: none;
  }
  #nav a.logo {
    display: visible;
    margin: 0 auto;
    display: block;
    float: none;
    text-align: center;
  }
  #intro {
    margin-top: 20px;
  }
  #intro h2 {
    display: none;
  }
  #intro a {
    margin-top: 0px;
    padding: 5px 12px;
    font-size: 11px;
  }

  /* mission */
  #mission h2 {
    text-align: left;
  }
  #mission p:nth-of-type(1), #mission p:nth-of-type(2) {
    width: 100%;
    float: none;
  }

  /* specs */
  #specs-inner img {
    width: 220%;
    margin-left: -27%;
  }
  ul.tooltips li {
    width: 23px;
    height: 23px;
    position: absolute;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,1.0);
    background: rgba(0,0,0,0.08) url(../images/icon-plus.png) no-repeat 4px 4px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
    -webkit-transition: all .5s ease;
            transition: all .5s ease;
  }
  ul.tooltips li:nth-child(1) {top: 45%; left: 70%;}
  ul.tooltips li:nth-child(2) {top: 25%; left: 60%;}
  ul.tooltips li:nth-child(3) {top: 34%; left: 35%;}
  ul.tooltips li:nth-child(4) {top: 50%; left: 44%;}
  ul.tooltips li:nth-child(5) {top: 52%; left: 15%;}

  /* gallery */
  #gallery {
    width: 100%;
    padding: 40px 0 0 0;
    background: none;
  }
  #slide-container > div {
    height: 320px;
  }
  #slide-controls a.prev, #slide-controls a.next {
    display: none;
  }
  #indicators-container {
    margin-top: -31px;
    padding-bottom: 10px;
    text-align: center;
  }

  /* customize */
  #customize {
    width: 100%;
    padding: 40px 30px 70px 30px;
  }
  #customize-inner {
    text-align: left;
  }
  #customize .item {
    max-width: 400px;
    width: 100%;
    margin: 0 auto 15px auto;
    float: none;
  }
  #customize .item .photo {
    width: 100%;
  }

  /* estimate */
  #estimate {
    width: 100%;
    padding: 40px 30px 0 30px;
  }
  #estimate-inner {
    padding-bottom: 60%;
    background-size: 90% auto;
    /* see retina override below */
  }
  #estimate-inner form {
    width: 100%;
    max-width: none;
  }
  input[type="text"], textarea {
    width: 100%;    
    float: none;
  }
  input.email {
    float: none;
  }
  input[type="button"] {
    margin-bottom: 0;
    clear: both;
  }

  /* footer */
  ul.social {
    width: 100%;
    float: none;
    text-align: center;
  }
  ul.social li {
    margin: 0 15px;
  }
  ul.credits {
    margin-top: 12px;
    float: none;
    text-align: center;
  }

}