/* @group reset - eric myer reset v2.0 | 20110126
-----------------------------------------------------------------*/
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;
}

/* Set CSS Variables
-----------------------------------------------------------------*/
:root {
	--primary-color: #5085af;
	--secondary-color: #485051;
	--tertiary-color: #889799;
	--comp-color: #d46322;
	--main-font: arial, helvetica, sans-serif;
	--heading-font: 'Roboto', arial, helvetica sans-serif;
}

/* Set tags and general classes
-----------------------------------------------------------------*/
* {
	box-sizing: border-box;
	outline: none;
	-webkit-text-size-adjust: 100%;
	user-select: none;
}

body {
	font-family: var(--main-font);
	font-size: 18px;
	color: #222;
	line-height: 1.4;
	min-width: 320px;
	background-color: #f8f8f8;
}

h1, h2, h3, h4, h5 {
	position: relative;
	font-family: var(--heading-font);
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: 20px;
	font-size: 48px;
	color: var(--primary-color);
	z-index: 1;
}
h2 {
	text-transform: uppercase;
	font-size: 20px;
	font-weight: 700;
	margin-top: 10px;
}
h2::before {
	position: absolute;
	top: -45px;
	left: -12px;
	content: "";
	font-family: "Shadows Into Light", cursive;
	font-weight: 400;
	font-style: normal;
	text-transform: none;
	font-size: 70px;
	color: rgba(136, 151, 153, .3);
	z-index: -1;
}
#services h2::before {
	content: "Services";
}
#portfolio h2::before {
	content: "Projects";
}
#contact h2::before {
	content: "Contact";
}
h3 {
	font-size: 32px;
	margin-bottom: 15px;
	color: #222;
}
h4 {
	font-size: 24px;
	margin-bottom: 10px;
	color: #222;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: all .3s ease;
}
a:hover {
	color: #000;
}
a.btn-link {
	font-family: var(--heading-font);
	display: inline-block;
	padding: 6px 32px;
	border-radius: 12px;
	margin-top: 5px;
	color: #fff;
	background: #788287;
}
a.btn-link:hover {
	padding: 6px 20px;
	background: var(--primary-color);
}
a.btn-link::after {
	content: "\2192";
	max-width: 0px;
	transition: all .3s ease;
	display: inline-block;
	overflow: hidden;
	padding: 0;
	margin: 0;
	height: 20px;
	color: #fff;
}
a.btn-link:hover::after {
	max-width: 18px;
	margin-left: 6px;
}

img, iframe, video {
	display: block;
	max-width: 100%;
}

p {
	margin-bottom: 15px;
}

input, select, textarea, button {
	font: inherit;
	box-shadow: none;
	background: #fff;
}
select {
	-webkit-appearance: none;
	appearance: none;
	background: #fff url('../images/dropdown-arrow.png') no-repeat right 15px center;
    background-size: 18px 12px;
	padding-right: 40px;
}
select:focus {
	background-image: url('../images/dropdown-arrow-up.png');
}
button {
	font-family: var(--heading-font);
	font-size: 17px;
	color: #fff;
	text-transform: uppercase;
	background: var(--primary-color);
	max-width: 400px;
	margin: 5px auto 20px auto;
	border: 0;
	border-radius: 5px;
	padding: 12px 36px;
	line-height: 1;
	cursor: pointer;
	transition: all .3s ease;
}
button:hover {
	background: var(--tertiary-color);
}
.input-wrapper {
	position: relative;
	max-width: 100%;
	margin: 0 0 5px 0;
}
.input-wrapper input, .input-wrapper select, .input-wrapper textarea {
	display: block;
	padding: 8px 15px;
	width: 100%;
	border: 2px solid var(--secondary-color);
	border-radius: 5px;
	font-size: 16px;
	transition: all .2s linear;
	user-select: auto;
}
.input-wrapper textarea {
	height: 160px;
	resize: none;
}
.input-wrapper input:focus, .input-wrapper select:focus, .input-wrapper textarea:focus, #newsletter-form input:focus {
	border-color: var(--primary-color);
}
.input-wrapper label {
	position: absolute;
	top: 10px;
	left: 17px;
	color: #666;
	cursor: text;
	user-select: none;
	font-size: 15px;
	transition: all .2s;
}
.input-wrapper.has-text input, .input-wrapper.has-text select, .input-wrapper.has-text textarea {
	padding: 14px 15px 2px 15px;
}
.input-wrapper.has-text select {
	padding-left: 11px;
}
.input-wrapper.has-text label {
	font-size: 12px;
	top: 3px;
}

