/* ==========================================================================
   Emergency House – Fejléc / menü
   A sablon (sablonhouse) .header stílusának 1:1 mása (.eh- prefix),
   kiegészítve a mobil hamburger + off-canvas menüvel (amit a sablon nem tartalmaz).
   ========================================================================== */

/*
 * 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.
 */
.eh-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba( 10, 10, 10, 0.82 );
	backdrop-filter: blur( 10px );
	-webkit-backdrop-filter: blur( 10px );
	border-bottom: 1px solid #ffffff14;
}

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

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

.eh-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px clamp( 20px, 5vw, 48px );
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* --- Logo --------------------------------------------------------------- */
.eh-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex: none;
}
.eh-logo__img {
	max-height: 40px;
	width: auto;
	display: block;
}
.eh-logo__text {
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: 19px;
	letter-spacing: 1px;
	line-height: 0.92;
	color: #ffffff;
	text-transform: uppercase;
}

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

.eh-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 28px;
}
.eh-header__menu a {
	color: #c9c9c4;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.15s ease;
}
.eh-header__menu a:hover,
.eh-header__menu .current-menu-item > a {
	color: #E8E51C;
}

/* --- Socialok ----------------------------------------------------------- */
.eh-header__socials {
	display: flex;
	align-items: center;
	gap: 14px;
}
.eh-header__social {
	color: #c9c9c4;
	display: flex;
	transition: color 0.15s ease;
}
.eh-header__social:hover {
	color: #E8E51C;
}

/* --- CTA gomb (sárga) --------------------------------------------------- */
.eh-header__cta {
	display: inline-flex;
	align-items: center;
	background: #E8E51C;
	color: #0a0a0a;
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 2px;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.eh-header__cta:hover {
	background: #ffffff;
	color: #0a0a0a;
}

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

/* --- Hamburger ---------------------------------------------------------- */
.eh-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;
}
.eh-header__burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: #ffffff;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.eh-header__burger.is-active span:nth-child( 1 ) {
	transform: translateY( 7px ) rotate( 45deg );
}
.eh-header__burger.is-active span:nth-child( 2 ) {
	opacity: 0;
}
.eh-header__burger.is-active span:nth-child( 3 ) {
	transform: translateY( -7px ) rotate( -45deg );
}

/* --- Off-canvas panel --------------------------------------------------- */
.eh-header__offcanvas {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	height: 100dvh;
	width: min( 360px, 85vw );
	background: #0a0a0a;
	border-left: 1px solid #ffffff14;
	z-index: 60;
	transform: translateX( 100% );
	transition: transform 0.3s ease;
	padding: 64px clamp( 20px, 5vw, 28px ) 28px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
	visibility: hidden;
}
.eh-header__offcanvas.is-open {
	transform: translateX( 0 );
	visibility: visible;
}

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

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

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

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

/* Press pakk szöveges link. */
.eh-header__presspack {
	color: #E8E51C;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
}
.eh-header__presspack:hover {
	color: #ffffff;
}

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

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

/* --- Reszponzív: mobilon desktop nav elrejt, mobil sáv megjelen --------- */
@media ( max-width: 720px ) {
	.eh-header__nav {
		display: none;
	}
	.eh-header__mobile {
		display: flex;
	}
}

/* --- Scroll-spy: aktív menüpont (onepage) ------------------------------ */
/* Az aktív menüpont félkövér + fehér. */
.eh-header__menu a.is-active {
	color: #ffffff;
	font-weight: 900;
}

/* Aláhúzás animáció — balról rajzolódik (csak asztali navban).
   A ::after width: 0 -> 100%, left: 0 rögzít, így balról indul. */
.eh-header__nav .eh-header__menu a {
	position: relative;
}
.eh-header__nav .eh-header__menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: #E8E51C;
	transition: width 0.3s ease;
}
.eh-header__nav .eh-header__menu a:hover::after,
.eh-header__nav .eh-header__menu a.is-active::after {
	width: 100%;
}

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