/*
MEDIA SIZES
mobile horz - up to 400px
mobile other - up to 549px
phablet - up to 759px
tablet - up to 1024px
desktop - up to 1199px
desktop HD - 1200px and above
*/

/*
    
    STRUCTURE AND ELEMENTS - GENERAL
*/
html,
body {
	min-height: 100vh;
	overflow: auto;
}

body {
	background: var(--brand-red) url("/img/background-red.png") repeat center;
	padding: 0;
}

img {
	display: block;
	width: 100%;
}

.container {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

@media (min-width: 1200px) {
	.container {
		width: 90%;
		max-width: 1200px;
	}
}

/*
    
    COMPONENT
*/
/*--BUTTONS--*/
.btn {
	position: relative;
	z-index: 0;
	display: inline-block;
	padding: 1rem 1.5rem;
	transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
	transition: background 0.2s ease, color 0.2s ease;
}

.btn-1 {
	transform: rotate(-3deg);
	background: var(--brand-black);
	color: var(--white);
	font-weight: bold;
}

.btn-1:hover,
.btn-1:focus {
	background: var(--brand-red);
	color: var(--white);
}

.btn-1:after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: -1;
	top: -10%;
	right: -3%;
	border: 1px solid var(--brand-black);
}

/*--GRIDS--*/
.grid {
	list-style: none;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.grid img {
	width: auto;
	max-width: 100%;
	position: relative;
	transition: all 0.2s ease;
}

.grid-four li {
	width: 21%;
}

/*--GRID - IMAGES--*/
.grid-image-display li {
	margin-left: 0.5rem;
	margin-right: 0.5rem;
	box-sizing: content-box;
}

.grid-image-display .item {
	border: 3px solid var(--brand-yellow);
	display: block;
	overflow: hidden;
	border-radius: 2px;
}

.grid-image-display .item:hover img {
	transform: scale(102%);
	transition: all 0.2s ease;
}

.grid-image-display figure {
	padding: 0;
	margin: 0;
	position: relative;
}

.grid-image-display figcaption {
	position: absolute;
	bottom: 0;
	opacity: 0;
	padding: 0;
	transition: all 0.3s ease;
}

.grid-image-display .item:hover figcaption {
	opacity: 1;
	background: var(--brand-yellow);
	width: 100%;
	padding: 5px;
	color: var(--brand-black);
	font-weight: bold;
	transition: all 0.3s ease;
}

/*
    
    BRAND LOGO
*/
.logo {
	display: block;
	background: url("/img/logoX2.png") no-repeat center;
	background-size: cover;
	height: 46px;
	width: 100%;
	max-width: 51px;
	margin: 0 0 2rem 2rem;
}

.logo:hover,
.logo:focus {
	box-shadow: 0 0 6px var(--brand-yellow);
}

@media (min-width: 760px) {
	.logo {
		margin: 0;
	}
}

/*
    
    TEXT - GENERAL
*/

h1,
h2,
.bold,
p {
	font-family: "Inter", sans-serif;
	color: var(--white);
}

h1,
h2,
.bold {
	font-weight: bold;
}

/* h1 {
	font-size: 40px;
	line-height: 1.6em;
}

h2 {
	font-size: 30px;
	line-height: 1.5em;
}

h3 {
	font-size: 25px;
	line-height: 1.5em;
}

p {
	font-size: 14px;
	line-height: 1.5em;
} */

a {
	text-decoration: none;
	transition: color 0.4s ease-in;
}

a:focus {
	text-decoration: underline;
}

/*

    NAVIGATION 
    - MOBILE
*/

.menu-touch {
	display: block;
	background: var(--brand-yellow);
	padding: 0;
	border: 2px solid var(--brand-black);
	height: 50px;
	width: 100%;
	max-width: 50px;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	opacity: 1;
	display: block;
	transform: opacity 0.5s ease;
	border-radius: 0;
}

.menu-touch:hover,
.menu-touch:focus {
	cursor: pointer;
}

.menu-touch:after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50%;
	width: 60%;
	margin: auto;
	background: linear-gradient(
		to bottom,
		var(--brand-black),
		var(--brand-black) 20%,
		transparent 20%,
		transparent 40%,
		var(--brand-black) 40%,
		var(--brand-black) 60%,
		transparent 60%,
		transparent 80%,
		var(--brand-black) 80%,
		var(--brand-black) 100%
	);
}

