/*------------------------------------*\
	Half Text / Half Media — Slider + Headline Overlay (Theme 5)
\*------------------------------------*/

.half-and-half--slider .image-text__img__wrap,
.half-and-half--headline-overlay .image-text__img__wrap,
.half-and-half--headline-overlay .half-and-half-image__wrap {
	position: relative;
}

/* Slider nav sits below the track; drop the contained-media fixed wrap height. */
.half-and-half--slider .image-text__img__wrap {
	display: block;
	width: 100%;
	min-width: 0;
	height: auto;
	overflow: visible;
}

.half-and-half-image__wrap {
	position: relative;
	width: 100%;
	height: 100%;
}

.half-and-half-slider {
	width: 100%;
}

.half-and-half-slider__stage {
	position: relative;
}

.half-and-half-slider__track {
	display: block;
	border-radius: var(--border-radius);
	overflow: hidden;
	position: relative;
	z-index: 1;
	aspect-ratio: 616 / 378;
}

.half-and-half-slider__track .slick-list,
.half-and-half-slider__track .slick-track,
.half-and-half-slider__track .slick-slide,
.half-and-half-slider__slide {
	height: 100%;
}

.half-and-half-slider__slide {
	position: relative;
}

.half-and-half-slider__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--border-radius);
}

.half-and-half-slider__slide .video-bttn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.half-and-half-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

/* Figma 503:10730 — 59×59 circular arrows matching theme slick arrows */
.half-and-half-slider__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 59px;
	height: 59px;
	padding: 0;
	border: none;
	background: var(--light);
	border-radius: var(--circle-border-radius);
	color: var(--medium);
	cursor: pointer;
	font-size: 0;
	line-height: 1;
	transition: all ease-in 0.3s;
}

.half-and-half-slider__arrow::before {
	font-family: 'rmfx-icon';
	font-size: 20px;
	font-weight: normal;
	line-height: 1em;
}

.half-and-half-slider__arrow--prev::before {
	content: '\e905';
}

.half-and-half-slider__arrow--next::before {
	content: '\e906';
}

.half-and-half-slider__arrow:hover {
	background: var(--secondary-color);
	color: var(--white);
}

.bg-light .half-and-half-slider__arrow {
	background: var(--light-accent-color);
}

.bg-medium .half-and-half-slider__arrow {
	background: var(--dark);
	color: var(--white);
}

.bg-dark .half-and-half-slider__arrow {
	background: var(--medium);
	color: var(--white);
}

.bg-medium .half-and-half-slider__arrow:hover,
.bg-dark .half-and-half-slider__arrow:hover {
	background: var(--secondary-color);
	color: var(--white);
}

@media (min-width: 1200px) {
	.half-and-half--slider .half-and-half-slider__track {
		height: 378px;
		aspect-ratio: auto;
	}
}

.half-and-half--headline-overlay .half-and-half-image {
	height: auto;
	min-height: 200px;
}

.half-and-half--headline-overlay .half-and-half-image__wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 200px;
	overflow: hidden;
}

.half-and-half--headline-overlay .half-and-half-image__wrap > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.half-and-half-image__overlay {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	box-sizing: border-box;
	width: 100%;
	gap: 16px;
	padding: 24px;
	text-align: center;
	pointer-events: none;
	border-radius: var(--image-border-radius);
}

.half-and-half-image__overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.65);
	border-radius: inherit;
}

/* Cover layout — square outer edges, full-bleed media (Figma 503:10841) */
.half-and-half.half-and-half--headline-overlay .half-and-half-image__overlay,
.half-and-half .half-and-half-image img {
	border-radius: 0;
}

.half-and-half .half-and-half-image__wrap {
	overflow: hidden;
}

.half-and-half-image__accent,
.half-and-half-image__headline {
	position: relative;
	z-index: 1;
}

.half-and-half-image__accent {
	display: block;
	max-width: 60px;
	height: 42px;
	width: 100%;
	margin: 0 auto;
	flex-shrink: 0;
}

