/* ===========================================================
 * BP Product Hero — typography/spacing mirrored on homepage
 * hero (bp-hero.css). Tokens reused:
 *   --bp-font-display  : 'DM Serif Display', Georgia, serif
 *   --bp-font-body     : 'Manrope', system-ui, sans-serif
 *   --bp-green         : forest dark (primary)
 *   --bp-olive         : gold/olive accent (separator)
 *   --bp-cream         : readability veil
 * Background image, height, header, and ::after veil untouched.
 * =========================================================== */

.bp-product-hero {
	--bp-ph-fg:        #1F2A1F;
	--bp-ph-muted:     #4A5A4A;
	--bp-ph-cream:     #FAF6EC;
	--bp-ph-olive:     #B8B25A;
	--bp-ph-green:     #2A3F2A;
	--bp-ph-inner-max: 1320px;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--bp-ph-fg);
	background-color: var(--bp-ph-cream);
	inline-size: 100%;
	min-block-size: clamp( 640px, 92svh, 880px );
	font-family: var(--bp-font-body, 'Manrope', system-ui, sans-serif);
}

/* Background painted inline via style="background-image:url(...)..." */

/* ---- Scene layer (kept for layout compatibility) ---- */
.bp-product-hero__scene {
	position: absolute;
	inset: 0;
	z-index: 0;
}

/* ---- Cream readability overlay (kept as-is) ---- */
.bp-product-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(
			ellipse at 12% 62%,
			rgba( 247, 244, 236, 0.96 ) 0%,
			rgba( 247, 244, 236, 0.90 ) 20%,
			rgba( 247, 244, 236, 0.70 ) 34%,
			rgba( 247, 244, 236, 0.38 ) 46%,
			rgba( 247, 244, 236, 0.12 ) 58%,
			rgba( 247, 244, 236, 0.00 ) 68%
		),
		linear-gradient(
			90deg,
			rgba( 247, 244, 236, 0.96 ) 0%,
			rgba( 247, 244, 236, 0.92 ) 18%,
			rgba( 247, 244, 236, 0.72 ) 30%,
			rgba( 247, 244, 236, 0.40 ) 40%,
			rgba( 247, 244, 236, 0.14 ) 50%,
			rgba( 247, 244, 236, 0.00 ) 60%
		);
}

/* ---- Content layer ---- */
.bp-product-hero__container {
	position: relative;
	z-index: 2;
	max-inline-size: var(--bp-ph-inner-max);
	margin-inline: auto;
	padding-inline: clamp( 28px, 5vw, 72px );
	padding-block: 50px 50px;
	inline-size: 100%;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
}

.bp-product-hero__content {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-inline-size: 660px;
	inline-size: 100%;
}

/* ---- Eyebrow (subtle site eyebrow, like homepage) ---- */
.bp-product-hero__eyebrow {
	display: inline-block;
	font-family: var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bp-ph-green);
	margin: 0 0 16px;
	padding: 0;
	opacity: 0.85;
}

/* Product-hero sits on a dark/image-backed panel — force the
 * eyebrow + divider to white so they read against the dark
 * surface. `!important` overrides the global eyebrow unify
 * rule that pins the colour to #B8B25A. */
.bp-product-hero__eyebrow { color: #ffffff !important; }
.bp-product-hero__divider-line,
.bp-product-hero__divider-diamond { background-color: #ffffff !important; }

/* ---- H1 (DM Serif Display, same logic as homepage) ---- */
.bp-product-hero__title {
	margin: 0 0 26px;
	font-family: var(--bp-font-display, 'DM Serif Display', Georgia, serif);
	font-weight: 400;
	color: var(--bp-ph-fg);
	text-transform: uppercase;
	line-height: 0.98;
	letter-spacing: 0;
	font-size: clamp( 60px, 4.25vw, 76px );
	display: block;
}
.bp-product-hero__title-line {
	display: block;
	white-space: nowrap;
}

/* ---- Gold accent divider (line + diamond + line, site-wide pattern) ---- */
.bp-product-hero__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
}
.bp-product-hero__divider-line {
	display: block;
	inline-size: 40px;
	block-size: 1px;
	background-color: var(--bp-ph-olive);
	flex: 0 0 auto;
}
.bp-product-hero__divider-diamond {
	display: block;
	inline-size: 6px;
	block-size: 6px;
	background-color: var(--bp-ph-olive);
	transform: rotate(45deg);
	flex: 0 0 auto;
}

/* ---- Supporting headline (Manrope, sans-serif, like homepage positioning) ---- */
.bp-product-hero__positioning {
	margin: 0 0 20px;
	font-family: var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	font-weight: 600;
	color: var(--bp-ph-fg);
	line-height: 1.2;
	letter-spacing: -0.005em;
	font-size: clamp( 20px, 1.55vw, 26px );
	max-inline-size: 100%;
}

/* ---- Description (homepage paragraph scale) ---- */
.bp-product-hero__description {
	margin: 0 0 26px;
	font-family: var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	font-size: 15px;
	line-height: 1.6;
	color: var(--bp-ph-fg);
	max-inline-size: 560px;
	opacity: 0.82;
}

/* ---- Metadata row (small line icons + vertical divider) ---- */
.bp-product-hero__meta {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 14px;
	font-family: var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-ph-green);
	letter-spacing: 0;
}

.bp-product-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	background: none;
}

.bp-product-hero__meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bp-ph-green);
	line-height: 1;
}
.bp-product-hero__meta-icon i,
.bp-product-hero__meta-icon svg {
	font-size: 18px;
	inline-size: 18px;
	block-size: 18px;
	stroke-width: 1.4;
	fill: currentColor;
}

