/* Lélek Hero – minden szabály .lwhero alá van zárva, nem szivárog ki a témába.
   A téma felülíró stílusai ellen a kritikus tulajdonságok emelt specifikussággal
   (.lwhero .lwhero__x) szerepelnek. */

.lwhero {
	--lwhero-ink: #16484B;
	--lwhero-body: #55635F;
	--lwhero-muted: #5C6B69;
	--lwhero-bg: #FDFCFA;
	--lwhero-glow: 111, 208, 220;
	--lwhero-flip: 900ms;
	--lwhero-radius: 14px;
	--lwhero-font: inherit;
	--lwhero-t1: #E3EAE7;
	--lwhero-t2: #EFE8DA;
	--lwhero-t3: #F0DFD8;
	--lwhero-t1-rgb: 227, 234, 231;
	--lwhero-t2-rgb: 239, 232, 218;
	--lwhero-t3-rgb: 240, 223, 216;

	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--lwhero-font);
	background-color: var(--lwhero-bg);
	background-image:
		radial-gradient(46% 54% at 8% 14%, rgba(var(--lwhero-t1-rgb), 0.8) 0%, rgba(var(--lwhero-t1-rgb), 0) 62%),
		radial-gradient(40% 46% at 92% 6%, rgba(var(--lwhero-t3-rgb), 0.7) 0%, rgba(var(--lwhero-t3-rgb), 0) 64%),
		radial-gradient(48% 56% at 82% 100%, rgba(var(--lwhero-t1-rgb), 0.6) 0%, rgba(var(--lwhero-t1-rgb), 0) 60%),
		radial-gradient(34% 40% at 26% 96%, rgba(var(--lwhero-t2-rgb), 0.7) 0%, rgba(var(--lwhero-t2-rgb), 0) 66%);
	overflow: hidden;
}

.lwhero--flat {
	background-image: none;
}

/* Magasság: teljes képernyő vagy egyéni érték. A svh a mobil böngészősávot is
   figyelembe veszi, a vh a tartalék a régebbi böngészőknek. */
.lwhero--fill {
	min-height: var(--lwhero-minh-fb, 100vh);
	min-height: var(--lwhero-minh, 100svh);
}

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

/* Alapok visszaállítása, hogy a téma margói/fontjai ne torzítsák a szekciót. */
.lwhero h1,
.lwhero h2,
.lwhero h3,
.lwhero h4,
.lwhero p {
	margin: 0;
	padding: 0;
	font-family: inherit;
	text-transform: none;
}

.lwhero a {
	text-decoration: none;
}

.lwhero__inner {
	display: grid;
	grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.35fr);
	gap: 56px;
	align-items: center;
	align-content: var(--lwhero-align, center);
	flex: 1 1 auto;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--lwhero-pad-y, 88px) 48px;
}

/* ---------- Szöveges oszlop ---------- */

.lwhero__copy {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 480px;
	min-width: 0;
}

.lwhero .lwhero__eyebrow {
	font-size: 12px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lwhero-muted);
}

.lwhero .lwhero__title {
	font-size: clamp(30px, 3.2vw, 48px);
	line-height: 1.14;
	letter-spacing: -0.01em;
	font-weight: 400;
	color: var(--lwhero-ink);
	text-wrap: pretty;
}

.lwhero .lwhero__lead {
	font-size: 17px;
	line-height: 1.65;
	font-weight: 400;
	color: var(--lwhero-body);
	text-wrap: pretty;
}

.lwhero .lwhero__note {
	margin-top: 10px;
	padding-top: 18px;
	border-top: 1px solid rgba(22, 72, 75, 0.14);
	font-size: 14px;
	line-height: 1.6;
	color: var(--lwhero-muted);
}

.lwhero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 6px;
}

/* ---------- Üveg gombok ---------- */

