/* BP Product Final CTA widget styles
 *
 * Centered BOXED final CTA: a transparent outer section that
 * sits on the page background, containing a single rounded
 * panel (`.bp-pfc__box`) — cream background, thin subtle
 * Barbary border, ~20px radius, overflow hidden. The panel
 * hosts the existing CTA composition unchanged (eyebrow +
 * 3-line title + gold divider + supporting text, two CTA
 * buttons, decorative background). Elementor sidebar
 * exposes responsive controls for the decorative layer:
 *
 *   - size mode  : cover | contain
 *   - vertical anchor : top | center | bottom
 *   - X / Y offsets
 *   - opacity
 *
 * Approved palette ONLY:
 *   #374F37  deep green
 *   #EDDBC3  cream
 *   #B8B25A  olive / gold
 *   #FFFFFF  white
 *   #F6EFE3  soft cream (panel background default)
 *   #1F2A1F  ink (supporting text)
 *   plus existing neutral tokens. No invented colours.
 *
 * All rules are scoped under `.bp-pfc` and use logical CSS
 * properties (margin-inline, padding-inline, inset-inline …)
 * so LTR and RTL share the same ruleset.
 */

.bp-pfc {
	/* ---- Theme tokens (approved palette only) ---- */
	--bp-pfc-bg:             #F6EFE3;
	--bp-pfc-green:          #374F37;
	--bp-pfc-olive:          #B8B25A;
	--bp-pfc-cream:          #EDDBC3;
	--bp-pfc-white:          #FFFFFF;
	--bp-pfc-text:           #1F2A1F;

	--bp-pfc-box-max:        1140px;
	--bp-pfc-box-radius:     20px;
	--bp-pfc-box-border:     rgba(55, 79, 55, 0.12);
	--bp-pfc-box-bg:         #F6EFE3;

	--bp-pfc-inner-max:      1140px;

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

	/* Per-device decor offsets. Every value is fully
	 * overridable from Elementor per-device (desktop / tablet /
	 * mobile). The `transform: translate(...)` in
	 * `.bp-pfc__decor` reads from these. */
	--bp-pfc-decor-x:        0px;
	--bp-pfc-decor-y:        0px;
	--bp-pfc-decor-opacity:  100%;

	--bp-pfc-button-radius:  8px;
	--bp-pfc-buttons-gap:    16px;

	position: relative;
	isolation: isolate;
	overflow: visible;
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 100%;
	margin: 0;
	padding: 0 24px;
	background-color: transparent;
	color: var(--bp-pfc-text);
	font-family: var(--bp-pfc-font-body);
}

.elementor-18 .elementor-element.elementor-element-40cde1d .bp-pfc {
	margin-block-start: 100px !important;
}

.bp-pfc *,
.bp-pfc *::before,
.bp-pfc *::after {
	box-sizing: border-box;
}

/* ---------------- Elementor widget spacing ----------------
 * Vertical breathing room above and below the box so the CTA
 * does not touch the previous / next section. The widget
 * respects its column width (no 100vw breakout) so the page
 * background is visible on the sides. */
.elementor .elementor-widget.elementor-widget-bp-product-final-cta,
.elementor-widget.elementor-widget-bp-product-final-cta {
	position: relative;
	z-index: 1;
	margin-block: 64px;
}

.elementor .elementor-widget.elementor-widget-bp-product-final-cta {
	--container-default-padding-top:    0px;
	--container-default-padding-bottom: 0px;
}

/* ---------------- Centered CTA BOX ----------------
 * The visual CTA container. Sits inside the transparent
 * outer section, max-width 1140px, rounded corners, thin
 * subtle border in the approved palette, overflow hidden so
 * the decorative background cannot poke past the rounded
 * edges. The cream background + border + radius together
 * give the "panel" feel — not a full-width section. */
