/*
 * DreamFast Studio — site header (dark variant of the source design).
 */

.site-header {
	z-index: 30;
	width: 100%;
	position: sticky;
	top: 0;
	color: rgb(243, 243, 238);
	background: rgba(17, 18, 17, 0.86);
	backdrop-filter: blur(18px) saturate(145%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.header-inner {
	width: var(--shell);
	align-items: center;
	gap: 34px;
	height: 84px;
	margin: 0 auto;
	display: flex;
	position: relative;
}

/* Brand */
.brand {
	color: rgb(247, 248, 243);
	letter-spacing: -0.045em;
	white-space: nowrap;
	direction: ltr;
	align-items: center;
	gap: 9px;
	font-family: var(--font-accent);
	font-size: 19px;
	font-weight: 800;
	display: inline-flex;
}
.brand-wordmark {
	align-items: baseline;
	gap: 4px;
	display: inline-flex;
}
.brand-wordmark strong {
	font-weight: 800;
}
.brand-wordmark b {
	color: var(--lime);
	font-weight: 800;
}
.brand-spark {
	width: 19px;
	height: 19px;
	color: var(--lime);
	flex: 0 0 19px;
	position: relative;
}
.brand-spark::before {
	content: "";
	clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%);
	background: currentcolor;
	position: absolute;
	inset: 0;
}
.brand-spark::after {
	content: "";
	opacity: 0.55;
	background: currentcolor;
	border-radius: 50%;
	width: 4px;
	height: 4px;
	position: absolute;
	top: 2px;
	right: -4px;
}
.brand-compact {
	font-size: 20px;
}
.brand .custom-logo {
	max-height: 48px;
	width: auto;
}

/* Signature — separator sits between the logo and the text */
.header-signature {
	color: rgb(113, 118, 109);
	letter-spacing: 0.16em;
	white-space: nowrap;
	direction: ltr;
	border-right: 1px solid rgb(52, 55, 48);
	margin-right: -10px;
	padding-right: 24px;
	font-family: var(--font-accent);
	font-size: 10px;
	font-weight: 700;
}
html[dir="ltr"] .header-signature {
	border-right: 0;
	margin-right: 0;
	padding-right: 0;
	border-left: 1px solid rgb(52, 55, 48);
	margin-left: -10px;
	padding-left: 24px;
}

/* Primary nav */
.main-nav {
	align-items: center;
	gap: 27px;
	margin-inline: auto;
	font-size: 14px;
	font-weight: 600;
	display: flex;
}
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: contents;
}
.main-nav li {
	display: contents;
}
.main-nav a {
	padding: 10px 0;
	position: relative;
	display: inline-block;
}
.main-nav a::after {
	content: "";
	inset-inline: 0;
	background: currentcolor;
	height: 1px;
	opacity: 0;
	transition: opacity 0.18s;
	position: absolute;
	bottom: 3px;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
	opacity: 1;
}

/* Actions */
.header-actions {
	align-items: center;
	gap: 12px;
	display: flex;
}
.lang-switch {
	cursor: pointer;
	letter-spacing: 0.08em;
	background: none;
	border: 0;
	padding: 12px 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	align-items: center;
	gap: 6px;
	direction: ltr;
	display: inline-flex;
}
.lang-globe {
	opacity: 0.75;
	flex: 0 0 auto;
	display: block;
}
.header-cta {
	background: var(--lime);
	color: rgb(17, 17, 17);
	border-radius: 11px;
	justify-content: center;
	align-items: center;
	gap: 14px;
	min-height: 45px;
	padding: 0 19px;
	font-size: 14px;
	font-weight: 700;
	transition: transform 0.2s, background 0.2s;
	display: inline-flex;
	position: relative;
	overflow: hidden;
}
.header-cta:hover {
	transform: translateY(-2px);
}
.header-cta::before {
	content: "";
	background: rgba(255, 255, 255, 0.18);
	width: 42px;
	height: 120%;
	transition: left 0.45s;
	position: absolute;
	top: -10%;
	left: -55px;
	transform: skew(-22deg);
}
.header-cta:hover::before {
	left: calc(100% + 20px);
}

/* Mobile menu button */
.menu-button {
	box-sizing: border-box;
	background: none;
	border: 1px solid;
	border-radius: 50%;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 10px;
	display: none;
	cursor: pointer;
}
.menu-button span {
	background: currentcolor;
	width: 100%;
	height: 1.5px;
	margin: 5px 0;
	display: block;
}

@media (width <= 1100px) {
	.header-signature { display: none; }
}
@media (width <= 1040px) {
	.main-nav { gap: 15px; }
	.header-inner { gap: 18px; }
}
/* The inline nav wraps to two lines below ~840px — switch to the
   hamburger overlay menu there instead of only on phones. */
@media (width <= 840px) {
	.menu-button { margin-inline-start: auto; display: block; }
	.main-nav {
		color: #fff;
		opacity: 0;
		pointer-events: none;
		top: calc(100% + 6px);
		background: rgb(26, 28, 25);
		border-radius: 16px;
		gap: 0;
		padding: 14px;
		display: grid;
		position: absolute;
		inset-inline: 16px;
		transform: translateY(-10px);
		transition: opacity 0.2s, transform 0.2s;
		box-shadow: rgba(0, 0, 0, 0.2) 0 20px 50px;
	}
	.main-nav.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}
	.main-nav a {
		border-bottom: 1px solid rgb(51, 54, 49);
		padding: 13px;
		display: block;
	}
	.main-nav li:last-child a {
		border-bottom: 0;
	}
}
@media (width <= 760px) {
	.header-inner { height: 72px; }
	.brand { gap: 7px; font-size: 16px; }
	.brand-spark { flex-basis: 16px; width: 16px; height: 16px; }
	.header-actions .lang-switch { display: none; }
	.header-actions .header-cta { min-height: 44px; padding: 0 14px; font-size: 12px; }
}
@media (width <= 360px) {
	.header-inner { gap: 10px; }
	.brand { font-size: 15px; }
	.header-actions .header-cta { padding: 0 11px; }
}
