/**
 * Kubota Europe split card (WPBakery element `vc_kbeu_split_card`).
 *
 * Based on the Figma Kubota Care page: a light grey rounded card (the loose
 * rectangle 4221-1825 / 4226-2494) holding two text columns separated by a
 * vertical orange bar (4221-1840 / 4226-2495), optionally under a centred
 * heading (4221-1834 title 64px / Roman, 4221-1835 intro 24px / Light). A column
 * is a bold 32px title over 24px / Light paragraphs or a bullet list (4221-1836).
 *
 * Sizes are `clamp()`s whose maximum is the Figma value on the 2560px artboard;
 * the type reaches it around 1450px, like the heading element it sits with.
 * The card takes the width of its row (width rule); every metric is a token on
 * the root, so a variant only redefines tokens.
 */

.kbeu-split-card {
	--kbeu-sc-surface: var( --kbeu-color-surface );
	--kbeu-sc-radius: 14px;
	--kbeu-sc-pad-top: clamp( 40px, 4.375vw, 112px );
	--kbeu-sc-pad-bottom: clamp( 40px, 4.375vw, 112px );
	--kbeu-sc-pad-x: clamp( 24px, 3.5vw, 90px );
	--kbeu-sc-gap: clamp( 24px, 7vw, 180px );
	--kbeu-sc-bar-color: var( --kbeu-color-orange );
	--kbeu-sc-bar-width: 6.93px;
	--kbeu-sc-bar-height: clamp( 120px, 12.3vw, 315px );
	--kbeu-sc-text-size: clamp( 17px, 1.7vw, 24px );
	--kbeu-sc-title-size: clamp( 22px, 2.2vw, 32px );

	box-sizing: border-box;
	width: 100%;
	padding: var( --kbeu-sc-pad-top ) var( --kbeu-sc-pad-x ) var( --kbeu-sc-pad-bottom );
	border-radius: var( --kbeu-sc-radius );
	background: var( --kbeu-sc-surface );
	color: #000;
}

/* With a heading the title's own leading already opens the top (97 + 15px). */
.kbeu-split-card--has-heading {
	--kbeu-sc-pad-top: clamp( 36px, 3.8vw, 97px );
}

/* Turquoise bar (`accent=teal`, after-sales Kubota Care, Figma 5286-5161). */
.kbeu-split-card--accent-teal {
	--kbeu-sc-bar-color: var( --kbeu-color-teal );
}

/* --- Heading (the `heading` partial, with the design's metrics) -------------- */

.kbeu-split-card .kbeu-heading__title {
	max-width: none;
	margin-top: 0;
	font-weight: 400;
	font-size: clamp( 34px, 4.4vw, 64px );
	line-height: 1.2;
}

.kbeu-split-card .kbeu-heading__text {
	max-width: none;
	margin-top: clamp( 16px, 1.4vw, 35px );
}

.kbeu-split-card__heading + .kbeu-split-card__body {
	margin-top: clamp( 28px, 2.2vw, 56px );
}

/* --- Columns around the bar --------------------------------------------------- */

.kbeu-split-card__body {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto minmax( 0, 1fr );
	column-gap: var( --kbeu-sc-gap );
	align-items: center;
}

.kbeu-split-card__divider {
	display: block;
	align-self: stretch;
	width: var( --kbeu-sc-bar-width );
	min-height: var( --kbeu-sc-bar-height );
	border-radius: 15px;
	background: var( --kbeu-sc-bar-color );
}

.kbeu-split-card__col {
	min-width: 0;
	font-family: var( --kbeu-font-principal );
}

.kbeu-split-card .kbeu-split-card__title {
	margin: 0 0 clamp( 14px, 0.9vw, 22px );
	padding: 0;
	font-family: var( --kbeu-font-principal );
	font-weight: 700;
	font-size: var( --kbeu-sc-title-size );
	line-height: 1.37;
	letter-spacing: 0;
	color: #000;
}

.kbeu-split-card .kbeu-split-card__text {
	margin: 0;
	font-family: var( --kbeu-font-principal );
	font-weight: 300;
	font-size: var( --kbeu-sc-text-size );
	line-height: 1.55;
	color: #000;
}

.kbeu-split-card .kbeu-split-card__list {
	margin: 0;
	padding: 0 0 0 1.5em;
	list-style: disc outside;
	font-family: var( --kbeu-font-principal );
	font-weight: 300;
	font-size: var( --kbeu-sc-text-size );
	line-height: 1.55;
	color: #000;
}

.kbeu-split-card .kbeu-split-card__list li {
	margin: 0;
	padding: 0;
	list-style: inherit;
}

.kbeu-split-card .kbeu-split-card__list li + li {
	margin-top: clamp( 12px, 1.25vw, 32px );
}

/* --- Stacked: one column, the bar turned into a short horizontal accent ------- */

@media ( max-width: 860px ) {
	.kbeu-split-card__body {
		grid-template-columns: minmax( 0, 1fr );
		row-gap: clamp( 24px, 5vw, 40px );
	}

	.kbeu-split-card__divider {
		align-self: auto;
		width: 96px;
		height: 7px;
		min-height: 0;
	}

	.kbeu-split-card__col--empty,
	.kbeu-split-card__divider:has( + .kbeu-split-card__col--empty ) {
		display: none;
	}
}

/* Placeholder shown in the WPBakery editor when everything is empty. */
.kbeu-split-card__placeholder {
	margin: 0;
	padding: 24px;
	border: 1px dashed var( --kbeu-color-teal );
	border-radius: 8px;
	font-family: var( --kbeu-font-principal );
	font-weight: 300;
	font-size: 15px;
	color: var( --kbeu-color-gray-blue );
}
