/*!
 * BOLTNAX Electric Header — base layout
 * @version 1.1.0
 */

/* ------------------------------------------------------------------ *
 * Tokens (overridable via Elementor controls / settings inline vars)
 * ------------------------------------------------------------------ */
.bnx-header {
	--bnx-css-header: 1;
	--bnx-css-version: "1.1.0";
	--bnx-bar-bg: #101820;
	--bnx-bar-text: #ffffff;
	--bnx-bar-h: 40px;
	--bnx-bar-font: 13px;
	--bnx-bolt-icon: var(--bnx-yellow, #FFD51C);
	--bnx-header-bg: #ffffff;
	--bnx-header-border: rgba(16, 24, 32, 0.08);
	--bnx-header-h: 76px;
	--bnx-pad-x: 32px;
	--bnx-inner-max: 1280px;
	--bnx-nav-text: #17212B;
	--bnx-nav-hover: #0B8FD6;
	--bnx-menu-gap: 32px;
	--bnx-dd-bg: #ffffff;
	--bnx-dd-text: #17212B;
	--bnx-dd-hover-bg: #EEF8FF;
	--bnx-burger: #17212B;
	--bnx-cta-bg: #F7C948;
	--bnx-cta-bg-hover: #F2B90F;
	--bnx-cta-text: #101820;
	--bnx-cta-radius: 6px;
	--bnx-logo-h: 54px;
	--bnx-logo-max: 999px;
	--bnx-logo-color: #101820;
	--bnx-blue: #22B8FF;
	--bnx-blue-rgb: 34, 184, 255;
	--bnx-white: #F4FCFF;
	--bnx-white-rgb: 244, 252, 255;
	--bnx-yellow: #FFD51C;
	--bnx-yellow-rgb: 255, 213, 28;
	--bnx-glow: 0.8;
	--bnx-gap: 64px;
	--bnx-css-duration: 30s;
	--bnx-fx-speed: 1;
	--bnx-font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;

	position: relative;
	z-index: 1000;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	font-family: var(--bnx-font);
	color-scheme: only light; /* stop Chrome/Samsung "auto dark" from repainting the header */
	forced-color-adjust: none;
	line-height: 1.4;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: left;
}

.bnx-header *,
.bnx-header *::before,
.bnx-header *::after {
	box-sizing: border-box;
}

.bnx-header ul,
.bnx-header li {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
}

.bnx-header li::before,
.bnx-header li::marker {
	content: none;
}

.bnx-header a {
	text-decoration: none;
	box-shadow: none;
}

/* Neutralise theme button styles (Hello Elementor reset styles <button>, incl. :hover/:focus).
 * Layout properties are reset only in the base state so component rules (0,2,0) keep control
 * of size/position in every interaction state. */
.bnx-header button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	min-height: 0;
	width: auto;
}

.bnx-header button:hover,
.bnx-header button:focus,
.bnx-header button:active {
	background-color: transparent;
	border-color: transparent;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
}

.bnx-header svg {
	display: inline-block;
	flex-shrink: 0;
	overflow: visible;
}

.bnx-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bnx-header :focus-visible {
	outline: 2px solid var(--bnx-blue);
	outline-offset: 2px;
}

/* Elementor wrapper spacing reset. */
.elementor-widget-boltnax-electric-header,
.elementor-widget-boltnax-electric-header > .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
}

/* ------------------------------------------------------------------ *
 * Global mounting
 * ------------------------------------------------------------------ */
.bnx-global-header {
	position: relative;
	z-index: 1000;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.bnx-global-header .elementor-section.elementor-section-boxed > .elementor-container,
.bnx-global-header .e-con {
	--padding-top: 0px;
	--padding-bottom: 0px;
}

.bnx-global-header--sticky,
.bnx-header.bnx-header--sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}

body.admin-bar .bnx-global-header--sticky,
body.admin-bar .bnx-header.bnx-header--sticky {
	top: 32px;
}

