/* ============================================================
   Header Menu — global fixed/sticky header widget
   Figma: node 191-1077 / file opBauGZv9Y8kRzwG89RTeK
   BEM: .skyspy-header
   ============================================================ */

/* --- Kill Elementor wrapper padding so header is truly full-width --- */

.skyspy-global-header .elementor-section,
.skyspy-global-header .elementor-element,
.skyspy-global-header .elementor-container,
.skyspy-global-header .elementor-column,
.skyspy-global-header .elementor-column-wrap,
.skyspy-global-header .elementor-widget-wrap,
.skyspy-global-header .elementor-widget,
.skyspy-global-header .e-con,
.skyspy-global-header .e-con-inner {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

.elementor-widget-skyspy_header_menu {
	width: 100% !important;
	max-width: 100% !important;
}

.elementor-element:has(.elementor-widget-skyspy_header_menu) {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

.e-con:has(.elementor-widget-skyspy_header_menu),
.e-con-inner:has(.elementor-widget-skyspy_header_menu) {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	--padding-inline: 0px !important;
	--padding-block: 0px !important;
}

/* ============================================================
   Global header wrapper — fixed, full-width, above all content
   ============================================================ */

.skyspy-global-header {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	pointer-events: none;
}

.skyspy-global-header .skyspy-header {
	pointer-events: all;
}

/* ============================================================
   Header block
   ============================================================ */

.skyspy-header {
	position: relative;
	width: 100%;
	height: 150px;
	/* Transparent by default — use Elementor control to override */
	background-color: var(--header-bg, transparent);
	overflow: visible;
	transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Bottom accent line — hidden by default, enabled via switcher */
.skyspy-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: var(--header-border-width, 0px);
	background-color: var(--header-border-color, #839074);
	pointer-events: none;
	z-index: 2;
	transition: opacity 0.4s ease;
}

/* Gradient overlay — hidden by default, enabled via Elementor switcher */
.skyspy-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 240px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.0) 100%);
	pointer-events: none;
	z-index: 0;
	display: none; /* shown via Elementor selector when switcher is on */
}

/* ============================================================
   Scrolled state — blur glass effect
   ============================================================ */

.skyspy-header.is-scrolled {
	background-color: var(--header-scrolled-bg, rgba(13, 13, 13, 0.85)) !important;
	backdrop-filter: blur(var(--header-blur, 12px));
	-webkit-backdrop-filter: blur(var(--header-blur, 12px));
	box-shadow: 0 2px 32px rgba(0, 0, 0, 0.18);
}

/* When scrolled — hide the gradient overlay so it doesn't double up */
.skyspy-header.is-scrolled::before {
	display: none;
}

/* ============================================================
   Container
   ============================================================ */

.skyspy-header__container {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	height: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 120px;
	box-sizing: border-box;
}

/* ============================================================
   Logo
   ============================================================ */

.skyspy-header__logo {
	flex-shrink: 0;
	margin-right: 40px;
}

.skyspy-header__logo-link {
	display: flex;
	align-items: center;
	height: 100%;
}

.skyspy-header__logo-img {
	width: auto;
	height: 70px;
	object-fit: contain;
}

/* ============================================================
   Navigation — primary (left, flex:1) + secondary (right)
   ============================================================ */

.skyspy-header__nav {
	display: flex;
	align-items: center;
}

.skyspy-header__nav--primary {
	flex: 1;
}

.skyspy-header__nav--secondary {
	margin-right: 30px;
}

