/* ==========================================================
   Kushnir – home page tunnel hero (Elementor container with
   CSS class "tunnel-hero"; logo "tunnel-logo"; title "tunnel-title")
   ========================================================== */

.tunnel-hero {
	position: relative;
	overflow: hidden;
}

/* Tunnel image with a slow zoom */
.tunnel-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: inherit;
	background-size: cover;
	background-position: center center;
	opacity: 1 !important;
	filter: none;
	transform-origin: center center;
	z-index: 0;
	animation: tunnelZoom 10s ease-out forwards;
	will-change: transform;
}

/* Dark layer – same as the About page */
.tunnel-hero::after {
	content: "" !important;
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(rgba(18, 18, 18, .55), rgba(18, 18, 18, .55)),
		linear-gradient(270deg, rgba(10, 10, 10, .7) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, 0) 100%) !important;
}

.tunnel-hero > * {
	position: relative;
	z-index: 1;
}

@keyframes tunnelZoom {
	0%   { transform: scale(1); }
	100% { transform: scale(1.12); }
}

/* Mobile: show the right side of the image */
@media (max-width: 767px) {
	.tunnel-hero::before {
		background-position: right center;
		transform-origin: right center;
	}
}

/* Logo entrance */
.tunnel-logo {
	filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .5));
	animation: logoReveal 1.8s cubic-bezier(.25, .1, .25, 1) .2s both;
	will-change: transform, opacity;
}
@keyframes logoReveal {
	0%   { opacity: 0; transform: scale(.92); }
	100% { opacity: 1; transform: scale(1); }
}

/* Title under the logo */
.tunnel-title {
	animation: titleReveal 1s cubic-bezier(.25, .1, .25, 1) 1.2s both;
	will-change: transform, opacity;
}
.tunnel-title,
.tunnel-title .elementor-heading-title { text-align: center !important; } /* centred under the logo on every screen size */
@keyframes titleReveal {
	0%   { opacity: 0; transform: translateY(16px); }
	100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.tunnel-hero::before,
	.tunnel-logo,
	.tunnel-title {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}