/* Hide the theme header only where the BOLTNAX header is shown. */
body.bnx-hide-theme-header #site-header.site-header,
body.bnx-hide-theme-header header#site-header,
body.bnx-hide-theme-header .site-header.dynamic-header {
	display: none !important;
}

/* ------------------------------------------------------------------ *
 * Section A — announcement bar
 * ------------------------------------------------------------------ */
.bnx-topbar {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: var(--bnx-bar-h);
	overflow: hidden;
	background-color: var(--bnx-bar-bg);
	color: var(--bnx-bar-text);
	isolation: isolate;
	contain: layout paint;
}

.bnx-ticker {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
}

.bnx-ticker__viewport {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	outline: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.bnx-ticker__viewport:focus-visible {
	outline: 2px solid var(--bnx-blue);
	outline-offset: -3px;
}

.bnx-ticker__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: -webkit-max-content;
	width: max-content;
	height: 100%;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
}

.bnx-ticker__group {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	height: 100%;
}

.bnx-ticker__item {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	height: 100%;
	padding-right: var(--bnx-gap) !important;
	white-space: nowrap;
}

.bnx-ticker__link {
	display: inline-flex;
	align-items: center;
	color: inherit !important;
}

.bnx-ticker__link:hover .bnx-ticker__text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bnx-ticker__bolt {
	width: 11px;
	height: 14px;
	margin-right: 9px;
	fill: var(--bnx-bolt-icon);
}

.bnx-ticker__text {
	display: inline-block;
	color: var(--bnx-bar-text);
	font-family: inherit;
	font-size: var(--bnx-bar-font);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	white-space: nowrap;
}

/* CSS-only marquee: runs before JS loads (delayed JS, slow networks) or if JS fails.
 * The server renders the group four times, so -25% is exactly one group width. */
@keyframes bnx-marquee-rtl {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-25%, 0, 0); }
}

@keyframes bnx-marquee-ltr {
	from { transform: translate3d(-25%, 0, 0); }
	to { transform: translate3d(0, 0, 0); }
}

.bnx-header.bnx-ticker-on:not(.bnx-js) .bnx-ticker__track {
	animation: bnx-marquee-rtl var(--bnx-css-duration) linear infinite;
}

.bnx-header.bnx-ticker-on.bnx-dir-ltr:not(.bnx-js) .bnx-ticker__track {
	animation-name: bnx-marquee-ltr;
}

@media (hover: hover) and (pointer: fine) {
	.bnx-header.bnx-ticker-on:not(.bnx-js) .bnx-topbar:hover .bnx-ticker__track {
		animation-play-state: paused;
	}
}

.bnx-header.bnx-ticker-on:not(.bnx-js) .bnx-topbar:focus-within .bnx-ticker__track {
	animation-play-state: paused;
}

/* JS engine is authoritative once active. */
.bnx-header.bnx-js .bnx-ticker__track {
	animation: none !important;
}

/* Static ticker (scrolling disabled): centre the messages. */
.bnx-header.bnx-ticker-off .bnx-ticker__viewport {
	justify-content: center;
	-webkit-mask-image: none;
	mask-image: none;
}

.bnx-header.bnx-ticker-off .bnx-ticker__track {
	width: 100%;
	justify-content: center;
}

.bnx-header.bnx-ticker-off .bnx-ticker__group {
	overflow: hidden;
	max-width: 100%;
}

/* Rotate mode (reduced motion): one message at a time, cross-fade only. */
.bnx-ticker--rotate .bnx-ticker__viewport {
	-webkit-mask-image: none;
	mask-image: none;
}

.bnx-ticker--rotate .bnx-ticker__track {
	position: relative;
	width: 100%;
	transform: none !important;
}

.bnx-ticker--rotate .bnx-ticker__group[data-bnx-clone] {
	display: none;
}

.bnx-ticker--rotate .bnx-ticker__group {
	position: relative;
	width: 100%;
}

