/* HerBBath – animált hero v2 */
.hb-scene { position: relative; height: 235vh; --hb-top: 0px; }
.hb-scene.hb-static { height: auto; }

.hb-hero {
	position: sticky !important;
	top: var(--hb-top) !important;
	height: calc(100vh - var(--hb-top)) !important;
	min-height: 0 !important;
	--min-height: 0 !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
	align-items: center !important;
	padding-top: calc(var(--hb-pill, 0px) + clamp(22px, 5.5vh, 70px)) !important;
	isolation: isolate;
	background: #16372E;
}
.hb-scene.hb-static .hb-hero { position: relative !important; height: calc(100vh - var(--hb-top)) !important; }
.hb-hero > .elementor-motion-effects-container { opacity: 0 !important; }

.hb-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; will-change: transform; transform-origin: 50% 58%; }
.hb-hero-bg-img {
	position: absolute; inset: -2%;
	background-size: cover; background-position: center 48%; background-repeat: no-repeat;
	animation: hb-breathe 26s ease-in-out infinite alternate;
}
.hb-hero-light {
	position: absolute; inset: -10%;
	background: radial-gradient(40% 34% at 66% 12%, rgba(255, 232, 178, 0.26), rgba(255, 232, 178, 0) 70%);
	pointer-events: none;
	animation: hb-light 17s ease-in-out infinite alternate;
}
.hb-hero-dim { position: absolute; inset: 0; background: #0b211a; opacity: 0.45; pointer-events: none; }
.hb-hero-bg::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(11, 33, 26, 0.28) 0%, rgba(11, 33, 26, 0) 24%, rgba(11, 33, 26, 0) 60%, rgba(11, 33, 26, 0.5) 100%);
}
@keyframes hb-breathe { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.04) translate3d(-0.6%, -0.4%, 0); } }
@keyframes hb-light { 0% { opacity: 0.45; transform: translate3d(0, 0, 0); } 100% { opacity: 0.9; transform: translate3d(-6%, 4%, 0); } }