.bp-pfc__box {
	position: relative;
	isolation: isolate;
	inline-size: 100%;
	max-inline-size: var(--bp-pfc-box-max);
	margin-inline: auto;
	background-color: var(--bp-pfc-box-bg);
	border: 1px solid var(--bp-pfc-box-border);
	border-radius: var(--bp-pfc-box-radius);
	overflow: hidden;
	padding: 96px 24px;
}

/* ---------------- Inner container (1140px, centered) ---------------- */
.bp-pfc__inner {
	position: relative;
	z-index: 2;
	inline-size: 100%;
	max-inline-size: var(--bp-pfc-inner-max);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 28px;
}

/* ---------------- Decorative background layer ----------------
 * A single composite image (left granules + right olive
 * branch + faint top-left botanical) rendered as a CSS
 * background. The image is set inline by the widget's
 * `render()`; this rule only handles sizing, positioning and
 * opacity driven by the Elementor sidebar controls.
 *
 *   - `background-position-y` is written directly by the
 *     editor (top / center / bottom) so no CSS-variable
 *     indirection is needed.
 *   - `background-position-x` is always centered; the
 *     editor-controlled X / Y offsets are applied via a
 *     `transform: translate(...)` so they stack cleanly with
 *     per-device overrides. */
.bp-pfc__decor {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	inline-size: 100%;
	block-size: 100%;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	z-index: 0;

	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transform: translate(
		var(--bp-pfc-decor-x, 0px),
		var(--bp-pfc-decor-y, 0px)
	);
	opacity: var(--bp-pfc-decor-opacity, 100%);

	transition: opacity 0.2s ease;
}

.bp-pfc__decor--default {
	/* The default composite SVG was hand-tuned for a 1600x600
	 * viewBox with `preserveAspectRatio="xMidYMax slice"`, so
	 * cover behaves identically to contain here. */
	background-size: cover;
}

/* ---------------- Header ---------------- */
.bp-pfc__header {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
	max-inline-size: 920px;
}

.bp-pfc__eyebrow {
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: var(--bp-pfc-green);
	font-family: var(--bp-pfc-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1.3;
	white-space: nowrap;
}

.bp-pfc__eyebrow-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 18px;
	block-size: 18px;
	color: var(--bp-pfc-green);
	flex: 0 0 auto;
}

.bp-pfc__eyebrow-mark svg {
	inline-size: 100%;
	block-size: 100%;
	display: block;
	stroke: currentColor;
}

.bp-pfc__title {
	margin: 0;
	color: var(--bp-pfc-text);
	font-family: var(--bp-pfc-font-display);
	font-weight: 400;
	font-size: clamp(38px, 4.4vw, 56px);
	line-height: 1.1;
	letter-spacing: -0.005em;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.bp-pfc__title-line {
	display: block;
}

.bp-pfc__divider {
	display: block;
	inline-size: 60px;
	block-size: 2px;
	background-color: var(--bp-pfc-olive);
	margin: 6px auto;
}

.bp-pfc__description {
	margin: 0;
	color: var(--bp-pfc-text);
	font-family: var(--bp-pfc-font-body);
	font-size: 16px;
	line-height: 1.6;
	max-inline-size: 640px;
}

/* ---------------- CTA buttons ----------------
 * Two side-by-side buttons on desktop. Equal visual height
 * (48px = clears the 44px touch target). Primary is filled
 * deep green; secondary is white/cream with a deep-green
 * border + deep-green text + WhatsApp icon. */
.bp-pfc__ctas {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: var(--bp-pfc-buttons-gap, 16px);
	row-gap: var(--bp-pfc-buttons-gap, 16px);
	margin-block-start: 6px;
}

.bp-pfc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-block-size: 48px;
	padding-block: 12px;
	padding-inline: 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--bp-pfc-font-body);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	white-space: nowrap;
	line-height: 1.3;
}

.bp-pfc__btn:focus-visible {
	outline: 2px solid var(--bp-pfc-green);
	outline-offset: 2px;
}