.bold, strong, b {
	font-weight: 400;
}
.italic, em, i {
	font-style: italic;
}

.error {
	color: #ff3333;
}

.center {
	text-align: center;
}

#page-wrapper {
	position: relative;
	width: 100%;
	min-height: 100vh;
	margin: 0 auto;
	overflow: hidden;
	background: transparent;
}
#page-wrapper.nav-open {
	position: fixed;
}
.content-wrapper {
	width: 100%;
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 20px;
}
.content-wrapper-main {
	width: 100%;
	max-width: 1760px;
	margin: 0 auto;
	padding: 0 20px;
}

.padding {
	padding-top: 60px;
	padding-bottom: 60px;
}
.padding-bottom {
	padding-bottom: 60px;
}
.padding-top {
	padding-top: 60px;
}

.wysiwyg-content ul {
	list-style: disc;
	margin: 0 0 25px 30px;
}
.wysiwyg-content ol {
	list-style: decimal;
	margin: 0 0 25px 30px;
}
.wysiwyg-content li ul, .wysiwyg-content li ol {
	margin-bottom: 0;
}
.wysiwyg-content img {
	height: auto;
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.video-wrapper iframe, .video-wrapper video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
/* Firefox */
input[type=number] {
	-moz-appearance: textfield;
}


::placeholder {
	color: inherit;
	opacity: 1;
}
::-ms-input-placeholder {
	color: inherit;
}

/* Site Specific
-----------------------------------------------------------------*/
#intro {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 270vw;
	height: 270vw;
	border-radius: 50%;
	display: flex;
	background-color: var(--primary-color);
	justify-content: center;
	align-items: center;
	z-index: 9999;
	animation: intro 1.2s ease-out;
	animation-delay: .3s;
	animation-fill-mode: forwards;
}
#intro img {
	width: 250px;
}
@keyframes intro {
	0% {
		opacity: 1;
	}
	85% {
		opacity: 1;
		width: 250px;
		height: 250px;
	}
	99% {
		opacity: 0;
		width: 250px;
		height: 250px;
	}
	100% {
		opacity: 0;
		width: 0;
		height: 0;
	}
}
@media all and (max-width: 500px) {
	#intro img {
		width: 200px;
	}
	@keyframes intro {
		0% {
			opacity: 1;
		}
		85% {
			opacity: 1;
			width: 200px;
			height: 200px;
		}
		99% {
			opacity: 0;
			width: 200px;
			height: 200px;
		}
		100% {
			opacity: 0;
			width: 0;
			height: 0;
		}
	}
}

header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 0;
	min-height: 78px;
	box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0);
	background: rgba(255, 255, 255, .55);
	transition: all .3s ease;
	z-index: 1000;
}
header.scrolled {
	background: rgba(255, 255, 255, .9);
	box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, .2);
	border-bottom: 1px solid transparent;
	min-height: 60px;
}
.nav-open header {
	background: #fff;
}
header > div {
	position: relative;
}
header #logo {
	position: absolute;
	top: 0;
	left: 20px;
	width: 300px;
	transition: all .3s ease;
	padding: 5px 0;
}
@media screen and (max-width: 419px) {
	header #logo {
		margin-top: 8px;
		width: 240px;
	}
}
@media screen and (max-width: 359px) {
	header #logo {
		width: 210px;
	}
}
header.scrolled #logo {
	width: 200px;
}
#nav {
	position: absolute;
	right: 20px;
	top: 0;
	font-size: 0;
}
#nav li {
	display: inline-block;
}
#nav li a {
	position: relative;
	color: #333;
	display: block;
	height: 100%;
	font-family: var(--heading-font);
	font-weight: 500;
	font-size: 22px;
	padding: 26px 0;
	margin: 0 0 0 30px;
	background: transparent;
	overflow: hidden;
	transition: all .3s ease;
}
#nav li a::before {
	position: absolute;
	content: "";
	background: var(--primary-color);
	bottom: 24px;
	left: 0;
	width: 100%;
	height: 2px;
	z-index: -1;
	transform: translateX(-100%);
	transition: all .3s ease;
}
#nav li a:hover {
	color: var(--primary-color);
}
#nav li a:hover::before {
	transform: translateX(0%);
}
header.scrolled #nav li a {
	padding: 16px 0;
	font-size: 20px;
}
header.scrolled #nav li a::before {
	bottom: 15px;
}
header #mobile-nav {
	display: none;
	position: absolute;
	right: 20px;
	top: 25px;
	width: 35px;
	cursor: pointer;
	transition: all .3s ease;
}
header.scrolled #mobile-nav {
	top: 15px;
}
header #mobile-nav > div {
	background: var(--secondary-color);
	width: 100%;
	height: 5px;
	border-radius: 3px;
	transition: all .2s;
}
header #mobile-nav > div:nth-of-type(2) {
	margin: 5px 0;
}
header #mobile-nav.open > div:first-of-type {
	transform: rotate(45deg) translate3d(6px, 6px, 0);
}
header #mobile-nav.open > div:nth-of-type(2) {
	width: 0;
}
header #mobile-nav.open > div:last-of-type {
	width: 100%;
	transform: rotate(-45deg) translate3d(8px, -8px, 0);
}

