/* ============================================================
   04-hero.css — Hero Section (front page)
   Class container: .y-hero (apply qua Gutenberg group block hoặc custom template).
   ============================================================ */

.y-hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, var(--y-sage) 0%, var(--y-sage-deep) 100%);
	color: var(--y-cream);
	overflow: hidden;
	padding: var(--y-space-lg) 0;
}

/* Subtle noise texture overlay — pure SVG inline, no extra request */
.y-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
	opacity: 0.04;
	pointer-events: none;
	mix-blend-mode: overlay;
}

/* Subtle radial vignette */
.y-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 70% 30%, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
	pointer-events: none;
}

.y-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--y-container);
	margin: 0 auto;
	padding: 0 var(--y-gutter);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--y-space-lg);
	align-items: center;
}

/* --- Text column --- */
.y-hero__content {
	max-width: 540px;
}

.y-hero__eyebrow {
	display: inline-block;
	font-family: var(--y-font-sans);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--y-cream);
	opacity: 0.75;
	margin-bottom: var(--y-space-sm);
	padding-bottom: 0.4rem;
	border-bottom: 1px solid rgba(var(--y-cream-rgb), 0.3);
	opacity: 0;
	animation: y-fade-up 0.8s var(--y-ease) 0.2s forwards;
}

.y-hero__title,
.y-hero h1 {
	font-family: var(--y-font-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(3rem, 6vw, 5.5rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--y-cream);
	margin: 0 0 var(--y-space-sm);
	opacity: 0;
	animation: y-fade-up 0.8s var(--y-ease) 0.4s forwards;
}

.y-hero__subtitle,
.y-hero p {
	font-family: var(--y-font-sans);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--y-cream);
	opacity: 0;
	max-width: 540px;
	margin: 0 0 var(--y-space-md);
	animation: y-fade-up 0.8s var(--y-ease) 0.7s forwards;
}

.y-hero__subtitle {
	opacity: 0.85;
}

.y-hero__cta {
	display: inline-flex;
	gap: var(--y-space-sm);
	flex-wrap: wrap;
	opacity: 0;
	animation: y-fade-up 0.8s var(--y-ease) 1s forwards;
}

/* --- Image column --- */
.y-hero__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--y-radius-md);
	opacity: 0;
	animation: y-fade-in 1.2s var(--y-ease) 0.6s forwards;
	box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.25);
}

.y-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 8s var(--y-ease);
}

.y-hero:hover .y-hero__media img {
	transform: scale(1.04);
}

/* --- Scroll indicator (optional) --- */
.y-hero__scroll {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--y-cream);
	font-family: var(--y-font-sans);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.6;
	animation: y-bounce 2.4s var(--y-ease) infinite;
}

.y-hero__scroll::after {
	content: '';
	display: block;
	width: 1px;
	height: 32px;
	background-color: var(--y-cream);
	margin: 0.5rem auto 0;
}

/* --- Animations --- */
@keyframes y-fade-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Variant for subtitle (target ending opacity 0.85) */
.y-hero__subtitle {
	animation-name: y-fade-up-soft;
}
@keyframes y-fade-up-soft {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 0.85;
		transform: translateY(0);
	}
}

@keyframes y-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes y-bounce {
	0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
	50%      { transform: translate(-50%, 8px); opacity: 0.3; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.y-hero {
		min-height: 70vh;
		padding: var(--y-space-xl) 0 var(--y-space-lg);
	}

	.y-hero__inner {
		grid-template-columns: 1fr;
		gap: var(--y-space-md);
	}

	.y-hero__content {
		order: 2;
		max-width: 100%;
	}

	.y-hero__media {
		order: 1;
		max-width: 360px;
		margin: 0 auto;
		aspect-ratio: 1 / 1;
	}

	.y-hero__scroll {
		display: none;
	}
}

@media (max-width: 480px) {
	.y-hero__title {
		font-size: clamp(2.5rem, 9vw, 3.5rem);
	}
	.y-hero__subtitle {
		font-size: 1rem;
	}
}
