/**
 * Floating glassmorphic site header.
 */

.sh-header {
	position: fixed;
	top: 20px;
	left: 0;
	right: 0;
	z-index: 999;
	margin-inline: auto;
	width: calc(100% - 48px);
	max-width: var(--sh-container-width);
}

.sh-has-sticky-header .sh-header[data-sticky="0"] {
	position: absolute;
	top: 20px;
}

.sh-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sh-space-5);
	height: var(--sh-header-height);
	padding-inline: var(--sh-space-6);
	background: var(--sh-header-bg);
	backdrop-filter: blur(var(--sh-header-blur));
	-webkit-backdrop-filter: blur(var(--sh-header-blur));
	border: 1px solid rgba(255, 255, 255, var(--sh-header-border-opacity));
	border-radius: var(--sh-radius-pill);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	transition: background-color var(--sh-transition-base), backdrop-filter var(--sh-transition-base), box-shadow var(--sh-transition-base);
	width: 100%;
	max-width: none;
	margin: 0;
}

.sh-header.is-scrolled .sh-header__inner {
	background: var(--sh-primary);
	box-shadow: 0 14px 48px rgba(0, 0, 0, 0.32);
}

.sh-header__brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 100%;
}

.sh-header__logo img {
	width: auto;
	max-width: 40vw;
	height: auto;
	max-height: calc(var(--sh-header-height) - 24px);
	object-fit: contain;
}

.sh-logo-fallback {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.sh-logo-fallback__name {
	font-family: var(--sh-font-heading);
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.5rem);
	color: var(--sh-heading);
	font-weight: 600;
}

.sh-logo-fallback__tagline {
	font-family: var(--sh-font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sh-accent);
}

.sh-header__actions {
	display: flex;
	align-items: center;
	gap: var(--sh-space-4);
	flex-shrink: 0;
}

.sh-header__cta {
	white-space: nowrap;
}
