/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Web fonts
# Main structure
# Top bar
# Back to top
# Hero
# Services
# Team
# Projects
# Contact
# Footer
# Dialogs
# Generic pages / 404
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Web fonts
--------------------------------------------------------------*/
@font-face {
	font-family: 'VAGRoundedStdBold';
	src: url('../fonts/vagroundedstd-bold-webfont.woff') format('woff'),
		url('../fonts/vagroundedstd-bold-webfont.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'VAGRoundedStdLight';
	src: url('../fonts/vagroundedstd-light-webfont.woff') format('woff'),
		url('../fonts/vagroundedstd-light-webfont.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'VAGRoundedStdThin';
	src: url('../fonts/vagroundedstd-thin-webfont.woff') format('woff'),
		url('../fonts/vagroundedstd-thin-webfont.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/*--------------------------------------------------------------
# Main structure
--------------------------------------------------------------*/
#parallax-bg {
	background: url(../images/bg.png) repeat scroll;
	position: fixed;
	width: 100%;
	height: 300%;
	top: 0;
	left: 0;
	z-index: -1;
}

.wrapper {
	max-width: 960px;
	margin: 0 auto;
	overflow: hidden;
}

.hero, #services, #team, #projects {
	transition: opacity 1s ease, background-color 2s ease;
}

.hero.display, #services.display, #team.display, #projects.display {
	opacity: 0.5;
}

#services, #team, #projects, #contact {
	text-align: center;
}

#services h3, #team h3, #projects h3 {
	font-family: 'VAGRoundedStdThin', sans-serif;
	font-size: 1.2em;
	max-width: 46.875em;
	margin: 0 auto;
}

/*--------------------------------------------------------------
# Top bar
--------------------------------------------------------------*/
#bar-top {
	display: none;
	width: 100%;
	background: #f5f5f5;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
	height: 3.75em;
	z-index: 1000;
	position: fixed;
	top: 0;
	left: 0;
	text-align: center;
}

.admin-bar #bar-top {
	top: 32px;
}

#bar-top .logo {
	float: left;
	margin: 0.3525em 0 0 1.25em;
}

#bar-top .menu-anchor {
	display: inline-block;
	margin: 1.3em 0;
}

#bar-top .menu-anchor ul {
	display: flex;
	margin: 0;
	padding: 0;
}

#bar-top .menu-anchor a {
	margin: 0 2em;
	color: #666;
	font-family: 'VAGRoundedStdBold', sans-serif;
	text-transform: uppercase;
	padding-bottom: 0.2em;
	border-bottom: 2px solid transparent;
}

#bar-top .menu-anchor a:hover,
#bar-top .menu-anchor a.border {
	color: #ff7000;
}

#bar-top .menu-anchor a.border {
	border-bottom-color: #ff7000;
}

#bar-top .button {
	float: right;
	margin: 0.6em 1.25em 0 0;
	padding: 0.5em 1em;
	font-size: 1.1em;
}

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
#back-top {
	display: none;
	position: fixed;
	bottom: 1.5em;
	right: 3em;
	z-index: 9999;
}

#back-top span {
	width: 35px;
	height: 20px;
	display: block;
	margin-bottom: 7px;
	background: url(../images/up-arrow.png) no-repeat left 0;
}

#back-top a:hover span {
	background-position: left -34px;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	box-shadow: 0 1px #fff inset, 0 1px 3px rgba(34, 25, 25, 0.4);
	margin: 0 auto;
}

.hero > a.button {
	position: absolute;
	padding: 5px 20px;
	right: 4em;
	top: 0;
}

.hero .logo {
	position: absolute;
	left: 50px;
	top: 0.5em;
}

.hero .infographic {
	margin: 0 auto 3em;
	padding-top: 6em;
}

.hero .infographic img {
	max-width: 70%;
}

.hero .title-header {
	padding-bottom: 2.5em;
}

.hero h2 {
	font-family: 'VAGRoundedStdThin', sans-serif;
	font-size: 1.3em;
	max-width: 960px;
	margin: 0 auto;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
#services {
	padding: 2em 0 3.5em;
	background: url(../images/bg-header.jpg) no-repeat;
	background-size: cover;
}

#services > h2, #services > h3 {
	color: #fff;
	text-shadow: 1px 1px 0 #666;
}

#services .wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* entire container, keeps perspective */
.flip-container {
	perspective: 1000px;
	width: 300px;
	height: 240px;
	margin: 0.6em;
}

/* flip the pane when hovered */
.flip-container:hover .card,
.flip-container.hover .card,
.flip-container:focus-within .card {
	transform: rotateY(180deg);
}

/* flip speed goes here */
.card {
	transition: 1s;
	transform-style: preserve-3d;
	position: relative;
	width: 100%;
	height: 100%;
}

