@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300&display=swap');
html, body {
	margin: 0;
	padding: 0;
	background-color: #fff;
}
body {
	color: #000;
	font-family: 'Lato', sans-serif;
	font-size: 16px;
	font-weight: 400;
}
* {	
	box-sizing: border-box;
}

/*----- typography -----*/

h2 {
	margin: 0 0 2rem 0;
	font-size: 1.6rem;
	font-weight: 700;
}
h3 {
	margin: 0 0 1rem 0;
	font-size: 1.4rem;
	font-weight: 700;
}
h4 {
	margin: 1rem 0 .5rem 0;
	font-size: 1.2rem;
	font-weight: 700;
}
p {
	margin: 0 0 .5rem 0;
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 1.4;
}
ul { 
	margin-bottom: .5rem;
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 1.4;
}
li {
	margin-bottom: .5rem
}
a {
	color: #000;
	border-bottom: none;
	text-decoration: none;
}
a:hover {
	color: #000;
	border-bottom: 1px dotted #000;
	text-decoration: none;
}
b, strong {
	font-weight: 400;
}
img {
	display: block;
	border: 0;
}

/*----- main boxes -----*/

.container {
	display: grid;
	grid-template-columns: 450px auto;
	grid-template-rows: auto auto 1fr auto;
	height: 100vh;
}
nav {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	padding: 2rem 2rem 0;
}
header {
	grid-column: 1 / 2;
	grid-row: 2 / 3;
	display: flex;
	flex-direction: row;
	align-items: start;
	justify-content: space-between;
	padding: 2rem;
	text-align: right;
}
.payoff {
	grid-column: 1 / 2;
	grid-row: 3 / 4;
	padding: 0 2rem 2rem;
}
.opening {
	background-color: #202d34;
	margin: 2rem 0 0;
	padding: 1rem 1.5rem .75rem;
	border-radius: 7.5px;
}
.opening p {
	color: #fff;
	font-size: 1rem;
}
footer {
	grid-column: 1 / 2;
	grid-row: 4 / 5;
	background-image: url(/site/templates/assets/images/pattern_dark_half.svg);
	background-size: 1000px auto;
	background-position: right bottom;
	background-repeat: repeat-x;
	padding: 2rem 2rem 6rem;
}
.page {
	grid-column: 2 / 3;
	grid-row: 1 / 5;
	background-color: #f5f5f5;
	background-image: url(/site/templates/assets/images/pattern_dark.svg);
	background-size: 500px auto;
	background-position: left bottom;
	padding: 3rem;
	overflow: scroll;
}

/*----- navigation -----*/

nav ul {
	list-style: none;
	display: flex;
	flex-direction: row;
	gap: 2rem;
	margin: 0;
	padding: 0;
	font-size: 1rem;
	font-weight: 300;
}
nav li {
	margin: 0;
}
nav li.active a {
	font-weight: 400;
}

/*----- header -----*/

header img {
	height: 160px;
}
.drawer { 
	display: none;
	padding-top: 2rem;
}
.drawer button {
	background-color: #fff;
	background-image: url(/site/templates/assets/images/open.svg);
	background-size: 32px 32px;
	background-repeat: no-repeat;
	border: none;
	width: 32px;
	height: 32px;
	cursor: pointer;
}
.drawer button.close {
	background-image: url(/site/templates/assets/images/close.svg);
}

/*----- payoff -----*/

.payoff h2 {
	margin: 0;
	color: #202d34;
	font-size: 1.6rem;
	font-weight: 300;
	font-style: italic;
}

/*----- footer -----*/

footer p {
	line-height: 1.3;
}
.subnav {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	gap: 1rem;
	border-top: 1px solid #000;
	margin: 2rem 0 0;
	padding: 2rem 0 0;
}
.subnav a {
	font-weight: 300;
}
.subnav img {
	width: 32px;
	height: 32px;
}
.subnav div:first-child,
.subnav div:nth-child(2) {
	margin-top: -5px;
}
.subnav div:nth-child(2) {
	flex-grow: 1;
}
/*----- pages -----*/

.page h3 {
	margin: 2rem 0 1.5rem ;
	padding-top: 2rem;
	border-top: 1px solid #000;
}
.page p a {
	color: #000;
	border-bottom: 1px dotted #000;
	text-decoration: none;
}
.page p a:hover {
	color: #000;
	border-bottom: 1px solid #000;
	text-decoration: none;
}
.brands {
	background-color: #202d34;
	background-image: url(/site/templates/assets/images/pattern_light.svg);
	background-size: 500px auto;
	color: #fff;
}
.brands a {
	color: #fff;
}
.brands a:hover { 
	color: #fff;
	border-bottom: 1px dotted #fff;
}
.brand {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
	gap: 3rem;
	justify-items: stretch;
	margin: 3rem 0 0;
}
.brand div {
	align-self: center;
	background-color: rgba(255, 255, 255, .05);
	padding: 3rem;
}
.brand img {
	width: 100%;
}
.map {
  position: relative;
  padding: 0;
  padding-top: 100vh;
  overflow: hidden;
}
.map iframe {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
}
.contact .form {
	margin: 2rem 0 0;	
}
.date {
	border-top: 1px solid #000;
	margin-top: 2rem;
	padding-top: 2rem;
	font-size: 1rem;
	text-align: right;
}

/*----- gallery -----*/

.gallery {
	padding: 0;
}
.f-carousel {
	--f-button-color: rgb(0, 0, 0);
	height: 100%;
}
.f-carousel__slide {
	background-size: cover;
	background-position: center center;
}

/*----- miscellaneous -----*/

.hide-text {
	color: transparent;
	overflow: hidden;
}

 /*----- responsive -----*/
 
@media only screen and (max-width: 1280px) {
	
	.container {
		grid-template-columns: 300px auto;
	}
	header {
		grid-column: 1 / 2;
		grid-row: 1 / 2;
	}
	nav {
		display: none;
		grid-column: 1 / 2;
		grid-row: 2 / 3;
		padding: 0 2rem 2rem;
	}
	nav ul {
		flex-direction: column;
		gap: unset;
		border-top: 1px dotted #000;
	}
	nav li {
		padding: .7rem 0;
		border-bottom: 1px dotted #000;
	}
	.payoff {
		grid-column: 1 / 2;
		grid-row: 3 / 4;
	}
	.drawer {
		display: block;
	}
}

@media only screen and (max-width: 1024px) {

	.brand div {
		padding: 2rem;
	}
}

@media only screen and (max-width: 768px) {
	
	.container {
		grid-template-columns: auto;
		grid-template-rows: auto auto 1fr auto auto;
		height: unset;
	}
	header {
		padding: 1.5rem 2rem;
	}
	header img {
		height: 130px;
	}
	nav {
		padding: 0 2rem 1.5rem;
	}
	.payoff {
		padding: 0 2rem 1.5rem;
	}
	.payoff h2 {
		font-size: 1.3rem;
	}
	.page {
		grid-column: 1 / 2;
		grid-row: 4 / 5;
		padding: 2rem;
	}
	.map {
		height: 100vh;
	}
	footer {
		grid-column: 1 / 2;
		grid-row: 5 / 6;
	}
	p, .page ul {
		font-size: 1rem;
	}
	.gallery {
		padding: 0;
	}
	.f-carousel {
		height: 100vh;
	}
}

@media only screen and (max-width: 450px) {
	
	.brand {
		grid-template-columns: 1fr;
	}
}
