/* BP Blog Final CTA widget styles
 *
 * One single cohesive card centered on the page cream
 * background. The whole card uses ONE singular background
 * image (set inline from Elementor) and a cream → clear fade
 * overlay so the left text block stays readable. The text
 * inside reuses the Homepage "POURQUOI CHOISIR" heading
 * system (eyebrow + uppercase serif title + gold divider).
 *
 * Buttons reuse the homepage CTA visual language:
 *   - primary   : dark green #374F37 background + cream text +
 *                 arrow (1:1 with .bp-home-section-cta__btn)
 *   - secondary : cream surface + dark green text + dark green
 *                 border (mirror of the primary)
 *
 * All rules stay under .bp-blog-fcta. Logical properties keep
 * LTR/RTL aligned without an override file. No JavaScript.
 */

.bp-blog-fcta {
	--bp-bfcta-bg:         #FBF6EC;
	--bp-bfcta-fg:         #374F37;
	--bp-bfcta-muted:      #1F2A1F;
	--bp-bfcta-olive:      #B8B25A;
	--bp-bfcta-cream:      #FBF6EC;
	--bp-bfcta-card-max:   1160px;
	--bp-bfcta-card-radius: 24px;
	--bp-bfcta-card-min-h: 440px;
	--bp-bfcta-card-shadow: 0 22px 44px rgba(31, 42, 31, 0.22);

	--bp-bfcta-overlay-l:  rgba(244, 236, 220, 0.97);
	--bp-bfcta-overlay-m:  rgba(244, 236, 220, 0.55);
	--bp-bfcta-overlay-r:  rgba(244, 236, 220, 0);

	--bp-bfcta-font-body:    var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	--bp-bfcta-font-display: var(--bp-font-display, 'DM Serif Display', Georgia, serif);

	background-color: var(--bp-bfcta-bg);
	color: var(--bp-bfcta-fg);
	font-family: var(--bp-bfcta-font-body);
	padding-block: 72px 80px;
	padding-inline: 0;
}

.bp-blog-fcta__card {
	position: relative;
	isolation: isolate;
	max-inline-size: var(--bp-bfcta-card-max);
	margin-inline: auto;
	padding: 56px;
	border-radius: var(--bp-bfcta-card-radius);
	background-color: var(--bp-bfcta-cream);
	background-size: cover;
	background-position: right center;
	background-repeat: no-repeat;
	overflow: hidden;
	min-block-size: var(--bp-bfcta-card-min-h);
	display: flex;
	align-items: center;
	box-shadow: var(--bp-bfcta-card-shadow);
}

.bp-blog-fcta__card > * {
	position: relative;
	z-index: 2;
}

/* Cream → clear fade (L→R) on top of the background image. */
.bp-blog-fcta__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to right,
		var(--bp-bfcta-overlay-l) 0%,
		var(--bp-bfcta-overlay-m) 50%,
		var(--bp-bfcta-overlay-r) 85%
	);
}

[dir="rtl"] .bp-blog-fcta__overlay {
	background: linear-gradient(
		to left,
		var(--bp-bfcta-overlay-l) 0%,
		var(--bp-bfcta-overlay-m) 50%,
		var(--bp-bfcta-overlay-r) 85%
	);
}

.bp-blog-fcta__content {
	max-inline-size: 560px;
	text-align: start;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---- Heading system (1:1 with POURQUOI CHOISIR) ---- */
.bp-blog-fcta__eyebrow {
	margin: 0;
	font-family: var(--bp-bfcta-font-body);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bp-bfcta-fg);
}

.bp-blog-fcta__title {
	margin: 0;
	font-family: var(--bp-bfcta-font-display);
	font-weight: 400;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: var(--bp-bfcta-fg);
	text-transform: uppercase;
}

.bp-blog-fcta__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-block: 6px 12px;
}
.bp-blog-fcta__divider-line {
	display: inline-block;
	inline-size: 56px;
	block-size: 1px;
	background-color: var(--bp-bfcta-olive);
}
.bp-blog-fcta__divider-diamond {
	display: inline-block;
	inline-size: 8px;
	block-size: 8px;
	background-color: var(--bp-bfcta-olive);
	transform: rotate(45deg);
}

.bp-blog-fcta__description {
	margin: 0;
	max-inline-size: 56ch;
	font-size: 15px;
	line-height: 1.7;
	color: var(--bp-bfcta-muted);
	opacity: 0.9;
}

/* ---- Buttons (1:1 reuse of homepage CTA language) ---- */
.bp-blog-fcta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-block-start: 18px;
}

.bp-blog-fcta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 48px;
	padding: 13px 28px;
	border-radius: 999px;
	font-family: var(--bp-bfcta-font-body);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.bp-blog-fcta__btn--primary {
	background: #374F37;
	color: #FFFFFF;
	border: 1.5px solid #374F37;
}
.bp-blog-fcta__btn--primary:hover,
.bp-blog-fcta__btn--primary:focus-visible {
	transform: translateY(-2px);
	background: #374F37;
	box-shadow: 0 8px 20px rgba(55, 79, 55, 0.22);
	outline: none;
}

.bp-blog-fcta__btn--secondary {
	background: #FBF6EC;
	color: #374F37;
	border: 1.5px solid #374F37;
}
.bp-blog-fcta__btn--secondary:hover,
.bp-blog-fcta__btn--secondary:focus-visible {
	transform: translateY(-2px);
	background: #FFFFFF;
	box-shadow: 0 8px 20px rgba(55, 79, 55, 0.18);
	outline: none;
}

.bp-blog-fcta__btn-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.bp-blog-fcta__btn-arrow svg {
	inline-size: 16px;
	block-size: 16px;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.bp-blog-fcta__card {
		padding: 44px;
	}
	.bp-blog-fcta__content {
		max-inline-size: 460px;
	}
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
	.bp-blog-fcta {
		padding-block: 48px 56px;
	}
	.bp-blog-fcta__card {
		padding: 32px 24px;
		min-block-size: 360px;
		margin-inline: 18px;
		inline-size: calc(100% - 36px);
	}
	.bp-blog-fcta__content {
		max-inline-size: 100%;
	}
	.bp-blog-fcta__description {
		font-size: 14.5px;
	}
	.bp-blog-fcta__buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.bp-blog-fcta__btn {
		inline-size: 100%;
	}
	.bp-blog-fcta__overlay {
		background: linear-gradient(
			to right,
			rgba(244, 236, 220, 0.96) 0%,
			rgba(244, 236, 220, 0.78) 60%,
			rgba(244, 236, 220, 0.25) 100%
		);
	}
	[dir="rtl"] .bp-blog-fcta__overlay {
		background: linear-gradient(
			to left,
			rgba(244, 236, 220, 0.96) 0%,
			rgba(244, 236, 220, 0.78) 60%,
			rgba(244, 236, 220, 0.25) 100%
		);
	}
}

@media (max-width: 420px) {
	.bp-blog-fcta__title {
		font-size: 28px;
	}
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.bp-blog-fcta__btn {
		transition: none !important;
	}
	.bp-blog-fcta__btn:hover,
	.bp-blog-fcta__btn:focus-visible {
		transform: none !important;
	}
}
