/* HBCOC site header: mobile first, split desktop layout from 1180px. */
.hbn {
	--hbn-navy: #151923;
	--hbn-line: rgba(255, 255, 255, .08);
	--hbn-text: #ECEDF1;
	--hbn-muted: #8E94A3;
	--hbn-gold: #D6A84E;
	--hbn-gold-2: #F4D688;
	--hbn-h: 64px;
	--hbn-top: 0px;
	position: fixed;
	top: var(--hbn-top);
	left: 0;
	right: 0;
	z-index: 1000;
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.admin-bar .hbn { --hbn-top: 46px; }
@media (min-width: 783px) {
	body.admin-bar .hbn { --hbn-top: 32px; }
}

.hbn *,
.hbn *::before,
.hbn *::after { box-sizing: border-box; }
.hbn a { text-decoration: none; }

/* ---------------------------------------------------------------- bar */
.hbn-bar {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	height: var(--hbn-h);
	padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
	border-bottom: 1px solid transparent;
	transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.hbn-end { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

.hbn.is-scrolled .hbn-bar,
.hbn.is-open .hbn-bar {
	background: rgba(21, 25, 35, .88);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom-color: var(--hbn-line);
}
.hbn.is-open .hbn-bar { background: var(--hbn-navy); }

.hbn-logo {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}
.hbn-logo-img { display: block; width: 132px; height: auto; }

/* ---------------------------------------------------------------- toggle */
.hbn-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 44px;
	min-height: 44px;
	margin-right: -8px;
	padding: 0 8px 0 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(21, 25, 35, .35);
	color: var(--hbn-text);
	font: 600 13px/1 "Plus Jakarta Sans", sans-serif;
	letter-spacing: .5px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.hbn-toggle:focus-visible { outline: 2px solid var(--hbn-gold); outline-offset: 2px; }
.hbn-burger { position: relative; width: 28px; height: 28px; }
.hbn-burger span {
	position: absolute;
	left: 6px;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.hbn-burger span:nth-child(1) { top: 9px; }
.hbn-burger span:nth-child(2) { top: 13px; }
.hbn-burger span:nth-child(3) { top: 17px; }
.hbn.is-open .hbn-burger span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.hbn.is-open .hbn-burger span:nth-child(2) { opacity: 0; }
.hbn.is-open .hbn-burger span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- full-screen panel */
.hbn-panel {
	position: fixed;
	inset: var(--hbn-top) 0 0 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: calc(var(--hbn-h) + 24px) 24px max(28px, env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(201, 162, 74, .16), rgba(201, 162, 74, 0) 60%),
		var(--hbn-navy);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .28s ease, transform .28s ease;
}
.hbn-panel[hidden] { display: none; }
.hbn.is-open .hbn-panel { opacity: 1; transform: none; }

.hbn-panel-links { list-style: none; margin: 0; padding: 0; }
.hbn-panel-links li {
	border-bottom: 1px solid var(--hbn-line);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .35s ease, transform .35s ease;
	transition-delay: calc(60ms * var(--i, 0) + 80ms);
}
.hbn.is-open .hbn-panel-links li { opacity: 1; transform: none; }
.hbn-panel-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 10px 0;
	color: var(--hbn-text);
	font-size: clamp(26px, 8vw, 34px);
	font-weight: 700;
	letter-spacing: -.5px;
}
.hbn-panel-links a::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-right: 6px;
	border-top: 2px solid var(--hbn-muted);
	border-right: 2px solid var(--hbn-muted);
	transform: rotate(45deg);
	transition: border-color .2s ease, transform .2s ease;
}
.hbn-panel-links a:hover::after,
.hbn-panel-links a:focus-visible::after { border-color: var(--hbn-gold); transform: translateX(4px) rotate(45deg); }
.hbn-panel-links .current-menu-item > a,
.hbn-panel-links a[aria-current="page"] {
	background: linear-gradient(180deg, var(--hbn-gold-2), var(--hbn-gold));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hbn-panel-links a:focus-visible { outline: 2px solid var(--hbn-gold); outline-offset: 4px; border-radius: 6px; }

.hbn-panel-foot { display: grid; gap: 16px; padding-top: 32px; }
.hbn-panel-note {
	margin: 0;
	text-align: center;
	color: var(--hbn-muted);
	font: 400 12px/1.8 Poppins, sans-serif;
	letter-spacing: 3px;
	padding-left: 3px;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- CTA */
.hbn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--hbn-gold-2), var(--hbn-gold));
	color: #1A1408;
	font: 700 14px/1 "Plus Jakarta Sans", sans-serif;
	white-space: nowrap;
	transition: filter .15s ease;
}
.hbn-cta:hover { filter: brightness(1.06); color: #1A1408; }
.hbn-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hbn-cta--block { min-height: 54px; font-size: 16px; }

/* ---------------------------------------------------------------- desktop */
.hbn-desktop,
.hbn-cta--bar { display: none; }

@media (min-width: 1180px) {
	.hbn { --hbn-h: 84px; }
	.hbn-bar { padding: 0 40px; }
	.hbn-logo-img { width: 156px; }
	.hbn-toggle,
	.hbn-panel { display: none !important; }
	.hbn-cta--bar { display: inline-flex; }
	.hbn-desktop { grid-column: 1; grid-row: 1; display: flex; align-items: center; }
	.hbn-links { display: flex; gap: 2px; list-style: none; margin: 0 0 0 -14px; padding: 0; }
	.hbn-links a {
		position: relative;
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 14px;
		color: #E6DFD0;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: .3px;
		white-space: nowrap;
		transition: color .2s ease;
	}
	.hbn-links a::after {
		content: "";
		position: absolute;
		left: 14px;
		right: 14px;
		bottom: 8px;
		height: 2px;
		border-radius: 2px;
		background: var(--hbn-gold);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .25s ease;
	}
	.hbn-links a:hover,
	.hbn-links .current-menu-item > a,
	.hbn-links a[aria-current="page"] { color: #fff; }
	.hbn-links a:hover::after,
	.hbn-links .current-menu-item > a::after,
	.hbn-links a[aria-current="page"]::after { transform: scaleX(1); }
	.hbn-links a:focus-visible { outline: 2px solid var(--hbn-gold); outline-offset: 2px; border-radius: 6px; }
}

/* ---------------------------------------------------------------- misc */
.hbn-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1001;
	padding: 10px 16px;
	border-radius: 8px;
	background: #fff;
	color: #151923;
	font: 600 14px "Plus Jakarta Sans", sans-serif;
	transform: translateY(-200%);
}
.hbn-skip:focus { transform: none; }
.hbn-anchor { position: absolute; }

html.hbn-locked,
html.hbn-locked body { overflow: hidden; }

/* Anchor jumps (e.g. #community) land below the fixed bar. */
html { scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
	.hbn *,
	.hbn *::before,
	.hbn *::after { transition: none !important; }
}
