/* LightWorks Header for Elementor — frontend styles
   Minden érték CSS változóból jön, így az Elementor stílus-vezérlők felülírhatják. */

.lw-hdr {
	--lw-bg: #0a0a0a;
	--lw-accent: #e79a2b;
	--lw-deco: rgba(231, 154, 43, 0.45);
	--lw-panel-bg: #0e0e0e;
	--lw-deco-line: var(--lw-accent);
	--lw-hairline: rgba(255, 255, 255, 0.09);
	--lw-corner: 40px;
	position: relative;
	box-sizing: border-box;
	background-color: var(--lw-bg);
	padding: 13px 56px 26px;
	overflow: hidden;
	isolation: isolate;
}

.lw-hdr *,
.lw-hdr *::before,
.lw-hdr *::after {
	box-sizing: border-box;
}

.lw-hdr--sticky {
	position: sticky;
	top: 0;
	z-index: 999;
}

.lw-hdr__inner {
	position: relative;
	z-index: 2;
	max-width: 1600px;
	margin: 0 auto;
	width: 100%;
}

/* ---------- Dekoráció ---------- */

.lw-hdr--dots::before,
.lw-hdr--dots::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: var(--lw-dots-width, 50%);
	z-index: 1;
	pointer-events: none;
	background-image: radial-gradient(currentColor 1.15px, transparent 1.35px);
	background-size: 13px 13px;
	color: var(--lw-deco);
	opacity: var(--lw-dots-opacity, 0.85);
}

.lw-hdr--dots::before {
	right: 0;
	-webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.35) 100%);
	mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.35) 100%);
}

.lw-hdr--dots::after {
	left: 0;
	-webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.35) 100%);
	mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.35) 100%);
}

/* Sarokjelek: pontosan a fejléc négy sarkán, belső margótól függetlenül. */
.lw-hdr--corners .lw-hdr__corner {
	position: absolute;
	width: var(--lw-corner);
	height: var(--lw-corner);
	z-index: 3;
	pointer-events: none;
}

.lw-hdr .lw-hdr__corner { display: none; }
.lw-hdr--corners .lw-hdr__corner { display: block; }

.lw-hdr__corner--tl { top: 0; left: 0; border-top: 1px solid var(--lw-deco-line); border-left: 1px solid var(--lw-deco-line); }
.lw-hdr__corner--tr { top: 0; right: 0; border-top: 1px solid var(--lw-deco-line); border-right: 1px solid var(--lw-deco-line); }
.lw-hdr__corner--bl { bottom: 0; left: 0; border-bottom: 1px solid var(--lw-deco-line); border-left: 1px solid var(--lw-deco-line); }
.lw-hdr__corner--br { bottom: 0; right: 0; border-bottom: 1px solid var(--lw-deco-line); border-right: 1px solid var(--lw-deco-line); }

/* ---------- Felső infosáv ---------- */

.lw-hdr__top {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 22px;
}

.lw-hdr--topbar .lw-hdr__top {
	padding-bottom: 13px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--lw-hairline, rgba(255, 255, 255, 0.09));
}

.lw-hdr__top-rule {
	display: none;
	flex: 1 1 auto;
	height: 1px;
	min-width: 0;
}

.lw-hdr__social--top {
	flex: 0 0 auto;
	--lw-soc: 17px;
	gap: 14px;
}

.lw-hdr__social--top .lw-hdr__soc {
	min-width: 34px;
	min-height: 34px;
	color: var(--lw-soc-top, #cfcfcf);
}

.lw-hdr__social--top .lw-hdr__soc:hover,
.lw-hdr__social--top .lw-hdr__soc:focus-visible {
	color: var(--lw-accent);
}

.lw-hdr__social--top.lw-hdr__social--divided > li + li::before {
	left: -8px;
	height: 16px;
}



/* ---------- Skip link ---------- */

.lw-hdr__skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 10px 18px;
	background: var(--lw-accent);
	color: #111;
	font: 700 14px/1.2 inherit;
	text-decoration: none;
	border-radius: 0 0 8px 0;
}

