/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Custom styles */

body {
   font-family: Helvetica, Arial, "Lucida Grande", sans-serif; 
   font-weight: 300;
}

#bg {
  position: fixed; 
  width: 100%; 
  height: 100%;
}

#bg img {
  position: absolute; 
  top: 0; 
  left: 0; 
}

#logo {
  position: fixed;
  top: 60px;
  left: 60px;
  width: 165px;
}

#footer {
  position: fixed;
  width: 100%;
  bottom: 20px;
  padding: 20px 0;
  background-color: #AEA093;
  color: #ffffff;
}

#footer a {
  color: #ffffff;
}

#footer_wrapper {
  width: 750px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 23px;
}

#address, #phones, #email {
  width: 160px;
  padding: 0 25px;
  float: left;
}

#contact {
  overflow: hidden;
}

#social {
  text-align: center;
}

/* Smartphones (portrait) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 1024px) {
  #logo {
      width: 273px;
  }
  #bg img {
    height: 100%;
    left: -423px;
  }
  #footer {
    bottom: 0px;
    padding: 50px 0 0 25px;
  }
  #footer_wrapper {
    width: auto;
    display: flex;
    flex-flow: row wrap;
    font-size: 37px;
    line-height: 47px;
  }
  #address, #phones, #email {
    width: 44%;
    padding: 0 25px;
    float: none;
  }
  #social {
    width: 100%;
    margin-top: 0;
    padding: 0 75px 50px 50px;
    text-align: right;
  }
} 

/* Smartphones (landscape) ----------- */
@media only screen and (max-device-height : 360px) {
  #logo {
      width: 173px;
  }
  #bg img {
    width: 100%;
    height: auto;
    left: 0;
  }
  #footer_wrapper {
    font-size: 23px;
    line-height: 33px;
  }
  #footer {
    padding: 15px 0 0 15px;
  }
  #social {
    margin-top: -5px;
    padding: 0 35px 15px;
  }
  #address, #phones, #email {
    width: 260px;
    padding: 0 7px;
  }
}
/* Tablets (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  #logo {
      width: 185px;
  }
  #footer_wrapper {
    font-size: 28px !important;
    line-height: 38px !important;
  }
}

/* Tablets (landscape) ----------- */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #logo {
      width: 185px;
  }
  #bg img {
    width: 100%;
    height: auto;
    left: 0;
  }
  #footer_wrapper {
    font-size: 18px !important;
    line-height: 24px !important;
  }
  #footer {
    padding: 15px 0 0 15px;
  }
  #social {
    margin-top: -5px;
    padding: 0 35px 15px;
  }
}
