/*
 * Home hero — layout, video background and CTA button.
 * Typography (font family, size, weight, text-transform) comes from theme.json
 * (h1 / paragraph element styles) — only non-typography adjustments live here.
 */

.site-header--hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 880px;
	background: transparent;
	--wp--style--root--padding-left: 0px;
	--wp--style--root--padding-right: 0px;
}

.home-hero {
	background-color: var(--wp--preset--color--primary);
}

.home-hero__video-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.home-hero__video-bg iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100%;
	min-width: 177.78vh;
	transform: translate(-50%, -50%);
	border: 0;
}

.home-hero .site-header__hero {
	position: relative;
	z-index: 2;
	padding-top: calc(var(--header-height) + 40px);
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}

.site-header__title {
	margin: 0 0 24px;
	line-height: 0.95;
	text-wrap: balance;
}

.site-header__description {
	margin: 0 auto 34px;
	max-width: 780px;
}

.site-header__description strong {
	font-weight: 700;
}

.site-header__cta .wp-element-button {
	position: relative;
	isolation: isolate;
	border-radius: 1000px;
	padding: 20px 40px;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header__cta .wp-element-button:hover {
	background: #FFD14D;
	color: var(--wp--preset--color--primary-dark);
	transform: translateY(-1px);
}

.site-header__cta--pulse .wp-element-button {
	animation: site-header-cta-bob 1.8s ease-in-out infinite;
}

.site-header__cta--pulse .wp-element-button::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(255, 185, 5, 0.55);
	animation: site-header-cta-ring 1.8s ease-out infinite;
	pointer-events: none;
	z-index: -1;
}

.site-header__cta--pulse .wp-element-button:hover::after,
.site-header__cta--pulse .wp-element-button:focus-visible::after {
	animation-play-state: paused;
	opacity: 0;
}

.site-header__cta--pulse .wp-element-button:hover,
.site-header__cta--pulse .wp-element-button:focus-visible {
	animation-play-state: paused;
}

@keyframes site-header-cta-bob {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-4px);
	}
}

@keyframes site-header-cta-ring {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 185, 5, 0.55);
	}
	100% {
		box-shadow: 0 0 0 22px rgba(255, 185, 5, 0);
	}
}

/* Word-by-word reveal animation for the hero title (driven by hero-reveal.js) */
.reveal-hero-h1 {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 15px;
	row-gap: 0;
	margin: 0 auto;
	line-height: 1.2;
	overflow: hidden;
	text-align: center;
}

.reveal-hero-h1 .reveal-item {
	opacity: 0;
	visibility: hidden;
	display: inline-block;
}

.reveal-hero-h1.reveal-active .reveal-item {
	opacity: 0;
	filter: blur(10px);
	transform: scale(1.1);
	visibility: visible;
	animation-name: revealAnimHeroH1;
	animation-delay: var(--delay);
	animation-duration: 0.8s;
	animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
	animation-fill-mode: forwards;
}

@keyframes revealAnimHeroH1 {
	0% {
		opacity: 0;
		filter: blur(10px);
		transform: scale(1.1);
	}
	100% {
		opacity: 1;
		filter: blur(0);
		transform: scale(1);
	}
}

.reveal-hero-h1.reveal-out .reveal-item {
	opacity: 1;
	visibility: visible;
	filter: blur(0);
	transform: scale(1);
	animation-name: revealAnimHeroH1Out;
	animation-delay: var(--delay-out);
	animation-duration: 0.8s;
	animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
	animation-fill-mode: forwards;
}

@keyframes revealAnimHeroH1Out {
	0% {
		opacity: 1;
		filter: blur(0);
		transform: scale(1);
	}
	100% {
		opacity: 0;
		filter: blur(10px);
		transform: scale(1.1);
	}
}

@media (max-width: 1400px) {
	.site-header--hero {
		min-height: 820px;
	}
}

@media (max-width: 1024px) {
	.site-header--hero {
		min-height: 740px;
	}

	.home-hero .site-header__hero {
		max-width: 840px;
	}

	.reveal-hero-h1 {
		column-gap: 10px;
	}

	.site-header__description {
		max-width: 690px;
		margin-bottom: 30px;
	}

	.site-header__cta .wp-element-button {
		padding: 18px 34px;
	}
}

@media (max-width: 781px) {
	.site-header--hero {
		min-height: 660px;
		height: auto;
	}

	.home-hero .site-header__hero {
		max-width: 620px;
		padding-top: calc(var(--header-height) + 18px);
	}

	.site-header__title {
		margin-bottom: 18px;
	}

	.site-header__description {
		max-width: 100%;
		margin-bottom: 28px;
	}

	.reveal-hero-h1 {
		column-gap: 6px;
	}

	.site-header__cta .wp-element-button {
		padding: 16px 26px;
	}
}
