/* Full-bleed hero below header */
.hero-slider {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--color-bg) 0%, rgba(180, 152, 121, 0.18) 45%, var(--color-surface) 100%);
	border-bottom: 1px solid var(--color-border);
}

.hero-slider__viewport {
	overflow: hidden;
	width: 100%;
	direction: ltr;
}

.hero-slider__track {
	display: flex;
	flex-direction: row;
	width: calc(var(--hero-slide-count, 3) * 100%);
	direction: ltr;
	will-change: transform;
	transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-slide {
	flex: 0 0 calc(100% / var(--hero-slide-count, 3));
	box-sizing: border-box;
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
	direction: rtl;
	position: relative;
	isolation: isolate;
}

/* Background geometry — unique layout per slide */
.hero-slide__decor {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.hero-slide__shape {
	position: absolute;
	display: block;
}

/* —— Slide 1: soft organic blob + ring + diagonal highlight —— */
.hero-slide__decor--1 .hero-slide__shape--a {
	width: clamp(260px, 48vw, 540px);
	height: clamp(260px, 48vw, 540px);
	top: -18%;
	inset-inline-end: -14%;
	border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
	background: linear-gradient(
		155deg,
		rgba(180, 152, 121, 0.38) 0%,
		rgba(132, 112, 89, 0.1) 55%,
		transparent 100%
	);
}

.hero-slide__decor--1 .hero-slide__shape--b {
	width: clamp(100px, 18vw, 200px);
	height: clamp(100px, 18vw, 200px);
	bottom: 12%;
	inset-inline-start: 4%;
	border-radius: 50%;
	border: 2px solid rgba(132, 112, 89, 0.22);
	background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.35), transparent 55%);
}

.hero-slide__decor--1 .hero-slide__shape--c {
	width: min(55%, 28rem);
	height: 3px;
	top: 38%;
	inset-inline-start: 8%;
	border-radius: 3px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(180, 152, 121, 0.5) 35%,
		rgba(132, 112, 89, 0.25) 70%,
		transparent
	);
	transform: rotate(-14deg);
	transform-origin: center;
}

/* —— Slide 2: corner arc + stepped bars —— */
.hero-slide__decor--2 .hero-slide__shape--a {
	width: clamp(220px, 40vw, 420px);
	height: clamp(220px, 40vw, 420px);
	bottom: -22%;
	inset-inline-start: -18%;
	border-radius: 50%;
	background: radial-gradient(
		circle at 65% 35%,
		rgba(132, 112, 89, 0.2) 0%,
		rgba(180, 152, 121, 0.12) 45%,
		transparent 70%
	);
}

.hero-slide__decor--2 .hero-slide__shape--b {
	width: 4px;
	height: clamp(140px, 28vh, 280px);
	top: 12%;
	inset-inline-end: 18%;
	border-radius: 4px;
	background: linear-gradient(
		180deg,
		transparent,
		rgba(180, 152, 121, 0.45) 30%,
		rgba(132, 112, 89, 0.2) 100%
	);
}

.hero-slide__decor--2 .hero-slide__shape--c {
	width: clamp(160px, 26vw, 300px);
	height: clamp(72px, 12vw, 120px);
	top: 20%;
	inset-inline-end: -6%;
	border-radius: 1.25rem;
	background: linear-gradient(
		125deg,
		rgba(255, 255, 255, 0.5) 0%,
		rgba(180, 152, 121, 0.15) 100%
	);
	border: 1px solid rgba(132, 112, 89, 0.12);
	transform: rotate(8deg);
}

