/*
Theme Name: 	Hirzel Architekten
Theme URI: 		http://miggroup.ch
Version: 		1.0
Author: 		miggroup
Author URI: 	http://miggroup.ch
*/



/*** Sensible Defaults ***/

@import "css/reset.css";
@import "css/flickity.css";
@import "typo.css?v1";
@import "blocks.css";




div,
article,
section,
header,
footer,
nav,
li					{ position:relative; /* For absolutely positioning elements within containers (add more to the list if need be) */ }

::-moz-selection 	{ background:#5b6670; color:#fff; }
::selection 		{ background:#5b6670; color:#fff; }

* {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	   -moz-font-smoothing: antialiased;
	        font-smoothing: antialiased;
}

/* Helper Classes */

.clear { clear: both; }
strong { font-weight: bold; }
em { font-style: italic; }
a, a:link, a:visited, a:hover, a:focus { color: inherit; }

html, body {
	font-family: "Transporter", Arial, sans-serif;
	font-size: 13px;
	line-height: 140%;
	font-weight: bold;
	color: #7F7F7F;
	background: #fff;
	overflow-x: hidden;
}

	@media (min-width: 1400px) {
		html, body {
			font-size: 14px;
			line-height: 140%;
		}
	}

	body.has-overlay {
		overflow: hidden;
	}

header {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	height: 7rem;
	width: 100%;
	z-index: 99;
	background: #fff;
}

	@media (min-width: 600px) {
		header {
			height: 9rem;
		}
	}

	header .wrap {
		height: 100%;
		align-items: center;
	}

	.nav-toggle {
		display: block;
		width: 2rem;
		height: 2rem;
		margin-left: 1.5rem;
		cursor: pointer;

	}

		.nav-toggle span {
			width: 1.5rem;
			height: 3px;
			display: block;
			position: absolute;
			top: 50%;
			background: #000;
			transform: translateY(-50%);
			transition: all 0.2s ease-in-out;
		}

		.nav-toggle span:nth-child(2) {
			transform: translateY(-50%) rotate(90deg);
		}

		.nav-open .nav-toggle span {
			transform: translateY(-50%) rotate(-135deg);
		}

		.nav-open .nav-toggle span:nth-child(2) {
			transform: translateY(-50%) rotate(-45deg);
		}

	a.logo {
		display: block;
		margin-left: auto;
		width: 9.5rem;
		height: 4rem;
		background: url(css/img/logo.svg) no-repeat center right;
		background-size: contain;
		margin-right: 1.5rem;
	}

.wrap {
	width: 100%;
	padding: 0;
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	flex-flow: row wrap;
}

	@media (min-width: 500px) {
		.wrap {
			padding: 0 1rem;
		}
	}

	.wrap.fullheight {
		min-height: calc(100vh - 8rem);
	}

	.area.first .wrap.fullheight {
		min-height: calc(100vh - 15rem);
	}


@media (max-width: 599px) {
	.area.services .img-fullsize {
		/* display: none; */
	}

	.area.team  .img-fullsize::before {
		padding-bottom: 50%;
	}
}

nav.primary {
	/* display: none; */
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9;
	width: 100%;
	height: 100vh;
	opacity: 0;
	background: #fff;
	pointer-events: none;
	transition: all 0.2s ease-in-out;
}


	.nav-open nav.primary {
		opacity: 1;
		pointer-events: all;

	}

	nav.primary .half:first-child {
		background: #fff;
	}

	nav.primary ul {
		margin-top: 2rem;
		display: flex;
		/* height: 80%; */
		flex-flow: row wrap;
		justify-content: space-between;
	}

	nav.primary ul li {
		margin: 0;
		cursor: pointer;
		position: relative;
		display: block;
		width: 100%;
		transition: all 0.2s ease-in-out;
	}

		nav.primary ul li:hover {
			color: #7f7f7f;
		}

		nav.primary ul li.h2 {
			margin: 0;
			padding: 1rem 0;
		}

		nav.primary ul li a {
			text-decoration: none;
		}

.area {

	padding: 2rem 0;
}

	@media (min-width: 600px) {
		.area {
			padding: 4rem 0;
			min-height: 100vh;
		}

		.area.projects {
			min-height: 0;
		}
	}

.area.first {
	padding-top: 7rem;
}

	@media (min-width: 600px) {
		.area.first {
			padding-top: 11rem;
		}

	}

.area.intro {
	color: #000;
}

	.area.intro h1 {
		padding-top: 2rem;
	}

	.area.intro h1::after {
		content: "";
		display: block;
		background: #000;
		width: 1.6rem;
		height: 0.4rem;
		margin: 2rem 0;
		transform: translateX(0.2rem);
	}

	.area.intro p {
		color: #000;
		font-size: 1.2rem;
		line-height: 140%;
		text-transform: uppercase;
		font-weight: 400;
	}

	@media (min-width: 600px) {
		.area.intro p {
			font-size: 1.4rem;
			line-height: 140%;
		}
	}

	@media (min-width: 800px) {
		.area.intro p {
			font-size: 1.6rem;
			line-height: 140%;
		}
	}

	@media (min-width: 1200px) {
		.area.intro p {
			font-size: 1.8rem;
			line-height: 140%;
		}
	}


	@media (max-width: 599px) {
		.area.intro .wrap {
			flex-flow: row wrap-reverse;
		}

		.area.intro .img-fullsize::before {
			padding-bottom: 100% !important;
		}

		.area.intro h1 br {
			display: none;
		}
	}

.full {
	width: 100%;
	width: calc(100% - 3rem);
	margin: 0 1.5rem;
}

.half {
	width: 100%;
	width: calc(100% - 3rem);
	margin: 0 1.5rem;
}

	@media (min-width: 600px) {
		.half {
			width: 50%;
			width: calc(50% - 3rem);
		}
	}



@media (min-width: 1000px) {
	.offset-left { padding-left: 10%; }
	.offset-right { padding-right: 10%; }
	.offset-top { padding-top: 4rem; }
}

.img-fullsize {
	background: #eee;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transition: transform 1s, opacity 0.5s ease-in-out;
	transform: translateX(30%);
}

	.team .img-fullsize {
		transform: translateX(-30%);
	}

	.intro .img-fullsize {
		transform: translateX(0);
		opacity: 1;
	}

	.is-in-viewport .img-fullsize {
		opacity: 1;
		transform: translateX(0) !important;
	}

	@media (max-width: 599px) {
		.img-fullsize {
			margin-bottom: 1.5rem;
		}
	}

	@media (max-width: 999px) {
		.img-fullsize::before {
			content: "";
			display: block;
			padding-bottom: 150%;
		}
	}

	@media (min-width: 600px) and (max-width: 999px) {
		.area.team  .img-fullsize::before {
			padding-bottom: 100%;
		}
	}

	@media (min-width: 1000px) {
		.img-fullsize {
			width: 100%;
			height: 100%;
		}
	}

	.img-fullsize.person-img {
		background-position: top
	}

	.img-fullsize.img-contain {
		background-size: contain;
		background-color: transparent;
		background-position: top;
	}

.columns {
	display: flex;
	flex-flow: row wrap;
}

	.column-text,
	.column-filter {
		width: 100%;
	}

	h2.is-empty {
		display: none;
	}

	@media (max-width: 599px) {
		.area.team .columns {
			flex-flow: row wrap-reverse;
		}

		.area.team .column-filter {
			margin-bottom: 1rem;
		}
	}

	@media (min-width: 1200px) {

		.column-text,
		.column-filter {
			width: calc(50% - 1rem);
		}

		.column-text { margin-right: 1rem; }
		.column-filter { margin-left: 1rem; }

		h2.is-empty {
			display: block;
		}
	}


.accordion {

}

.accordion-item {
	text-align: center;
	margin-bottom: 0.3rem;
}

	.accordion-item .title {
		background: #000;
		text-transform: uppercase;
		color: #fff;
		color: #7F7F7F;
		line-height: 100%;
		padding: 0.5rem 0.5rem;
		cursor: pointer;
		transition: all 0.2s ease-in-out;
	}

		.accordion-item .title:hover,
		.accordion-item.is-open .title {
			color: #fff;
		}

	.accordion-item .content {
		padding: 0.75rem 0;
		display: none;
	}


	.accordion-item.is-open .content {
		display: block;
	}

a.button {
	text-transform: uppercase;
	border: 2px solid #000;
	color: #fff;
	background: #000;
	padding: 0.5rem 0.5rem;
	line-height: 100%;
	display: block;
	width: 100%;
	text-align: center;
	cursor: pointer;
	text-decoration: none;

	transition: all 0.2s ease-in-out;
}

	a.button:hover {
		border-color: #000;
		/* color: #000; */
	}

@media (max-width: 599px) {
	.area.projects .wrap {
		flex-flow: row wrap-reverse;
	}
}

.projects-masonry {
	margin-left: -0.25rem;
	width: calc(100% + 0.5rem);

	opacity: 0;
	transition: transform 1s, opacity 0.5s ease-in-out;
	transform: translateX(-30%);
}

	.is-in-viewport .projects-masonry {
		transform: translateX(0%) !important;
		opacity: 1;
	}

.project-item-holder,
.grid-sizer {
	position: absolute;
	width: 100%;
	height: 10rem;
	padding: 0.25rem;
}

.grid-sizer { height: 0; }

.project-item-holder.size-tall {
	height: 20rem;
}

	@media (min-width: 350px) {
		.project-item-holder,
 		.grid-sizer {
			width: 50%;
		}
	}

	@media (min-width: 1000px) {
		.project-item-holder {
			height: 15rem;
		}

		.project-item-holder.size-tall {
			height: 30rem;
		}
	}

	@media (min-width: 800px) {
		.project-item-holder {
			padding: 0.5rem;
		}

		.projects-masonry {
			margin-left: -0.5rem;
			width: calc(100% + 1rem);
		}
	}

	@media (min-width: 600px) {
		.project-item-holder.size-wide {
			width: 100%;
		}
	}




	.project-item-holder.animate  {
        /* transition: all 0.3s ease-in-out; */
    }

	.project-item-holder.hidden {
		pointer-events: none;
		display: none;
		opacity: 0;
	}

	.project-item-holder.hidden .project-item {
        transform: scale(0);
		pointer-events: none;
		display: none;
    }

    .project-item-holder .project-item {
        /* transition: all 0.3s ease-in-out; */
    }

.projects-filter {

}

	.projects-filter li {
		background: #000;
		text-transform: uppercase;
		color: #fff;
		color: #7F7F7F;
		line-height: 100%;
		padding: 0.5rem 0.5rem;
		cursor: pointer;
		transition: all 0.2s ease-in-out;
		margin: 0 0 0.2rem 0;
		text-align: center;
	}

	.projects-filter li.is-selected {
		color: #fff;
	}

.project-item {
	display: block;
	position: absolute;
	width: 100%;
	width: calc(100% - 0.5rem);
	height: 100%;
	height: calc(100% - 0.5rem);
	top: 0.25rem;
	left: 0.25rem;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

	@media (min-width: 800px) {
		.project-item {
			width: 100%;
			width: calc(100% - 1rem);
			height: 100%;
			height: calc(100% - 1rem);
			top: 0.5rem;
			left: 0.5rem;
		}
	}

	.project-item .name {
		background: rgba(0,0,0,0.4);
		color: #fff;
		position: absolute;
		left: 0;
		bottom: 0;
		text-transform: uppercase;
		padding: 0.5rem;
		text-align: center;
		width: 100%;
		opacity: 0;
		height: 100%;
		transition: all 0.3s ease-in-out;
		align-items: center;
		display: flex;
		text-align: center;
		justify-content: center;
	}

		.project-item:hover .name {
			opacity: 1;
		}

		@media (max-width: 599px) {
			.project-item .name {
				opacity: 1;
				font-size: 11px;
			}
		}


footer {
	background: rgba(0,0,0,0.15);
	padding: 4rem 0;
	color: #000;
}

	footer .wrap {
		min-height: 50vh;
	}

	footer a {
		text-decoration: none;
	}

	footer .imprint {
		display: flex;
		flex-flow: row wrap;
		justify-content: space-between;
		width: 80%;
		position: absolute;
		bottom: 0;
	}

		footer .imprint li {

		}

		@media (max-width: 599px) {
			footer .imprint {
				display: block;
				position: relative;
				margin-bottom: 1rem;
			}
		}


.page-overlay {
	background: #fff;
	position: fixed;
	z-index: 999;
	height: 100vh;
	width: 100vw;
	top: 0;
	left: 0;
	overflow: scroll;

	transition: all 0.3s ease-in-out;
}

	.page-overlay.remove {
		/* opacity: 0; */
		/* transform: translateY(30%); */
	}



.transition {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	transform: translateY(100%);
	z-index: 99999;
}


.transition.animates {
	transition: all 0.5s ease-in-out;
	transform-origin: top;
}

.transition.transition2.animates { transition-delay: 0.05s; }
.transition.transition3.animates { transition-delay: 0.1s; }
.transition.transition5.animates { transition-delay: 0.15s; }
.transition.transition1.animates { transition-delay: 0.2s; }
.transition.transition5.animates { transition-delay: 0.25s; }

.transition.animates.in {
	transform: scaleY(1) translateY(0);
	transform-origin: top;
}



.transition.animates.out {
	transform: scaleY(0);
	transform-origin: top;
}


.close-overlay {
	display: block;
	width: 2rem;
	height: 2rem;
	margin-left: 1.5rem;
	cursor: pointer;
	position: relative;
}

	.close-overlay span {
		width: 1.5rem;
		height: 3px;
		display: block;
		position: absolute;
		top: 50%;
		background: #000;
		transform: translateY(-50%) rotate(45deg);
	}

	.close-overlay span:nth-child(2) {
		transform: translateY(-50%) rotate(-45deg);
	}


.project-detail .half:nth-child(2) {
	padding-bottom: 9rem;
}

	.project-detail .half:nth-child(2) .image-thumbs {
		position: absolute;
		bottom: 0;
		display: flex;
		flex-flow: row wrap;
	}

	.image-thumbs .image-thumb {
		background: #eee;
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
		height: 7.5rem;
		width: 6rem;
		margin-right: 2rem;
		cursor: pointer;
	}

	@media (max-width: 599px) {
		.project-detail .wrap {
			flex-flow: row wrap;
		}
		.project-detail  .img-fullsize {
			margin-top: 1.5rem;
		}
	}


.news-button {
	background: #000;
	width: 8rem;
	height: 8rem;
	border-radius: 100%;
	display: block;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff !important;
	line-height: 8rem;
	text-align: center;
	font-size: 1.6rem;
	position: absolute;
	top: 25%;
	left: 50%;
	z-index: 9;
	transform: translateX(-50%);
	transition: all 0.2s ease-in-out;
}

	.news-button:hover {
		background: #222;
		box-shadow: 0 0 2rem rgba(0,0,0,0.2);
	}

	@media (min-width: 600px) {
		.news-button {
			left: 0;
		}
	}


.scroll-up {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	width: 3rem;
	height: 3rem;
	background: #fff url(css/img/arrow-up.svg) no-repeat center;
	background-size: 40% auto;
	box-shadow: 0 0 1rem rgba(0,0,0,0.2);
	z-index: 9999;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	transform: translateY(10rem);
}

	@media (min-width: 600px) {
		.scroll-up {
			bottom: 2rem;
			right: 2rem;
			width: 3rem;
			height: 3rem;
		}
	}

.scroll-up.is-visible {
	transform: translateY(0);
}
