/**
 * Horizontal sticky bar that mirrors hero menu items.
 *
 * Rendered in blocks/hero/hero.php beside the hero section.
 * Hidden by default (transform + hidden); shows after scrolling past the hero
 * — see assets/js/stickynav.js.
 *
 * Bar height (--eduplat-stickynav-h) is written to <html> in JS as
 * --eduplat-scroll-offset so smooth anchor scrolling does not tuck section
 * headings under the fixed panel.
 */
.eduplat-stickynav {
	box-sizing: border-box;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
	color: #1a1a1a;
	font-family: var(--ed-font-sans, "Figtree", system-ui, sans-serif);
	transform: translateY(-100%);
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 0;
	pointer-events: none;
	will-change: transform;
}

.eduplat-stickynav *,
.eduplat-stickynav *::before,
.eduplat-stickynav *::after {
	box-sizing: border-box;
}

.eduplat-stickynav.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

/* When the bar is forced hidden via [hidden], do not trap pointer events
   (e.g. stale session state). */
.eduplat-stickynav[hidden] {
	display: none;
}

.eduplat-stickynav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
	max-width: 1340px;
	margin-inline: auto;
	padding: 12px 50px;
	min-height: 64px;
}

.eduplat-stickynav__brand {
	margin: 0;
	font-family: var(--ed-font-display, "DM Sans", "Figtree", system-ui, sans-serif);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #1a1a1a;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.eduplat-stickynav__brand--logo {
	line-height: 0;
	text-transform: none;
}

.eduplat-stickynav__logo-img {
	display: block;
	height: 28px;
	width: auto;
}

a.eduplat-stickynav__brand:hover,
a.eduplat-stickynav__brand:focus-visible {
	color: #1e40af;
	text-decoration: none;
	outline: none;
}

.eduplat-stickynav__nav {
	display: flex;
	flex: 1;
	min-width: 0;
	justify-content: flex-end;
}

.eduplat-stickynav__menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 24px;
	min-width: 0;
}

.eduplat-stickynav__item {
	display: inline-flex;
	flex-shrink: 0;
}

.eduplat-stickynav__link {
	display: inline-block;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	white-space: nowrap;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

a.eduplat-stickynav__link:hover,
a.eduplat-stickynav__link:focus-visible,
.eduplat-stickynav__item.is-active .eduplat-stickynav__link,
.eduplat-stickynav__link.is-active {
	color: #1e40af;
	border-bottom-color: #1e40af;
	text-decoration: none;
	outline: none;
}

/* Tablet: tighter horizontal padding and gaps. */
@media (max-width: 1100px) {
	.eduplat-stickynav__inner {
		padding: 12px 32px;
		gap: 20px;
	}

	.eduplat-stickynav__menu {
		gap: 18px;
	}
}

/* Mobile: horizontal scroll, no logo,
   shorter bar — small screens often have more items than fit. */
@media (max-width: 700px) {
	.eduplat-stickynav__inner {
		padding: 8px 16px;
		gap: 12px;
		min-height: 52px;
	}

	.eduplat-stickynav__brand {
		display: none;
	}

	.eduplat-stickynav__nav {
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.eduplat-stickynav__nav::-webkit-scrollbar {
		display: none;
	}

	.eduplat-stickynav__menu {
		gap: 16px;
		padding-right: 16px;
	}

	.eduplat-stickynav__link {
		font-size: 13px;
		padding: 6px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eduplat-stickynav {
		transition: none;
	}
}
