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

/* Fonts */

@font-face {
	font-family: 'latolight';
	src: url('../fonts/Lato-Light.woff2') format('woff2'),
		url('../fonts/Lato-Light.woff') format('woff');
	font-weight: 300;
	font-style: normal;
}
@font-face {
	font-family: 'latoregular';
	src: url('../fonts/Lato-Regular.woff2') format('woff2'),
		url('../fonts/Lato-Regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'latobold';
	src: url('../fonts/Lato-Bold.woff2') format('woff2'),
		url('../fonts/Lato-Bold.woff') format('woff');
	font-weight: bold;
	font-style: normal;
}

/* Begin styling */

body {
	color: #fff;
  	min-height: 100%;
	font: normal 17px 'latoregular', Arial, sans-serif;
	background: url(../img/main-bg.jpg) no-repeat center 0;
	background-size: cover;
	background-attachment: fixed;
}
b {
	font-family: 'latobold';
}
a[href^=tel]{
    color: inherit;
    text-decoration: none;
}
.wrapper {
	overflow: hidden;
}
#header {
	height: 210px;
	overflow: hidden;
}
#header:before {
	content: '';
	width: 50%;
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	height: 210px;
	background: url(../img/header-bg-repeat.png) repeat-x 0 0;
}
#header:after {
	content: '';
	width: -webkit-calc(50.5% - 771px);
	width: -moz-calc(50.5% - 771px);
	width: calc(50.5% - 771px);
	position: absolute;
	left: -webkit-calc(49.5% + 771px);
	left: -moz-calc(49.5% + 771px);
	left: calc(49.5% + 771px);
	z-index: 1;
	top: 0;
    height: 210px;
	background: url(../img/header-bg-repeat-last.png) repeat-x 0 0;
}
#header .bg {
	display: block;
	position: absolute;
	left: 50%; top: 0;
	max-width: 50%;
	width: 771px;
	height: 216px;
	background: url(../img/header-bg.png) no-repeat 0 top;
	background-size: 771px 216px;
	z-index: 1;
}
#header .logo {
	display: block;
	position: absolute;
	top: 65px;
	left: 50%;
	margin-left: -68.5px;
	width: 137px;
	height: 141px;
	background: url(../img/logo.png) no-repeat 0 0;
	background-size: 137px 141px;
	z-index: 2;
}
#header .inner {
	overflow: hidden;
}
.inner {
	width: 100%;
	margin: 0 auto;
	max-width: 960px;
}
#container {
	text-align: center;
	padding-bottom: 43px;
}
#container h1 {
	margin: 23.7% auto 14.3%;
	text-align: center;
	font: normal 72px 'latolight';
	line-height: 87px;
	max-width: 87%;
	letter-spacing: 1px;
}
#container h2 {
	font: normal 40px 'latolight';
	padding-bottom: 56px;
}
#container h1:after {
	content: url(../img/down-arrow.png);
	margin: 38px 0 0 0;
    display: block;
}
#container .no-pad-t {
	padding-top: 0;
}
#container .socials {
	padding-bottom: 29px;
}
#container .socials a:hover {
	-webkit-transition: opacity 0.5s ease;
	-moz-transition: opacity 0.5s ease;
	-ms-transition: opacity 0.5s ease;
	-o-transition: opacity 0.5s ease;
	transition: opacity 0.5s ease;
	opacity: 0.5;
}
#container .socials a {
	display: inline-block;
	margin: 0 5px;
	width: 23px;
	height: 21px;
	opacity: 1;
	background: url(../img/social-icons.png) no-repeat 6px 0;
}
#container .socials a.tw {
	background-position: -37px 0;
}
#container .socials a.inst {
	background-position: -79px 0;
}
#container form p {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	padding: 11px 0 19px;
	font-family: 'latobold';
	margin: 0;
}
#container form .form-line {
	overflow: hidden;
	max-width: 550px;
	margin: 0 auto 28px;
}
#container form .form-line .col-half {
	width: 49%;
	float: left;
}
#container form .form-line .col-half + .col-half {
	float: right;
}
#container form .form-line input {
	color: #333230;
	font-size: 17px;
	width: -webkit-calc(100% - 20px);
	width: -moz-calc(100% - 20px);
	width: calc(100% - 20px);
	height: 56px;
	line-height: 55px;
	max-width: 530px;
	border: none;
	padding: 0 10px;
	background: #fff;
	border-radius: 6px;
	text-align: center;
}
#container form input[type=submit] {
	width: 186px;
	height: 56px;
	background: none;
	color: #fff;
	padding: 0;
	font-size: 21px;
	text-align: center;
	text-transform: uppercase;
	padding: 0 11px;
	border: 3px solid white;
	border-radius: 0;
	line-height: 51px;
	display: inline-block;
	letter-spacing: -0.5px;
	margin: 0 auto;
}
#container form input[type=submit]:hover {
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;
	background: #fff;
	cursor: pointer;
	color: #869EA0;
} 
.contacts {	
    font-size: 26px;
    padding: 39px 0 0 0;
    letter-spacing: -0.5px;
}
.spacer {
	width: 29px;
	display: inline-block;
}
#container a {
	color: #fff;
	text-decoration: none;
}
#container a:hover {
	text-decoration: underline;
}
#footer {	
	clear: both;
	width: 100%;
	overflow: hidden;
    min-height: 135px;    
    position: relative;
}
#footer .wave {
	display: block;
	position: absolute;
	left: 49.5%; top: 0;
	width: 760px;
	height: 55px;
	background: url(../img/footer-bg.png) no-repeat 0 top;
	background-size: 760px 55px;
}
#footer .bg {
	display: block;
	width: 100%;
	height: 81px;
	background: #fff;
	position: absolute;
	left: 0;
	bottom: 0;
}
#footer:before {
	content: '';
	width: 49.5%;
	position: absolute;
	left: 0;
	bottom: 81px;
	height: 8px;
	background: #fff;
}
#footer:after {
	content: '';
	width: -webkit-calc(50.5% - 760px);
	width: -moz-calc(50.5 - 760px);
	width: calc(50.5 - 760px);
	position: absolute;
	left: -webkit-calc(49.5% + 760px);
	left: -moz-calc(49.5% + 760px);
	left: calc(49.5% + 760px);
    bottom: 81px;
    height: 7px;
	background: #fff;
}


