/*
 * Front-end styles for bsm/hero.
 *
 * Source: theme-spec.md §4 (hero block)
 *         + files/10_Projects/bsm_company/05_Brand/design/04-library.html
 *           (variant E — .hero-fullwidth, v12: H1 56px + art + stats overlay)
 *
 * No top accent rule (per Oleg 19.09.2026).
 * Stats background is semi-transparent white (per Oleg 19.09.2026) —
 *   deviated from mockup's solid var(--surface) intentionally.
 * Secondary CTA = Navy outline, hover = filled Navy with white text
 *   (per Oleg 19.09.2026 + mockup .btn-outlined).
 */

/* ----- Variant E — full-width hero with art + stats overlay ----- */

.bsm-hero.bsm-hero--fullwidth {
	background-color: var(--surface);
	padding: 72px 56px 72px;
	position: relative;
	overflow: hidden;
}

/* Accent rule (3px green). One pseudo-element, oriented via modifier class. */
.bsm-hero--fullwidth.bsm-hero--accent-top::before,
.bsm-hero--fullwidth.bsm-hero--accent-left::before {
	content: "";
	position: absolute;
	background-color: var(--accent);
	z-index: 1;
}

.bsm-hero--fullwidth.bsm-hero--accent-top::before {
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
}

.bsm-hero--fullwidth.bsm-hero--accent-left::before {
	top: 0;
	left: 0;
	bottom: 0;
	width: 3px;
}

.bsm-hero--fullwidth .bsm-hero__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 56px;
	align-items: center;
}

.bsm-hero--fullwidth .bsm-hero__content {
	min-width: 0;
}

.bsm-hero__eyebrow {
	display: inline-block;
	padding: 6px 14px;
	background-color: var(--accent-soft);
	color: var(--accent-strong);
	font-size: 12px;
	font-weight: var(--font-weight-bold);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-eyebrow);
	margin-bottom: 24px;
}

.bsm-hero--fullwidth .bsm-hero__heading {
	margin: 0 0 22px;
	font-size: 56px;
	line-height: 1.04;
	font-weight: var(--font-weight-bold);
	color: var(--navy);
	letter-spacing: -0.028em;
	max-width: 720px;
}

.bsm-hero__accent {
	color: var(--accent);
}

.bsm-hero--fullwidth .bsm-hero__lead {
	margin: 0 0 36px;
	font-size: 18px;
	line-height: var(--line-height-base);
	color: var(--text-secondary);
	max-width: 580px;
}

.bsm-hero__ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.bsm-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 30px;
	background-color: var(--accent);
	color: #fff;
	font-size: 15px;
	font-weight: var(--font-weight-semibold);
	line-height: 1.2;
	text-decoration: none;
	border: 1.5px solid var(--accent);
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bsm-hero__cta:hover,
.bsm-hero__cta:focus-visible {
	background-color: var(--accent-strong);
	border-color: var(--accent-strong);
	color: #fff;
	text-decoration: none;
}

.bsm-hero__cta--secondary {
	background-color: transparent;
	color: var(--navy);
	border-color: var(--navy);
}

.bsm-hero__cta--secondary:hover,
.bsm-hero__cta--secondary:focus-visible {
	background-color: var(--navy);
	border-color: var(--navy);
	color: #fff;
	text-decoration: none;
}

/* ----- Art column + stats overlay ----- */

.bsm-hero--fullwidth .bsm-hero__art {
	position: relative;
	aspect-ratio: 4 / 3;
	border: var(--hairline);
	background-color: var(--bg-soft);
	overflow: hidden;
}

.bsm-hero--fullwidth .bsm-hero__art-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bsm-hero--fullwidth .bsm-hero__stats {
	position: absolute;
	left: 24px;
	bottom: 24px;
	display: flex;
	padding: 22px 36px;
	border: var(--hairline);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	/* background-color is set inline by render.php based on statsBgOpacity (default 0.92) */
}

.bsm-hero--fullwidth .bsm-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 28px;
}

.bsm-hero--fullwidth .bsm-hero__stat + .bsm-hero__stat {
	border-left: 1px solid var(--line);
}

.bsm-hero--fullwidth .bsm-hero__stat-num {
	font-size: 36px;
	font-weight: var(--font-weight-bold);
	color: var(--navy);
	letter-spacing: -0.02em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.bsm-hero--fullwidth .bsm-hero__stat-lbl {
	margin-top: 8px;
	font-size: 11px;
	color: var(--gray);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ----- Editor-only placeholder (visible when block is empty) ----- */

.bsm-hero__placeholder {
	padding: 48px 24px;
	border: 1px dashed var(--line);
	text-align: center;
	color: var(--text-secondary);
}

.bsm-hero__placeholder .bsm-hero__eyebrow {
	display: inline-block;
	margin-bottom: 16px;
}

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

@media (max-width: 900px) {
	.bsm-hero.bsm-hero--fullwidth {
		padding: 48px 24px 56px;
	}

	.bsm-hero--fullwidth .bsm-hero__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.bsm-hero--fullwidth .bsm-hero__heading {
		font-size: 40px;
	}

	.bsm-hero--fullwidth .bsm-hero__lead {
		font-size: 16px;
	}

	.bsm-hero--fullwidth .bsm-hero__stats {
		padding: 18px 20px;
		left: 16px;
		bottom: 16px;
	}

	.bsm-hero--fullwidth .bsm-hero__stat {
		padding: 0 12px;
	}

	.bsm-hero--fullwidth .bsm-hero__stat-num {
		font-size: 28px;
	}
}
