/**
 * Homepage — hero carousel + gold title gradient (mirrors ya/src/styles.css).
 */

.ybh-prototype-page--home {
	padding-top: 0;
	width: 100%;
}

.ybh-prototype-page--home .home-hero {
	margin-top: calc(-1 * var(--yb-header-offset, 4.5rem));
	width: 100%;
}

:root {
	--color-gold: #c9a868;
}

.text-gradient-gold {
	background: linear-gradient(135deg, #ead098 0%, #c9a868 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-up {
	animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slow-zoom {
	from {
		transform: scale(1.02);
	}
	to {
		transform: scale(1.08);
	}
}

.home-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100svh;
	overflow: hidden;
	background-color: #111827;
	color: #fff;
	isolation: isolate;
}

.home-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 0;
	transition: opacity 1s ease-in-out;
	pointer-events: none;
}

.home-hero__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.home-hero__slide.is-outgoing {
	opacity: 0;
	z-index: 2;
}

.home-hero__slide-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
	will-change: transform;
}

.home-hero__slide-img--active {
	animation: slow-zoom 14s ease-out infinite alternate;
}

.home-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.5s ease;
	background:
		linear-gradient(105deg, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.62) 42%, rgba(8, 10, 14, 0.28) 68%, rgba(8, 10, 14, 0.45) 100%),
		linear-gradient(to top, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.35) 38%, transparent 72%);
	pointer-events: none;
}

.home-hero__overlay--visible {
	opacity: 1;
}

.home-hero__inner {
	position: relative;
	z-index: 20;
	width: 100%;
	padding-top: clamp(5.5rem, 14vh, 8.5rem);
	padding-bottom: clamp(7.5rem, 16vh, 10rem);
}

.home-hero__grid {
	display: grid;
	gap: 1.75rem;
	align-items: end;
}

.home-hero__copy {
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
}

.home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(201, 168, 104, 0.45);
	border-radius: 9999px;
	background: rgba(8, 10, 14, 0.42);
	backdrop-filter: blur(8px);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

.home-hero__eyebrow-dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 9999px;
	background: var(--color-gold);
	box-shadow: 0 0 10px rgba(201, 168, 104, 0.75);
}

.home-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 6.2vw, 4.25rem);
	line-height: 1.08;
	font-weight: 700;
}

.home-hero__subtitle {
	margin: 0 auto 1.5rem;
	max-width: 38rem;
	font-size: clamp(0.98rem, 2.2vw, 1.2rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.home-hero__ctas {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
	margin-bottom: 1.25rem;
}

.home-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.8rem 1.35rem;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition:
		transform 0.15s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
	touch-action: manipulation;
}

.home-hero__cta--primary {
	background: linear-gradient(135deg, #d4b87a 0%, #c9a868 48%, #b89452 100%);
	color: #1a1208;
	box-shadow: 0 10px 28px rgba(201, 168, 104, 0.35);
}

.home-hero__cta--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgba(201, 168, 104, 0.42);
}

.home-hero__cta--secondary {
	border: 1px solid rgba(255, 255, 255, 0.42);
	background: rgba(8, 10, 14, 0.35);
	color: #fff;
	backdrop-filter: blur(6px);
}

.home-hero__cta--secondary:hover {
	border-color: var(--color-gold);
	color: var(--color-gold);
	background: rgba(201, 168, 104, 0.12);
}

.home-hero__cta-icon {
	width: 1.1rem;
	height: 1.1rem;
}

.home-hero__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-hero__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.82);
}

.home-hero__trust-icon {
	width: 0.95rem;
	color: var(--color-gold);
	flex-shrink: 0;
}

.home-hero__preview {
	display: none;
	text-decoration: none;
	color: inherit;
	position: relative;
}

.home-hero__preview-media {
	position: relative;
	overflow: hidden;
	border-radius: 0.85rem;
	aspect-ratio: 4 / 5;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.home-hero__preview-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.home-hero__preview-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.08) 58%);
}

.home-hero__preview-caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 1rem 1.1rem 1.15rem;
}

.home-hero__preview-kicker {
	margin: 0 0 0.2rem;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-gold);
	font-weight: 600;
}

.home-hero__preview-title {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
}

.home-hero__preview-link {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.88);
}

.home-hero__preview:hover .home-hero__preview-img {
	transform: scale(1.04);
}

.home-hero__stats {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 25;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 10, 14, 0.55);
	backdrop-filter: blur(14px);
}

.home-hero__stats-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
}

