/**
 * Neuralumen design system — dark luminous UI (works with Elementor + plain templates).
 */

:root {
	--nl-bg: #0a0a0f;
	--nl-bg-elevated: #12121a;
	--nl-cyan: #00f5ff;
	--nl-violet: #c026d3;
	--nl-magenta: #f472b6;
	--nl-white: #ffffff;
	--nl-text: #e8e8ed;
	--nl-text-muted: #9ca3af;
	--nl-glass-bg: rgba(18, 18, 26, 0.72);
	--nl-glass-border: rgba(0, 245, 255, 0.12);
	--nl-shadow-cyan: 0 0 24px rgba(0, 245, 255, 0.35);
	--nl-shadow-violet: 0 0 28px rgba(192, 38, 211, 0.35);
	--nl-radius: 12px;
	--nl-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--nl-bg);
	color: var(--nl-text);
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Base text when not inside Elementor */
body:not(.elementor-page) .site-content,
body .entry-content {
	color: var(--nl-text);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ——— Sticky header (Theme Builder + classic Hello header) ——— */
body.neuralumen-sticky-header-enabled .elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 10050;
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	background: linear-gradient(
		180deg,
		rgba(10, 10, 15, 0.92) 0%,
		rgba(10, 10, 15, 0.78) 100%
	);
	border-bottom: 1px solid var(--nl-glass-border);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

body.neuralumen-sticky-header-enabled .site-header {
	position: sticky;
	top: 0;
	z-index: 10050;
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	background: var(--nl-glass-bg);
	border-bottom: 1px solid var(--nl-glass-border);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* ——— Neuralumen header layout (template-parts) ——— */
.nl-neural-header .nl-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.nl-neural-header .nl-header-branding {
	flex: 0 0 auto;
	min-width: 0;
}

.nl-neural-header .nl-header-branding.hide {
	display: none !important;
}

.nl-neural-header .nl-header-nav {
	flex: 1 1 auto;
	justify-content: center;
	min-width: 0;
}

.nl-neural-header .nl-header-nav.hide {
	display: none !important;
}

.nl-neural-header .nl-header-extras {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem 0.85rem;
	flex: 0 1 auto;
	min-width: 0;
}

.nl-neural-header .nl-header-search {
	max-width: min(220px, 42vw);
}

@media (max-width: 992px) {
	.nl-neural-header .nl-header-inner {
		row-gap: 0.75rem;
	}

	.nl-neural-header .nl-header-nav:not(.hide) {
		order: 10;
		flex: 1 1 100%;
		justify-content: center;
	}

	.nl-neural-header .nl-header-extras {
		flex: 1 1 auto;
		justify-content: flex-end;
	}

	.nl-neural-header .nl-header-search {
		max-width: 160px;
	}
}

/* Dark menu surfaces (override Hello defaults) */
.nl-neural-header .site-navigation ul.menu li > a {
	color: var(--nl-text);
}

.nl-neural-header .site-navigation ul.menu li > a:hover,
.nl-neural-header .site-navigation ul.menu li.current-menu-item > a {
	color: var(--nl-cyan);
}

.nl-neural-header .site-navigation ul.menu li.menu-item-has-children::after {
	color: var(--nl-text-muted);
}

.nl-neural-header .site-navigation ul.menu li ul {
	background: var(--nl-bg-elevated) !important;
	border: 1px solid var(--nl-glass-border);
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nl-neural-header .site-navigation ul.menu li ul li {
	border-block-end: 1px solid rgba(0, 245, 255, 0.08) !important;
}

.nl-neural-header .site-navigation ul.menu li ul li a {
	color: var(--nl-text) !important;
}

.nl-neural-header .site-navigation ul.menu li ul li a:hover {
	color: var(--nl-cyan) !important;
}

.nl-neural-header .site-navigation-toggle {
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--nl-text) !important;
	border: 1px solid rgba(0, 245, 255, 0.25) !important;
}

.nl-neural-header .site-navigation-dropdown ul.menu {
	background: var(--nl-bg-elevated) !important;
	border: 1px solid var(--nl-glass-border);
	border-radius: 0 0 12px 12px;
}

.nl-neural-header .site-navigation-dropdown ul.menu li a {
	background: transparent !important;
	color: var(--nl-text) !important;
	box-shadow: inset 0 -1px 0 rgba(0, 245, 255, 0.08) !important;
}

.nl-neural-header .site-navigation-dropdown ul.menu li.current-menu-item a {
	background: rgba(0, 245, 255, 0.12) !important;
	color: var(--nl-cyan) !important;
}

/**
 * Optional: add CSS class `nl-sticky-header` on a Section in Elementor Header
 * if the automatic location selector is not enough.
 */
.nl-sticky-header {
	position: sticky !important;
	top: 0;
	z-index: 10050 !important;
}

/* ——— Glass cards ——— */
.nl-glass {
	background: var(--nl-glass-bg);
	border: 1px solid var(--nl-glass-border);
	border-radius: var(--nl-radius);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
	transition: transform var(--nl-transition), box-shadow var(--nl-transition), border-color var(--nl-transition);
}

.nl-glass:hover {
	transform: translateY(-3px) scale(1.01);
	border-color: rgba(0, 245, 255, 0.35);
	box-shadow: var(--nl-shadow-cyan), 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nl-glass--flat:hover {
	transform: none;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
	border-color: var(--nl-glass-border);
}

/* ——— Neon glow utilities ——— */
.nl-glow-cyan {
	text-shadow: 0 0 12px rgba(0, 245, 255, 0.65), 0 0 28px rgba(0, 245, 255, 0.35);
}

.nl-glow-violet {
	text-shadow: 0 0 12px rgba(192, 38, 211, 0.55), 0 0 28px rgba(192, 38, 211, 0.3);
}

/* ——— Buttons (header CTAs + general) ——— */
.nl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.55rem 1.15rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: transform var(--nl-transition), box-shadow var(--nl-transition), border-color var(--nl-transition), background var(--nl-transition);
}

.nl-btn:focus-visible {
	outline: 2px solid var(--nl-cyan);
	outline-offset: 3px;
}

.nl-btn--shop {
	color: var(--nl-bg);
	background: linear-gradient(135deg, var(--nl-cyan), #5eead4);
	box-shadow: 0 0 20px rgba(0, 245, 255, 0.45);
}

.nl-btn--shop:hover {
	transform: scale(1.04);
	box-shadow: var(--nl-shadow-cyan), 0 0 36px rgba(0, 245, 255, 0.5);
}

.nl-btn--ghost {
	color: var(--nl-text);
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(0, 245, 255, 0.25);
}

.nl-btn--ghost:hover {
	border-color: var(--nl-cyan);
	box-shadow: 0 0 18px rgba(0, 245, 255, 0.25);
	transform: scale(1.03);
}

.nl-header-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

/* ——— Logo shortcode ——— */
.nl-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--nl-text);
	transition: filter var(--nl-transition), transform var(--nl-transition);
}

.nl-logo:hover {
	filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.55)) drop-shadow(0 0 22px rgba(192, 38, 211, 0.35));
	transform: scale(1.02);
}

.nl-logo__mark {
	flex-shrink: 0;
}

.nl-logo__text {
	font-weight: 700;
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: linear-gradient(90deg, var(--nl-cyan), var(--nl-violet), var(--nl-magenta));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ——— Header search ——— */
.nl-header-search {
	display: flex;
	align-items: center;
	max-width: 220px;
}

.nl-header-search input[type="search"] {
	width: 100%;
	padding: 0.45rem 0.85rem;
	font-size: 0.875rem;
	color: var(--nl-text);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(0, 245, 255, 0.2);
	border-radius: 999px;
	transition: border-color var(--nl-transition), box-shadow var(--nl-transition);
}

.nl-header-search input[type="search"]:focus {
	outline: none;
	border-color: var(--nl-cyan);
	box-shadow: 0 0 16px rgba(0, 245, 255, 0.25);
}

.nl-header-search input[type="search"]::placeholder {
	color: var(--nl-text-muted);
}

/* ——— Scroll reveal (paired with neuralumen-frontend.js) ——— */
.nl-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-reveal.nl-reveal--in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.nl-reveal,
	.nl-glass,
	.nl-btn,
	.nl-logo {
		transition: none;
	}

	.nl-reveal {
		opacity: 1;
		transform: none;
	}
}
