@charset "utf-8";
* {
	box-sizing: border-box;
}
body {
	background: #51657f;
	color: #333333;
	font-family: Ubuntu, "Century Gothic", Verdana, sans-serif;
	font-size: 102%;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-o-font-smoothing: antialiased;
	font-smoothing: antialiased;
	font-weight: 300;
	margin: 0;
	padding: 0;
	text-rendering: optimizeLegibility;
}
/* set default text properties */
h1, h2, h3, h4, h5, h6, ol, ul, dl, p, a, span {
	font-weight: 300;
	line-height: 1.5em;
	margin: 0;
	padding: 0;
}
h1, h2, h3, h4, h5, h6, p {
	margin-bottom: 1.125em;
}
/* reset button styles */
button {
	all: revert;
	background: transparent;
	border: none;
	font-family: inherit;
	margin: 0;
	padding: 0;
}
.button {
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
	font-size: 0.750em;
	padding: 8px 0;
	text-align: center;
	text-transform: uppercase;
	transition: all ease 0.2s;
	width: 100px;
}
.button:active {
	transform: translateY(1px);
}
/* .active and .hidden control element visibility */
.active {
	display: inherit !important;
}
.hidden,
.antispam {
	display: none !important;
}
/* ui elements */
.ui-modal {
	background: #333333;
	background: rgba(51, 51, 51, 0.6);
	color: #51657f;
	display: none;
	height: 100vh; /* fallback for no js */
	height: calc(var(--vh, 1vh) * 100); /* --vh from js */
	position: fixed;
	left: 0;
	text-align: center;
	top: 0;
	width: 100%;
	z-index: 9999;
}
.ui-modal-content {
	background-color: #ffffff;
	border-radius: 0.625rem;
	left: 50%;
	margin: 1.125rem;
	max-width: 320px;
	padding: 2.5rem;
	position: fixed;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
}
.ui-modal-close {
	background: #f6ae2d !important;
	width: 100%;
}
.ui-modal-close:hover,
.ui-modal-close:focus {
	background: #98c1d9 !important;
	color: #333333 !important;
}
/* .wrapper limits content width to 1366px */
.wrapper {
	margin: auto;
	max-width: 1366px;
	padding: 40px;
}
/* .flex-wrapper allows for responsive content */
.flex-wrapper {
	display: flex;
	flex-direction: column;
}
/* .top scrolls viewport to top */
#scroll-top {
	background: url(../_images/scroll-top.svg) center no-repeat #ffffff;
	background-size: 16px;
	border: solid 1px #51657f;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	-o-border-radius: 6px;
	border-radius: 6px;
	bottom: 40px;
	height: 32px;
	filter: alpha(opacity=20);
    -moz-opacity: 0.2;
	opacity: 0.2;
	position: fixed;
	right: 40px;
	transition: all ease 0.2s; 
	width: 32px;
	z-index: 999;
}
#scroll-top:hover {
	background-size: 24px;
	height: 48px;
	filter: alpha(opacity=80);
    -moz-opacity: 0.8;
	opacity: 0.8;
	width: 48px;
}
#scroll-top:active {
	filter: alpha(opacity=20);
    -moz-opacity: 0.2;
	opacity: 0.2;
}
.nav-wrap {
	background: #51657f;
	flex-direction: column;
	font-size: 0.975em;
	position: fixed;
	top: 0;
	transition: all ease 0.2s;
	width: 100%;
	z-index: 800;
}
.nav-up {
	transform: translateY(-72px);
}
.nav-bar {
	flex-direction: row !important;
	justify-content: space-between;
	padding: 20px 40px;		
}
.nav-bar > div {
	flex-basis: 32px;
	height: 32px;
	width: 100%;
}
nav ul {
	display: none;
	text-align: center;
}
nav li {
	background: rgba(0,0,0,.2);
	display: block;
	margin-bottom: 2px;
	padding: 10px;
	text-decoration: none;
	text-transform: uppercase;
	transition: all ease 0.2s;
}
nav li:hover,
nav li:focus {
	background: rgba(0,0,0,.4);
}
nav li:active {
	background: rgba(0,0,0,.4);
}
nav a,
nav a:visited {
	text-decoration: none;
	color: #ffffff;
	cursor: pointer;
}
#lg {
	background: url(../_images/logo.svg) left no-repeat;
	background-size: contain;
}
#hamburger {
	background: url(../_images/menu.svg) right no-repeat;
	background-size: 32px;
	cursor: pointer;
}
.hero {
	box-sizing:  content-box;
	background-attachment: fixed;
	background-color: #ffffff;
	background-size: cover;
	color: #ffffff;
	height: 100vh;
}
.hero > .wrapper {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	z-index: 500;
}
.hero h1,
.hero p {
	margin-bottom: 40px;
	max-width: 360px;
}
.hero h1 {
	font-style: italic;
	font-weight: 700;
	line-height: 1.125em;
}
.hero p {
	font-size: 1.125em;
}
#more-info {
	border: 1px solid #ffffff;
	color: #ffffff;
}
#more-info:hover,
#more-info:focus {
	background: #51657f;
	border: 1px solid #51657f;
}
#more-info:active {
	background: rgba(0,0,0,0);
	border: 1px solid #ffffff;
}
#more-info span {
	background: url(../_images/arrow-down.svg) no-repeat;
	background-position: 43px 2px;
	background-size: 12px;
	padding-right: 20px;
}
/* set up image slideshow. Slideshow is absolutely positioned and fills screen */
.slideshow,
.slideshow::after {
	height: 100%;
	left: 0;
	overflow: hidden;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 0;
}
/* add semi-transparent background above slideshow images */
.slideshow::after {
	background: rgba(0,0,0,.6);
	content: '';
}
/* .slideshow span contains slideshow images */
/* images always fill viewport */
.slideshow li span {
	animation: imageAnimation 20s linear infinite 0s;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: transparent;
	height: 100%;
	left: 0px;
	opacity: 0;
	position: absolute;
	top: 0px;
	width: 100%;
	z-index: 0;
}
.slideshow li:nth-child(1) span {
	background-image: url(../_images/bg-01.jpg);
}
.slideshow li:nth-child(2) span {
	animation-delay: 5s;
	background-image: url(../_images/bg-02.jpg);
}
.slideshow li:nth-child(3) span {
	animation-delay: 10s;
	background-image: url(../_images/bg-03.jpg);
}
.slideshow li:nth-child(4) span {
	animation-delay: 15s;
	background-image: url(../_images/bg-04.jpg);
}
/* set up animation keyframes */
@keyframes imageAnimation {
	0% { opacity: 0; animation-timing-function: ease-in; }
	12% { opacity: 1; animation-timing-function: ease-out; }
	25% { opacity: 1; }
	37% { opacity: 0; }
	100% { opacity: 0; }
}
/* .slideshow position markers postioned at bottom center of screen */
/* placed further apartr on narrower screens */
.slideshow li div {
	animation: titleAnimation 20s linear infinite 0s;
	background-color: #51657f;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
	bottom: 40px;
	height: 10px;
	position: absolute;
	width: 10px;
	z-index: 400;
}
.slideshow li:nth-child(1) div { 
	left: 44%;
}
.slideshow li:nth-child(2) div {
	animation-delay: 5s;
	left: 48%;
}
.slideshow li:nth-child(3) div {
	animation-delay: 10s;
	left: 52%;
}
.slideshow li:nth-child(4) div {
	animation-delay: 15s;
	left: 56%;
}
/* set up animation keyframes */
@keyframes titleAnimation {
	0% { background-color: #51657f; }
	11% { background-color: #f6ae2d; }
	24% { background-color: #f6ae2d; }
	36% { background-color: #51657f; }
	100% { background-color: #51657f; }
}
#about {
	background: #ffffff;
	padding-bottom: 20px;
	padding-top: 160px;
}
#services {
	background: #ffffff;
	font-kerning: auto;
}
#services h2 {
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.125em;
	text-align: left;
}
#services p {
	text-align: left;
}
.service {
	padding-bottom: 40px;
	text-align: center;
}
.service img {
	box-sizing: content-box;
	padding-bottom: 40px;
}
#error-404 {
	background: #ffffff;
	color: #51657f;
	font-size: 1.125em;
	height: 100vh;
	margin: auto;
	position: relative;
	text-align: center;
}
#error-404 > .wrapper {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}
#error-404 h1 {
	font-size: 10em;
	font-weight: 700;
	margin: 0;
}
#error-404 p:nth-child(4) {
	animation: headShake 5s linear infinite 0s;
	font-size: 1.750em;
	transform: rotate(90deg);
}
/* set up animation keyframes */
@keyframes headShake {
	0% { transform: rotate(90deg); }
	10% { transform: rotate(90deg); }
	13% { transform: rotate(80deg); }
	16% { transform: rotate(100deg); }
	19% { transform: rotate(90deg); }
	100% { transform: rotate(90deg); }
}
#privacy {
	background: #ffffff;
	padding-bottom: 60px;
	padding-top: 60px;
	text-align: justify;
}
#privacy h1 {
	font-size: 2.500em;
	font-weight: 700;
	line-height: 2em;
	margin: 2em 0 -0.125em 0; 
}
#privacy h2 {
	font-size: 1.250em;
	font-weight: 500;
	margin-bottom: 0;
}
#privacy h3 {
	font-size: 1em;
	font-weight: 500;
	margin-bottom: 0.250em;
}
#privacy ul {
	padding: 0 0 1.125em 2em;
}
#cookie-delete {
	background: #f6ae2d;
	border: 1px solid #f6ae2d;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
	color: #333333;
	margin-right: 10px;
	margin-top: 10px;
	padding: 12px 0;
	transition: all ease 0.2s;
}
#cookie-delete:hover,
#cookie-delete:focus {
	background: #98c1d9;
	border: 1px solid #98c1d9;
	color: #333333;
}
#footer {
	background: #51657f;
	bottom: 0;
	color: #ffffff;
	font-size: 0.875em;
	text-align: center;
}
#footer button {
	font-size: 0.875em;
	padding: 12px 0 !important;
}
#info {
	text-align: left;
}
#info > div {
	padding-bottom: 40px;
}
/*change order of divs so cookie message comes last*/
#info > div:nth-child(1) {
	order: 3;
}
#info > div:nth-child(2) {
	order: 1;
}
#info > div:nth-child(3) {
	order: 2;
}
#info h3 {
	font-size: 1.5em;
	font-weight: 500;
	line-height: 1.125em;
}
#info a,
#info a:visited {
	color: #f6ae2d;
	text-decoration: none;
}
#info a:hover {
	color: #ffffff;
}
#cookie-accept {
	background: #f6ae2d;
	border: 1px solid #f6ae2d;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
	color: #333333;
	margin-right: 10px;
	transition: all ease 0.2s;
}
#cookie-accept:hover,
#cookie-accept:focus {
	background: #98c1d9;
	border: 1px solid #98c1d9;
	color: #333333;
}
/*style clickable email and phone links */
a[href^="mailto"],
a[href^="tel"]  {
	color: #ffffff !important;
	text-decoration: none;
}
a[href^="mailto"]:hover,
a[href^="tel"]:hover {
	text-decoration: underline !important;
}
/*add phone and email icons to clickable links */
a[href^="tel"]:nth-child(1) {
	background: url(../_images/phone.svg) no-repeat;
	background-position: 0px 2px;
	padding-left: 25px;
}
a[href^="mailto"] {
	background: url(../_images/mail.svg) no-repeat;
	background-position: 0px 2px;
	padding-left: 25px;
}
/*contact form styling*/
input,
textarea {
	border: none;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
	color: #51657f;
	font-family: Ubuntu, "Century Gothic", Verdana, sans-serif;
	margin: 5px 0;
	padding: 10px;
	width: 100%;
}
input {
	height: 40px;
}
textarea {
	height: 150px;
}
input:focus,
textarea:focus {
	color: #333333;
	border: solid #98c1d9 2px;
}
/*form submit button styling*/
form > button {
	background: #f6ae2d;
	color: #333333;
	font-weight: 300;
	margin: 5px 0;
	max-width: 100px;
	text-transform: uppercase;
	transition: all ease 0.2s;
}
form > button:hover,
form > button:focus {
	background: #98c1d9;
}
#cf-reset {
	background: transparent !important;
	float: right;
	width: 44px !important;
}
#cf-reset:hover #rst,
#cf-reset:focus #rst {
	fill: #f6ae2d;
}
.email-redirect {
	background: #ffffff;
	color: #333333;
	height: 100vh;
	text-align: center;
	width: 100%;
}
.success,
.error {
	background-position: 0 -1px;
	color: #ffffff;
	display: inline;
	padding-left: 1.5rem;
	margin-left: 0.625rem;
}
.success {
	background: url(../_images/success.svg) no-repeat;
}
.error {
	background: url(../_images/error.svg) no-repeat;
}
.input-error {
	background-image: url('../_images/error.svg') !important;
	background-position: 96% 0.5rem !important;
	background-position: calc(100% - 0.5rem) 0.5rem !important;
	background-size: 1rem !important;
	background-repeat: no-repeat !important;
	padding-right: 1.875rem !important;
}