.home-hero__stat {
	padding: 0.85rem 0.65rem;
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero__stat:nth-child(2n) {
	border-right: none;
}

.home-hero__stat:nth-child(-n + 2) {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero__stat-value {
	margin: 0;
	font-size: clamp(1.35rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--color-gold);
}

.home-hero__stat-label {
	margin: 0.2rem 0 0;
	font-size: 0.72rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
}

.home-hero__dots {
	position: absolute;
	left: 50%;
	bottom: calc(clamp(5.5rem, 12vh, 7rem) + 0.35rem);
	z-index: 30;
	display: flex;
	gap: 0.45rem;
	transform: translateX(-50%);
}

.home-hero__dot {
	width: 1.5rem;
	height: 2px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition:
		width 0.25s ease,
		background-color 0.25s ease;
}

.home-hero__dot--active {
	width: 2.75rem;
	background: var(--color-gold);
}

.home-hero__scroll {
	position: absolute;
	right: 1rem;
	bottom: calc(clamp(5.5rem, 12vh, 7rem) + 0.15rem);
	z-index: 30;
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 9999px;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(8, 10, 14, 0.35);
	text-decoration: none;
	backdrop-filter: blur(6px);
	animation: home-hero-bob 2.2s ease-in-out infinite;
}

.home-hero__scroll-icon {
	width: 1.2rem;
	height: 1.2rem;
}

@keyframes home-hero-bob {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(4px);
	}
}

@media (min-width: 640px) {
	.home-hero__ctas {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}

	.home-hero__cta {
		min-width: 11.5rem;
	}
}

@media (min-width: 768px) {
	.home-hero__copy {
		margin-inline: 0;
		text-align: left;
	}

	.home-hero__subtitle {
		margin-inline: 0;
	}

	.home-hero__ctas {
		justify-content: flex-start;
	}

	.home-hero__trust {
		justify-content: flex-start;
	}

	.home-hero__stats-inner {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.home-hero__stat {
		padding: 1rem 0.75rem;
		border-right: 1px solid rgba(255, 255, 255, 0.08);
		border-bottom: none;
	}

	.home-hero__stat:nth-child(2n) {
		border-right: 1px solid rgba(255, 255, 255, 0.08);
	}

	.home-hero__stat:last-child {
		border-right: none;
	}

	.home-hero__stat:nth-child(-n + 2) {
		border-bottom: none;
	}

	.home-hero__scroll {
		display: inline-flex;
	}
}

@media (min-width: 1024px) {
	.home-hero__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.55fr);
		gap: 2rem;
		align-items: end;
	}

	.home-hero__preview {
		display: block;
		max-width: 18rem;
		justify-self: end;
		margin-bottom: 0.35rem;
	}

	.home-hero__inner {
		padding-bottom: clamp(8.5rem, 17vh, 11rem);
	}
}

@media (min-width: 1280px) {
	.home-hero__copy {
		max-width: 46rem;
	}

	.home-hero__preview {
		max-width: 20rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__slide-img--active {
		animation: none;
	}

	.home-hero__scroll {
		animation: none;
	}
}

/* ── Why Choose Us — factory backdrop (mirrors ya LazyAdvantagesBackdrop) ── */

.home-advantages {
	position: relative;
	overflow: hidden;
	background: #fff;
	padding: 2rem 0;
	scroll-margin-top: 4.5rem;
}

@media (min-width: 768px) {
	.home-advantages {
		padding: 2.75rem 0;
	}
}

@media (min-width: 1024px) {
	.home-advantages {
		padding: 3.25rem 0;
	}
}

.home-advantages__backdrop {
	position: absolute;
	inset: 0;
	transform: scale(1.03);
	background-size: cover;
	background-position: center;
	filter: saturate(1.05) contrast(1.02) blur(0.3px);
}

.home-advantages__wash {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.7);
}

.home-advantages__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.8) 0%,
		rgba(255, 255, 255, 0.7) 50%,
		rgba(255, 255, 255, 0.9) 100%
	);
}

.home-advantages__noise {
	position: absolute;
	inset: 0;
	opacity: 0.12;
	mix-blend-mode: overlay;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(201, 168, 104, 0.22) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(201, 168, 104, 0.22) 1px, transparent 1px),
		radial-gradient(rgba(17, 24, 39, 0.16) 1px, transparent 1px);
	background-size: 44px 44px, 44px 44px, 14px 14px;
	background-position: 0 0, 0 0, 7px 9px;
}

.home-advantages__content {
	position: relative;
	z-index: 10;
}