.bnx-ticker--rotate .bnx-ticker__item {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	justify-content: center;
	padding: 0 44px 0 16px !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.bnx-ticker--rotate .bnx-ticker__item .bnx-ticker__text {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.bnx-ticker--rotate .bnx-ticker__item.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0s;
}

/* ------------------------------------------------------------------ *
 * Section B — main navigation
 * ------------------------------------------------------------------ */
.bnx-nav-bar {
	position: relative;
	width: 100%;
	background-color: var(--bnx-header-bg);
	border-bottom: 1px solid var(--bnx-header-border);
}

.bnx-nav-bar__inner {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: var(--bnx-inner-max);
	height: var(--bnx-header-h);
	margin: 0 auto;
	padding: 0 var(--bnx-pad-x);
}

/* Logo */
.bnx-logo {
	display: flex;
	align-items: center;
	min-width: 0;
}

.bnx-logo__link {
	display: inline-flex;
	align-items: center;
	color: var(--bnx-logo-color) !important;
	line-height: 0;
}

.bnx-logo__inner {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-right: 12px;
}

.bnx-header .bnx-logo__img {
	display: block;
	width: auto;
	height: min(var(--bnx-logo-h), var(--bnx-logo-max));
	max-width: min(240px, 42vw);
	object-fit: contain;
}

.bnx-logo--brand .bnx-logo__inner {
	margin-right: 0;
}

.bnx-logo__picture {
	display: block;
	line-height: 0;
}

/* Official logo: exact aspect ratio (1200×306) so the bolt overlay stays perfectly aligned. */
.bnx-header .bnx-logo--brand .bnx-logo__img {
	width: calc(min(var(--bnx-logo-h), var(--bnx-logo-max)) * 3.9216);
	height: auto;
	max-width: min(320px, 50vw);
	aspect-ratio: 1200 / 306;
	object-fit: fill;
}

.bnx-logo__text {
	display: inline-block;
	color: var(--bnx-logo-color);
	font-family: inherit;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	white-space: nowrap;
}

/* Menu */
.bnx-nav {
	justify-self: center;
	min-width: 0;
}

.bnx-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--bnx-menu-gap);
}

.bnx-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.bnx-menu > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px 0;
	color: var(--bnx-nav-text) !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.bnx-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--bnx-nav-hover), var(--bnx-blue));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.bnx-menu > li > a:hover,
.bnx-menu > li > a:focus-visible,
.bnx-menu > li.current-menu-item > a,
.bnx-menu > li.current-menu-ancestor > a,
.bnx-menu > li.current_page_item > a {
	color: var(--bnx-nav-hover) !important;
}

.bnx-menu > li > a:hover::after,
.bnx-menu > li > a:focus-visible::after,
.bnx-menu > li.current-menu-item > a::after,
.bnx-menu > li.current-menu-ancestor > a::after,
.bnx-menu > li.current_page_item > a::after {
	transform: scaleX(1);
}

.bnx-header .bnx-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 28px;
	margin-left: 2px;
	color: var(--bnx-nav-text);
	border-radius: 4px;
}

.bnx-header .bnx-submenu-toggle:hover {
	color: var(--bnx-nav-hover);
}

.bnx-chevron {
	transition: transform 0.2s ease;
}

.bnx-menu li.is-open > .bnx-submenu-toggle .bnx-chevron {
	transform: rotate(180deg);
}

