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

.group:before,
.group:after {
    content: "";
    display: table;
} 
.group:after {
    clear: both;
}
.group {
    zoom: 1; /* For IE 6/7 (trigger hasLayout) */
}

* {
	box-sizing: border-box;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	font-size: 16px;
	font-family: le-havre, Lato, Verdana, sans-serif;
	background: url('../img/back.png') center -50px no-repeat #f3f3f3;
}

h1 {

}

h3 {
	font-size: 2em;
	color: #fff;
}

a, 
a:hover,
a:visited {
	text-decoration: none;
	color: inherit;
}

/* Let's rock this CSS */

header {
	text-align: center;
	padding: 40px 20px;

}

.menu {
	display: block;
	position: fixed;
	top: 20px;
	right: 20px;
	font-size: 2em;
	color: #256a9f;
	z-index: 99;
}

.menu.is-open {
	color: #fff;
}

.navigation {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(38, 131, 182, 0.7);
	z-index: 50;
	transform: translate(100%, 0);
	transition: transform 0.5s ease-out;
}

.navigation.is-open {
	transform: translate(0, 0);
	transition: transform 0.5s ease-in;
}

.navigation li {
	color: #fff;
	font-size: 1.4em;
	text-transform: uppercase;
	padding: 20px;
	letter-spacing: 0.05em;
	height: 25%;
	line-height: 25%;
	background: rgba(38, 131, 182, 0.8);
}

.navigation li:nth-child(2n+1) {
	background: rgba(0, 89, 156, 0.8);
}

.navigation li:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.25em; /* Adjusts for spacing */
}

.navigation li a {
	display: inline-block;
	vertical-align: middle;
	padding: 30px;
}

.logo {
	height: 200px;
	width: 200px;
}

.hero {
	max-width: 100%;
	width: 100%;
	overflow-x: hidden;
	text-align: center;
	padding: 20px;
	position: relative;
}

.hero:before {
	content: '';
	height: 280px;
	width: 100%;
	position: absolute;
	z-index: 1;
	background: #009fe3;
	bottom: 103px;
	left: 0;
}

.hero__image {
	background: url(../img/plumber.png) center/cover no-repeat;
	height: 300px;
	display: block;
	position: relative;
    z-index: 2;
    /*background-size: cover;*/
}

.hero__title {
	width: 200px;
	text-align: left;
	padding-left: 20px;
	font-size: 1.5em;
	line-height: 1.2;
	position: relative;
	top: 40%;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
	font-weight: 200
}

.container {
	max-width: 980px;
	margin: 0 auto;
	padding: 20px;
}

.container--hero {
	padding: 20px 0;
	height: 100%;
}

.main__title {
	font-size: 1.5rem;
	color: #009fe3;
	text-align: center;
	font-weight: bold;
	text-transform: uppercase;
	line-height: 1.1;
	margin-bottom: 30px;
}

.main__title--marg {
	margin-top: 240px;
	position: relative;
}

.main__title--marg:before {
	content: '';
	position: absolute;
	width: 100px;
	height: 2px;
	background: #ccc;
	top: -120px;
	left: 50%;
	margin-left: -50px;
}

.main__content {
	max-width: 720px;
	margin: 0 auto;
}

.main__content-paragraph {
	font-size: 1.2em;
	color: #333;
	line-height: 1.4;
	margin-bottom: 20px;
}

.service {
	width: 100%;
}

.service__item {
	width: 100%;
	text-align: center;
	color: #009fe3;
	margin-bottom: 30px;
}

.service__img {
	margin-bottom:  10px;
}

.service__name {
	display: block;
	font-size: 1.2em;
}

.also {
	text-align: center;
	margin-top: 20px;
	margin-bottom: 30px;
	color: #2380b3;
	text-transform: uppercase;
	font-size: 1.4em;
}

.rest {

}

.rest__item {
	text-align: center;
	color: #009fe3;
	margin-bottom: 20px;
	font-size: 1.2em;
}

.refs {
	width: 100%;
}

.refs__item {
	width: 100%;
	background: rgba(116,204,244, 0.1);
	height: 260px;
	padding: 20px;
	overflow: hidden;
	text-align: center;
	line-height: 260px;
	position: relative;
}

.refs__item:nth-child(2n+1){
	background: rgba(0,184,238, 0.1);
}

.refs__item-image {
	max-width: 100%;
}

.refs__item-desc {
	background: rgba(116,204,244, 0.6);
	padding: 20px;
	position: absolute;
	left: 0;
	bottom: 0;
	display: inline-block;
	line-height: 1;
	width: 100%;
	height: 70px;
}

.refs__item:nth-child(2n+1) .refs__item-desc {
	background: rgba(0,184,238, 0.6);
}



.map {
	width: 100%;
	height: 300px;
}

.address {
	padding: 20px;
}

.footer {
	text-align: center;
	padding: 60px 20px 0 20px;
	height: 200px;
	background: url('../img/back.png') center center  no-repeat #ebebeb;
}

@media screen and (min-width: 480px) {
	.service__item {
		width: 50%;
		float: left;
	}
	.refs__item {
		width: 50%;
		float: left;
	}
}


@media screen and (min-width: 640px) {
	.navigation li {
		font-size: 2rem;
	}
	.hero__image {
		height: 400px;
	}

	.hero__title {
		width: 300px;
		padding-left: 40px;
	}

	.main__title {
		font-size: 2em;
		margin: 30px 0 90px;
	}

	.main__title--marg {
		margin-top: 240px;
	}

	.map {
		width: 50%;
		float: left;
	}

	.address {
		width: 50%;
		float: left;
		font-size: 1.4em;
		text-align: center;
	}
}

@media screen and (min-width: 920px) {
	.hero__image {
		height: 550px;
		background-size: initial;
	}

	.navigation li {
		font-size: 3rem;
	}

	.hero__title {
		width: 400px;
		padding-left: 70px;
		font-size: 2em;
	}

	.service__item {
		width: 25%;
	}

	.refs__item {
		width: 33.3333%;
	}
}
