/* PowerOut Header 1.0.0 – Gigawatt-style floating header. Values measured on gigawatt.ai (Nov 2026). */

:root {
	--po-header-top: 30px;
	--po-header-bar-h: 60px;
	--po-header-offset: calc(var(--po-header-top) + var(--po-header-bar-h)); /* bottom edge of the bar = 90px */
	--po-adminbar-h: 0px;
	--po-lime: #bff67e;
	--po-mega-gap: 28px;
	--po-nav-gap: clamp(24px, calc((100vw - 981px) * 0.2 + 24px), 64px); /* 64px at ≥1181px, scales down on narrow desktops */
	--po-ease: .3s ease;
}
body.admin-bar { --po-adminbar-h: 32px; }
@media (max-width: 782px) { body.admin-bar { --po-adminbar-h: 46px; } }
@media (max-width: 980px) { :root { --po-header-top: 16px; } }

/* Let PowerOut Updates (1.1.x) space its hero from the new bar bottom instead of the old 96px header. */
body.pou-page:has(.po-site-header-wrap) { --pou-header-h: var(--po-header-offset); }
body.pog-page:has(.po-site-header-wrap) { --pog-header-h: var(--po-header-offset); }

/* ---------- Divi Theme Builder wrapper: take the TB header out of flow (overlay, like Gigawatt) ---------- */
header.et-l--header:has(.po-site-header-wrap) {
	position: absolute !important; top: 0; left: 0; width: 100%; z-index: 9990; height: 0; overflow: visible;
}
header.et-l--header :is(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner):has(.po-site-header-wrap) {
	position: static !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: auto !important;
	background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; max-width: none !important;
	transform: none !important; filter: none !important; z-index: auto !important;
}
header.et-l--header .et_pb_section--fixed:has(.po-site-header-wrap) { position: static !important; }
/* Divi adds top padding / placeholders for a fixed TB header; the new bar floats over the hero instead. */
body:has(.po-site-header-wrap) #page-container { padding-top: 0 !important; margin-top: 0 !important; }
body:has(.po-site-header-wrap) .et_pb_section--fixed-placeholder,
body:has(.po-site-header-wrap) .et_pb_section_0_tb_header_sticky_placeholder { display: none !important; }