/* Dropdowns (desktop) */
.bnx-submenu {
	position: absolute;
	top: 100%;
	left: -14px;
	z-index: 1002;
	min-width: 230px;
	padding: 8px !important;
	background: var(--bnx-dd-bg) !important;
	border: 1px solid rgba(16, 24, 32, 0.06) !important;
	border-radius: 10px;
	box-shadow: 0 18px 40px rgba(16, 24, 32, 0.14), 0 2px 6px rgba(16, 24, 32, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 8px, 0);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.bnx-submenu .bnx-submenu {
	top: -9px;
	left: 100%;
	margin-left: 6px;
}

.bnx-submenu li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.bnx-submenu a {
	display: block;
	flex: 1 1 auto;
	padding: 9px 12px;
	border-radius: 6px;
	color: var(--bnx-dd-text) !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bnx-submenu a:hover,
.bnx-submenu a:focus-visible,
.bnx-submenu .current-menu-item > a {
	background: var(--bnx-dd-hover-bg);
	color: var(--bnx-nav-hover) !important;
}

@media (hover: hover) and (pointer: fine) {
	.bnx-menu li:hover > .bnx-submenu {
		opacity: 1;
		visibility: visible;
		transform: translate3d(0, 0, 0);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
	}
}

.bnx-menu li:focus-within > .bnx-submenu,
.bnx-menu li.is-open > .bnx-submenu {
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.bnx-menu li.is-closed-by-key > .bnx-submenu {
	opacity: 0 !important;
	visibility: hidden !important;
}

/* Actions / CTA */
.bnx-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.bnx-header .bnx-cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--bnx-cta-radius);
	background-color: var(--bnx-cta-bg);
	color: var(--bnx-cta-text) !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(16, 24, 32, 0.06);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bnx-header .bnx-cta:hover,
.bnx-header .bnx-cta:focus-visible {
	background-color: var(--bnx-cta-bg-hover);
	color: var(--bnx-cta-text) !important;
	transform: translate3d(0, -1px, 0);
	box-shadow: 0 8px 18px rgba(247, 201, 72, 0.35);
}

.bnx-cta__icon {
	width: 10px;
	height: 13px;
	fill: currentColor;
}

.bnx-cta--panel {
	display: none !important;
}

/* Hamburger (hidden on desktop) */
.bnx-header .bnx-burger {
	display: none;
	align-items: center;
	gap: 8px;
	height: 44px;
	min-width: 44px;
	padding: 0 6px;
	border-radius: 8px;
	color: var(--bnx-burger);
}

.bnx-header .bnx-burger:hover,
.bnx-header .bnx-burger:focus {
	color: var(--bnx-burger);
}

.bnx-burger__box {
	position: relative;
	display: inline-block;
	width: 22px;
	height: 16px;
}

.bnx-burger__box span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background-color: var(--bnx-burger);
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.bnx-burger__box span:nth-child(1) { top: 0; }
.bnx-burger__box span:nth-child(2) { top: 7px; }
.bnx-burger__box span:nth-child(3) { top: 14px; }

.bnx-header.bnx-menu-open .bnx-burger__box span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.bnx-header.bnx-menu-open .bnx-burger__box span:nth-child(2) { opacity: 0; }
.bnx-header.bnx-menu-open .bnx-burger__box span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.bnx-burger__label {
	font-size: 14px;
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Full-width breakout (JS measured; see header.js)
 * ------------------------------------------------------------------ */
.bnx-header.bnx-breakout {
	max-width: none !important;
}

/* ------------------------------------------------------------------ *
 * Debug panel
 * ------------------------------------------------------------------ */
.bnx-debug {
	position: fixed;
	left: 8px;
	bottom: 8px;
	z-index: 2147483000;
	width: min(420px, calc(100vw - 16px));
	max-height: 60vh;
	overflow: auto;
	padding: 10px 12px 12px;
	border-radius: 8px;
	background: rgba(10, 16, 22, 0.94);
	color: #d7f3ff;
	font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bnx-debug strong { color: #ffd51c; }
.bnx-debug .bnx-debug__ok { color: #6ee7a8; }
.bnx-debug .bnx-debug__bad { color: #ff8a8a; }
.bnx-debug table { width: 100%; border-collapse: collapse; margin: 0; }
.bnx-debug td { padding: 1px 4px; border: 0; vertical-align: top; word-break: break-word; background: none; }
.bnx-debug td:first-child { color: #8fb6c9; white-space: nowrap; }
.bnx-debug button {
	float: right;
	padding: 2px 8px !important;
	border: 1px solid #355 !important;
	border-radius: 4px !important;
	color: #d7f3ff !important;
	background: transparent !important;
	font: inherit !important;
	cursor: pointer;
}