.front, .back {
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
	background-color: #fff;
	border-radius: 6px;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.front > div, .back > div {
	padding: 0 1em;
}

.front h4 {
	color: #222;
}

/* back, initially hidden pane */
.back {
	transform: rotateY(180deg);
}

.service-details h4 {
	display: inline-block;
	border-bottom: 2pt solid #ff7000;
	padding: 0 0 0.2em;
}

.service-details ul {
	margin: 0.38em 0 1em;
	padding: 0.8em 0;
	list-style: disc inside;
}

.service-details a {
	color: #ff7000;
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/
#team {
	background: #f4f1ed;
	padding: 2em 0;
	border-bottom: 1pt solid #e3e3e3;
}

#team .wrapper {
	padding-bottom: 1em;
}

.team-box {
	margin: 2em 1em 1em;
	display: inline-block;
	vertical-align: top;
	padding: 1em 1.5em 0;
	cursor: pointer;
	border-radius: 5px;
	transition: 0.3s ease;
}

.team-box:hover {
	background-color: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
	transform: scale(1.05);
}

#team h4 {
	padding: 0.8em 0 0.2em 0;
}

#team p {
	padding: 0;
	color: #555;
}

.team-profile {
	display: flex;
	gap: 1.5em;
	text-align: left;
}

.team-profile .pic {
	flex: 0 0 15.9375em;
	margin: 1em 0;
}

.team-profile .text {
	flex: 1;
}

.team-profile .job-title {
	margin: 0;
	padding-bottom: 0.3em;
	color: #ff7700;
}

a.profile {
	color: #666;
	margin: 1em 0 0;
	display: block;
	font-family: 'VAGRoundedStdLight', sans-serif;
}

a.profile:hover {
	color: #f77000;
}

a.profile i {
	margin-right: 0.4em;
}

/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
#projects {
	padding: 2em 0;
}

#projects, #projects ul li, #projects h2, #projects h3, #projects span {
	transition: 2s ease;
}

#projects.gradient {
	background-color: #f39c12;
}

#projects .projects-title {
	display: inline-flex;
	align-items: center;
}

#projects .projects-title h2 {
	margin-left: 62px;
}

#projects span.narrow {
	background: url(../images/narrow.png) no-repeat;
	width: 62px;
	height: 30px;
	display: inline-block;
}

#projects.gradient span.narrow {
	background-image: url(../images/narrow-white.png);
}

#projects.gradient h2,
#projects.gradient h3,
#projects.gradient ul li {
	text-shadow: none;
	color: #fff;
}

#projects ul {
	margin-bottom: 0.8em;
}

#projects ul li {
	margin: 20px 5px 10px 0;
	display: inline-block;
	color: #f77000;
	padding: 0.25em 0.9375em;
	font-family: 'VAGRoundedStdBold', sans-serif;
	font-size: 0.9em;
}

#projects h3 {
	padding: 1em 0 0 0;
	font-family: 'VAGRoundedStdBold', sans-serif;
	font-size: 1.5em;
}

/* Wrapper: the arrows are positioned against it */
.projects-slider {
	position: relative;
	max-width: 940px;
	margin: 0 auto;
}

#projects-slideshow .info img {
	display: inline-block;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15);
}

/* "top" is set by global.js to the middle of the current project image */
.slider-arrow {
	position: absolute;
	top: 45%;
	z-index: 999;
	background: none;
	border: 0;
	padding: 0;
	line-height: 0;
	transform: translateY(-50%);
	transition: transform 0.3s ease, top 0.5s ease;
}

.slider-arrow:hover {
	transform: translateY(-50%) scale(1.1);
}

/* slick hides the arrows when there is only one project */
.slider-arrow.slick-hidden {
	display: none;
}

.slider-prev {
	left: -60px;
}

.slider-next {
	right: -60px;
}

/* Hide every slide but the first one until slick is ready */
#projects-slideshow:not(.slick-initialized) .info + .info {
	display: none;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
#contact {
	padding: 3em 0 2em;
}

#contact .wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#contact .wrapper > h2 {
	flex: 0 0 100%;
}

#contact .left, #contact .right {
	width: 45%;
	text-align: left;
	padding: 3.5em 0 0;
}

#contact .left > div {
	padding: 0.3em 0;
}

#contact .left > div p {
	font-family: 'VAGRoundedStdLight', sans-serif;
}

#contact .left a {
	color: #222;
}

#contact .left a:hover {
	color: #ff7000;
}

#contact i {
	padding: 0 0.7em 0 0;
}

#contact .intro {
	margin: 0 0 1em;
	color: #222;
}

#contact label {
	display: block;
	line-height: 20px;
	font-size: 16px;
	font-family: 'VAGRoundedStdBold', sans-serif;
	margin-bottom: 8px;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
	border: 1px solid #cbcbcb;
	padding: 0 16px;
	height: 37px;
	border-radius: 999px; /* fully rounded (pill), matches .button */
	width: 100%;
	margin-bottom: 16px;
	font-family: 'VAGRoundedStdLight', sans-serif;
	font-size: 16px;
}