.menu-touch:hover,
.menu-touch:focus,
.menu-touch.open {
	background: var(--brand-black);
	border-color: var(--brand-black);
}

.menu-touch:hover:after,
.menu-touch:focus:after,
.menu-touch.open:after {
	background: linear-gradient(
		to bottom,
		var(--brand-yellow),
		var(--brand-yellow) 20%,
		transparent 20%,
		transparent 40%,
		var(--brand-yellow) 40%,
		var(--brand-yellow) 60%,
		transparent 60%,
		transparent 80%,
		var(--brand-yellow) 80%,
		var(--brand-yellow) 100%
	);
}

@media (min-width: 760px) {
	.menu-touch {
		display: none;
		opacity: 0;
		transform: opacity 0.5s ease;
	}
}

/*
    
    NAVIGATION
    - ALL
*/

.nav-main ul {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	height: auto;
	overflow: hidden;
	position: absolute;
	width: 0;
	opacity: 0;
	transition: max-height 1s ease-in-out;
}

.no-js .nav-main ul {
	width: 100%;
	opacity: 1;
	max-height: none;
	overflow: visible;
	position: relative;
}

.nav-main.open ul {
	top: 6rem;
	opacity: 1;
	width: 100%;
	max-height: 900px;
	overflow: visible;
	transition: max-height 1s ease-in-out;
}

.no-js .nav-main.open ul {
	position: relative;
}

.nav-main li {
	margin: 0;
}

.nav-main a {
	display: block;
	font-weight: bold;
	background-color: var(--brand-yellow);
	color: var(--black);
	transition: background-color 0.4s ease-out, color 0.4s ease-out;
	box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.4);
	padding: 1rem 1rem 1rem 2rem;
	margin: 0;
}

.nav-main a:hover,
.nav-main a:focus,
.nav-main .selected {
	background-color: var(--black);
	color: var(--brand-yellow);
	transition: background-color 0.2s ease-in, color 0.2s ease-in;
}

.nav-main .selected:hover {
	background-color: var(--brand-yellow);
	color: var(--black);
}

.navbar .container {
	width: 100%;
}

@media (max-width: 759px) {
	/*More detailed to override Skeleton width style*/
	.navbar .nav-main {
		position: absolute;
		width: 100%;
		margin: 0;
	}
}

@media (min-width: 550px) {
	.navbar .container {
		width: 90%;
	}
}

@media (min-width: 760px) {
	.nav-main ul {
		width: 100%;
		overflow: visible;
		max-height: auto;
		position: relative;
		opacity: 1;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: end;
	}

	.nav-main a {
		display: flex;
		align-items: center;
		position: relative;
		min-height: 50px;
		max-width: 200px;
		text-align: center;
		padding: 30px 20px 20px;
		transform: skew(8deg, -8deg);
		position: relative;
		top: -20px;
	}

	.nav-main a:hover {
		background: var(--brand-black);
	}

	.nav-main a span {
		transform: skew(-8deg, 8deg);
	}
}

@media (min-width: 1200px) {
	.navbar .container {
		width: 80%;
	}

	.nav-main a {
		font-size: 1.3em;
	}
}

/*
    
    FOOTER
*/
footer {
	background: var(--brand-black);
}

footer p {
	font-size: 0.7em;
}

/*

    PAGE SPECIFIC OR RECURRING
*/

.section-highlight {
	background-color: var(--brand-yellow);
	color: var(--brand-black);
}

.section-highlight h1,
.section-highlight h2,
.section-highlight .bold,
.section-highlight p,
.section-highlight li {
	color: var(--brand-black);
}
.section-copy {
	background-color: var(--brand-black);
	color: var(--white);
}

.section-brand {
	background-color: var(--brand-red);
	color: var(--white);
}

.section-header-intro {
	min-height: 150px;
}

.header-construction {
	background: url("../img/city-construction.png") no-repeat center bottom;
	background-size: 40%;
}

@media (min-width: 400px) {
	.section-header-intro {
		min-height: 200px;
	}
}

@media (min-width: 500px) {
	.header-construction {
		background-size: 30%;
	}
}

@media (min-width: 1000px) {
	.section-header-intro {
		min-height: 300px;
	}

	.header-construction {
		background-size: auto;
	}
}
