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

* {
   -moz-box-sizing:    border-box;   /* Firefox 1, probably can drop this */
   -webkit-box-sizing: border-box;   /* Safari 3-4, also probably droppable */
    box-sizing:        border-box;   /* Everything else */
}

/***************************
/* General
****************************/

body {
	background: #044588;
	line-height: 18px;
	color: #435C68;
}

body, p, a {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 14px;
}

a, a:visited {
	text-decoration: none;
	color: #044588;
}

a:hover {
	color: #1d85f0;
}

/* Header */

.header {
	background: #fff;
	height: 80px;
	min-width: 830px;
}

.container {
	width: 800px;
	margin: 0 auto;
}

.tel {
	float: right;
	margin: 35px 15px 0 15px;
	font-weight: 700;
}

.tel span {
	color: rgba(88, 131, 160, 0.7);
	margin-left: 20px;
}

.nav {
	float: right;
	list-style: none;
}

.nav li {
	display: inline-block;
	height: 80px;
}

.nav li a {
	margin: 35px 15px 0 15px;
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
}

.logo {
	width: auto;
	height: 80px;
	margin: 0;
	float: left;
}

/***************************
/* Content
****************************/

.first {
	padding: 0;
	background-image: url('esimerkit-2.jpg');
	height: 300px;
	padding-top: 0px;
	background-size: cover;
	background-position: left;
	background-repeat: repeat-x;
	box-shadow: inset 0 2px 7px rgba(0,0,0,0.3);
	-moz-box-shadow: inset 0 2px 7px rgba(0,0,0,0.3);
	-webkit-box-shadow: inset 0 2px 7px rgba(0,0,0,0.3);
	min-width: 830px;
}

.first .container {
	position: relative;
	height: 300px;
}

.first h1 {
	font-size: 28px;
	line-height: 40px;
	width: 450px;
	background: #fff;
	padding: 30px;
	position: absolute;
	bottom: 0px;
	left: 0px;
}

.second {
	min-width: 830px;
}

.second .box {
	width: 370px;
	margin: 60px 0 60px 0;
	padding: 30px 30px 0 30px;
	float: left;
	vertical-align: top;
	min-height: 162px;
	background: rgba(0,0,0,0.3);
	border-left: 4px solid #4CA3FF; 
}

.second .box-left {
	margin-right: 60px;
}

.second .box p {
	font-size: 18px;
	line-height: 24px;
	margin-bottom: 30px;
	color: #fff;
}

.second .box p:before {
	content: "• ";
	margin-bottom: 10px;
	margin-right: 10px;
	color: #93BCE8;
	display: block;
	float: left;
}

.third {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 60px;
	padding-bottom: 60px;
	min-width: 830px;
}

.third h2 {
	color: #fff;
	font-size: 24px;
	display: block;
	margin-bottom: 30px;
}

.third h2 span {
	color: rgba(255,255,255,0.4);
	font-size: 14px;
}

.ref-link {
	position: relative;
	width: 136px;
	display: block;
	float: left;
	height: 136px;
	margin: 15px;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	-moz-box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	-webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.ref-link span {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30px;
	text-align: center;
	background: #fff;
	padding-top: 5px;
}

.ref-link:hover {
	box-shadow: 0 0 0 4px #fff;
	-moz-box-shadow: 0 0 0 4px #fff;
	-webkit-box-shadow: 0 0 0 4px #fff;
}

.ref-container {
	margin-left: -15px;
	margin-right: -15px;
}

.ref-link img {
	width: 200px;
	height: auto;
	margin-top: -10px; 
}

.ref-title {
	color: #fff;
	margin-left: 15px;
}

.ref-container hr {
	border-width: 1px;
	margin: 15px;
	border-top: 1px solid rgba(255,255,255,0.1);
	border-bottom: none;
}

.footer {
	background: #fff;
	padding: 30px 0;
	text-align: center;
}

.footer p strong {
	font-weight: 700;
}


/**
 * Featherlight – ultra slim jQuery lightbox
 * Version 0.4.9 - http://noelboss.github.io/featherlight/
 *
 * Copyright 2014, Noël Raoul Bossart (http://www.noelboss.com)
 * MIT Licensed.
**/
@media all {
	.featherlight {
		display: none;

		/* dimensions: spanning the background from edge to edge */
		position:fixed;
		top: 0; right: 0; bottom: 0; left: 0;
		z-index: 2;

		/* position: centering content */
		text-align: center;

		/* insures that the ::before pseudo element doesn't force wrap with fixed width content; */
		white-space: nowrap;

		/* styling */
		cursor: pointer;
		background: #333;
		/* IE8 "hack" for nested featherlights */
		background: rgba(0, 0, 0, 0);
	}

	/* support for nested featherlights. Does not work in IE8 (use JS to fix) */
	.featherlight:last-of-type {
		background: rgba(0, 0, 0, 0.8);
	}

	.featherlight:before {
		/* position: trick to center content vertically */
		content: '';
		display: inline-block;
		height: 100%;
		vertical-align: middle;
		margin-right: -0.25em;
	}

	.featherlight .featherlight-content {
		/* make content container for positioned elements (close button) */
		position: relative;

		/* position: centering vertical and horizontal */
		text-align: left;
		vertical-align: middle;
		display: inline-block;

		/* dimensions: cut off images */
		overflow: auto;
		padding: 25px 25px 0;
		border-bottom: 25px solid transparent;

		/* dimensions: handling small or empty content */
		min-width:  30%;

		/* dimensions: handling large content */
		margin-left: 5%;
		margin-right: 5%;
		max-height: 95%;

		/* styling */
		background: #fff;
		cursor: auto;

		/* reset white-space wrapping */
		white-space: normal;
	}

	/* contains the content */
	.featherlight .featherlight-inner {
		/* make sure its visible */
		display: block;
	}

	.featherlight .featherlight-close-icon {
		/* position: centering vertical and horizontal */
		position: absolute;
		z-index: 9999;
		top: 0;
		right: 0;

		/* dimensions: 25px x 25px */
		line-height: 25px;
		width: 25px;
		height: 25px;
		font-weight: bold;

		/* styling */
		cursor: pointer;
		text-align: center;
		font-weight: bold:;
		font: Arial, sans-serif;
		background: #fff; /* Set the background in case it overlaps the content */
		color: #000;
	}


	.featherlight .featherlight-image {
		/* styling */
		width: 100%;
	}


	.featherlight-iframe .featherlight-content {
		/* removed the border for image croping since iframe is edge to edge */
		border-bottom: 0;
		padding: 0;
	}

	.featherlight iframe {
		/* styling */
		border: none;
	}
}

/* handling phones and small screens */
@media only screen and (max-width: 1024px) {
	.featherlight .featherlight-content {
		/* dimensions: maximize lightbox with for small screens */
		margin-left: 10px;
		margin-right: 10px;
		max-height: 98%;

		padding: 10px 10px 0;
		border-bottom: 10px solid transparent;
	}
}
