/* =============================================
   Viloer Hero Section – v1.3.0
   Lightweight, BEM-structured styles
   ============================================= */

/* ── Base Layout ── */
.viloer-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* ── Background Image ── */
.viloer-hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 0;
	overflow: hidden;
	--vlr-img-x: 50%;
	--vlr-img-y: 50%;
	--vlr-img-zoom: 100;
}

.viloer-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--vlr-img-x) var(--vlr-img-y);
	transform: scale(calc(var(--vlr-img-zoom) / 100));
	transform-origin: var(--vlr-img-x) var(--vlr-img-y);
}

/* ── Fade Overlays ── */
.viloer-hero__fade {
	position: absolute;
	left: 0;
	width: 100%;
	pointer-events: none;
	z-index: 1;
}

.viloer-hero__fade--top {
	top: 0;
	height: 20%;
}

.viloer-hero__fade--bottom {
	bottom: 0;
	height: 55%;
}

/* ── Content ── */
.viloer-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ── Heading ── */
.viloer-hero__heading {
	margin: 0 0 24px;
	text-align: center;
	word-break: break-word;
}

/* ── Features ── */
.viloer-hero__features {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0 0 28px;
	box-sizing: border-box;
}

.viloer-hero__feature {
	display: flex;
	align-items: center;
}

.viloer-hero__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-weight: 700;
	line-height: 1;
}

.viloer-hero__feature-icon svg {
	width: 1em;
	height: 1em;
}

.viloer-hero__feature-text {
	line-height: 1.5;
}

/* ── Button ── */
.viloer-hero__btn-wrap {
	display: flex;
	width: 100%;
}

.viloer-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, filter 0.2s ease;
	box-sizing: border-box;
	line-height: 1.3;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.viloer-hero__btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
}

.viloer-hero__btn:active {
	transform: translateY(0) scale(0.97);
	filter: brightness(0.96);
	transition-duration: 0.08s;
}

/* Touch device hover fix */
@media (hover: none) {
	.viloer-hero__btn:hover {
		transform: none;
		filter: none;
	}
	.viloer-hero__btn:active {
		transform: scale(0.96);
		filter: brightness(0.94);
	}
}

.viloer-hero__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
	transition: transform 0.2s ease;
}

.viloer-hero__btn:hover .viloer-hero__btn-icon {
	transform: translateX(3px);
}

.viloer-hero__btn:active .viloer-hero__btn-icon {
	transform: translateX(1px);
}

.viloer-hero__btn-icon svg {
	width: 1em;
	height: 1em;
}

.viloer-hero__btn-text {
	white-space: nowrap;
}

/* ── Animations ── */
.viloer-hero__anim {
	opacity: 0;
}

.viloer-hero__anim.viloer-hero--visible {
	animation-fill-mode: forwards;
}

/* In editor, show everything */
.elementor-editor-active .viloer-hero__anim {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

/* Keyframes – kept minimal */
@keyframes vlrFadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes vlrFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes vlrSlideLeft {
	from { opacity: 0; transform: translateX(24px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes vlrSlideRight {
	from { opacity: 0; transform: translateX(-24px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
	.viloer-hero[data-reduced-motion="1"] .viloer-hero__anim {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

/* ── Responsive Defaults ── */
@media (min-width: 768px) {
	.viloer-hero__content {
		align-items: center;
	}
	.viloer-hero__features {
		align-items: center;
	}
}

@media (min-width: 1025px) {
	.viloer-hero__heading {
		text-align: center;
	}
}