.half-and-half-image__accent-img,
.half-and-half--headline-overlay .half-and-half-image__accent img {
	display: block;
	width: 100%;
	height: auto !important;
	max-height: 42px;
	object-fit: contain;
	margin: 0 auto;
}

.half-and-half-image__headline {
	margin: 0;
	max-width: 100%;
	color: var(--white);
	font-family: var(--font-fam-secondary);
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

@media (min-width: 768px) {
	.half-and-half--headline-overlay .half-and-half-image,
	.half-and-half--headline-overlay .half-and-half-image__wrap {
		min-height: 464px;
	}

	.half-and-half-image__overlay {
		padding: 40px 48px;
	}

	.half-and-half-image__headline {
		max-width: calc(100% - 100px);
		font-size: 45px;
	}
}

/* Stacked layout: keep overlay copy clear of the 104px seam chrome. */
@media (max-width: 1024px) {
	.half-and-half--headline-overlay.image-block-right .half-and-half-image__overlay {
		padding-left: 120px;
	}

	.half-and-half--headline-overlay.image-block-left .half-and-half-image__overlay {
		padding-right: 120px;
	}
}

@media (min-width: 1025px) {
	.half-and-half.flex-row {
		align-items: stretch;
		flex-wrap: nowrap;
	}

	.half-and-half .half-and-half-image,
	.half-and-half .half-and-half-text {
		width: 50%;
	}

	.half-and-half .half-and-half-image {
		height: auto;
		align-self: stretch;
	}

	.half-and-half .half-and-half-image__wrap {
		position: absolute;
		inset: 0;
		overflow: hidden;
	}

	/* Keep overlay in flow on desktop so a long headline can grow the column. */
	.half-and-half--headline-overlay .half-and-half-image {
		display: flex;
		flex-direction: column;
	}

	.half-and-half--headline-overlay .half-and-half-image__wrap {
		position: relative;
		inset: auto;
		flex: 1 1 auto;
		height: auto;
		min-height: 100%;
		width: 100%;
	}

	.half-and-half .half-and-half-image img,
	.half-and-half .half-and-half-image img.object-fit {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		max-width: none;
		object-fit: cover;
		border-radius: 0;
	}

	.half-and-half .half-and-half-image__overlay {
		border-radius: 0;
		flex: 1 1 auto;
	}
}

@media (min-width: 1200px) {
	.half-and-half-image__accent {
		max-width: 60px;
	}
}

/* Keep corner chrome above overlay scrim */
.half-and-half--headline-overlay .top-left-rounded,
.half-and-half--headline-overlay .top-right-rounded,
.half-and-half--headline-overlay .bottom-left-rounded,
.half-and-half--headline-overlay .bottom-right-rounded,
.half-and-half-image__seam-accent {
	z-index: 4;
}

/* Cover seam accent chrome (Figma 503:10841) + icon on large blue square */
.half-and-half-image__seam-accent {
	--seam-accent-bg: var(--medium);
	position: absolute;
	bottom: 50px;
	width: 104px;
	height: 225px;
	pointer-events: none;
}

.bg-dark .half-and-half-image__seam-accent {
	--seam-accent-bg: var(--dark);
}

.bg-light .half-and-half-image__seam-accent {
	--seam-accent-bg: var(--light);
}

.bg-white .half-and-half-image__seam-accent {
	--seam-accent-bg: var(--white);
}

.half-and-half-image__seam-accent--left {
	left: 0;
}

.half-and-half-image__seam-accent--right {
	right: 0;
	transform: scaleX(-1);
}

.half-and-half-image__seam-accent--right .half-and-half-image__seam-accent-icon {
	transform: scaleX(-1);
}

.half-and-half-image__seam-accent-chrome {
	display: block;
	width: 100%;
	height: 100%;
}

.half-and-half-image__seam-accent-chrome svg {
	display: block;
	width: 100%;
	height: 100%;
}

.half-and-half-image__seam-accent-icon {
	position: absolute;
	/* Large blue square in chrome SVG: ~12,105 → 81.6×81.6 */
	left: 12px;
	top: 105px;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.half-and-half-image__seam-accent-icon svg {
	width: 52px;
	height: 52px;
}

.half-and-half-image__seam-accent-icon svg path {
	fill: var(--white);
}

.bottom-left-rounded-content svg path {
	fill: var(--white);
}

/* —— Statistics in content (Figma 503:10943) —— */
.half-and-half-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px;
	margin: 0 0 var(--paragraph-spacing);
}

.half-and-half-stats__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	flex: 1 1 calc(50% - 16px);
	min-width: 0;
}