#contact textarea {
	height: 150px;
	padding: 12px 16px;
	border-radius: 18px; /* a pill shape looks odd on a tall box */
}

#contact .button {
	padding: 0.3em 1.5em;
	font-size: 1.1em;
}

.form-status {
	font-family: 'VAGRoundedStdLight', sans-serif;
	min-height: 1.5em;
}

.form-status.is-error {
	color: #c0392b;
}

.form-status.is-success {
	color: #5a8a00;
}

/* Honeypot field */
.sc-hp {
	position: absolute !important;
	left: -9999px !important;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#colophon {
	background: url("../images/footer.jpg") repeat-x center center #ff7000;
	min-height: 150px;
	position: relative;
	margin-top: 6em;
}

#colophon .grass {
	background: url("../images/grass.png") no-repeat;
	position: absolute;
	height: 30px;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: 902px;
	max-width: 100%;
	overflow: visible;
}

#colophon .footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0 1em;
}

#colophon .newsletter-label,
#colophon .right span,
#colophon .right a,
#colophon .form-status {
	color: #fff;
	text-shadow: none;
	display: block;
}

#colophon .left {
	margin: 1.5em 0;
}

#colophon .newsletter {
	display: flex;
	align-items: center;
	margin-top: 0.5em;
}

#colophon .input {
	border: 1px solid #cbcbcb;
	border-right: 0;
	border-radius: 999px 0 0 999px; /* rounded left side; the button completes the pill */
	height: 38px;
	padding: 0 10px 0 16px;
	width: 212px;
	background: #fff;
	color: #515151;
	font-size: 14px;
	font-family: 'VAGRoundedStdThin', sans-serif;
}

#colophon .boton {
	border: 0;
	height: 38px;
	width: 39px;
	padding: 0;
	border-radius: 0 999px 999px 0; /* rounded right side, clips the image's corners */
	background: #96e300 url(../images/btnnewsletter.png) no-repeat center;
}

#colophon .right {
	margin: 2.8em 0;
	text-align: right;
}

#colophon .right span {
	padding-bottom: 0.3em;
}

/*--------------------------------------------------------------
# Dialogs
--------------------------------------------------------------*/
.sc-dialog {
	max-width: min(75%, 900px);
	min-width: min(60%, 600px);
	max-height: 85vh;
	margin: auto;
	padding: 2em;
	background: #f9f9f9;
	border-radius: 4px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	overflow: auto;
	text-align: left;
}

.sc-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.sc-dialog-close {
	position: sticky;
	float: right;
	top: 0;
	width: 32px;
	height: 32px;
	margin: -1.5em -1em 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #222;
	font-size: 0; /* hide the &times; character, the X is drawn below */
}

/* Two crossed lines, always centred in the circle */
.sc-dialog-close::before,
.sc-dialog-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	border-radius: 1px;
	background: #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}

.sc-dialog-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.sc-dialog-close:hover {
	background: #ff7000;
}

.sc-dialog h4 {
	margin-top: 0.5em;
}

/*--------------------------------------------------------------
# Generic pages / 404
--------------------------------------------------------------*/
.site-main {
	padding: 6em 1em 2em;
}

.site-main .entry-content p,
.site-main .entry-content ul {
	margin-bottom: 1em;
}

.page-404 {
	text-align: center;
	padding: 5em 1em 2em;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

/* Smartphones and Tablets (portrait and landscape) */
@media only screen and (max-width: 960px) {
	#services, #team, #projects, #contact {
		padding: 1em 0.5em;
	}

	#bar-top {
		display: none !important;
	}

	.hero .title-header {
		padding: 0 1.25em 1em;
	}

	.hero > a.button, .hero .infographic {
		display: none;
	}

	.hero h1 {
		font-size: 2em;
	}

	.hero .logo {
		position: relative;
		margin: 1em 0 0;
		left: 0;
		top: 0;
	}

	.wrapper {
		max-width: 100%;
	}

	.flip-container {
		width: 100%;
		max-width: 400px;
	}

	#projects ul li {
		margin: 10px 5px 0 0;
	}

	.slider-prev {
		left: 0;
	}

	.slider-next {
		right: 0;
	}

	#contact .left, #contact .right {
		width: 100%;
	}

	.team-profile {
		flex-direction: column;
	}

	.team-profile .pic {
		flex-basis: auto;
	}

	#colophon .footer {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	#colophon .right {
		text-align: center;
		margin-top: 0;
	}

	.sc-dialog {
		max-width: 95%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.card, .team-box, .hero, #services, #team, #projects {
		transition: none;
	}
}
