/* Hero Alt Block */

.hero-alt .kh-block-inner {
	padding-block: 0 !important;
}

.hero-alt-layout {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 53.75rem;
	gap: var(--wp--preset--spacing--lg);
}

.hero-word {
	display: inline-block;
}

/* Left column — image with overlaid heading + CTA */

.hero-alt-image-col {
	flex: 1;
	position: relative;
	width: 100%;
	min-height: 25rem;
	aspect-ratio: 1.5;
	padding-block: var(--wp--preset--spacing--md);
}

.hero-alt-image-col .hero-alt-image {
	position: absolute;
	inset: 0 auto 0 50%;
	width: 100vw;
	height: 100%;
	overflow: hidden;
	margin: 0;
	border-radius: var(--wp--custom--radius--3-xl);
	translate: -50% 0;
}

.hero-alt-image-col .hero-alt-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	scale: 1.1;
	will-change: transform;
}

.hero-alt-image-col .hero-alt-image::before,
.hero-alt-image-col .hero-alt-image::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
}

.hero-alt-image-col .hero-alt-image::before {
	background-color: var(--wp--preset--color--teal-900);
	opacity: .25;
}

.hero-alt-image-col .hero-alt-image::after {
	background: linear-gradient(180deg, rgba(46, 60, 64, 0.00) 30%, rgba(46, 60, 64, 0.75) 100%);
}

.hero-alt-image-col .hero-alt-image-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--sm);
	height: 100%;
	justify-content: flex-end;
	padding-inline-end: var(--wp--preset--spacing--2-xl);
}

.hero-alt-image-col .hero-alt-image-content > * {
	margin: 0;
}

.hero-alt-image-col .hero-alt-image-content h1 {
	color: var(--wp--custom--color--text--white);
	max-width: 16ch;
	text-wrap: balance;
}

/* Right column — CTA cards grid */

.hero-alt-cards-col {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	padding-block-end: var(--wp--preset--spacing--3-xl);
}

.hero-alt-cards-col .hero-alt-cards-grid {
	display: grid;
	gap: var(--wp--preset--spacing--xxs);
	width: 100%;
}

.hero-alt-cards-grid .hero-alt-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--xxs);
	padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--xs);
	background: var(--wp--custom--color--bg--01);
	overflow: clip;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--wp--custom--color--border--white);
	border-radius: var(--wp--custom--radius--xl);
	transition: border-color .3s ease;
}

.hero-alt-cards-grid .hero-alt-card:is(a):hover {
	border-color: var(--wp--custom--color--border--action);
}

.hero-alt-card .hero-alt-card-icon {
	width: 1.5rem;
	aspect-ratio: 1;
	flex-shrink: 0;
}

.hero-alt-card .hero-alt-card-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hero-alt-card .hero-alt-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--lg);
}

.hero-alt-card .hero-alt-card-content > * {
	margin: 0;
}

.hero-alt-card .hero-alt-card-content h2 {
	font-size: clamp(0.9375rem, 0.7132rem + 1.1214vw, 1.125rem);
}

.hero-alt-card .hero-alt-card-content p {
	display: none;
	visibility: hidden;
	color: var(--wp--custom--color--text--secondary);
}

.hero-alt-card .card-arrow {
	display: none;
	visibility: hidden;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: var(--wp--preset--spacing--sm);
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--custom--color--text--white);
	text-decoration: none;
	transition: color .3s ease;
}

.hero-alt-card .card-arrow-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	aspect-ratio: 1;
	background-color: var(--wp--custom--color--bg--01);
	border: 1px solid var(--wp--preset--color--teal-100);
	border-radius: var(--wp--custom--radius--full);
	color: var(--wp--custom--color--icon--action);
	box-shadow: 0 0 16px 0 rgba(46, 60, 64, 0.05);
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.hero-alt-card .card-arrow-arrow svg {
	width: 1.5rem;
}

/* Breakpoints */

@media (min-width: 30rem) {
	.hero-alt-cards-col .hero-alt-cards-grid {
		grid-template-columns: 1fr 1fr;
	}

	.hero-alt-card .hero-alt-card-icon {
		width: 1.5rem;
	}
}

@media (min-width: 45rem) {
	.hero-alt-cards-col {
		padding-block: var(--wp--preset--spacing--md) var(--wp--preset--spacing--4-xl);
	}

	.hero-alt-cards-col .hero-alt-cards-grid {
		gap: var(--wp--preset--spacing--lg);
	}

	.hero-alt-cards-grid .hero-alt-card {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--xl);
		padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--md) var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
		border-radius: var(--wp--custom--radius--4-xl);
		transition: box-shadow .3s ease, background-color .3s ease;
	}

	.hero-alt-cards-grid .hero-alt-card:is(a):hover {
		background-color: var(--wp--custom--color--bg--action-hover-light);
		border-color: var(--wp--custom--color--border--white);
		box-shadow: var(--wp--custom--shadow--hover);
	}

	.hero-alt-cards-grid .hero-alt-card:is(a):hover .card-arrow {
		color: var(--wp--custom--color--text--action);
	}

	.hero-alt-cards-grid .hero-alt-card:is(a):hover .card-arrow-arrow {
		border-color: var(--wp--custom--color--border--action);
		background-color: var(--wp--custom--color--bg--action);
		color: var(--wp--custom--color--icon--white);
		animation: card-arrow-fade-in .3s ease forwards, card-arrow-pulse 1s .3s ease-in-out infinite alternate;
	}

	.hero-alt-card .hero-alt-card-icon {
		width: 3rem;
	}

	.hero-alt-card .hero-alt-card-content {
		gap: var(--wp--preset--spacing--sm);
		padding-inline-end:  var(--wp--preset--spacing--xxs);
	}

	.hero-alt-card .hero-alt-card-content h2 {
		font-size: var(--wp--preset--font-size--display-sm);
	}

	.hero-alt-card .hero-alt-card-content p {
		display: block;
		visibility: visible;
	}

	.hero-alt-card .card-arrow {
		display: flex;
		visibility: visible;
	}
}

@media (min-width: 50rem) {
	.hero-alt-image-col {
		padding-block: var(--wp--preset--spacing--xl);
	}

	.hero-alt-image-col .hero-alt-image {
		width: calc(100vw - (var(--wp--preset--spacing--xxs) * 2));
		border-radius: var(--wp--custom--radius--4-xl);
	}

	.hero-alt-image-col .hero-alt-image-content {
		gap: var(--wp--preset--spacing--lg);
	}
}

@media (min-width: 75rem) {
	.hero-alt-layout {
		flex-direction: row;
		align-items: stretch;
	}

	.hero-alt-layout > * {
		width: 100%;
	}

	.hero-alt-image-col {
		flex: unset;
		position: unset;
		aspect-ratio: unset;
		padding-block: var(--wp--preset--spacing--3-xl);
	}

	.hero-alt-image-col .hero-alt-image {
		position: absolute;
		inset: 0 auto 0 0;
		width: calc(50% - (var(--wp--preset--spacing--lg) / 2));
		translate: unset;
	}

	.hero-alt-cards-col {
		padding-block: var(--wp--preset--spacing--4-xl);
	}
}