.lwhero .lwhero__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 16px 30px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3));
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	backdrop-filter: blur(18px) saturate(180%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(22, 72, 75, 0.08),
		0 2px 6px rgba(22, 72, 75, 0.07),
		0 12px 28px rgba(22, 72, 75, 0.14);
	color: var(--lwhero-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	overflow: hidden;
	isolation: isolate;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.lwhero .lwhero__btn > span {
	position: relative;
	z-index: 1;
}

/* A fényfolt: alapból középen (JS nélkül is látszik), JS-sel a kurzort követi. */
.lwhero .lwhero__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background: radial-gradient(
		90px circle at var(--lwhero-gx, 50%) var(--lwhero-gy, 50%),
		rgba(var(--lwhero-glow), 0.36) 0%,
		rgba(var(--lwhero-glow), 0.13) 42%,
		rgba(var(--lwhero-glow), 0) 75%
	);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.lwhero .lwhero__btn:hover::before,
.lwhero .lwhero__btn:focus-visible::before {
	opacity: 1;
}

.lwhero .lwhero__btn:hover {
	color: var(--lwhero-ink);
	transform: translateY(-1px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(22, 72, 75, 0.08),
		0 2px 6px rgba(22, 72, 75, 0.08),
		0 16px 34px rgba(22, 72, 75, 0.18);
}

.lwhero .lwhero__btn:focus-visible {
	outline: 2px solid var(--lwhero-ink);
	outline-offset: 3px;
}

.lwhero .lwhero__btn--ghost {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
	-webkit-backdrop-filter: blur(12px) saturate(150%);
	backdrop-filter: blur(12px) saturate(150%);
	border-color: rgba(22, 72, 75, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
	font-weight: 400;
	color: var(--lwhero-body);
}

.lwhero .lwhero__btn--ghost:hover {
	border-color: rgba(22, 72, 75, 0.26);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	color: var(--lwhero-ink);
}

.lwhero .lwhero__btn--small {
	align-self: flex-start;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 400;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.26));
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	backdrop-filter: blur(12px) saturate(160%);
	border-color: rgba(22, 72, 75, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lwhero .lwhero__btn--small:hover {
	transform: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	border-color: rgba(22, 72, 75, 0.28);
}

/* ---------- Kártyák ---------- */

.lwhero__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 20px;
	align-items: start;
	min-width: 0;
}

.lwhero__card {
	position: relative;
	min-width: 0;
	height: clamp(290px, 24vw, 330px);
	margin: var(--lwhero-offset, 0px) 0 0;
	padding: 0;
	list-style: none;
	perspective: 1500px;
}

.lwhero__flip {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform var(--lwhero-flip) cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* A hover a nem forgó külső elemen ül, így nem akad meg félúton. */
.lwhero__card:hover .lwhero__flip,
.lwhero__card:focus-within .lwhero__flip {
	transform: rotateY(180deg);
}

.lwhero__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 26px;
	border-radius: var(--lwhero-radius);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	box-shadow:
		0 1px 2px rgba(22, 72, 75, 0.1),
		0 10px 20px rgba(22, 72, 75, 0.1),
		0 28px 52px rgba(22, 72, 75, 0.14);
}

.lwhero__face--front {
	align-items: center;
	justify-content: center;
	gap: 22px;
	background: var(--lwhero-tint, #E3EAE7);
}

.lwhero__face--back {
	justify-content: center;
	gap: 14px;
	background: #FFFDF9;
	transform: rotateY(180deg);
}

.lwhero__mark {
	display: block;
	flex: none;
	width: clamp(72px, 40%, 108px);
	height: auto;
}

.lwhero .lwhero__card-title {
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.35;
	font-weight: 500;
	text-align: center;
	color: var(--lwhero-ink);
	text-wrap: pretty;
}

.lwhero .lwhero__card-back-title {
	font-size: 16px;
	line-height: 1.3;
	font-weight: 500;
	color: var(--lwhero-ink);
}

.lwhero .lwhero__card-text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--lwhero-body);
}

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

/* ---------- Reszponzív ---------- */

@media (max-width: 1180px) {
	.lwhero__inner {
		gap: 40px;
		padding: min(var(--lwhero-pad-y, 88px), 72px) 36px;
	}
}

@media (max-width: 960px) {
	.lwhero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
		padding: min(var(--lwhero-pad-y, 88px), 64px) 28px;
	}

	.lwhero__copy {
		max-width: 620px;
	}

	.lwhero__card {
		margin-top: 0;
	}
}

@media (max-width: 620px) {
	.lwhero__inner {
		padding: min(var(--lwhero-pad-y, 88px), 48px) 20px;
	}

	.lwhero__cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.lwhero__card {
		height: 280px;
	}

	.lwhero__actions {
		gap: 12px;
	}

	.lwhero .lwhero__btn {
		flex: 1 1 auto;
		min-height: 48px;
	}
}

/* Érintőképernyőn nincs hover: koppintásra fordul, a fókusz a hátoldal linkjére kerül. */
@media (hover: none) {
	.lwhero__card:active .lwhero__flip {
		transform: rotateY(180deg);
	}
}

/* Ha a böngésző nem tud backdrop-filtert, tömörebb üveg-imitáció. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.lwhero .lwhero__btn {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66));
	}

	.lwhero .lwhero__btn--ghost {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
	}
}

/* ---------- Csökkentett mozgás ---------- */

@media (prefers-reduced-motion: reduce) {
	.lwhero__flip,
	.lwhero .lwhero__btn,
	.lwhero .lwhero__btn::before {
		transition: none;
	}

	.lwhero__card:hover .lwhero__flip,
	.lwhero__card:focus-within .lwhero__flip,
	.lwhero__card:active .lwhero__flip {
		transform: none;
	}

	.lwhero__face--back {
		transform: none;
		opacity: 0;
		visibility: hidden;
	}

	.lwhero__card:hover .lwhero__face--back,
	.lwhero__card:focus-within .lwhero__face--back {
		opacity: 1;
		visibility: visible;
	}

	.lwhero__card:hover .lwhero__face--front,
	.lwhero__card:focus-within .lwhero__face--front {
		opacity: 0;
	}
}

/* ---------- Nyomtatás ---------- */

@media print {
	.lwhero__flip {
		transform: none !important;
	}

	.lwhero__face {
		position: static;
		transform: none !important;
		-webkit-backface-visibility: visible;
		backface-visibility: visible;
		box-shadow: none;
	}
}
