/*---*\
Half Image + Text
50/50 split section with image and WYSIWYG text content

KEY FEATURES:
- Stacked text-above-image on mobile and tablet, side-by-side from 1200px
- Image left/right via flex-row-reverse
- Fixed gray band; orange heading and primary CTA styling

IMPLEMENTATION NOTES:
- Section vertical spacing via section-padding utility
- Button markup in WYSIWYG: <a class="btn btn-primary" href="...">Label</a>
\*---*/

.half-and-half .container {
	max-width: var(--container-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.half-and-half .flex-row {
	display: flex;
	align-items: stretch;
	gap: 30px;
	max-width: 1208px;
	margin: 0 auto;

	@media( max-width: 1199px) {
		flex-direction: column!important;
	}
}

.half-and-half-image {
	position: relative;
	order: 2;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 586 / 486;
}

.half-and-half-image .object-fit,
.half-and-half-image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.half-and-half-text {
	display: flex;
	order: 1;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
}

.half-and-half-text > * {
	margin: 0;
	width: 100%;
}

.half-and-half-text > * + * {
	margin-top: 30px;
}

.half-and-half-text h1,
.half-and-half-text h2,
.half-and-half-text h3,
.half-and-half-text h4,
.half-and-half-text h5,
.half-and-half-text h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 24px;
	line-height: 32px;
	color: var(--color-primary);
}

.half-and-half-text p {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 27px;
	color: var(--color-text-white);
}

.half-and-half-text p + p {
	margin-top: 12px;
}

.half-and-half-text a:not(.btn) {
	color: var(--color-primary);
	text-decoration: underline;
}

.half-and-half-text .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	padding: 8px 30px;
	border: 0;
	border-radius: 0;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--color-text-white);
	background-color: var(--color-primary);
	transition: background-color 0.3s, color 0.3s;
}

.half-and-half-text .btn-primary {
	color: var(--color-text-white);
	background-color: var(--color-primary);
}

@media (min-width: 768px) {
	.half-and-half .container {
		padding-left: 28px;
		padding-right: 28px;
	}

	.half-and-half-text .btn {
		font-size: 18px;
	}
}

@media (min-width: 1200px) {
	.half-and-half .flex-row {
		flex-direction: row;
		align-items: center;
		gap: 36px;
	}

	.half-and-half .flex-row.flex-row-reverse {
		flex-direction: row-reverse;
	}

	.half-and-half-image,
	.half-and-half-text {
		order: 0;
		flex: 1 1 0;
		min-width: 0;
		width: auto;
	}

	.half-and-half-text .btn:hover {
		background-color: var(--color-primary-hover, #e05c02);
	}

	.half-and-half-text .btn:focus-visible {
		outline: 2px solid var(--color-primary);
		outline-offset: 3px;
	}

	.half-and-half-text a:not(.btn):focus-visible {
		outline: 2px solid var(--color-primary);
		outline-offset: 2px;
	}
}