.lw-hdr__skip:focus {
	left: 0;
}

.lw-hdr__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Eyebrow ---------- */

.lw-hdr__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0;
	color: var(--lw-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	line-height: 1.4;
}

.lw-hdr--topbar .lw-hdr__eyebrow {
	justify-content: flex-start;
	flex: 0 1 auto;
}

.lw-hdr__eyebrow-sep {
	font-size: 0.7em;
	opacity: 0.9;
}

/* ---------- Bar ---------- */

.lw-hdr__bar {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 28px;
	width: 100%;
}

.lw-hdr__bar > .lw-hdr__logo {
	grid-column: 1;
	justify-self: start;
	justify-content: flex-start;
}

/* Asztali nézetben a panel átlátszó: a menü és a CTA a fejléc rácsának
   2. és 3. oszlopa lesz, így a menü a fejléc valódi optikai közepén ül. */
.lw-hdr__panel {
	display: flex; /* tartalék, ha a display:contents nem támogatott */
	align-items: center;
	justify-content: flex-end;
	gap: 26px;
	flex: 1 1 auto;
	min-width: 0;
}

@supports (display: contents) {
	.lw-hdr__panel {
		display: contents;
	}
}

.lw-hdr__bar > .lw-hdr__nav,
.lw-hdr__panel > .lw-hdr__nav {
	grid-column: 2;
	justify-self: center;
}

.lw-hdr__panel > .lw-hdr__btn {
	grid-column: 3;
	justify-self: end;
}

.lw-hdr__panel > .lw-hdr__social {
	grid-column: 3;
	justify-self: end;
}

/* Ha a közösségi ikonok a felső sávban vannak, a panelbeli másolat csak mobilon kell. */
.lw-hdr--topbar .lw-hdr__social--panel { display: none; }

/* ---------- Logó ---------- */

.lw-hdr__logo {
	--lw-logo: 200px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	color: #fff;
	text-decoration: none;
	line-height: 1;
}

.lw-hdr__logo-img {
	display: block;
	width: var(--lw-logo);
	height: auto;
	max-width: 100%;
}

.lw-hdr__logo-text {
	font-size: calc(var(--lw-logo) * 0.19);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.lw-hdr__mark {
	position: relative;
	display: inline-block;
	width: var(--lw-logo);
	height: calc(var(--lw-logo) * 0.56);
	color: inherit;
}

.lw-hdr__mark-frame {
	position: absolute;
	top: calc(var(--lw-logo) * 0.03);
	left: calc(50% - var(--lw-logo) * 0.24);
	width: calc(var(--lw-logo) * 0.48);
	height: calc(var(--lw-logo) * 0.48);
	border: 2px solid currentColor;
}

.lw-hdr__mark-corner {
	position: absolute;
	width: calc(var(--lw-logo) * 0.13);
	height: calc(var(--lw-logo) * 0.13);
	font-style: normal;
}

.lw-hdr__mark-corner--tl {
	top: calc(var(--lw-logo) * -0.03);
	left: calc(50% - var(--lw-logo) * 0.32);
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
}

.lw-hdr__mark-corner--br {
	bottom: calc(var(--lw-logo) * -0.03);
	left: calc(50% + var(--lw-logo) * 0.19);
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.lw-hdr__mark-ring {
	position: absolute;
	top: calc(var(--lw-logo) * 0.27);
	left: 50%;
	width: calc(var(--lw-logo) * 0.33);
	height: calc(var(--lw-logo) * 0.33);
	transform: translate(-50%, -50%);
	border: 2px solid currentColor;
	border-radius: 50%;
}

.lw-hdr__mark-text {
	position: absolute;
	top: calc(var(--lw-logo) * 0.27);
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: calc(var(--lw-logo) * 0.105);
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

/* ---------- Navigáció ---------- */

.lw-hdr__nav {
	border: 1px solid #c97f1e;
	border-radius: 22px;
	padding: 22px 44px;
	min-width: 0;
}

.lw-hdr__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lw-hdr__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lw-hdr__link {
	position: relative;
	display: inline-block;
	padding: 4px 0;
	color: #f2f2f2;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.lw-hdr__link.is-active {
	color: var(--lw-accent);
	font-weight: 600;
}

.lw-hdr__link.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: var(--lw-accent);
}

.lw-hdr__link:hover,
.lw-hdr__link:focus-visible {
	color: var(--lw-accent);
}

/* ---------- Közösségi ikonok ---------- */

.lw-hdr__social {
	--lw-soc: 22px;
	--lw-soc-div: rgba(255, 255, 255, 0.28);
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 0 0 auto;
}

.lw-hdr__social > li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
}

.lw-hdr__social--divided > li + li::before {
	content: "";
	position: absolute;
	left: calc(var(--lw-soc) * -0.05 - 9px);
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: calc(var(--lw-soc) * 0.95);
	background: var(--lw-soc-div);
}

.lw-hdr__soc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: #fff;
	font-size: var(--lw-soc);
	line-height: 1;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.lw-hdr__soc:hover,
.lw-hdr__soc:focus-visible {
	color: var(--lw-accent);
	transform: translateY(-1px);
}

.lw-hdr__soc svg {
	width: var(--lw-soc);
	height: var(--lw-soc);
	fill: currentColor;
}

/* ---------- CTA ---------- */

.lw-hdr__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 21px 30px;
	border-radius: 8px;
	background-color: var(--lw-accent);
	color: #121212;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lw-hdr__btn:hover,
.lw-hdr__btn:focus-visible {
	background-color: #f5b24a;
	transform: translateY(-1px);
}

.lw-hdr__btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 1em;
	line-height: 1;
}