/* ---------- Bar ---------- */
.po-site-header-wrap {
	position: fixed; top: calc(var(--po-header-top) + var(--po-adminbar-h)); left: 50%; transform: translateX(-50%);
	width: min(1152px, calc(100% - 48px)); max-width: 1152px; /* 1.0.4: aligns with page content (1200 container − 24px padding) */ z-index: 9990; box-sizing: border-box;
	font-family: 'DM Sans', Helvetica, Arial, sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
.po-site-header-wrap *, .po-site-header-wrap *::before, .po-site-header-wrap *::after,
.mobile-menu, .mobile-menu * { box-sizing: border-box; }
.po-site-header-wrap .site-header { position: relative; width: 100%; isolation: isolate; --gw-backdrop-h: 60px; margin: 0; padding: 0; background: none; }

/* Single frosted shell; grows to include the mega panel. */
.po-site-header-wrap .site-header::before {
	content: ""; position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: var(--gw-backdrop-h);
	pointer-events: none; background: #000; border: 1px solid #484f57; border-radius: 35px;
	transition: height var(--po-ease), background var(--po-ease), border-color var(--po-ease), box-shadow var(--po-ease);
}
.po-site-header-wrap.scrolled .site-header::before {
	background: rgba(15, 15, 15, .42); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	border-color: rgba(255, 255, 255, .08); box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
/* Open mega on a glass bar: keep links readable. */
.po-site-header-wrap.scrolled .site-header.is-mega-open::before { background: rgba(10, 10, 10, .88); }

.po-site-header-wrap .header-inner {
	position: relative; z-index: 1; display: flex; align-items: center; gap: 32px;
	height: var(--po-header-bar-h); margin: 0 auto; padding: 0;
}
.po-site-header-wrap .header-logo { flex: 0 0 auto; display: flex; align-items: center; padding-left: 22px; }
.po-site-header-wrap .header-logo .site-title { display: flex; align-items: center; line-height: 0; }
.po-site-header-wrap .header-logo img { display: block; height: 30px; width: auto; max-width: 170px; margin: 0; }

/* Top links */
.po-site-header-wrap .main-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
/* 1.0.1: evenly spaced, centred top links (equal gaps, no column widths). */
.po-site-header-wrap .main-nav ul {
	display: flex; align-items: center; justify-content: center; gap: var(--po-nav-gap);
	list-style: none; margin: 0; padding: 0; min-width: 0;
}
.po-site-header-wrap .main-nav li { flex: 0 0 auto; text-align: left; list-style: none; margin: 0; padding: 0; }
.po-site-header-wrap .main-nav a {
	color: #fff; opacity: .85; font-size: 14px; font-weight: 400; letter-spacing: normal; text-decoration: none !important;
	white-space: nowrap; transition: color .2s ease, opacity .2s ease; border-radius: 4px;
}
.po-site-header-wrap .main-nav a:hover,
.po-site-header-wrap .main-nav a:focus-visible { opacity: 1; color: #f0f0f0; }
/* Current page / section (client mockup) */

/* CTA */
.po-site-header-wrap .header-cta { margin-left: auto; flex: 0 0 auto; display: flex; }
.po-site-header-wrap .btn-cta,
.mobile-menu .btn-cta {
	display: inline-block; background: var(--po-lime); color: #000 !important; padding: 6px 18px; border-radius: 999px;
	font-size: 14px; font-weight: 500; line-height: 27.2px; text-align: center; text-decoration: none !important; white-space: nowrap;
	transition: filter .2s ease;
}
.po-site-header-wrap .btn-cta { margin-right: 10px; }
.po-site-header-wrap .btn-cta:hover, .mobile-menu .btn-cta:hover { filter: brightness(1.06); }

/* Focus rings (keyboard) */
.po-site-header-wrap a:focus-visible, .po-site-header-wrap button:focus-visible,
.mobile-menu a:focus-visible, .mobile-menu button:focus-visible { outline: 2px solid var(--po-lime); outline-offset: 3px; }

/* ---------- Mega menu (desktop) ---------- */
.po-site-header-wrap .mega-menu {
	position: absolute; top: 100%; left: 0; width: 100%; z-index: 1; display: flex; justify-content: center;
	opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
	transition: opacity var(--po-ease), transform var(--po-ease), visibility 0s linear .3s;
	top: var(--po-header-bar-h);
}
@media (min-width: 981px) {
	.po-site-header-wrap .site-header.is-mega-open .mega-menu {
		opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
		transition: opacity var(--po-ease), transform var(--po-ease), visibility 0s;
	}
}
.po-site-header-wrap .mega-menu { justify-content: flex-start; }
/* 1.0.1: each column is placed by JS at its top item's measured left offset. */
.po-site-header-wrap .mega-menu-content { position: relative; display: block; width: 100%; max-width: none; margin: -10px 0 0; padding: 0 0 20px; min-height: 40px; }
.po-site-header-wrap .po-mega-col { position: absolute; top: 0; left: 0; width: max-content; }
.po-site-header-wrap .po-mega-col a { white-space: normal; display: inline-block; line-height: 1.35; }
.po-site-header-wrap .po-mega-col:empty { display: none; }
.po-site-header-wrap .mega-menu ul { list-style: none; margin: 0; padding: 0; }
.po-site-header-wrap .mega-menu li { margin: 15px 0; padding: 0; list-style: none; }
.po-site-header-wrap .mega-menu a {
	color: #bdc3c9; font-size: 14px; font-weight: 400; text-decoration: none !important; white-space: nowrap; transition: color .2s ease;
}
.po-site-header-wrap .mega-menu a:hover, .po-site-header-wrap .mega-menu a:focus-visible { color: #f0f0f0; }

/* ---------- Mobile ---------- */
.po-site-header-wrap .menu-toggle {
	cursor: pointer; margin: 0 14px 0 auto; padding: 4px; background: none; border: 0; line-height: 0; border-radius: 8px;
}
.mobile-menu-close { display: none; }
.mobile-menu-overlay {
	position: fixed; inset: 0; background: rgba(0, 0, 0, .8); opacity: 0; pointer-events: none;
	transition: opacity var(--po-ease); z-index: 99990;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-menu {
	position: fixed; top: 0; right: -100%; width: 85%; height: 100%; background: #000; padding: 24px;
	transition: right var(--po-ease), visibility 0s linear .3s; z-index: 99991; visibility: hidden;
	overflow-y: auto; overscroll-behavior: contain; font-family: 'DM Sans', Helvetica, Arial, sans-serif; line-height: 1.7;
}
body.admin-bar .mobile-menu { top: var(--po-adminbar-h); height: calc(100% - var(--po-adminbar-h)); }
.mobile-menu.active { right: 0; visibility: visible; transition: right var(--po-ease), visibility 0s; }
.mobile-menu .mobile-menu-header { display: flex; align-items: center; gap: 12px; }
.mobile-menu .mobile-menu-header .btn-cta { flex: 1 1 auto; display: block; padding: 10px 18px; font-size: 16px; }
.mobile-menu .mobile-menu-close {
	display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px;
	background: none; border: 1px solid #484f57; border-radius: 999px; cursor: pointer; padding: 0;
}
.mobile-menu ul { list-style: none; padding: 0; margin: 32px 0 0; }
.mobile-menu ul ul { margin: 0; }
.mobile-menu li { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 12px 0; color: #fff; font-size: 16px; font-weight: 400; text-decoration: none !important; }
.mobile-menu a:hover { color: #f0f0f0; }
/* Section titles: lime → black gradient underline (Gigawatt) */
.mobile-menu .menu-item-has-children > a {
	border-bottom: 2px solid transparent;
	background: linear-gradient(#000, #000) padding-box, linear-gradient(45deg, #bff67e, #000) border-box;
	margin-bottom: 4px;
}
body.po-menu-open { overflow: hidden !important; }

.po-site-header-wrap .desktop-only { display: flex; }
.po-site-header-wrap .mobile-only { display: none; }
@media (max-width: 980px) {
	.po-site-header-wrap { width: calc(100% - 48px); }
	.po-site-header-wrap .desktop-only { display: none; }
	.po-site-header-wrap .mobile-only { display: block; }
	.po-site-header-wrap .header-inner { gap: 16px; }
	.po-site-header-wrap .header-logo { padding-left: 18px; }
	.po-site-header-wrap .header-logo img { height: 26px; }
	.po-site-header-wrap .mega-menu { display: none !important; }
}
@media (min-width: 981px) { .mobile-menu, .mobile-menu-overlay { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
	.po-site-header-wrap *, .po-site-header-wrap *::before, .po-site-header-wrap .site-header::before,
	.mobile-menu, .mobile-menu-overlay { transition: none !important; }
	.po-site-header-wrap .mega-menu { transform: none !important; }
}

/* 1.0.3: link colours hardened against Divi's global link colour (`a, .et-db #et-boc .et-l a {color:#bef67e}` = 1-2-1).
   Selectors here are ≥ 1-3-x and !important. No colour distinction for the current page (aria-current only). */
html body .po-site-header-wrap .main-nav ul > li > a,
html body .po-site-header-wrap .main-nav ul > li > a:visited,
html body .po-site-header-wrap .main-nav ul > li.current-menu-item > a,
html body .po-site-header-wrap .main-nav ul > li > a[aria-current="page"],
.et-db #et-boc .et-l .po-site-header-wrap .main-nav ul > li > a { color: #fff !important; opacity: .85 !important; }
html body .po-site-header-wrap .main-nav ul > li > a:hover,
html body .po-site-header-wrap .main-nav ul > li > a:focus-visible,
html body .po-site-header-wrap .main-nav ul > li > a[aria-current="page"]:hover,
.et-db #et-boc .et-l .po-site-header-wrap .main-nav ul > li > a:hover { color: #fff !important; opacity: 1 !important; }

html body .po-site-header-wrap .mega-menu a,
html body .po-site-header-wrap .mega-menu a:visited,
html body .po-site-header-wrap .mega-menu a[aria-current="page"],
.et-db #et-boc .et-l .po-site-header-wrap .mega-menu a { color: #bdc3c9 !important; opacity: 1 !important; }
html body .po-site-header-wrap .mega-menu a:hover,
html body .po-site-header-wrap .mega-menu a:focus-visible,
.et-db #et-boc .et-l .po-site-header-wrap .mega-menu a:hover { color: #f0f0f0 !important; }

html body .po-site-header-wrap .header-logo a,
.et-db #et-boc .et-l .po-site-header-wrap .header-logo a { color: inherit !important; }

html body .po-site-header-wrap a.btn-cta, html body .po-site-header-wrap a.btn-cta:visited, html body .po-site-header-wrap a.btn-cta:hover,
html body .mobile-menu a.btn-cta, html body .mobile-menu a.btn-cta:visited, html body .mobile-menu a.btn-cta:hover,
.et-db #et-boc .et-l .po-site-header-wrap a.btn-cta, .et-db #et-boc .et-l .mobile-menu a.btn-cta { color: #000 !important; background: #bff67e !important; opacity: 1 !important; }

/* Mobile panel: all links white (Gigawatt); lime only on the CTA and the section underline. */
html body .mobile-menu .po-mobile-list a,
html body .mobile-menu .po-mobile-list a:visited,
html body .mobile-menu .po-mobile-list a[aria-current="page"],
.et-db #et-boc .et-l .mobile-menu .po-mobile-list a { color: #fff !important; opacity: 1 !important; }
html body .mobile-menu .po-mobile-list a:hover,
html body .mobile-menu .po-mobile-list a:focus-visible,
.et-db #et-boc .et-l .mobile-menu .po-mobile-list a:hover { color: #f0f0f0 !important; }
html body .mobile-menu .mobile-menu-close, .et-db #et-boc .et-l .mobile-menu .mobile-menu-close { color: #bdc3c9 !important; background: none !important; }

/* 1.0.4: content uses 20px side padding below 900px */
@media (max-width: 899px) { .po-site-header-wrap { width: calc(100% - 40px); } }
