/**
 * LXA Premium Sticky Header - Responsive & Mobile Drawer Styles
 *
 * NOTE: Every rule is strictly scoped under .lxa-sticky-header.
 * Zero global tags or third-party styles are modified.
 */

/* Mobile Backdrop Overlay */
.lxa-sticky-header__mobile-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease, visibility 300ms ease;
	z-index: calc(var(--lxa-z-index, 9999) - 1);
	pointer-events: none;
}

.lxa-sticky-header.lxa-drawer-active .lxa-sticky-header__mobile-backdrop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Mobile Navigation Drawer Base */
.lxa-sticky-header__mobile-drawer {
	position: fixed;
	background-color: var(--lxa-mobile-bg, rgba(15, 23, 42, 0.97));
	-webkit-backdrop-filter: blur(25px);
	backdrop-filter: blur(25px);
	display: flex;
	flex-direction: column;
	z-index: var(--lxa-z-index, 9999);
	pointer-events: none;
	visibility: hidden;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
	transition:
		transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
		opacity 300ms ease,
		visibility 320ms ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.lxa-sticky-header__mobile-drawer.lxa-is-open {
	pointer-events: auto;
	visibility: visible;
}

/* Drawer Style: Slide From Right */
.lxa-sticky-header__mobile-drawer.lxa-drawer--slide_right {
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--lxa-mobile-drawer-width, 340px);
	max-width: 85vw;
	border-left: 1px solid var(--lxa-mobile-border, rgba(255, 255, 255, 0.10));
	transform: translateX(105%);
}

.lxa-sticky-header__mobile-drawer.lxa-drawer--slide_right.lxa-is-open {
	transform: translateX(0);
}

/* Drawer Style: Slide From Left */
.lxa-sticky-header__mobile-drawer.lxa-drawer--slide_left {
	top: 0;
	left: 0;
	bottom: 0;
	width: var(--lxa-mobile-drawer-width, 340px);
	max-width: 85vw;
	border-right: 1px solid var(--lxa-mobile-border, rgba(255, 255, 255, 0.10));
	transform: translateX(-105%);
}

.lxa-sticky-header__mobile-drawer.lxa-drawer--slide_left.lxa-is-open {
	transform: translateX(0);
}

/* Drawer Style: Slide Down */
.lxa-sticky-header__mobile-drawer.lxa-drawer--slide_down {
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-height: 85vh;
	border-bottom: 1px solid var(--lxa-mobile-border, rgba(255, 255, 255, 0.10));
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	transform: translateY(-105%);
}

.lxa-sticky-header__mobile-drawer.lxa-drawer--slide_down.lxa-is-open {
	transform: translateY(0);
}

/* Drawer Style: Fullscreen */
.lxa-sticky-header__mobile-drawer.lxa-drawer--fullscreen {
	inset: 0;
	width: 100%;
	height: 100%;
	transform: scale(0.96);
	opacity: 0;
}

.lxa-sticky-header__mobile-drawer.lxa-drawer--fullscreen.lxa-is-open {
	transform: scale(1);
	opacity: 1;
}

/* Mobile Drawer Header */
.lxa-sticky-header__mobile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--lxa-mobile-border, rgba(255, 255, 255, 0.08));
	flex-shrink: 0;
}

.lxa-sticky-header__mobile-brand {
	display: flex;
	align-items: center;
	max-width: calc(100% - 50px);
}

