/* NEW NAVBAR */

#nav-mobile-header {
	width: auto !important;
	text-decoration: none !important;
	display: none;
}

.mobile-nav-control {
	display: none;
}

.nav-opaque {
	background: rgba(22, 16, 12, 0.92);
	transition: background-color .3s ease;
}

/* Basic styles */
.menu-icon {
	width: 30px;
	height: 25px;
	position: absolute;
	top: 15px;
	right: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transform: rotate(0deg);
	transition: .3s ease-in-out;
}

.menu-icon div {
	width: 100%;
	height: 4px;
	background-color: var(--text-main);
	position: absolute;
	right: 0;
	transform-origin: center;
	transition: all .3s ease-in-out;
}

/* Bar positioning */
.bar1 {
	top: 2px;
}

.bar2 {
	top: 12px;
}

.bar3 {
	top: 22px;
}

/* Animation to X (Close) */
.nav-change .bar1 {
	transform: rotate(45deg);
	top: 12px;
}

.nav-change .bar2 {
	opacity: 0;
}

.nav-change .bar3 {
	transform: rotate(-45deg);
	top: 12px;
}

nav {
	position: fixed;
	text-align: center;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 200;
	overflow: hidden;
	border-bottom: 1px solid rgba(201, 155, 71, 0.18);
	background: linear-gradient(180deg, rgba(29, 21, 16, 0.92), rgba(24, 18, 14, 0.78));
	backdrop-filter: blur(8px);
	transition: background-color .3s ease, border-color .3s ease;
}

nav a {
	display: inline-block;
	text-decoration: none !important;
	color: var(--text-main) !important;
	text-align: center;
	padding: 20px 20px;
	font-weight: normal;
	text-transform: uppercase;
	font-family: "Dust West";
	font-size: clamp(20px, 1.5vw, 36px);
	border-bottom: 4px solid transparent;
	transition: color .6s ease, border-bottom .6s ease;
}

nav a:not([class='mobile-nav-control']):hover, .active-page {
	text-decoration: none !important;
	border-bottom: 4px solid var(--accent) !important;
	color: var(--accent-bright) !important;
}

/* MOBILE */

@media only screen and (max-device-width: 860px), only screen and (max-width: 860px) {
	body.lock-body {
		overflow: hidden;
		position: fixed;
		height: 100%;
	}
	
	.active-page {
		border-bottom: none !important;	
	}

	nav {
		position: absolute;
		height: 60px;
		overflow: visible;
		text-align: center;
	}

	#mobile-nav-button {
		background: none !important;
	}

	#nav-link-wrapper {
		display: none;
		position: absolute;
		top: 60px;
		left: 0;
		height: 100vh;
		width: 100vw;
		z-index: 999;
		background: linear-gradient(180deg, rgba(20, 15, 12, 0.96), rgba(20, 15, 12, 0.96));
		overflow-y: auto;
	}

	#nav-link-wrapper a {
		display: block;
		font-size: clamp(26px, 5vw, 36px);
		border-bottom: none;
		padding: 10px 20px;
		text-align: left;
	}

	#nav-link-wrapper a:hover, #nav-link-wrapper a:focus {
		color: var(--accent-bright);
		border-bottom: none !important;
	}

	#nav-mobile-header {
		display: flex;
		align-items: center;
		position: absolute;
		top: 0;
		left: 10px;
		height: 60px;
		width: calc(100% - 66px);
		margin: 0;
		padding: 0 56px 0 0;
		text-align: left;
		cursor: default;
		font-size: clamp(25px, 4.8vw, 31px);
		line-height: 1;
		font-family: "Dust West";
	}

	a#mobile-nav-button {
		display: inherit;
		position: absolute;
		top: -13px;
		right: 0;
		font-size: 30px;
	}

	a#mobile-nav-button:hover {
		text-decoration: none !important;
	}
	
	.mobile-nav-control {
		display: inherit;
	}
}