.hb-canvas { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.hb-canvas-line { z-index: 3; }

.hb-hero-title {
	position: relative !important;
	z-index: 4;
	margin: 0 auto !important;
	--margin-top: 0 !important; --margin-bottom: 0 !important; --margin-left: 0 !important; --margin-right: 0 !important;
	width: auto !important; max-width: min(92vw, 1180px);
	display: flex !important; flex-direction: column !important; align-items: center !important;
	opacity: 0;
	will-change: opacity, transform;
}
.hb-hero-title .elementor-invisible { visibility: visible !important; }

/* Hero cím: dobozok nélkül, egérkövetés nélkül */
.hb-hero-title { gap: clamp(16px, 2.3vh, 28px); }
.hb-hero-title::before {
	content: ""; position: absolute; inset: -80% -16%; z-index: -1; pointer-events: none;
	background: radial-gradient(closest-side, rgba(8, 24, 19, 0.86), rgba(8, 24, 19, 0.68) 40%, rgba(8, 24, 19, 0.36) 68%, rgba(8, 24, 19, 0));
}
.hb-hero-title .elementor-widget,
.hb-hero-title .elementor-widget-container,
.hb-hero-title .elementor-motion-effects-element,
.hb-hero-title .e-con,
.hb-hero-title .e-con-inner {
	transform: none !important; animation: none !important; transition: none !important;
	--translateX: 0 !important; --translateY: 0 !important; --rotateZ: 0 !important; --scale: 1 !important;
	background: none !important; background-color: transparent !important; background-image: none !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	padding: 0 !important; margin: 0 !important; min-height: 0 !important; --min-height: 0 !important;
	width: auto !important; max-width: 100% !important;
}
.hb-hero-title .elementor-heading-title {
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	padding: 0 !important; margin: 0 !important; text-align: center !important;
}
/* az alcím (h3) konténere kerüljön a főcím fölé */
.hb-hero-title > .e-con:has(h3),
.hb-hero-title > .elementor-widget-heading:has(h3) { order: -1; }
.hb-hero-title h3.elementor-heading-title {
	display: inline-flex !important; align-items: center; gap: 18px;
	font-size: clamp(13px, 0.98vw, 18px) !important; letter-spacing: 0.4em !important; line-height: 1.2 !important;
	color: #F0D7A8 !important; padding-left: 0.4em !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 0, 0, 0.7);
}
.hb-hero-title h3.elementor-heading-title::before,
.hb-hero-title h3.elementor-heading-title::after {
	content: ""; width: clamp(28px, 4vw, 70px); height: 1px; flex: none;
	background: linear-gradient(90deg, rgba(210, 163, 100, 0), #D2A364);
}
.hb-hero-title h3.elementor-heading-title::after { transform: scaleX(-1); }
.hb-hero-title :is(h1, h2).elementor-heading-title {
	color: #F7EDE1 !important; line-height: 1.06 !important; letter-spacing: 0.05em !important;
	font-size: clamp(28px, 2.75vw, 54px) !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 3px 10px rgba(0, 0, 0, 0.35), 0 8px 44px rgba(0, 0, 0, 0.6);
}
.hb-hero-title :is(h1, h2) .hb-t1 { display: block; }
.hb-hero-title :is(h1, h2) .hb-t2 {
	display: block; margin-top: 1.05em;
	font-size: 0.38em; letter-spacing: 0.46em; padding-left: 0.46em; color: #F3E7D8;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 0, 0, 0.7);
}

.hb-cta {
	position: absolute; left: 50%; bottom: clamp(26px, 8vh, 88px); z-index: 4;
	transform: translateX(-50%); opacity: 0; pointer-events: none;
	display: inline-block; white-space: nowrap;
	padding: 14px 46px; border-radius: 999px;
	background: #16372E; color: #D2A364 !important; border: 2px solid #D2A364;
	font-family: "Herbbath font", "Herbbath font új", Georgia, serif;
	font-size: clamp(17px, 1.35vw, 22px); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.hb-cta:hover, .hb-cta:focus-visible { background: #D2A364; color: #16372E !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.hb-moved { display: none !important; }

.hb-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hb-intro {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	text-align: center; color: #D2A364; white-space: nowrap;
	font-family: "Herbbath font", "Herbbath font új", Georgia, serif;
	text-transform: uppercase; line-height: 1.04;
	font-size: clamp(34px, 5.2vw, 88px);
	letter-spacing: 0.1em;
	will-change: opacity, transform;
}
.hb-intro::before {
	content: ""; position: absolute; inset: -45% -14%; z-index: -1;
	background: radial-gradient(closest-side, rgba(29, 70, 58, 0.9), rgba(29, 70, 58, 0.55) 55%, rgba(29, 70, 58, 0));
}
.hb-intro-1, .hb-intro-2 { display: block; opacity: 0; animation: hb-rise 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
.hb-intro-1 { animation-delay: 0.55s; }
.hb-intro-2 { font-size: 0.42em; letter-spacing: 0.42em; margin-top: 0.7em; color: #E6CFA2; animation-delay: 0.95s; padding-left: 0.42em; }
@keyframes hb-rise {
	from { opacity: 0; transform: translateY(18px); letter-spacing: 0.32em; filter: blur(6px); }
	to { opacity: 1; transform: none; filter: none; }
}
.hb-intro-2 { animation-name: hb-rise-2; }
@keyframes hb-rise-2 { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

.hb-scrollhint {
	position: absolute; left: 50%; bottom: 4.5vh; transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	color: #D2A364; font: 600 11px/1 "Open Sans", Arial, sans-serif; letter-spacing: 0.3em; text-transform: uppercase;
}
.hb-scrollhint-in { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; animation: hb-fade 1s ease 2.6s forwards; }
@keyframes hb-fade { to { opacity: 1; } }
.hb-mouse { width: 24px; height: 38px; border: 1.5px solid #D2A364; border-radius: 13px; position: relative; }
.hb-mouse::after {
	content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
	border-radius: 2px; background: #D2A364; animation: hb-wheel 1.7s ease-in-out infinite;
}
@keyframes hb-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.hb-static .hb-overlay { display: none; }
.hb-static .hb-hero-title, .hb-static .hb-cta { opacity: 1; pointer-events: auto; }

@media (max-width: 767px) {
	.hb-scene { height: 205vh; }
	.hb-hero-bg-img { background-position: 43% 50%; }
	.hb-intro { font-size: clamp(28px, 9vw, 46px); white-space: normal; width: 90vw; }
	.hb-hero-title :is(h1, h2).elementor-heading-title { font-size: clamp(26px, 8vw, 36px) !important; letter-spacing: 0.03em !important; }
	.hb-hero-title :is(h1, h2) .hb-t2 { letter-spacing: 0.3em; padding-left: 0.3em; font-size: 0.42em; }
	.hb-hero-title h3.elementor-heading-title { letter-spacing: 0.3em !important; gap: 10px; }
	.hb-intro-2 { letter-spacing: 0.3em; padding-left: 0.3em; }
	.hb-cta { padding: 12px 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.hb-hero-bg-img, .hb-hero-light, .hb-mouse::after { animation: none !important; }
	.hb-intro-1, .hb-intro-2, .hb-scrollhint-in { animation: none !important; opacity: 1; }
}
