/* ==========================================================================
   Hero visual system: two-column layout, decorative shapes, slider,
   and scroll-reveal utility. Additive only — does not touch main.css.
   All motion respects prefers-reduced-motion.
   ========================================================================== */

/* Decorative floating background shapes behind the Hero text/visual. */
[data-qoi-hero] {
	isolation: isolate;
}
.hero-blob {
	position: absolute;
	z-index: 0;
	border-radius: 50%;
	filter: blur(40px);
	opacity: 0.35;
	pointer-events: none;
}
.hero-blob-a {
	width: 320px;
	height: 320px;
	top: -80px;
	left: -60px;
	background: radial-gradient(circle at 30% 30%, var(--gold, #c8a24a), transparent 70%);
}
.hero-blob-b {
	width: 260px;
	height: 260px;
	bottom: -60px;
	right: -40px;
	background: radial-gradient(circle at 60% 40%, var(--primary, #0f6b4f), transparent 70%);
}

/* The right-hand visual column. Empty (removed by PHP) when no image/slider is configured. */
.hero-visual {
	position: relative;
	z-index: 1;
}
.hero-visual-frame {
	position: relative;
	border-radius: 1.75rem;
	overflow: hidden;
	box-shadow: var(--shadow-lift, 0 20px 45px -20px rgba(0, 0, 0, 0.25));
	aspect-ratio: 4 / 5;
	background: var(--sand, #f6f1e7);
}
.hero-visual-frame.has-decor::before,
.hero-visual-frame.has-decor::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}
.hero-visual-frame.has-decor::before {
	width: 90%;
	height: 90%;
	top: -8%;
	right: -10%;
	background: radial-gradient(circle, var(--gold, #c8a24a) 0%, transparent 70%);
	opacity: 0.25;
}
.hero-visual-frame.has-decor::after {
	width: 60%;
	height: 60%;
	bottom: -12%;
	left: -12%;
	background: radial-gradient(circle, var(--primary, #0f6b4f) 0%, transparent 70%);
	opacity: 0.18;
}
.hero-visual-img,
.hero-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Slider */
.hero-slider {
	position: relative;
}
.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
}
.hero-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}
.hero-slide-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(to top, rgba(10, 61, 46, 0.85), transparent);
	color: #fff;
}
.hero-slide-overlay h3 {
	font-family: var(--font-display, inherit);
	font-size: 1.1rem;
	margin: 0 0 0.25rem;
}
.hero-slide-overlay p {
	font-size: 0.85rem;
	margin: 0 0 0.5rem;
	opacity: 0.9;
}
.hero-slide-cta {
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: underline;
	color: #fff;
}
.hero-slider-dots {
	position: absolute;
	bottom: 0.75rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.4rem;
	z-index: 2;
}
.hero-slider-dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	padding: 0;
	cursor: pointer;
}
.hero-slider-dots button.is-active {
	background: #fff;
}

/* Hero animation styles, gated by data-anim on [data-hero-visual]. */
[data-hero-visual][data-anim="float"] .hero-visual-frame {
	animation: qoi-float var(--qoi-anim-duration, 6s) ease-in-out infinite;
}
[data-hero-visual][data-anim="fade"] .hero-visual-frame {
	animation: qoi-fade-in 1s ease both;
}
[data-hero-visual][data-anim="slide"] .hero-visual-frame {
	animation: qoi-slide-in 0.9s ease both;
}
[data-hero-visual][data-speed="slow"] {
	--qoi-anim-duration: 9s;
}
[data-hero-visual][data-speed="fast"] {
	--qoi-anim-duration: 4s;
}

@keyframes qoi-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
@keyframes qoi-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes qoi-slide-in {
	from { opacity: 0; transform: translateX(24px); }
	to { opacity: 1; transform: translateX(0); }
}

/* Scroll-reveal utility, applied via data-qoi-reveal + JS toggling .is-visible. */
[data-qoi-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-qoi-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.hero-visual-frame,
	[data-qoi-reveal] {
		animation: none !important;
		transition: none !important;
	}
	[data-qoi-reveal] {
		opacity: 1;
		transform: none;
	}
	.hero-slide {
		transition: none;
	}
}

@media (max-width: 1023px) {
	.hero-visual-frame {
		aspect-ratio: 16 / 10;
	}
	.hero-blob-a,
	.hero-blob-b {
		display: none;
	}
}
