/* ==========================================================================
   MC Ducky – Fejléc / menü
   A MC Ducky landing arculata: #060b16 áttetsző sáv, blur, #35d0ff→#1f6fff
   gradiens pill CTA, Syne logó / Space Grotesk menüszöveg (.mcducky- prefix).
   ========================================================================== */

/*
 * A fejléc FIXÁLT, nem sticky. A position: sticky az Elementor Theme Builder
 * konténerében nem működik: a fejléc egy rövid szülő dobozba van ágyazva, és a
 * sticky a szülő dobozán belül tapad (ami csak a fejléc magas → legördül).
 * Fix + egy magasságot tartó spacer ugyanazt a látszatot adja, minden elrendezésben.
 */
.mcducky-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba( 6, 11, 22, 0.72 );
	backdrop-filter: blur( 12px );
	-webkit-backdrop-filter: blur( 12px );
	border-bottom: 1px solid #ffffff12;
}

/* WP admin sáv alá tolás (csak asztali; mobilon az admin sáv rejtve van). */
@media ( min-width: 783px ) {
	.admin-bar .mcducky-header {
		top: 32px;
	}
}

/* A fejléc helyét tartó spacer — JS pontosítja a tényleges magasságra. */
.mcducky-header__spacer {
	display: block;
	height: var( --mcducky-header-h, 70px );
}

.mcducky-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 15px 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

/* --- Logo (szöveges brand, a sablon .brand stílusa) ---------------------- */
.mcducky-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex: none;
}
.mcducky-logo__text {
	font-family: 'Syne', sans-serif;
	font-weight: 800;
	font-size: 19px;
	letter-spacing: 1px;
	line-height: 1;
	color: #eaf3ff;
	text-transform: uppercase;
}

/* --- Desktop nav -------------------------------------------------------- */
.mcducky-header__nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.mcducky-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 32px;
}
.mcducky-header__menu a {
	color: #9fb3d1;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.4px;
	text-decoration: none;
	transition: color 0.15s ease;
}
.mcducky-header__menu a:hover,
.mcducky-header__menu .current-menu-item > a {
	color: #35d0ff;
}

/* --- Socialok ----------------------------------------------------------- */
.mcducky-header__socials {
	display: flex;
	align-items: center;
	gap: 14px;
}
.mcducky-header__social {
	color: #9fb3d1;
	display: flex;
	transition: color 0.15s ease;
}
.mcducky-header__social:hover {
	color: #35d0ff;
}

/* --- CTA gomb (gradiens pill, a landing .btn-nav stílusa) ---------------- */
.mcducky-header__cta {
	display: inline-flex;
	align-items: center;
	background: linear-gradient( 135deg, #35d0ff, #1f6fff );
	color: #04101f;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 100px;
	box-shadow: 0 6px 22px #1f8bff40;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	transition: filter 0.15s ease;
}
.mcducky-header__cta:hover {
	color: #04101f;
	filter: brightness( 1.08 );
}

/* --- Mobil sáv (gomb + hamburger) — csak mobilon látszik --------------- */
.mcducky-header__mobile {
	display: none;
	align-items: center;
	gap: 10px;
}
.mcducky-header__cta--compact {
	font-size: 12px;
	padding: 9px 14px;
}

/* --- Hamburger ---------------------------------------------------------- */
.mcducky-header__burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.mcducky-header__burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: #eaf3ff;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.mcducky-header__burger.is-active span:nth-child( 1 ) {
	transform: translateY( 7px ) rotate( 45deg );
}
.mcducky-header__burger.is-active span:nth-child( 2 ) {
	opacity: 0;
}
.mcducky-header__burger.is-active span:nth-child( 3 ) {
	transform: translateY( -7px ) rotate( -45deg );
}

/* --- Off-canvas panel --------------------------------------------------- */
.mcducky-header__offcanvas {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 340px;
	max-width: 84%;
	background: #060b16;
	border-left: 1px solid #ffffff14;
	z-index: 60;
	transform: translateX( 100% );
	transition: transform 0.3s ease;
	padding: 64px 28px 28px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
	visibility: hidden;
}
.mcducky-header__offcanvas.is-open {
	transform: translateX( 0 );
	visibility: visible;
}

.mcducky-header__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #eaf3ff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* Off-canvas logo kicsit feljebb a bezáró gomb mellé. */
.mcducky-header__offcanvas .mcducky-logo {
	margin-bottom: 6px;
}

/* Mobil menü függőleges. */
.mcducky-header__offcanvas .mcducky-header__menu,
.mcducky-header__menu--mobile {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	width: 100%;
}
.mcducky-header__offcanvas .mcducky-header__menu li,
.mcducky-header__menu--mobile li {
	width: 100%;
}
.mcducky-header__offcanvas .mcducky-header__menu a,
.mcducky-header__menu--mobile a {
	font-size: 18px;
	padding: 10px 0;
	display: block;
	width: 100%;
}

/* CTA teljes szélességű a panelben. */
.mcducky-header__cta--mobile {
	width: 100%;
	justify-content: center;
	padding: 14px 20px;
	font-size: 15px;
}

/* Press pakk szöveges link. */
.mcducky-header__presspack {
	color: #35d0ff;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
	text-decoration: none;
}
.mcducky-header__presspack:hover {
	color: #eaf3ff;
}

/* Off-canvas socialok (kisebb köz, felül). */
.mcducky-header__offcanvas .mcducky-header__socials {
	margin-top: 6px;
	gap: 16px;
}

/* --- Overlay a panel mögött -------------------------------------------- */
.mcducky-header__overlay {
	position: fixed;
	inset: 0;
	background: rgba( 3, 6, 14, 0.65 );
	z-index: 55;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.mcducky-header__overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* --- Reszponzív: mobilon desktop nav elrejt, mobil sáv megjelen --------- */
@media ( max-width: 767px ) {
	.mcducky-header__inner {
		padding: 13px 20px;
		max-width: 100%;	
	}
	.mcducky-header__nav {
		display: none;
	}
	.mcducky-header__mobile {
		display: flex;
	}

	

	.mcducky-logo__text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
    color: #eaf3ff;
    text-transform: uppercase;
}
	.mcducky-header__offcanvas {
		width: 300px;
		max-width: 86%;
		padding: 56px 22px 22px;
	}
}

/* --- Scroll-spy: aktív menüpont (onepage) ------------------------------ */
/* A sablon .nav-link hoverjével egyező kiemelés (nincs aláhúzás-animáció). */
.mcducky-header__menu a.is-active {
	color: #35d0ff;
}

/* Body scroll-lock, amikor a panel nyitva van (JS teszi rá). */
body.mcducky-header-locked {
	overflow: hidden;
}
