/* ============================================================
   Scroll Progress Bar
   ============================================================ */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--color-primary);
	transition: width 50ms linear;
	z-index: 10001;
}

/* ============================================================
   Header — Dark Glass "Orbital"
   ============================================================
   • On hero (top):   fully transparent, white text, blurs what's behind
   • On scroll:       dark glass, white text, thin orange bottom-border
   ============================================================ */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: calc(100% - var(--scrollbar-width, 0px));
	z-index: 10000;
	height: var(--header-height);

	/* Glass base — transparent until .scrolled */
	background-color: transparent;
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);

	/* Micro-grid texture inherited from hero */
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 40px 40px;

	transition:
		background-color 0.4s ease,
		backdrop-filter 0.4s ease,
		box-shadow 0.4s ease,
		border-color 0.4s ease;
}

/* Scrolled state — dark glass panel */
.site-header.scrolled {
	background-color: rgba(12, 12, 26, 0.88);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
	border-bottom: 1px solid rgba(255, 94, 20, 0.15);
}

/* ==============================
   Header Inner Layout
   ============================== */
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

/* ==============================
   Logo — ■ PROM/DIGITAL
   ============================== */
.header-logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-logo a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

/* Geometric marker — rotated square */
.logo-marker {
	display: block;
	width: 7px;
	height: 7px;
	background: var(--color-primary);
	border-radius: 1px;
	transform: rotate(45deg);
	flex-shrink: 0;
	box-shadow: 0 0 8px rgba(255, 94, 20, 0.4);
	animation: logo-marker-pulse 3s ease-in-out infinite;
}

@keyframes logo-marker-pulse {
	0%, 100% { box-shadow: 0 0 6px rgba(255, 94, 20, 0.3); }
	50% { box-shadow: 0 0 14px rgba(255, 94, 20, 0.6); }
}

.logo-text {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 1.2px;
	line-height: 1;
}

.logo-text--accent {
	color: var(--color-primary);
	text-shadow: 0 0 30px rgba(255, 94, 20, 0.2);
}

/* Thin slash between PROM / DIGITAL */
.logo-slash {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.2);
	line-height: 1;
	letter-spacing: 0;
	margin: 0 -2px;
}

/* ==============================
   Navigation
   ============================== */
.primary-nav {
	display: flex;
	align-items: center;
}

.header-menu {
	display: flex;
	align-items: center;
	gap: 6px;
}

.header-menu li {
	position: relative;
}

/* Pill-style nav links — like hero-tags */
.header-menu a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 100px;
	text-decoration: none;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: all 0.3s ease;
	position: relative;
	white-space: nowrap;
}

.header-menu a:hover,
.header-menu a:focus-visible {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 94, 20, 0.35);
	transform: translateY(-1px);
}

/* Active nav link */
.header-menu .current-menu-item a {
	color: var(--color-primary);
	background: rgba(255, 94, 20, 0.1);
	border-color: rgba(255, 94, 20, 0.25);
}

.header-menu .current-menu-item a::after {
	display: none;
}

/* Remove old underline */
.header-menu a::after {
	display: none;
}

/* ==============================
   Header Contacts
   ============================== */
.header-contacts {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.header-phone {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.header-phone:hover {
	color: var(--color-primary);
}

.header-email {
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
	transition: color 0.3s ease;
}

.header-email:hover {
	color: var(--color-primary);
}

.header-social {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-social a {
	color: rgba(255, 255, 255, 0.6);
	display: flex;
	align-items: center;
	transition: color 0.3s ease;
}

.header-social a:hover {
	color: var(--color-primary);
}

.social-max-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 8px;
	font-weight: 800;
	color: var(--color-white);
	background: var(--color-primary);
	border-radius: 4px;
	line-height: 1;
}

/* Header CTA button — always visible on desktop */
.header-cta {
	display: none;
	background: var(--color-primary);
	color: #ffffff !important;
	border-color: var(--color-primary);
	font-size: 13px;
	padding: 8px 20px;
	border-radius: 100px;
	box-shadow: 0 0 20px rgba(255, 94, 20, 0.15);
	transition: all 0.3s ease;
}

.header-cta:hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
	box-shadow: 0 0 30px rgba(255, 94, 20, 0.3);
	transform: translateY(-1px);
}

/* ==============================
   Menu Toggle (Burger)
   ============================== */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.menu-toggle-line {
	display: block;
	width: 22px;
	height: 2px;
	background-color: #ffffff;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .menu-toggle-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .menu-toggle-line:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active .menu-toggle-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==============================
   Scroll Padding for fixed header
   ============================== */
.page-main {
	scroll-padding-top: var(--header-height);
}
