/**
 * Aurevya Avada Child - Navigation Component
 * Two-column slide-out navigation with hover-triggered submenus
 *
 * Structure:
 * - First panel (leftnavbar): 380px wide, depth 0 headers + depth 1 items
 * - Second panel (leftsubnavbar-container): 380px wide, positioned alongside, depth 2 items
 */

/* ==========================================================================
   Left Navigation Panel (.leftnavbar) - First Panel
   ========================================================================== */

.leftnavbar {
	position: fixed;
	top: 0;
	left: -380px;
	width: 380px;
	height: 100vh;
	background-color: var(--aurevya-navy);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	flex-direction: column;
	transition: left 0.3s ease-in-out;
	z-index: 98;
	overflow: hidden;
}

.leftnavbar.active {
	left: 0;
}

/* Mobile: full width */
@media (max-width: 768px) {
	.leftnavbar {
		width: 100%;
		left: -100%;
	}

	.leftnavbar.active {
		left: 0;
	}
}

/* ==========================================================================
   Large Screen Close Button
   ========================================================================== */

.leftnavbar .largescreen-button {
	display: none;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 100;
}

@media (min-width: 769px) {
	.leftnavbar .largescreen-button {
		display: block;
	}
}

.leftnavbar .largescreen-button .navbar-toggle {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
}

/* ==========================================================================
   Navigation Scrollable Area
   ========================================================================== */

.leftnavbar-nav {
	flex-grow: 1;
	padding: 100px 30px 20px;
	overflow-y: auto;
	overflow-x: hidden;
}

.leftnavbar-nav.lo-scrollbar {
	scrollbar-width: thin;
	scrollbar-color: var(--aurevya-gold) transparent;
}

.leftnavbar-nav.lo-scrollbar::-webkit-scrollbar {
	width: 6px;
}

.leftnavbar-nav.lo-scrollbar::-webkit-scrollbar-track {
	background: transparent;
}

.leftnavbar-nav.lo-scrollbar::-webkit-scrollbar-thumb {
	background-color: var(--aurevya-gold);
	border-radius: 3px;
}

/* ==========================================================================
   First Level Menu List (.listfirstlevel)
   ========================================================================== */

.listfirstlevel {
	list-style: none;
	padding: 0;
	margin: 0;
}

.listfirstlevel > li {
	margin-bottom: 2px;
}

/* ==========================================================================
   Depth 0: Section Headers
   ========================================================================== */

.menu-item-depth-0 {
	margin-bottom: 0;
}

.menu-item-depth-0 > .linknav.section-header {
	color: #fff;
	text-decoration: none;
	font-family: 'RivieraNights-Regular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	display: block;
	padding: 12px 0 8px;
	transition: color 0.3s ease;
	text-transform: none;
}

.menu-item-depth-0 > .linknav.section-header:hover,
.menu-item-depth-0 > .linknav.section-header:focus {
	color: var(--aurevya-gold);
	text-decoration: none;
}

/* ==========================================================================
   Depth 1: Menu Items in First Panel
   ========================================================================== */

.menu-item-depth-1 {
	padding-left: 20px;
}

.menu-item-depth-1 > .linknav {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-family: 'RivieraNights-Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	display: block;
	padding: 8px 0;
	transition: color 0.3s ease;
}

.menu-item-depth-1 > .linknav:hover,
.menu-item-depth-1 > .linknav:focus {
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   Submenu Trigger (.linknavsubmenu) - Depth 1 items with children
   ========================================================================== */

.linknavsubmenu {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.7);
	padding: 8px 0;
	transition: color 0.3s ease;
}

.linknavsubmenu:hover,
.linknavsubmenu:focus,
.linknavsubmenu.active {
	color: #fff;
}

.linknavsubmenu .linknav-text {
	color: inherit;
	text-decoration: none;
	font-family: 'RivieraNights-Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	flex-grow: 1;
}

/* Arrow indicator */
.linknavsubmenu .arrow {
	font-size: 14px;
	margin-left: 10px;
	transition: transform 0.3s ease;
	display: inline-block;
}

