/**
 * Split Content Module
 * Two independently configurable columns (Text / Image / Video). Column
 * Widths setting controls the left/right split — 50/50%, 60/40%, or 40/60%
 * (default 50/50%) — always stacking full-width on mobile.
 * Text columns pin their header to the top and their content/CTA group to
 * the bottom, matching the height of a taller Image/Video column opposite.
 * Typography/CTA styling is shared with content_module for consistency.
 */

/* ===========================
   # Section
=========================== */

.split-content-module {
	padding: 80px 0;
}

/* ===========================
   # Row — equal-height columns
=========================== */

.split-content-module__inner {
	display: flex;
	align-items: stretch;
	gap: 60px;
}

/* ===========================
   # Columns — equal 50/50 split
=========================== */

.split-content-module__col {
	flex: 1 1 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* ===========================
   # Column Widths — 60/40% and 40/60% splits (50/50% uses the default above)
=========================== */

.split-content-module__inner--60-40 .split-content-module__col--left {
	flex-basis: 60%;
}

.split-content-module__inner--60-40 .split-content-module__col--right {
	flex-basis: 40%;
}

.split-content-module__inner--40-60 .split-content-module__col--left {
	flex-basis: 40%;
}

.split-content-module__inner--40-60 .split-content-module__col--right {
	flex-basis: 60%;
}

/* ===========================
   # Text column: header pinned top, content/CTA pinned bottom
=========================== */

.split-content-module__col--text {
	justify-content: space-between;
	gap: 32px;
}

.split-content-module__text-bottom {
	display: flex;
	flex-direction: column;
}

/* ===========================
   # Text column modifier: content sits directly below the header
   # instead of pinning to the bottom of the column
=========================== */

.split-content-module__col--text.split-content-module__col--content-top {
	justify-content: flex-start;
}

/* ===========================
   # Header (mirrors .content-block h1/h2 treatment)
=========================== */

.split-content-module__header {
	margin: 0;
	color: var(--nec-grey);
	font-family: var(--nec-font);
	font-weight: 400;
	line-height: 1.0625;
}

/* ===========================
   # Body copy (shared treatment with content_module's .cm__body)
=========================== */

.split-content-module__body {
	color: var(--nec-grey);
}

.split-content-module__body p:first-child {
	margin-top: 0;
}

.split-content-module__body p:last-child {
	margin-bottom: 0;
}

.split-content-module__body strong,
.split-content-module__body b {
	font-weight: 500;
	color: var(--nec-grey);
}

/* ===========================
   # CTA — left-aligned, under the content
=========================== */

.split-content-module__cta-wrap {
	margin-top: 24px;
}

.split-content-module__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: var(--nec-grey);
	font-family: var(--nec-font);
	font-size: clamp(0.9375rem, calc(0.894rem + 0.188vw), 1.0625rem);
	font-weight: 500;
	text-decoration: none;
}

.split-content-module__cta:hover,
.split-content-module__cta:focus-visible {
	color: var(--nec-grey);
	outline: none;
	text-decoration: none;
}

.split-content-module__cta-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.split-content-module__cta:hover .split-content-module__cta-icon,
.split-content-module__cta:focus-visible .split-content-module__cta-icon {
	transform: translateX(5px);
}

.split-content-module__cta-icon svg {
	width: 34px;
	height: 34px;
	color: var(--nec-orange);
}

/* ===========================
   # Image column
=========================== */

.split-content-module__col--image {
	justify-content: center;
}

.split-content-module__figure {
	position: relative;
	margin: 0;
	width: 100%;
	height: 100%;
}

.split-content-module__figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.split-content-module__figure--rounded {
	border-radius: 12px;
	overflow: hidden;
}

.split-content-module__figure--rounded img {
	border-radius: 12px;
}

/* ===========================
   # Image overlay — decorative edge graphic (Site Settings > Overlays)
=========================== */

.split-content-module__overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	max-width: 100%;
	object-fit: cover;
	pointer-events: none;
	z-index: 2;
}

/* [colour]-left  → graphic anchored to the left edge  */
.split-content-module__overlay--left {
	left: 0;
	right: auto;
	object-position: left center;
}

/* [colour]-right → graphic anchored to the right edge */
.split-content-module__overlay--right {
	right: 0;
	left: auto;
	object-position: right center;
}

/* ===========================
   # Video column — responsive 16:9, vertically centred if the
   # opposite text column is taller than the video itself
=========================== */

.split-content-module__col--video {
	justify-content: center;
}

.split-content-module__video {
	width: 100%;
}

.split-content-module__video-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
}

.split-content-module__video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ===========================
   # Responsive — 1280px
=========================== */

@media (max-width: 1280px) {
	.split-content-module {
		padding: 64px 0;
	}

	.split-content-module__inner {
		gap: 40px;
	}
}

/* ===========================
   # Responsive — 991px (stack, DOM order: left above right)
=========================== */

@media (max-width: 991px) {
	.split-content-module {
		padding: 48px 0;
	}

	.split-content-module__inner {
		flex-direction: column;
		gap: 36px;
	}

	.split-content-module__col--text {
		gap: 24px;
	}

	.split-content-module__col--image,
	.split-content-module__col--video {
		min-height: 280px;
	}
}

/* ===========================
   # Responsive — 599px
=========================== */

@media (max-width: 599px) {
	.split-content-module {
		padding: 36px 0;
	}

	.split-content-module__col--image,
	.split-content-module__col--video {
		min-height: unset;
	}
}