.bp-product-hero__meta-divider {
	inline-size: 1px;
	block-size: 24px;
	background: rgba( 42, 63, 42, 0.30 );
	margin: 0 14px;
	list-style: none;
}

/* ---- CTAs (homepage rule, copied) ---- */
.bp-product-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-block-start: 6px;
}
.bp-product-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-block-size: 50px;
	padding: 14px 24px;
	border-radius: 10px;
	font-family: var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
	white-space: nowrap;
	line-height: 1.1;
}
.bp-product-hero__cta-label { display: inline-block; }
.bp-product-hero__cta-arrow {
	display: inline-flex;
	inline-size: 18px;
	block-size: 18px;
	align-items: center;
	justify-content: center;
}
.bp-product-hero__cta-arrow svg { inline-size: 16px; block-size: 16px; }

.bp-product-hero__cta--primary {
	background: var(--bp-ph-green);
	color: #FBF6EC;
	border-color: var(--bp-ph-green);
}
.bp-product-hero__cta--primary:hover,
.bp-product-hero__cta--primary:focus-visible {
	transform: translateY(-2px);
	background: #1F2F1F;
	box-shadow: 0 10px 24px rgba( 31, 42, 31, 0.30 );
}
.bp-product-hero__cta--secondary {
	background: #FFFFFF;
	color: var(--bp-ph-green);
	border-color: #FFFFFF;
	border-width: 0;
}
.bp-product-hero__cta--secondary:hover,
.bp-product-hero__cta--secondary:focus-visible {
	transform: translateY(-2px);
	background: #FFFFFF;
	box-shadow: 0 6px 16px rgba( 31, 42, 31, 0.12 );
}
.bp-product-hero__cta:focus-visible {
	outline: 2px solid var(--bp-ph-olive);
	outline-offset: 3px;
}

/* ---- Responsive (homepage breakpoints) ---- */
@media ( min-width: 769px ) and ( max-width: 1024px ) {
	.bp-product-hero__title { font-size: clamp( 40px, 5vw, 60px ); max-inline-size: 100%; }
	.bp-product-hero__content { gap: 22px; }
}
@media ( max-width: 768px ) {
	.bp-product-hero { min-block-size: auto; }
	.bp-product-hero__container {
		display: block;
		padding-block: 48px 28px;
		padding-inline: 22px;
		min-block-size: auto;
	}
	.bp-product-hero__content { max-inline-size: 100%; gap: 22px; }
	.bp-product-hero__title { font-size: clamp( 38px, 9vw, 52px ); max-inline-size: 100%; }
	.bp-product-hero__positioning { font-size: 18px; max-inline-size: 100%; }
	.bp-product-hero__description { font-size: 14px; max-inline-size: 100%; }
	.bp-product-hero__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
	.bp-product-hero__ctas .bp-product-hero__cta { inline-size: 100%; max-inline-size: 360px; }

	.bp-product-hero::after {
		background:
			linear-gradient(
				180deg,
				rgba( 250, 246, 236, 0.96 ) 0%,
				rgba( 250, 246, 236, 0.80 ) 38%,
				rgba( 250, 246, 236, 0.18 ) 72%,
				rgba( 250, 246, 236, 0.00 ) 100%
			);
	}
}
@media ( max-width: 480px ) {
	.bp-product-hero__title { font-size: clamp( 34px, 9vw, 42px ); }
	.bp-product-hero__container { padding-inline: 18px; }
}
@media ( max-width: 390px ) {
	.bp-product-hero__title { font-size: 30px; }
	.bp-product-hero__container { padding-inline: 16px; }
}
@media ( max-width: 360px ) {
	.bp-product-hero__title { font-size: 28px; }
	.bp-product-hero__cta { font-size: 13px; padding-block: 12px; padding-inline: 16px; }
}

/* ---- Arabic font swap (homepage rule) ---- */
[lang="ar"] .bp-product-hero__title,
[dir="rtl"] .bp-product-hero__title {
	font-family: var(--bp-font-arabic);
	font-weight: 700;
	text-transform: none;
	line-height: 1.18;
	letter-spacing: 0;
}
[lang="ar"] .bp-product-hero__positioning,
[dir="rtl"] .bp-product-hero__positioning {
	font-family: var(--bp-font-arabic);
	font-weight: 700;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.bp-product-hero__cta { transition: none; }
}

/* ---- RTL veil mirror ---- */
[dir="rtl"] .bp-product-hero::after {
	background:
		radial-gradient(
			ellipse at 88% 62%,
			rgba( 247, 244, 236, 0.96 ) 0%,
			rgba( 247, 244, 236, 0.90 ) 20%,
			rgba( 247, 244, 236, 0.70 ) 34%,
			rgba( 247, 244, 236, 0.38 ) 46%,
			rgba( 247, 244, 236, 0.12 ) 58%,
			rgba( 247, 244, 236, 0.00 ) 68%
		),
		linear-gradient(
			90deg,
			rgba( 247, 244, 236, 0.00 ) 40%,
			rgba( 247, 244, 236, 0.14 ) 50%,
			rgba( 247, 244, 236, 0.40 ) 60%,
			rgba( 247, 244, 236, 0.72 ) 70%,
			rgba( 247, 244, 236, 0.92 ) 82%,
			rgba( 247, 244, 236, 0.96 ) 100%
		);
}

/* ---- Admin bar ---- */
.admin-bar .bp-product-hero { min-block-size: calc( clamp( 640px, 92svh, 880px ) - 32px ); }
