/* Yleiset tyylit */

body {
	margin: 0;
	padding: 40px 60px;
	color: #000000;
	background-color: #fefefe;
	background-image: url("../img/bg.png");
	background-repeat: no-repeat;
	background-position: 50% 0%;
	background-size: cover;
	background-attachment: fixed;
	font-family: "Lora", serif;
	font-size: 16px;
	line-height: 1.7;
}

@media only screen and (max-width: 900px) {
	body {
		padding: 40px;
	}
}

@media only screen and (max-width: 700px) {
	body {
		padding: 20px;
	}
}

@media only screen and (max-width: 500px) {
	body {
		font-size: 14px;
	}
}


/* wrappers */

.clearfix::after {
	content: "";
	display: table;
	clear: both;
	visibility: hidden;
	font-size: 0;
	height: 0;
}

.container {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
}

/* links */

a {	
	color: #000000;
	text-decoration:none;
}

a:hover {	
	text-decoration: none;
	border-bottom: 2px solid #000000;
	padding-bottom: 3px;
}

/* headings, paragraphs */

h1, h2, h3 {
	margin: 15px 0;
	font-family: "Avenir", sans-serif;
	font-weight: 500;
}

p {
	margin: 0 0 15px;
}

/* header */

#header h1 {
	font-size: 40px;
	line-height: 1.35;
	margin: 0 0 30px;
}

@media only screen and (max-width: 500px) {
	#header h1 {
		font-size: 25px;
		margin: 0 0 15px;
	}
}

#header .text {
	max-width: 640px;
}

#header .text h2 {
	margin: 0 0 30px;
	font-size: 48px;
	line-height: 1.35;
	font-weight: 600;
}

@media only screen and (max-width: 700px) {
	#header .text h2 {
		font-size: 38px;
	}
}

@media only screen and (max-width: 500px) {
	#header .text h2 {
		font-size: 28px;
		margin: 0 0 15px;
	}
}

#header .text p {
	font-size: 20px;
}

@media only screen and (max-width: 700px) {
	#header .text p {
		font-size: 18px;
	}
}

@media only screen and (max-width: 500px) {
	#header .text p {
		font-size: 14px;
	}
}

/* content */

#content hr {
	border: 0;
	background-color: #cccccc;
	width: 100%;
	height: 1px;
	margin: 30px 0;
	padding: 0;
}

#content .contact-information {
	float: right;
	width: 35%;
	margin-left: 5%;
}

@media only screen and (max-width: 800px) {
	#content .contact-information {
		width: 40%;
	}
}

@media only screen and (max-width: 700px) {
	#content .contact-information {
		float: none;
		width: auto;
		margin-left: 0;
	}
}

#content .contact-information h3 {
	margin: 30px 0;
}

@media only screen and (max-width: 700px) {
	#content .contact-information h3 {
		margin: 15px 0;
	}
}

#content .contact-information h3 span.icon {
	display: inline-block;
	vertical-align: middle;
	font-weight: 400;
}

#content .services {
	float: left;
	width: 60%;
}

@media only screen and (max-width: 800px) {
	#content .services {
		width: 55%;
	}
}

@media only screen and (max-width: 700px) {
	#content .services {
		float: none;
		width: auto;
	}
}

/* footer */

#footer {
	padding: 60px 0;
	text-align: center;
}