/* Header — main nav. Loaded site-wide. */

/* Default (over dark hero on home, or solid on inner pages — see body:not(.home) below) */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent;
}

/* After scroll OR on inner pages OR when first homepage section is light —
   solid bg + blur. Otherwise the transparent header sits over a light
   section and the white nav text becomes invisible. */
.site-header.scrolled {
	position: sticky;
	top: 0;
	background: rgba(15, 11, 7, .86);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--rule-light);
}
body:not(.home) .site-header,
body.home.first-section-light .site-header {
	position: static;
	background: var(--bg);
	border-bottom: 1px solid var(--rule-light);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 74px;
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 36px;
}

.site-header .logo,
.site-header .logo:link,
.site-header .logo:visited {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--orange);
	line-height: 0;
}
.site-header .logo svg,
.site-header .logo .logo-image { height: 38px; width: auto; display: block; }

.site-header .nav-links { display: flex; align-items: center; gap: 34px; }
.site-header .nav-links a,
.site-header .nav-links a:link,
.site-header .nav-links a:visited {
	font-size: .75rem;
	font-weight: 500;
	color: rgba(255, 255, 255, .82);
	transition: .2s;
}
.site-header .nav-links a:hover,
.site-header .nav-links a:focus { color: #fff; }
.site-header .nav-links a.btn,
.site-header .nav-links a.btn:link,
.site-header .nav-links a.btn:visited {
	color: var(--bg);
	font-size: .75rem;
	padding: 7px 16px;
}
.site-header .nav-links a.btn:hover { color: #fff; }

/* Mobile hamburger toggle (checkbox-driven, no JS) */
.nav-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 6px;
	z-index: 60;
}
.hamburger span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: #fff;
	border-radius: 2px;
	transition: .25s;
}

@media (max-width: 880px) {
	.hamburger { display: flex; }
	.site-header .nav-links {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		background: rgba(15, 11, 7, .96);
		backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--rule-light);
		box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .5);
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
		padding: 0;
	}
	.nav-toggle:checked ~ .nav-links { max-height: 400px; padding: 10px 0; }
	.nav-links a:not(.btn) { display: block; padding: 14px 32px; color: #fff; text-align: center; }
	.nav-links a.btn { margin: 12px 32px; justify-content: center; }
	.nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
	.nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
