/* Brightsun Header – matches brightsunindustries.com */
:root {
	--bsh-blue: #004281;
	--bsh-gold: #faaf40;
	--bsh-dark: #202020;
	--bsh-pad-x: clamp(20px, 5.9vw, 90px);
}

/* ---------- Top bar ---------- */
.bsh-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: clamp(12px, 1.87vw, 22px) var(--bsh-pad-x);
	background: #fff;
	border-bottom: 1px solid var(--bsh-gold);
	font-family: "Space Grotesk", system-ui, sans-serif;
	transition: background-color .35s ease, border-color .35s ease;
}
.bsh-logo { flex: 0 0 auto; line-height: 0; }
.bsh-logo a { display: inline-block; }
.bsh-logo-svg { display: block; width: auto; height: clamp(34px, 3.4vw, 48px); }
.bsh-logo-svg .header-text path { transition: fill .35s ease; }

.bsh-contact {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.6vw, 26px);
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	list-style: none !important;
	transition: opacity .3s ease;
}
.bsh-contact li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bsh-contact a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bsh-blue) !important;
	font-size: clamp(11px, 1.04vw, 14px);
	line-height: 1.5;
	text-decoration: none !important;
	white-space: nowrap;
}
.bsh-contact a:hover { color: var(--bsh-gold) !important; }
.bsh-ico { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; }
.bsh-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Hamburger */
.bsh-toggle {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 30px;
	margin-left: clamp(16px, 2.3vw, 40px);
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.bsh-toggle span {
	position: absolute;
	right: 0;
	height: 2.5px;
	border-radius: 2px;
	background: var(--bsh-blue);
	transition: transform .35s ease, opacity .25s ease, width .35s ease, top .35s ease, background-color .35s ease;
}
.bsh-toggle span:nth-child(1) { top: 7px; width: 100%; }
.bsh-toggle span:nth-child(2) { top: 14px; width: 80%; }
.bsh-toggle span:nth-child(3) { top: 21px; width: 100%; }
.bsh-toggle:hover span:nth-child(2) { width: 100%; }
.bsh-toggle:focus-visible { outline: 2px solid var(--bsh-gold); outline-offset: 4px; }

/* Open state: header sits on top of the overlay */
.bsh-open .bsh-header { background: transparent; border-color: transparent; }
.bsh-open .bsh-logo-svg .header-text path { fill: #fff; }
.bsh-open .bsh-contact { opacity: 0; pointer-events: none; }
.bsh-open .bsh-toggle span { background: var(--bsh-gold); top: 14px; width: 100%; }
.bsh-open .bsh-toggle span:nth-child(1) { transform: rotate(45deg); }
.bsh-open .bsh-toggle span:nth-child(2) { opacity: 0; }
.bsh-open .bsh-toggle span:nth-child(3) { transform: rotate(-45deg); }
html.bsh-open, html.bsh-open body { overflow: hidden; }

/* ---------- Full-screen menu ---------- */
.bsh-menu {
	position: fixed;
	inset: 0;
	z-index: 9980;
	overflow-y: auto;
	background: linear-gradient(107deg, var(--bsh-dark) -2.46%, var(--bsh-blue) 98.51%);
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility 0s linear .4s;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.bsh-open .bsh-menu { opacity: 1; visibility: visible; transition: opacity .4s ease; }

.bsh-menu-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	min-height: 100%;
	padding: 120px var(--bsh-pad-x) 60px;
	box-sizing: border-box;
}
.bsh-menu-left { flex: 1 1 0; min-width: 0; max-width: 760px; }

.bsh-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-bottom: clamp(32px, 6vh, 60px); }
.bsh-thumb {
	aspect-ratio: 150 / 95;
	border-radius: 10px;
	background: linear-gradient(110deg, #e8a33d 0%, var(--bsh-blue) 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: visible;
	transform: translateY(30px);
	opacity: 0;
	transition: transform .6s ease, opacity .6s ease;
}
.bsh-thumb img { width: 85%; height: auto; max-height: 125%; object-fit: contain; display: block; }
.bsh-open .bsh-thumb { transform: none; opacity: 1; }
.bsh-open .bsh-thumb:nth-child(2) { transition-delay: .08s; }
.bsh-open .bsh-thumb:nth-child(3) { transition-delay: .16s; }

.bsh-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bsh-info-col { min-width: 0; overflow-wrap: anywhere; }
.bsh-info h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px !important;
	color: var(--bsh-gold) !important;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}
.bsh-info h4 img { width: 14px; height: 14px; }
.bsh-info p, .bsh-info a {
	margin: 0 !important;
	color: #fff !important;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	text-decoration: none !important;
}
.bsh-info a:hover { color: var(--bsh-gold) !important; }

/* Nav */
.bsh-nav { flex: 0 0 auto; min-width: 260px; }
.bsh-nav ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.bsh-nav > ul > li { margin: 0 0 clamp(10px, 1.6vh, 18px) !important; padding: 0 !important; }
.bsh-nav-row { display: flex; align-items: center; gap: 8px; }
.bsh-nav > ul > li > .bsh-nav-row > a {
	color: var(--bsh-gold) !important;
	font-size: clamp(18px, 1.83vw, 26px);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none !important;
	transition: color .25s ease, transform .25s ease;
	display: inline-block;
}
.bsh-nav > ul > li > .bsh-nav-row > a:hover,
.bsh-nav > ul > li.is-current > .bsh-nav-row > a { color: #fff !important; }
.bsh-nav > ul > li > .bsh-nav-row > a:hover { transform: translateX(4px); }

.bsh-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0 !important;
	color: var(--bsh-gold) !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.bsh-sub-toggle svg { width: 10px; height: 8px; transition: transform .3s ease; }
.bsh-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.bsh-sub { display: block; max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.bsh-sub > li { margin: 0 !important; }
.bsh-sub.is-open { max-height: 500px; }
.bsh-sub li:first-child { padding-top: 8px !important; }
.bsh-sub a {
	display: block;
	padding: 4px 0 4px 14px;
	border-left: 1px solid rgba(250, 175, 64, .4);
	color: #fff !important;
	font-size: 15px;
	line-height: 1.5;
	text-decoration: none !important;
	opacity: .85;
}
.bsh-sub a:hover { color: var(--bsh-gold) !important; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bsh-contact li:nth-child(2) { display: none; }
	.bsh-menu-inner { gap: 32px; }
}
@media (max-width: 860px) {
	.bsh-contact { display: none; }
	.bsh-toggle { margin-left: auto; }
	.bsh-menu-inner { flex-direction: column-reverse; align-items: stretch; justify-content: flex-start; padding-top: 100px; }
	.bsh-menu-left { max-width: none; }
	.bsh-thumbs { display: none; }
	.bsh-info { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .15); }
	.bsh-nav { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bsh-header, .bsh-menu, .bsh-thumb, .bsh-toggle span, .bsh-sub { transition: none !important; }
}