@media all and (max-width: 860px) {
	#nav {
		display: flex;
		flex-flow: column;
		justify-content: center;
		align-items: center;
		right: 0;
		left: 0;
		width: 100%;
		top: 78px;
		height: calc(100vh - 78px);
		background: var(--primary-color);
		transform: translateX(100%);
		transition: all .2s ease;
	}
	#nav.open {
		transform: translateX(0px);
	}
	#nav li {
		display: block;
		width: 100%;
		margin: 10px 0;
	}
	#nav li a, header.scrolled #nav li a {
		color: #fff;
		font-size: 36px;
		padding: 10px 20px;
		text-align: center;
		margin: 0;
		background: rgba(255, 255, 255, 0);
	}
	#nav li a:hover {
		color: #fff;
		background: rgba(255, 255, 255, .2);
	}
	header #mobile-nav {
		display: block;
	}
}

#hero {
	position: relative;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}
#scroll-container {
	position: relative;
	height: 100vh;
 }
#background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	display: block;
	background: transparent url('../images/background.webp') no-repeat top center;
	background-size: cover;
	transform: scale(1.07);
	filter: saturate(0%);
	animation: zoomout 2s ease-out;
	animation-fill-mode: forwards;
	animation-delay: 1s;
}
@keyframes zoomout {
	100% {
		transform: scale(1);
		filter: saturate(100%);
	}
}
#hero-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100;
	text-align: center;
	opacity: 0;
	margin-top: 50px;
	animation: slidein 1.5s;
    animation-fill-mode: forwards;
	animation-delay: 1.4s;
}
@keyframes slidein {
	100% {
		margin-top: 0px;
		opacity: 1;
	}
}
#hero-text h1 {
	font-family: 'Playfair Display', arial, helvetica sans-serif;
	color: #fff;
	font-size: 75px;
	font-weight: 600;
	font-style: italic;
	text-transform: none;
	margin-bottom: 20px;
	text-shadow: 2px 2px rgba(0, 0, 0, .4);
}
#hero-text p {
	color: #fff;
	font-size: 22px;
	margin: 0;
	text-shadow: 1px 1px rgba(0, 0, 0, .35);
}
@media all and (max-width: 820px) {
	#hero-text h1 {
		font-size: 58px;
	}
}
@media all and (max-width: 420px) {
	#hero-text h1 {
		font-size: 50px;
	}
}

#padding-404 {
	padding: 130px 0 240px 0;
}
.half-width {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	column-gap: 30px;
	row-gap: 30px;
}
.half-width > div {
	flex-basis: calc(50% - 15px);
}
@media all and (max-width: 1080px) {
	#padding-404 {
		padding: 130px 0 40px 0;
	}
	.half-width > div {
		flex-basis: 100%;
	}
}

#services, #portfolio, #contact {
	background: #f2f3f4;
}
#services h3 {
	margin-top: 30px;
}
.service-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
	padding: 30px 0 40px 0;
}
.service-wrapper > div {
	flex-basis: calc(33.3333% - 20px);
	text-align: center;
	background: #fff;
	padding: 10px 20px 15px 20px;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .1);
	transform: translateY(0px);
	transition: all .3s ease-out;
}
.service-wrapper > div:hover {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .4), 0 6px 24px 0 rgba(0, 0, 0, .4);
	transform: translateY(-5px);
}
.service-wrapper img {
	width: 245px;
	border-radius: 50%;
	margin: 20px auto;
	background: #eee;
}
@media all and (max-width: 1200px) {
	.service-wrapper > div {
		flex-basis: calc(33.3333% - 14px);
		font-size: 16px;
		padding: 10px 15px;
	}
}
@media all and (max-width: 840px) {
	.service-wrapper {
		justify-content: center;
	}
	.service-wrapper > div {
		flex-basis: 100%;
		font-size: 18px;
		padding: 10px 20px;
		max-width: 600px;
		margin-bottom: 30px;
	}
}

