/**
 * BongoHive Split Content Showcase
 *
 * Single widget that renders two connected rebrand blocks as one 2x2
 * grid:
 *
 *   Row 1: [ First Image ] [ Why BongoHive content ]
 *   Row 2: [ Methodology CTA content ] [ Second Image ]
 *
 * On mobile the cells stack in DOM source order (image 1 → why → CTA
 * → image 2), so no `order` overrides are needed.
 *
 * All styles are scoped under `.bh-split-showcase` so they cannot
 * affect other Elementor blocks on the page.
 */

.bh-split-showcase {
	width: 100%;
	box-sizing: border-box;
}

.bh-split-showcase *,
.bh-split-showcase *::before,
.bh-split-showcase *::after {
	box-sizing: border-box;
}

.bh-split-showcase__grid {
	--bh-cell-min-height: 558px;

	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: minmax(var(--bh-cell-min-height), auto);
	width: 100%;
}

.bh-split-showcase__cell {
	min-width: 0; /* prevent grid blowout on long words */
}

/* -------------------------------------------------------------------------- */
/*  Image cells                                                                */
/* -------------------------------------------------------------------------- */

.bh-split-showcase__cell--image {
	margin: 0;
	overflow: hidden;
	position: relative;
}

.bh-split-showcase__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
	object-position: center center;
}

/* -------------------------------------------------------------------------- */
/*  Content cells                                                              */
/* -------------------------------------------------------------------------- */

.bh-split-showcase__content {
	display: flex;
	flex-direction: column;
	gap: 32px;
	background-color: #ffffff;
	padding: 80px;
}

.bh-split-showcase__content--methodology {
	background-color: #1d2229;
	color: #ffffff;
	gap: 24px;
}

/* -------------------------------------------------------------------------- */
/*  Headings                                                                   */
/* -------------------------------------------------------------------------- */

.bh-split-showcase__heading {
	font-family: 'Ubuntu', 'PT Sans', sans-serif;
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.2;
	letter-spacing: -0.5px;
	margin: 0;
}

.bh-split-showcase__heading--why {
	color: #1d2229;
}

.bh-split-showcase__heading--cta {
	color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/*  Why BongoHive — numbered value points                                      */
/* -------------------------------------------------------------------------- */

.bh-split-showcase__points {
	display: flex;
	flex-direction: column;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bh-split-showcase__point {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	border-top: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bh-split-showcase__points--dividers .bh-split-showcase__point + .bh-split-showcase__point {
	padding-top: 32px;
	border-top-color: #e0e0e0;
}

.bh-split-showcase__number {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: #f0af24;
	flex: 0 0 auto;
	min-width: 32px;
	padding-top: 2px;
}

.bh-split-showcase__point-text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}

.bh-split-showcase__point-title {
	font-family: 'Ubuntu', 'PT Sans', sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: #1d2229;
	margin: 0;
}

.bh-split-showcase__point-body {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	color: #606469;
	margin: 0;
}

/* -------------------------------------------------------------------------- */
/*  Methodology CTA                                                            */
/* -------------------------------------------------------------------------- */

.bh-split-showcase__cta-description {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.65;
	color: inherit;
	margin: 0;
}

.bh-split-showcase__cta-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 4px 0;
	margin-top: 8px;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5;
	color: #ffffff;
	text-decoration: none;
	width: max-content;
	max-width: 100%;
	transition: gap 0.2s ease, color 0.2s ease;
}

.bh-split-showcase__cta-link:hover,
.bh-split-showcase__cta-link:focus-visible {
	gap: 16px;
	text-decoration: none;
	color: inherit;
}

.bh-split-showcase__cta-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.bh-split-showcase__cta-link svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

/* -------------------------------------------------------------------------- */
/*  Responsive: tablet — keep 2-column grid but soften padding/min-height      */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.bh-split-showcase__grid {
		--bh-cell-min-height: 420px;
	}

	.bh-split-showcase__content {
		padding: 56px 48px;
		gap: 24px;
	}

	.bh-split-showcase__points {
		gap: 24px;
	}

	.bh-split-showcase__points--dividers .bh-split-showcase__point + .bh-split-showcase__point {
		padding-top: 24px;
	}
}

/* -------------------------------------------------------------------------- */
/*  Responsive: mobile — collapse to single column. Source order already       */
/*  matches the desired stack (image 1 → why → CTA → image 2), so no `order`. */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.bh-split-showcase__grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}

	.bh-split-showcase__cell--image {
		min-height: 280px;
		height: 280px;
	}

	.bh-split-showcase__content {
		padding: 40px 24px;
		gap: 20px;
	}

	.bh-split-showcase__points {
		gap: 20px;
	}

	.bh-split-showcase__point {
		gap: 16px;
	}

	.bh-split-showcase__points--dividers .bh-split-showcase__point + .bh-split-showcase__point {
		padding-top: 20px;
	}

	.bh-split-showcase__number {
		min-width: 28px;
		font-size: 1.125rem;
	}
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.bh-split-showcase__point,
	.bh-split-showcase__cta-link {
		transition: none;
	}
}