.lw-hdr__btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- Fókusz ---------- */

.lw-hdr a:focus-visible,
.lw-hdr button:focus-visible {
	outline: 2px solid var(--lw-accent);
	outline-offset: 3px;
}

/* ---------- Hamburger ---------- */

.lw-hdr a,
.lw-hdr button {
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
}

.lw-hdr__toggle {
	display: none;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	box-shadow: none;
	text-decoration: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	border: 1px solid #c97f1e;
	border-radius: 10px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	flex: 0 0 auto;
}

.lw-hdr__burger {
	display: block;
	width: 20px;
	height: 14px;
	position: relative;
}

.lw-hdr__burger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.lw-hdr__burger span:nth-child(1) { top: 0; }
.lw-hdr__burger span:nth-child(2) { top: 6px; }
.lw-hdr__burger span:nth-child(3) { top: 12px; }

.lw-hdr__toggle:hover,
.lw-hdr__toggle:active,
.lw-hdr__toggle:focus {
	background: rgba(231, 154, 43, 0.12);
	color: inherit;
	outline: none;
}

.lw-hdr__toggle:focus-visible {
	outline: 2px solid var(--lw-accent);
	outline-offset: 3px;
}

.lw-hdr__toggle[aria-expanded="true"] .lw-hdr__burger span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.lw-hdr__toggle[aria-expanded="true"] .lw-hdr__burger span:nth-child(2) {
	opacity: 0;
}
.lw-hdr__toggle[aria-expanded="true"] .lw-hdr__burger span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Köztes szélesség: kisebb térközök ---------- */

@media (max-width: 1440px) {
	.lw-hdr__nav { padding: 22px 32px; }
	.lw-hdr__menu { gap: 30px; }
	.lw-hdr__panel { gap: 18px; }
	.lw-hdr__btn { padding: 18px 22px; letter-spacing: 0.1em; }
}

/* ---------- Mobil / tablet nézet ---------- */

.lw-hdr--bp-1366.is-mobile .lw-hdr__toggle,
.lw-hdr--bp-1024.is-mobile .lw-hdr__toggle,
.lw-hdr--bp-880.is-mobile .lw-hdr__toggle,
.lw-hdr--bp-768.is-mobile .lw-hdr__toggle {
	display: inline-flex;
}

.lw-hdr.is-mobile { padding-top: 12px; padding-bottom: 20px; }