/* Animated Close Button - Precision Luxury Badge */
.lxa-sticky-header__mobile-drawer-close,
.lxa-sticky-header__mobile-close {
	position: relative;
	width: 40px;
	height: 40px;
	background: var(--lxa-hamburger-bg, rgba(255, 255, 255, 0.06));
	border: var(--lxa-hamburger-border-width, 1px) solid var(--lxa-hamburger-border, rgba(255, 255, 255, 0.15));
	border-radius: var(--lxa-hamburger-radius, 10px);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	outline: none;
	flex-shrink: 0;
	box-sizing: border-box;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition:
		background-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
		border-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
		transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lxa-sticky-header__close-icon-wrap {
	position: relative;
	width: 18px;
	height: 18px;
	display: block;
	transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lxa-sticky-header__close-line {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--lxa-hamburger-color, var(--lxa-mobile-text, #f8fafc));
	border-radius: 999px;
	transition: background-color 200ms ease;
}

.lxa-sticky-header__close-line-1 {
	transform: translateY(-50%) rotate(45deg);
}

.lxa-sticky-header__close-line-2 {
	transform: translateY(-50%) rotate(-45deg);
}

.lxa-sticky-header__mobile-drawer-close:hover,
.lxa-sticky-header__mobile-close:hover {
	background-color: var(--lxa-hamburger-hover-bg, rgba(56, 189, 248, 0.15));
	border-color: var(--lxa-hamburger-hover-border, var(--lxa-menu-hover, #38bdf8));
	transform: rotate(90deg);
	box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.lxa-sticky-header__mobile-drawer-close:hover .lxa-sticky-header__close-line,
.lxa-sticky-header__mobile-close:hover .lxa-sticky-header__close-line {
	background-color: var(--lxa-hamburger-hover-color, var(--lxa-menu-hover, #38bdf8));
}

.lxa-sticky-header__mobile-drawer-close:focus-visible,
.lxa-sticky-header__mobile-close:focus-visible {
	outline: 2px solid var(--lxa-hamburger-hover-border, var(--lxa-menu-hover, #38bdf8));
	outline-offset: 2px;
}

.lxa-sticky-header__mobile-drawer-close:active,
.lxa-sticky-header__mobile-close:active {
	transform: rotate(90deg) scale(0.91);
}

.lxa-sticky-header.lxa-drawer-active .lxa-sticky-header__close-icon-wrap,
.lxa-sticky-header__mobile-drawer.lxa-is-open .lxa-sticky-header__close-icon-wrap {
	animation: lxa-spin-open 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lxa-spin-open {
	0% {
		transform: rotate(-90deg) scale(0.6);
		opacity: 0;
	}
	100% {
		transform: rotate(0deg) scale(1);
		opacity: 1;
	}
}

/* Mobile Navigation List */
.lxa-sticky-header__mobile-nav {
	padding: 20px 24px;
	flex: 1;
	overflow-y: auto;
}

.lxa-sticky-header__mobile-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lxa-sticky-header__mobile-item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lxa-sticky-header__mobile-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.lxa-sticky-header__mobile-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	color: var(--lxa-mobile-text, #f8fafc);
	font-size: var(--lxa-font-size, 16px);
	font-weight: 500;
	text-decoration: none;
	border-radius: 10px;
	flex: 1;
	transition: background-color 200ms ease, color 200ms ease;
	outline: none;
}

.lxa-sticky-header__mobile-link:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--lxa-menu-hover, #38bdf8);
}

.lxa-sticky-header__mobile-item.lxa-is-active > .lxa-sticky-header__mobile-row > .lxa-sticky-header__mobile-link,
.lxa-sticky-header__mobile-item.current-menu-item > .lxa-sticky-header__mobile-row > .lxa-sticky-header__mobile-link,
.lxa-sticky-header__mobile-item.current-menu-ancestor > .lxa-sticky-header__mobile-row > .lxa-sticky-header__mobile-link {
	background-color: rgba(56, 189, 248, 0.12);
	color: var(--lxa-menu-active, var(--lxa-menu-hover, #38bdf8));
}

.lxa-sticky-header__mobile-link:focus-visible {
	outline: 2px solid var(--lxa-menu-hover, #38bdf8);
}

/* Mobile Accordion Submenu Button */
.lxa-sticky-header__mobile-accordion-btn {
	background: transparent;
	border: none;
	padding: 10px 12px;
	cursor: pointer;
	color: var(--lxa-mobile-text, #f8fafc);
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 200ms ease, color 200ms ease;
	outline: none;
}

.lxa-sticky-header__mobile-accordion-btn:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--lxa-menu-hover, #38bdf8);
}

.lxa-sticky-header__mobile-accordion-btn:focus-visible {
	outline: 2px solid var(--lxa-menu-hover, #38bdf8);
}

.lxa-accordion-arrow {
	width: 14px;
	height: 14px;
	transition: transform 250ms ease;
}

.lxa-sticky-header__mobile-accordion-btn[aria-expanded="true"] .lxa-accordion-arrow {
	transform: rotate(180deg);
}

/* Mobile Submenu List */
.lxa-sticky-header__mobile-sublist {
	list-style: none;
	margin: 6px 0 6px 16px;
	padding: 0 0 0 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.lxa-sticky-header__mobile-sublist[hidden] {
	display: none;
}

/* Mobile Drawer Footer with Full-Width CTA */
.lxa-sticky-header__mobile-footer {
	padding: 20px 24px;
	border-top: 1px solid var(--lxa-mobile-border, rgba(255, 255, 255, 0.08));
	flex-shrink: 0;
}

.lxa-cta--mobile-block {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 13px 20px;
	font-size: 15px;
}

/* Responsive Media Queries Based On Mobile Breakpoint Variable (Fallback 1024px) */
@media screen and (max-width: 1024px) {
	.lxa-sticky-header__nav {
		display: none;
	}

	.lxa-sticky-header__mobile-toggle {
		display: inline-flex;
	}
}

/* Phone Layout Optimizations (<= 767px) */
@media screen and (max-width: 767px) {
	.lxa-sticky-header__inner {
		padding: 0 16px;
	}

	.lxa-sticky-header__cta {
		display: none; /* Moves to mobile drawer on phone screens to prevent header cramming */
	}

	.lxa-sticky-header__cta.lxa-cta--mobile-block {
		display: flex; /* Always visible in drawer */
	}
}
