/**
 * Kubota Europe contact CTA banner (WPBakery element `vc_kbeu_contact_cta`).
 *
 * Based on the Figma design 4595-1982: a turquoise (#03a8a9) rounded banner. On
 * the left, a light eyebrow (24px / Light), a bold heading (32px / Bold) and a
 * light paragraph (24px / Light), all in white. On the right, a vertically centred
 * call-to-action button.
 *
 * The banner comes in two brand colours, picked on the element and emitted as a
 * modifier class: `.kbeu-contact-cta--teal` (the design's turquoise, the default and
 * the base styling) and `.kbeu-contact-cta--orange` (#d85324). The colour lives in
 * the `--kbeu-contact-cta-bg` custom property so the variant only has to redefine it.
 *
 * Font family "Inter" is provided by the plugin's fonts stylesheet
 * (this handle depends on `kbeu-fonts`), referenced via `--kbeu-font-principal`.
 * The bundled family ships the 300 / 400 / 500 / 700 weights, so the design's 400 (Roman)
 * button matches exactly.
 *
 * The button itself is the shared `.kbeu-btn` (handle `kbeu-buttons`, a dependency
 * of this one); this file only adds the context-specific typography and spacing and
 * deliberately leaves the fill modifier untouched — the orange variant recolours it
 * through the `--kbeu-btn-primary-*` custom properties the modifier reads from.
 */

.kbeu-contact-cta {
	--kbeu-contact-cta-bg: var( --kbeu-color-teal );

	font-family: var( --kbeu-font-principal );
}

/* Orange variant: the banner switches to the alternative brand colour and so does
   the button fill (hover shade shared with the header's orange button), so the
   button keeps reading as "same colour + white outline" on both banners. Custom
   properties inherit, so redefining them here is enough to restyle the button. */
.kbeu-contact-cta--orange {
	--kbeu-contact-cta-bg: var( --kbeu-color-orange );
	--kbeu-btn-primary-bg: var( --kbeu-color-orange );
	--kbeu-btn-primary-bg-hover: var( --kbeu-color-orange-dark );
}

.kbeu-contact-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: clamp( 24px, 3vw, 48px );
	background: var( --kbeu-contact-cta-bg );
	border-radius: 14px;
	padding: clamp( 32px, 4vw, 76px ) clamp( 24px, 4vw, 72px );
}

.kbeu-contact-cta__content {
	flex: 1 1 460px;
	min-width: 0;
}

.kbeu-contact-cta__eyebrow {
	margin: 0;
	font-weight: 300;
	line-height: 1.3;
	font-size: clamp( 18px, 1.6vw, 24px );
	color: #fff;
}

.kbeu-contact-cta__title {
	margin: clamp( 8px, 1vw, 16px ) 0 0;
	/* Impreza gives every heading that is not a first child a 1.5rem padding-top;
	   the gap to the eyebrow is the margin above. */
	padding: 0;
	font-weight: 700;
	line-height: 1.37;
	font-size: clamp( 24px, 2.4vw, 32px );
	color: #fff;
}

/* A banner without eyebrow (`show_eyebrow=no`) starts with the heading. */
.kbeu-contact-cta__title:first-child {
	margin-top: 0;
}

/* Only the paragraph keeps the designs' ~930px measure: the title may run
   longer on one line (1102px in Figma 4494-880). The element's `text_max_width`
   sets the custom property (the UGAP band, Figma 4516-1210: 1075px). */
.kbeu-contact-cta__text {
	max-width: var( --kbeu-contact-cta-text-max-width, 930px );
	margin: clamp( 12px, 1.4vw, 20px ) 0 0;
	font-weight: 300;
	line-height: 1.55;
	font-size: clamp( 16px, 1.8vw, 24px );
	color: #fff;
}

.kbeu-contact-cta__action {
	flex: 0 0 auto;
}

/* Context tweaks only — the fill comes from the `.kbeu-btn--*` modifier; this
   swaps its border for a 1px white outline, so the button separates from the
   banner behind it, and sizes it as both designs draw it (4595-1989 / 4494-883):
   about 351 × 52 at 2560, a 20px / Roman label centred in it. The hover/focus
   rule is needed because the modifier resets the border colour on those states
   with a higher specificity. */
.kbeu-contact-cta__btn {
	min-width: clamp( 200px, 13.73vw, 351px );
	padding: clamp( 8px, 0.39vw, 10px ) clamp( 18px, 1.02vw, 26px );
	border-width: 1px;
	font-family: var( --kbeu-font-principal );
	font-size: clamp( 16px, 0.78vw, 20px );
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
	border-color: #fff;
}

.kbeu-contact-cta__btn:hover,
.kbeu-contact-cta__btn:focus,
.kbeu-contact-cta__btn:focus-visible {
	border-color: #fff;
}

/* Two buttons (`button2_*`, the campaign page's Figma 4978-5159): side by side 20px
   apart, each at least 222 × 52 @2560 instead of the single button's 351px. */
.kbeu-contact-cta--two-buttons .kbeu-contact-cta__action {
	display: flex;
	flex-wrap: wrap;
	gap: clamp( 12px, 0.78vw, 20px );
}

.kbeu-contact-cta--two-buttons .kbeu-contact-cta__btn {
	min-width: clamp( 160px, 8.67vw, 222px );
}

/* --- Responsive ------------------------------------------------------- */

@media ( max-width: 767px ) {
	.kbeu-contact-cta__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.kbeu-contact-cta__content {
		flex-basis: auto;
	}

	/* The shared button's wide side padding would overflow a narrow screen, and so
	   would a long label kept on one line ("Découvrez nos produits sélectionnés par
	   l'UGAP"): here it may wrap. */
	.kbeu-contact-cta__btn {
		width: 100%;
		padding-right: 24px;
		padding-left: 24px;
		white-space: normal;
	}

	/* Two buttons stack, each the banner's full width. */
	.kbeu-contact-cta--two-buttons .kbeu-contact-cta__action {
		flex-direction: column;
	}
}