#portfolio #portfolio-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	padding-bottom: 15px;
}
#portfolio #portfolio-wrapper > figure {
	overflow: hidden;
	position: relative;
	flex-basis: calc(60% - 30px);
	width: calc(60% - 25px);
	border-radius: 5px;
}
#portfolio #portfolio-wrapper > div {
	flex-basis: calc(40% - 30px);
}
@media all and (max-width: 1080px) {
	#portfolio #portfolio-wrapper > figure {
		flex-basis: 100%;
		width: 100%;
		margin-bottom: 30px;
	}
	#portfolio #portfolio-wrapper > div {
		flex-basis: 100%;
	}
}
#portfolio #portfolio-wrapper > figure img.mobile {
	position: absolute;
	z-index: 99;
	top: 3%;
	right: 20px;
	width: auto;
	height: 94%;
	transform: translateX(calc(100% + 20px));
	transition: all .3s ease;
}
#portfolio #portfolio-wrapper > figure:hover img.mobile {
	transform: translateX(0);
}
#portfolio #portfolio-wrapper > figure img.desktop {
	filter: saturate(100%) blur(0px);
	transition: all .3s ease;
}
#portfolio #portfolio-wrapper > figure:hover img.desktop {
	filter: saturate(0%) blur(6px);
}
#portfolio #portfolio-wrapper > figure figcaption {
	position: absolute;
	bottom: 0;
	left: 20px;
	max-width: 53%;
	color: #fff;
	font-family: var(--heading-font);
	font-weight: 500;
	line-height: 1.1;
	font-size: 26px;
	text-shadow: 1px 1px #000;
	padding-bottom: 3%;
	transform: translateY(100%);
	transition: all .3s ease;
}
#portfolio #portfolio-wrapper > figure:hover figcaption {
	transform: translateY(0%);
}
@media all and (max-width: 520px) {
	#portfolio #portfolio-wrapper > figure figcaption {
		font-size: 20px;
	}
}
#portfolio h4 {
	font-size: 14px;
	margin-bottom: 10px;
}
#portfolio h4::before {
	content: "# ";
}

#contact .content-wrapper {
	background: rgba(255, 255, 255, 0);
	border: 1px solid rgba(80, 133, 175, 0);
	border-bottom: 0;
	border-radius: 50px 50px 0 0;
	transition: all 3s ease;
	transition-delay: 1s;
}
#contact.active .content-wrapper {
	background: rgba(255, 255, 255, 1);
	border-color: rgba(80, 133, 175, .4);
}
#contact-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
}
#contact-wrapper > form {
	flex-basis: calc(66.67% - 40px);
}
#contact-wrapper > div {
	flex-basis: calc(33.33% - 40px);
}
@media all and (max-width: 680px) {
	#contact-wrapper > form {
		flex-basis: 100%;
	}
	#contact-wrapper > div {
		flex-basis: 100%;
		margin-top: 20px;
	}
}
.form-hp {
	display: block;
	width: 0;
	height: 0;
	padding: 0;
	border: 0;
}

.slide-up {
	transform: translateY(50px);
	opacity: 0;
	transition: all .5s ease-out;
}
.slide-up.active {
	transform: translateY(0);
	opacity: 1;
}
.slide-in {
	transform: translateX(-80px);
	opacity: 0;
	transition: all .5s ease-out;
}
.slide-in.active {
	transform: translateX(0);
	opacity: 1;
}

footer {
	color: #fff;
	padding-top: 25px;
	padding-bottom: 25px;
	background: var(--secondary-color);
}
p.copyright {
	font-size: 14px;
	margin-bottom: 0;
}

/* Stop zooming on inputs in iPhone
-----------------------------------------------------------------*/
@media all and (-webkit-min-device-pixel-ratio:2) and (max-device-width: 1024px) { 
	select:focus, select:hover,
	textarea:focus, textarea:hover,
	input:focus, input:hover {
		font-size: 1rem;
	}
}