.bp-pfc__btn--primary {
	background-color: #25D366;
	color: #FFFFFF;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

a.bp-pfc__btn--primary:hover,
a.bp-pfc__btn--primary:focus-visible {
	background-color: #1DA851;
	border-color: transparent;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(29, 168, 81, 0.45);
}

.bp-pfc__btn--whatsapp {
	background-color: #25D366;
	color: #FFFFFF;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

a.bp-pfc__btn--whatsapp:hover,
a.bp-pfc__btn--whatsapp:focus-visible {
	background-color: #1DA851;
	border-color: transparent;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(29, 168, 81, 0.45);
}

.bp-pfc__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	color: currentColor;
	flex: 0 0 auto;
}

.bp-pfc__btn-icon i,
.bp-pfc__btn-icon svg {
	font-size: 16px;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.bp-pfc__btn-label {
	display: inline-block;
}

/* ---------------- TABLET (≤ 1024px) ----------------
 * Tighten the section padding so the composition stays
 * balanced on small laptops and tablets. The decorative
 * background uses the same `cover` sizing — its anchor and
 * X / Y offsets are tuned from the Elementor sidebar. */
@media (max-width: 1024px) {
	.bp-pfc { padding: 0 20px; }
	.bp-pfc__box { padding: 72px 28px; }

	.bp-pfc__title { font-size: clamp(34px, 4.6vw, 48px); }
	.bp-pfc__description { font-size: 15.5px; max-inline-size: 560px; }
	.bp-pfc__btn { padding-inline: 22px; font-size: 12.5px; }
}

/* ---------------- MOBILE (≤ 768px) ----------------
 *   - page gutters shrink to 16px so the box remains
 *     clearly contained on phones.
 *   - the box's padding is tightened + radius reduced so the
 *     panel doesn't feel oversized on small screens.
 *   - the box's `overflow: hidden` already keeps the
 *     decorative background clipped to the rounded edges.
 *   - buttons go full-width and stack vertically.
 *   - title scales down to a comfortable mobile size.
 *   - description is full width with a smaller font.
 *
 * MOBILE WIDTH ARCHITECTURE: explicit `inline-size: 100% /
 * max-inline-size: 100% / min-inline-size: 0` on every key
 * element so the CTA card fills the available inner width
 * (≈ viewport − 2 × gutter) on every phone — not a squeezed
 * desktop column. */
@media (max-width: 768px) {
	.bp-pfc { padding: 0 16px; inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; }
	.bp-pfc__box {
		padding: 56px 20px 64px;
		border-radius: 16px;
		inline-size: 100%;
		max-inline-size: 100%;
		min-inline-size: 0;
	}

	.bp-pfc__inner { gap: 22px; inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; }

	.bp-pfc__decor {
		--bp-pfc-decor-y: -20px;
	}

	.bp-pfc__header { gap: 14px; max-inline-size: 100%; inline-size: 100%; min-inline-size: 0; }
	.bp-pfc__eyebrow {
		font-size: 11.5px;
		letter-spacing: 0.2em;
		gap: 10px;
	}
	.bp-pfc__eyebrow-mark { inline-size: 14px; block-size: 14px; }

	.bp-pfc__title {
		font-size: clamp(30px, 8.5vw, 38px);
		gap: 8px;
	}
	.bp-pfc__divider { inline-size: 48px; block-size: 2px; margin: 4px auto; }

	.bp-pfc__description {
		font-size: 14.5px;
		line-height: 1.55;
		max-inline-size: 100%;
	}

	.bp-pfc__ctas {
		flex-direction: column;
		align-items: stretch;
		inline-size: 100%;
		max-inline-size: 100%;
		min-inline-size: 0;
	}
	.bp-pfc__btn {
		inline-size: 100%;
		max-inline-size: 100%;
		min-inline-size: 0;
		min-block-size: 48px;
		padding-block: 13px;
		padding-inline: 20px;
		font-size: 12px;
		letter-spacing: 0.06em;
	}
}

/* ---------------- SMALL MOBILE (≤ 480px) ----------------
 * Compose a phone-native stack:
 *   - box radius is further reduced so the corners don't
 *     dominate the screen.
 *   - decorative background is pushed slightly up so the
 *     granules + olive branch stay in frame even on tall
 *     narrow phones.
 *   - heading scales tighter.
 *   - buttons keep a comfortable 48px touch target. */
@media (max-width: 480px) {
	.bp-pfc { padding: 0 14px; }
	.bp-pfc__box {
		padding: 48px 18px 56px;
		border-radius: 12px;
	}
	.bp-pfc__inner {
		inline-size: calc(100% - 0px) !important;
		max-inline-size: none !important;
		min-inline-size: 0 !important;
		margin-inline: auto !important;
		padding-inline: 0 !important;
		gap: 18px !important;
	}
	.bp-pfc__title,
	.bp-pfc__description,
	.bp-pfc__buttons,
	.bp-pfc__btn {
		inline-size: 100% !important;
		max-inline-size: none !important;
		min-inline-size: 0 !important;
		flex-basis: auto !important;
	}
	.bp-pfc__buttons {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 10px !important;
	}

	.bp-pfc__decor {
		--bp-pfc-decor-y: -40px;
	}

	.bp-pfc__title { font-size: clamp(26px, 8vw, 32px); }
	.bp-pfc__divider { inline-size: 40px; }

	.bp-pfc__description { font-size: 14px; }

	.bp-pfc__btn {
		font-size: 11px;
		padding-block: 12px;
		padding-inline: 16px;
		letter-spacing: 0.05em;
		gap: 10px;
	}
	.bp-pfc__btn-icon i,
	.bp-pfc__btn-icon svg { font-size: 15px; width: 15px; height: 15px; }
}

/* ---------------- Safe-area insets (notched devices) ----------------
 * Apply the notched-device safe area to the box's horizontal
 * padding, not the outer section, so the box never sits flush
 * against the screen edge. */
@supports (padding: max(0px)) {
	.bp-pfc__box {
		padding-inline-start: max(20px, env(safe-area-inset-left));
		padding-inline-end:   max(20px, env(safe-area-inset-right));
	}
}

/* ---------------- ARABIC / RTL ----------------
 * Display family falls back to the Arabic family; the rest of
 * the layout mirrors automatically through logical properties. */
[lang="ar"] .bp-pfc__title,
[dir="rtl"] .bp-pfc__title,
[lang="ar"] .bp-pfc__title-line,
[dir="rtl"] .bp-pfc__title-line {
	font-family: var(--bp-font-arabic, 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
	.bp-pfc [data-bp-reveal],
	.bp-pfc [data-bp-stagger] {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}
	.bp-pfc__btn { transition: none !important; }
}

/* ---------------- Print ---------------- */
@media print {
	.bp-pfc__decor { display: none !important; }
	.bp-pfc { padding: 0 16px; }
	.bp-pfc__box { padding: 24px 16px; }
}

/* ---------------- ID18 forced override ---------------- */
.elementor-18 .bp-pfc__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	min-block-size: 48px !important;
	padding: 12px 26px !important;
	border: 1px solid transparent !important;
	border-radius: 999px !important;
	font-family: var(--bp-fc-font) !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	color: #fff !important;
	box-shadow: none !important;
}

.elementor-18 .bp-pfc__btn--whatsapp {
	background: #25D366 !important;
}
.elementor-18 .bp-pfc__btn--whatsapp:hover {
	background: #1DA851 !important;
}

.elementor-18 .bp-pfc__btn--primary {
	background: #374F37 !important;
}

.elementor-18 .bp-pfc__btn-icon,
.elementor-18 .bp-pfc__btn-icon svg {
	color: inherit !important;
	fill: currentColor !important;
}