.half-and-half-stats__value,
.half-and-half-stats__label {
	margin: 0;
	padding: 0;
	line-height: normal;
}

.half-and-half-stats__value {
	font-family: var(--font-fam-secondary);
	font-size: 40px;
	font-weight: 800;
	color: var(--heading-text-color);
}

.half-and-half-stats__label {
	font-family: var(--font-fam-secondary);
	font-size: 16px;
	font-weight: 800;
	color: var(--heading-text-color);
}

.bg-dark .half-and-half-stats__value,
.bg-medium .half-and-half-stats__value,
.bg-dark .half-and-half-stats__label,
.bg-medium .half-and-half-stats__label {
	color: var(--body-with-dark-background);
}

@media (min-width: 768px) {
	.half-and-half-stats__value {
		font-size: 55px;
	}
}

/* —— Accordion in content (Figma 503:10998) —— */
.half-and-half-accordion {
	width: 100%;
	margin: 0 0 var(--paragraph-spacing);
}

.half-and-half-accordion .fx-accordion__panels {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.half-and-half-accordion .fx-accordion__panel {
	background-color: var(--white);
	padding: 0 23px;
	border-radius: var(--border-radius-sm);
	border-bottom: none;
}

.bg-light .half-and-half-accordion .fx-accordion__panel {
	background-color: var(--white);
}

.bg-medium .half-and-half-accordion .fx-accordion__panel {
	background-color: var(--dark);
}

.bg-dark .half-and-half-accordion .fx-accordion__panel {
	background-color: var(--medium);
}

.half-and-half-accordion .fx-accordion__panel__toggle {
	padding: 16px 58px 14px 0;
	font-size: 16px;
	font-weight: 800;
	font-family: var(--font-fam-secondary);
	color: var(--heading-text-color);
	cursor: pointer;
}

.bg-medium .half-and-half-accordion .fx-accordion__panel__toggle,
.bg-dark .half-and-half-accordion .fx-accordion__panel__toggle {
	color: var(--white);
}

.half-and-half-accordion .fx-accordion__panel .fx-accordion__panel__toggle:after {
	right: 0;
	color: var(--secondary-color);
}

.half-and-half-accordion .fx-accordion__panel__content {
	padding: 12px 0 16px;
	margin: 0;
	border-top: 1px solid var(--border-color);
}

.half-and-half-accordion .fx-accordion__panel__content p {
	max-width: none;
}

.bg-medium .half-and-half-accordion .fx-accordion__panel__content {
	border-color: var(--dark-accent-color);
	color: var(--white);
}

.bg-dark .half-and-half-accordion .fx-accordion__panel__content {
	border-color: var(--dark);
	color: var(--white);
}

@media (min-width: 768px) {
	.half-and-half-accordion .fx-accordion__panel {
		padding: 0 32px;
	}

	.half-and-half-accordion .fx-accordion__panel__toggle {
		font-size: 20px;
	}

	.half-and-half-accordion .fx-accordion__panel__content {
		padding: 16px 0;
	}
}

@media (min-width: 1025px) {
	.half-and-half-accordion .fx-accordion__panel {
		padding: 0 48px;
	}

	.half-and-half-accordion .fx-accordion__panel__toggle {
		padding: 24px 58px 24px 0;
		font-size: 24px;
	}

	.half-and-half-accordion .fx-accordion__panel__content {
		padding: 26px 0 24px;
	}
}