/* Default arrow: > (pointing right) */
.linknavsubmenu .arrow.svg-chevron-right::after {
	content: '›';
	font-size: 20px;
	line-height: 1;
}

/* Active arrow: < (pointing left) */
.linknavsubmenu.active .arrow.svg-chevron-right::after {
	content: '‹';
}

/* Hover arrow movement */
.linknavsubmenu:hover .arrow {
	transform: translateX(3px);
}

.linknavsubmenu.active:hover .arrow {
	transform: translateX(-3px);
}

/* Dim inactive items when one is active */
.leftnavbar.submenu-active .linknavsubmenu:not(.active) {
	color: rgba(255, 255, 255, 0.4);
}

.leftnavbar.submenu-active .menu-item-depth-1 > .linknav:not(.linknavsubmenu) {
	color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Second Panel Container (.leftsubnavbar-container) - Depth 2 Items
   ========================================================================== */

.leftsubnavbar-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 380px;
	height: 100vh;
	background-color: var(--aurevya-navy);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	z-index: 97;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Active state: slide in alongside first panel */
.leftsubnavbar-container.active {
	transform: translateX(380px);
}

/* Mobile: slide over first panel */
@media (max-width: 768px) {
	.leftsubnavbar-container {
		width: 100%;
	}

	.leftsubnavbar-container.active {
		transform: translateX(0);
	}
}

/* ==========================================================================
   Second Panel Header (Return Button)
   ========================================================================== */

.leftsubnavbar-header {
	padding: 100px 30px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.returnbtn {
	display: flex;
	align-items: center;
	cursor: pointer;
	color: var(--aurevya-gold);
	font-size: 16px;
	padding: 10px 0;
	transition: color 0.3s ease;
}

.returnbtn:hover,
.returnbtn:focus {
	color: #fff;
}

.returnbtn .icon-arrow_left {
	margin-right: 12px;
	font-size: 20px;
}

.returnbtn .icon-arrow_left::before {
	content: '‹';
	font-size: 24px;
	line-height: 1;
}

.returnbtn-text {
	font-family: 'RivieraNights-Regular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 600;
}

/* ==========================================================================
   Second Panel Menu List (.leftsubnavbar)
   ========================================================================== */

.leftsubnavbar {
	list-style: none;
	padding: 20px 30px;
	margin: 0;
	flex-grow: 1;
	overflow-y: auto;
}

.leftsubnavbar.lo-scrollbar {
	scrollbar-width: thin;
	scrollbar-color: var(--aurevya-gold) transparent;
}

.leftsubnavbar.lo-scrollbar::-webkit-scrollbar {
	width: 6px;
}

.leftsubnavbar.lo-scrollbar::-webkit-scrollbar-track {
	background: transparent;
}

.leftsubnavbar.lo-scrollbar::-webkit-scrollbar-thumb {
	background-color: var(--aurevya-gold);
	border-radius: 3px;
}

.leftsubnavbar li {
	margin-bottom: 2px;
}

/* Depth 2 items */
.menu-item-depth-2 > .linknav {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-family: 'RivieraNights-Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	display: block;
	padding: 10px 0;
	transition: color 0.3s ease;
}

.menu-item-depth-2 > .linknav:hover,
.menu-item-depth-2 > .linknav:focus {
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   Navigation Footer
   ========================================================================== */

.leftnavbar-footer {
	padding: 20px 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.leftnavbar-footer .icon {
	display: inline-block;
}

.leftnavbar-footer .icon img {
	max-width: 50px;
	height: auto;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.leftnavbar-footer .icon:hover img {
	opacity: 1;
}

/* ==========================================================================
   Navigation Overlay
   ========================================================================== */

.aurevya-nav-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 96;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aurevya-nav-overlay.-active {
	opacity: 1;
	visibility: visible;
}

/* ==========================================================================
   Body Scroll Lock (when nav is open)
   ========================================================================== */

body.nav-open {
	overflow: hidden;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.linknav:focus-visible,
.linknavsubmenu:focus-visible,
.returnbtn:focus-visible {
	outline: 2px solid var(--aurevya-gold);
	outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Clear Float
   ========================================================================== */

.clear {
	clear: both;
}
