/**
 * Hero Homepage Styles
 *
 * Left-anchored layout with full CSS control.
 * Design: Calm, confident, professional — "has their act together"
 */

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes heroFadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   Hero Container
   ========================================================================== */

.hero-homepage {
	position: relative;
	min-height: auto;
	display: flex;
	align-items: center;
	overflow: hidden;
	margin: 0 !important;
}

/* Background image (rendered via <img> for LCP discoverability) */
.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	z-index: 0;
}

/* Gradient overlay with subtle noise texture */
.hero-homepage::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			to right,
			rgba(35, 36, 38, 0.88) 0%,
			rgba(35, 36, 38, 0.7) 35%,
			rgba(35, 36, 38, 0.45) 60%,
			rgba(35, 36, 38, 0.25) 100%
		),
		url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
	z-index: 1;
}

/* ==========================================================================
   Hero Inner Container
   ========================================================================== */

.hero-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 3.5rem 0;
}

/* ==========================================================================
   Content Elements - Left Aligned
   ========================================================================== */

/* Headline */
.hero-headline {
	color: #ffffff;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.12;
	margin-bottom: 1rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	max-width: none;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
	animation: heroFadeUp 0.7s ease-out both;
}

/* Subheadline */
.hero-subheadline {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	line-height: 1.55;
	margin-bottom: 1.75rem;
	max-width: none;
	animation: heroFadeUp 0.7s ease-out 0.1s both;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hero-buttons {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
	animation: heroFadeUp 0.7s ease-out 0.2s both;
}

.hero-buttons .wp-block-button__link {
	font-size: 1rem;
	font-weight: 700;
	transition: all 0.25s ease;
}

/* Primary button */
.hero-btn-primary .wp-block-button__link {
	position: relative;
	overflow: hidden;
	vertical-align: top; /* Fix baseline shift caused by overflow:hidden */
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
	padding: 16px 32px;
	box-shadow: 0 4px 14px rgba(223, 59, 38, 0.4);
}

.hero-btn-primary .wp-block-button__link::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 255, 255, 0.2) 50%,
		transparent 70%
	);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.hero-btn-primary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(223, 59, 38, 0.45);
}

.hero-btn-primary .wp-block-button__link:hover::before {
	transform: translateX(100%);
}

/* Secondary button */
.hero-btn-secondary .wp-block-button__link {
	background-color: #ffffff;
	color: var(--wp--preset--color--contrast);
	padding: 16px 32px;
}

.hero-btn-secondary .wp-block-button__link:hover {
	background-color: #f5f5f5;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Trust Line
   ========================================================================== */

.hero-container .hero-trust-line {
	display: flex;
	align-items: center;
	gap: 0.6em;
	flex-wrap: wrap;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.8);
	animation: heroFadeUp 0.7s ease-out 0.3s both;
	margin-top: 3rem !important;
	margin-block-start: 3rem !important;
}

.hero-google-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.hero-google-icon svg {
	width: 24px;
	height: 24px;
}

.hero-stars {
	color: #fbbf24;
	letter-spacing: -1px;
	font-size: 1.15em;
	transition: opacity 0.3s ease;
}

.hero-separator {
	opacity: 0.4;
}

/* ==========================================================================
   Tablet Styles (768px - 1023px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
	.hero-container {
		padding: 4rem 2rem;
	}

	.hero-headline {
		font-size: clamp(2rem, 4.5vw, 2.75rem);
		max-width: 550px;
	}

	.hero-subheadline {
		font-size: 1.125rem;
		max-width: 480px;
	}

	.hero-buttons {
		gap: 1rem;
	}
}

/* ==========================================================================
   Mobile Styles (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
	.hero-homepage::after {
		background: rgba(35, 36, 38, 0.78);
	}

	.hero-bg {
		object-position: center center;
	}

	.hero-container {
		padding: 3rem 1.25rem;
		padding-left: max(1.25rem, env(safe-area-inset-left));
		padding-right: max(1.25rem, env(safe-area-inset-right));
		text-align: center;
	}

	.hero-headline {
		max-width: 100%;
		font-size: clamp(1.75rem, 7vw, 2.25rem);
		margin-bottom: 0.75rem;
	}

	.hero-subheadline {
		max-width: 100%;
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}

	/* Stack buttons with hierarchy */
	.hero-buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		margin-bottom: 1.25rem;
	}

	.hero-buttons .wp-block-button {
		width: 100%;
	}

	.hero-buttons .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}

	/* Primary button - more prominent */
	.hero-btn-primary .wp-block-button__link {
		padding: 18px 32px;
		font-size: 1.0625rem;
	}

	/* Secondary button - outlined style for hierarchy */
	.hero-btn-secondary .wp-block-button__link {
		background-color: transparent;
		color: #ffffff;
		border: 2px solid rgba(255, 255, 255, 0.6);
		padding: 14px 32px;
		font-size: 0.9375rem;
	}

	.hero-btn-secondary .wp-block-button__link:hover {
		background-color: rgba(255, 255, 255, 0.1);
		border-color: #ffffff;
		box-shadow: none;
	}

	/* Trust line - vertical stack */
	.hero-trust-line {
		flex-direction: column;
		align-items: center;
		gap: 0.25rem;
		font-size: 0.9375rem;
	}

	.hero-stars {
		font-size: 1.25em;
		letter-spacing: 0;
	}

	.hero-separator {
		display: none;
	}
}

/* ==========================================================================
   Small Mobile (< 375px) - iPhone SE, etc.
   ========================================================================== */

@media (max-width: 374px) {
	.hero-container {
		padding: 2.5rem 1rem;
	}

	.hero-headline {
		font-size: 1.625rem;
	}

	.hero-subheadline {
		font-size: 0.9375rem;
	}

	.hero-btn-primary .wp-block-button__link {
		padding: 16px 24px;
		font-size: 1rem;
	}

	.hero-btn-secondary .wp-block-button__link {
		padding: 12px 24px;
	}
}

/* ==========================================================================
   Large Desktop
   ========================================================================== */

@media (min-width: 1200px) {
	.hero-container {
		padding: 4rem 0;
	}

	.hero-headline {
		font-size: 3.5rem;
	}

	.hero-subheadline {
		font-size: 1.375rem;
	}
}

/* ==========================================================================
   Extra Large Desktop
   ========================================================================== */

@media (min-width: 1600px) {
	.hero-container {
		max-width: 1400px;
	}
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.hero-headline,
	.hero-subheadline,
	.hero-buttons,
	.hero-trust-line {
		animation: none;
	}

	.hero-btn-primary .wp-block-button__link::before {
		display: none;
	}
}