/* media query to apply styling to screens larger than 760px */
@media screen and (min-width: 760px) {
	/* change div orientation to landscape */
	.flex-wrapper {
		flex-flow: row;
	}
	.nav-wrap {
		flex-flow: row !important;
	}
	.nav-wrap > div {
		width: 100%;
	}
	.nav-bar {
		flex: 2 !important;
	}
	#hamburger {
		display: none;
	}
	nav ul {
		display: block;
		padding: 12px 30px 0 0;
	}
	nav li {
		background: rgba(0,0,0,0);
		display: inline-block;
	}
	nav li:hover,
	nav li:focus {
		background: rgba(0,0,0,0);
	}
	nav a,
	nav a:visited {
		text-decoration: none;
		color: #ffffff;
		cursor: pointer;
	}
	nav a:hover,
	nav a:focus {
		text-decoration: underline;
		text-decoration-color: #ffffff;
	}
	nav a:active {
		background: rgba(0,0,0,0);
		color: #f6ae2d;
	}
	.hero h1 {
		font-size: 3em;
		max-width: 560px;
	}
	.hero p {
		text-align: left;
	}
	/* .slideshow position markers postioned at bottom center of screen */
	/* placed closer together on wider screens */
	.slideshow li:nth-child(1) div { left: 47%; }
	.slideshow li:nth-child(2) div { left: 49%; }
	.slideshow li:nth-child(3) div { left: 51%; }
	.slideshow li:nth-child(4) div { left: 53%; }
	#services > .wrapper {
		flex-flow: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.service {
		flex-basis: 48%;
	}
	#info {
		flex-wrap: wrap;
		justify-content: space-between;
	}
	/* set flex basis for divs */
	#info > div { 
		flex: 1 !important;
		min-width: 300px;
	}
	/*change order of divs so cookie message comes first*/
	#info > div:nth-child(1) {
		order: 1;
	}
	#info > div:nth-child(2) {
		order: 2;
	}
	#info > div:nth-child(3) {
		order: 3;
	}
	/* contact form should take up half the screen space */
	#info > div:last-child {
		flex: 2 !important;
		min-width: 300px;
	}
	#info h3,
	#info p {
		margin-right: 40px;
	}
}

/* media query to apply styling to screens larger than 1230px */
@media screen and (min-width: 1230px) {
	.service {
		flex-basis: 23% !important;
	}
}

/* media query to apply styling to landscape mobile screens */
@media only screen and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
	#hero {
		position: relative;
	}
	.hero {
		height: calc(100vh + 180px);
	}
}