/* —— Slide 3: mesh gradient panel + dots + corner triangle —— */
.hero-slide__decor--3 .hero-slide__shape--a {
	width: 85%;
	height: 70%;
	top: 50%;
	inset-inline-start: 50%;
	transform: translate(-50%, -50%) rotate(-6deg);
	border-radius: 1.75rem;
	background:
		radial-gradient(ellipse 80% 60% at 20% 30%, rgba(180, 152, 121, 0.22), transparent 50%),
		radial-gradient(ellipse 70% 50% at 85% 75%, rgba(132, 112, 89, 0.14), transparent 55%),
		linear-gradient(160deg, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
	opacity: 0.95;
}

.hero-slide__decor--3 .hero-slide__shape--b {
	width: clamp(72px, 14vw, 130px);
	height: clamp(72px, 14vw, 130px);
	top: 6%;
	inset-inline-start: 8%;
	background: linear-gradient(140deg, rgba(132, 112, 89, 0.2), rgba(180, 152, 121, 0.06));
	clip-path: polygon(0 0, 100% 8%, 12% 100%);
	transform: rotate(-10deg);
}

.hero-slide__decor--3 .hero-slide__shape--c {
	width: 6px;
	height: 6px;
	bottom: 22%;
	inset-inline-end: 28%;
	border-radius: 50%;
	background: rgba(132, 112, 89, 0.35);
	box-shadow:
		24px -14px 0 0 rgba(180, 152, 121, 0.3),
		-18px 22px 0 0 rgba(132, 112, 89, 0.18),
		36px 18px 0 0 rgba(180, 152, 121, 0.2);
}

@media (prefers-reduced-motion: no-preference) {
	.hero-slide__decor--1 .hero-slide__shape--a {
		animation: marb-hero-float-a 22s ease-in-out infinite alternate;
	}

	.hero-slide__decor--2 .hero-slide__shape--a {
		animation: marb-hero-float-b 26s ease-in-out infinite alternate;
	}

	.hero-slide__decor--3 .hero-slide__shape--a {
		animation: marb-hero-float-c 24s ease-in-out infinite alternate;
	}
}

@keyframes marb-hero-float-a {
	from {
		transform: rotate(0deg) translate(0, 0);
	}
	to {
		transform: rotate(4deg) translate(-1.5%, 1.2%);
	}
}

@keyframes marb-hero-float-b {
	from {
		transform: translate(0, 0);
	}
	to {
		transform: translate(2%, -1.5%);
	}
}

@keyframes marb-hero-float-c {
	from {
		transform: translate(-50%, -50%) rotate(-6deg) scale(1);
	}
	to {
		transform: translate(-50%, -50%) rotate(-4deg) scale(1.02);
	}
}

@media (max-width: 900px) {
	.hero-slide__decor--1 .hero-slide__shape--c,
	.hero-slide__decor--2 .hero-slide__shape--b {
		opacity: 0.65;
	}

	.hero-slide__decor--3 .hero-slide__shape--b {
		opacity: 0.8;
	}
}

.hero-slide__inner {
	position: relative;
	z-index: 1;
	max-width: var(--content-max);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	min-height: min(70vh, 36rem);
}

/* RTL: text column first in DOM = visually on the right */
.hero-slide__text {
	order: 1;
}

.hero-slide__media {
	order: 2;
	position: relative;
}

/* Room for slide-1 image parallax without spilling into the text column */
.hero-slide__media:has(.hero-slide__img--slide1-png) {
	overflow: hidden;
}

.hero-slide__heading {
	margin: 0 0 1rem;
	font-size: clamp(1.65rem, 4.2vw, 2.65rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-primary-dark);
	letter-spacing: 0.02em;
}

.hero-slide__body {
	margin: 0;
}

.hero-slide__body p {
	margin: 0 0 0.85rem;
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	line-height: 1.85;
	color: var(--color-text);
}

.hero-slide__body p:last-child {
	margin-bottom: 0;
}

.hero-slide__img {
	width: 100%;
	max-height: min(58vh, 520px);
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 18px 40px rgba(69, 81, 89, 0.12));
}

/* Slide 1 building PNG: no frame-style shadow (asset has its own transparency). */
.hero-slide__img--slide1-png {
	filter: none;
	will-change: transform;
}

.hero-slide__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: min(42vh, 320px);
	padding: 2rem;
	border: 2px dashed rgba(132, 112, 89, 0.45);
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.55);
	color: var(--color-text-muted);
	text-align: center;
}

.hero-slide__placeholder-label {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--color-primary);
}

.hero-slide__placeholder-hint {
	font-size: 0.875rem;
}

.hero-slider__controls {
	max-width: var(--content-max);
	margin: -0.5rem auto 0;
	padding: 0 clamp(1rem, 4vw, 2rem) clamp(1.25rem, 3vw, 2rem);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.hero-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--color-surface);
	background: var(--color-primary);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.hero-slider__btn:hover,
.hero-slider__btn:focus-visible {
	background: var(--color-primary-dark);
	outline: none;
}

.hero-slider__btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(180, 152, 121, 0.65);
}

.hero-slider__btn span {
	margin-bottom: 0.1em;
}

.hero-slider__dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
}

.hero-slider__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(132, 112, 89, 0.35);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider__dot:hover,
.hero-slider__dot:focus-visible {
	background: var(--color-secondary);
	outline: none;
}

.hero-slider__dot.is-active {
	background: var(--color-primary);
	transform: scale(1.25);
}

@media (max-width: 900px) {
	.hero-slide__inner {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.hero-slide__text {
		order: 1;
		text-align: center;
	}

	.hero-slide__media {
		order: 2;
	}

	.hero-slide__img {
		max-height: 42vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-slider__track {
		transition: none;
	}
}