/* Placeholder text color -- selectors need to be separate to work. */

::-webkit-input-placeholder {
	color: #bdbabb;
	font: normal 17px/55px 'latoregular', 'Lato Regular', 'Lato', Arial, sans-serif;
}
:-moz-placeholder {
	color: #bdbabb;
	font: normal 17px/55px 'latoregular', 'Lato Regular', 'Lato', Arial, sans-serif;
}
::-moz-placeholder {
	color: #bdbabb;
	font: normal 17px/55px 'latoregular', 'Lato Regular', 'Lato', Arial, sans-serif;
	opacity: 1; /* Since FF19 lowers the opacity of the placeholder by default */
}
:-ms-input-placeholder {
	color: #bdbabb;
	font: normal 17px/55px 'latoregular', 'Lato Regular', 'Lato', Arial, sans-serif;
}

/* Responsive styles */

@media screen and (min-width: 320px) and (max-width: 767px) {
	body {
		background-position: center 128px;
	}
	#header {
		position: relative;
    	margin-top: -50px;
	}
	#container h1 {
		font: normal 1.5em/1.25em 'latolight';
    	max-width: 94%;
	}
	#container h1:after {
	    zoom: 0.5;
	}
	#container h2 {
	    font: normal 1.15em 'latolight';
	    padding-bottom: 46px;
	}
	#container form {
		max-width: 95%;
		margin: 0 auto;
	}
	#container form p {	    
	    font-size: 17px;
	}
	#container form .form-line.no-marg {
		margin-bottom: 0;
	}
	#container .no-pad-t {
	    padding-top: 11px;
	}
	#container form .form-line {
		margin-bottom: 10px;
	}
	#container form .form-line .col-half {
	    width: 100%;
	    margin-bottom: 10px;
	}
	#container form .form-line input {	    
	    height: 50px;
	}
	#container form input[type=submit] {
	    width: 182px;
	    height: 55px;
	    font-size: 19px;
	    line-height: 52px;
	}
	.contacts {
		text-align: center;
		line-height: 20px;
		font-size: 20px;
	}
	.spacer {
		width: 100%;
	}
}