/**
 * Global Premium Hero Styles
 * Based on the front-page split layout design.
 */

.hero.premium-split-layout {
	position: relative;
	overflow: hidden;
	padding-block: calc(var(--theme-section-space) - 2rem);
	background: #fdfaf6;
}

/* Compact hero padding for non-home pages */
.hero-service.premium-split-layout,
.hero-page.premium-split-layout,
.hero-archive.premium-split-layout {
	padding-block: clamp(2rem, 4vw, 3.5rem);
}

.hero .hero-image-wrapper {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%; 
	height: 100%;
	z-index: 1;
	border-radius: 0 0 0 8rem;
	overflow: hidden;
}

.hero .hero-bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.8s ease-out;
}

.hero:hover .hero-bg-img {
	transform: scale(1.05);
}

.hero .hero-image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(253, 250, 246, 1) 0%, rgba(253, 250, 246, 0) 30%, rgba(0, 0, 0, 0.1) 100%);
}

.hero .relative-z-top {
	position: relative;
	z-index: 10;
	width: 100%;
}

.hero-copy {
	/* Cap at 600px, but never exceed 45% of the viewport to prevent overlap on mid-sized screens */
	max-width: min(600px, 45vw); 
	width: 100%;
	position: relative;
	z-index: 2;
	margin-left: clamp(1rem, 3vw, 3rem); /* Added responsive left margin */
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

/* Smaller title on inner pages */
.hero-service .hero-title,
.hero-page .hero-title,
.hero-archive .hero-title {
	font-size: clamp(1.8rem, 3.5vw, 2.75rem);
	margin-bottom: 1rem;
}

.hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	color: rgba(74, 63, 53, 0.8);
}

.hero-service .hero-subtitle,
.hero-page .hero-subtitle,
.hero-archive .hero-subtitle {
	font-size: 1.05rem;
	margin-bottom: 1.25rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 3rem;
}

.hero-service .hero-actions,
.hero-page .hero-actions,
.hero-archive .hero-actions {
	margin-bottom: 1.5rem;
}

/* Specific Badge for Services */
.hero-service-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	background: rgba(166, 124, 82, 0.1);
	border: 1px solid rgba(166, 124, 82, 0.2);
	border-radius: 99px;
	font-size: 0.9rem;
	color: var(--wp--preset--color--primary);
	margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
	.hero .hero-image-wrapper {
		width: 100%;
		border-radius: 0;
		opacity: 0.15;
	}
	.hero .hero-image-overlay {
		background: linear-gradient(to bottom, rgba(253, 250, 246, 0.8) 0%, rgba(253, 250, 246, 1) 100%);
	}
	.hero-copy {
		text-align: center;
		margin-inline: auto;
		max-width: 100%;
		margin-left: 0;
		padding-inline: 1rem;
	}
	.hero-actions {
		justify-content: center;
	}
}