.lw-hdr.is-mobile .lw-hdr__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Mobilon a felső sáv középre zárt, hajszálvonalak közé fogott felirat. */
.lw-hdr.is-mobile .lw-hdr__top {
	justify-content: center;
	gap: 10px;
	padding-bottom: 10px;
	margin-bottom: 16px;
}

.lw-hdr.is-mobile .lw-hdr__top-rule {
	display: block;
	background: linear-gradient(to right, transparent, var(--lw-deco));
}

.lw-hdr.is-mobile .lw-hdr__top-rule--right {
	background: linear-gradient(to left, transparent, var(--lw-deco));
}

.lw-hdr.is-mobile .lw-hdr__social--top { display: none; }
.lw-hdr--topbar.is-mobile .lw-hdr__social--panel { display: flex; }

.lw-hdr.is-mobile .lw-hdr__panel {
	display: flex !important;
	order: 3;
	scrollbar-width: thin;
	flex: 1 0 100%;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 20px;
	padding: 0 18px;
	margin-top: 4px;
	background: var(--lw-panel-bg);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	visibility: hidden;
	transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.32s ease;
}

.lw-hdr.is-mobile.is-open .lw-hdr__panel {
	max-height: 78vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 1;
	visibility: visible;
	padding: 22px 18px;
}

.lw-hdr.is-mobile .lw-hdr__nav {
	border: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.lw-hdr.is-mobile .lw-hdr__menu {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 2px;
}

.lw-hdr.is-mobile .lw-hdr__link {
	display: block;
	padding: 14px 4px;
	font-size: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lw-hdr.is-mobile .lw-hdr__link.is-active::after {
	left: 4px;
	right: auto;
	bottom: 8px;
	width: 28px;
}

.lw-hdr.is-mobile .lw-hdr__social {
	justify-content: center;
	gap: 22px;
}

.lw-hdr.is-mobile .lw-hdr__btn {
	width: 100%;
}

.lw-hdr.is-mobile .lw-hdr__eyebrow {
	flex: 0 0 auto;
	flex-wrap: nowrap;
	justify-content: center;
	font-size: 10px;
	letter-spacing: 0.2em;
	gap: 8px;
	white-space: nowrap;
	margin: 0;
}

.lw-hdr.is-mobile .lw-hdr__eyebrow-sep {
	font-size: 0.6em;
	opacity: 0.75;
}

.lw-hdr.is-mobile .lw-hdr__corner { --lw-corner: 26px; }

.lw-hdr.is-mobile .lw-hdr__logo { --lw-logo: 150px; }

.lw-hdr.is-mobile { padding-left: 20px; padding-right: 20px; }

.lw-hdr.is-mobile.lw-hdr--dots::before {
	--lw-dots-width: 55%;
	--lw-dots-opacity: 0.5;
}

.lw-hdr.is-mobile.lw-hdr--dots::after {
	display: none;
}

/* JS nélküli tartalék: soha ne legyen vízszintes görgetés kis kijelzőn. */
@media (max-width: 1024px) {
	.lw-hdr:not(.is-mobile) .lw-hdr__bar,
	.lw-hdr:not(.is-mobile) .lw-hdr__panel {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 18px;
	}
	.lw-hdr:not(.is-mobile) .lw-hdr__menu {
		justify-content: center;
		gap: 22px;
	}
	.lw-hdr:not(.is-mobile) .lw-hdr__nav {
		padding: 18px 22px;
	}
	.lw-hdr:not(.is-mobile) .lw-hdr__link {
		white-space: normal;
	}
}

@media (max-width: 480px) {
	.lw-hdr { padding-left: 18px; padding-right: 18px; }
	.lw-hdr.is-mobile .lw-hdr__logo { --lw-logo: 132px; }
	.lw-hdr.is-mobile .lw-hdr__eyebrow { font-size: 9.5px; letter-spacing: 0.16em; }
}

/* Elementor szerkesztőben mindig látszódjon a panel tartalma szerkesztéskor. */
.elementor-editor-active .lw-hdr.is-mobile .lw-hdr__panel {
	visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
	.lw-hdr *,
	.lw-hdr *::before,
	.lw-hdr *::after {
		transition-duration: 0.01ms !important;
	}
}