.skyspy-header__menu {
	display: flex;
	align-items: center;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.skyspy-header__menu .menu-item a {
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 500;
	color: var(--header-menu-color, #ffffff);
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	letter-spacing: 0.02em;
	transition: opacity 0.25s ease;
	position: relative;
}

/* Underline accent on hover (thin line, olive) */
.skyspy-header__menu .menu-item a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--header-accent-color, #839074);
	transition: width 0.25s ease;
}

.skyspy-header__menu .menu-item a:hover {
	opacity: 0.65;
}

.skyspy-header__menu .menu-item a:hover::after {
	width: 100%;
}

.skyspy-header__menu .menu-item.current-menu-item > a,
.skyspy-header__menu .menu-item.current_page_item > a {
	opacity: 0.55;
}

.skyspy-header__menu .menu-item.current-menu-item > a::after,
.skyspy-header__menu .menu-item.current_page_item > a::after {
	width: 100%;
}

/* ============================================================
   Icon Button (utility)
   ============================================================ */

.skyspy-header__icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background-color: var(--color-white, #fff);
	flex-shrink: 0;
	transition: opacity 0.2s ease;
	color: var(--color-text, #0d0d0d);
	text-decoration: none;
}

.skyspy-header__icon-btn:hover {
	opacity: 0.8;
}

.skyspy-header__icon-btn svg {
	width: 19px;
	height: 25px;
}

/* ============================================================
   CTA Button
   ============================================================ */

.skyspy-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	width: 200px;
	height: 50px;
	background-color: var(--color-white, #fff);
	flex-shrink: 0;
	transition: opacity 0.2s ease;
	text-decoration: none;
}

.skyspy-header__cta:hover {
	opacity: 0.8;
}

.skyspy-header__cta-text {
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 500;
	color: var(--color-text, #0d0d0d);
	white-space: nowrap;
}

.skyspy-header__cta-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: var(--color-text, #0d0d0d);
}

/* ============================================================
   Burger (hidden on desktop)
   ============================================================ */

.skyspy-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	width: 50px;
	height: 50px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 10;
}

.skyspy-header__burger-line {
	display: block;
	width: 28px;
	height: 2px;
	background-color: var(--header-menu-color, #ffffff);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.skyspy-header__burger.is-active .skyspy-header__burger-line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.skyspy-header__burger.is-active .skyspy-header__burger-line:nth-child(2) {
	opacity: 0;
}

.skyspy-header__burger.is-active .skyspy-header__burger-line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   Mobile Panel — full-screen overlay
   ============================================================ */

.skyspy-header__mobile-panel {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: #0d0d0d !important;
	z-index: 9999;
	padding: 0 20px 40px;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
	box-sizing: border-box;
}

.skyspy-header__mobile-panel.is-open {
	display: flex;
}

/* Hide the header bar itself when panel is open so logo doesn't show twice */
body.skyspy-menu-open .skyspy-header__container {
	visibility: hidden;
}

/* Top bar: logo left + close button right */
.skyspy-header__mobile-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	flex-shrink: 0;
}

/* Reset logo styles inherited from desktop header */
.skyspy-header__mobile-logo {
	margin-right: 0;
}

.skyspy-header__mobile-logo .skyspy-header__logo-link {
	height: auto;
}

.skyspy-header__mobile-logo .skyspy-header__logo-img {
	height: 44px !important;
	width: auto;
}

.skyspy-header__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #ffffff;
	flex-shrink: 0;
}

.skyspy-header__close svg {
	width: 24px;
	height: 24px;
}

.skyspy-header__mobile-nav {
	flex: 1;
}

.skyspy-header__mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.skyspy-header__mobile-menu .menu-item a {
	display: block;
	font-family: var(--font-primary);
	font-size: 24px;
	font-weight: 700;
	color: #ffffff !important;
	text-decoration: none;
	text-transform: uppercase;
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	transition: opacity 0.2s ease;
}

.skyspy-header__mobile-menu .menu-item a:hover {
	opacity: 0.6;
}

.skyspy-header__mobile-menu .menu-item:last-child a {
	border-bottom: none;
}

/* Olive accent line at top of each mobile menu item on hover */
.skyspy-header__mobile-menu .menu-item a::after {
	display: none;
}

.skyspy-header__mobile-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 20px;
}

.skyspy-header__mobile-actions .skyspy-header__cta {
	flex: 1;
	width: auto;
}

/* ============================================================
   Tablet  769px – 1200px
   ============================================================ */

@media (max-width: 1200px) {
	.skyspy-header {
		height: 100px;
	}

	.skyspy-header__container {
		padding: 0 40px;
	}

	.skyspy-header__logo-img {
		height: 50px;
	}
}

/* ============================================================
   Mobile  ≤ 768px
   ============================================================ */

@media (max-width: 768px) {
	.skyspy-header {
		height: 80px;
	}

	.skyspy-header__container {
		padding: 0 20px;
	}

	.skyspy-header__nav,
	.skyspy-header__icon-btn,
	.skyspy-header__cta {
		display: none;
	}

	.skyspy-header__burger {
		display: flex;
		margin-left: auto;
	}

	.skyspy-header__logo-img {
		height: 44px;
	}
}

/* Body scroll lock when mobile menu is open */
body.skyspy-menu-open {
	overflow: hidden;
}
