/*
 * Hero pattern — full-bleed room photo, left-fading dark scrim, headline + two CTAs.
 * Design: design.md → "hero". Class prefix: bsm- (system.md §6).
 */

.bsm-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 560px;
	overflow: hidden;
	/* Fallback tone while the photo loads / if it is missing. */
	background-color: var(--wp--preset--color--brookstreet-dark-charcoal, #272727);
}

/* Background photo — fills the section, cropped via object-fit */
.bsm-hero__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}

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

/* Left-to-right dark scrim (design.md → hero) */
.bsm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(39, 39, 39, 0.72) 0%, rgba(39, 39, 39, 0.35) 55%, rgba(39, 39, 39, 0) 100%);
}

/* Text column — vertically centered, left-aligned, 720px cap incl. 60px gutters */
.bsm-hero__content {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	padding: 0 60px;
	color: var(--wp--preset--color--white, #fff);
}

.bsm-hero__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif) !important;
	font-size: 14px !important;
	letter-spacing: 2px !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--white, #fff) !important;
	opacity: 0.85;
}

.bsm-hero__title {
	margin: 16px 0 0 !important;
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif) !important;
	font-weight: 400 !important;
	font-size: 52px !important;
	line-height: 1.15 !important;
	color: var(--wp--preset--color--white, #fff) !important;
}

.bsm-hero__intro {
	margin: 20px 0 0 !important;
	max-width: 560px;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif) !important;
	font-size: 18px !important;
	line-height: 1.6 !important;
	color: var(--wp--preset--color--white, #fff) !important;
}

.bsm-hero__actions {
	margin-top: 32px;
	gap: 16px;
}

/* Both CTAs — Lg buttons: 180×44, square, Jost 17px */
.bsm-hero__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	min-height: 44px;
	padding: 0 25px !important;
	border-radius: 0 !important;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Primary "Shop the Sale" — ButtonLgRedWhite: solid red / white; hover inverts */
.bsm-hero__cta--primary .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--brookstreet-red, #a43143) !important;
	background-color: var(--wp--preset--color--brookstreet-red, #a43143) !important;
	color: var(--wp--preset--color--white, #fff) !important;
}

.bsm-hero__cta--primary .wp-block-button__link:hover,
.bsm-hero__cta--primary .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--white, #fff) !important;
	color: var(--wp--preset--color--brookstreet-red, #a43143) !important;
}

/* Secondary "View Details" — ButtonLgOutlineWhiteReverse: white outline / white label;
   hover fills white with a charcoal label */
.bsm-hero__cta--secondary .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--white, #fff) !important;
	background-color: transparent !important;
	color: var(--wp--preset--color--white, #fff) !important;
}

.bsm-hero__cta--secondary .wp-block-button__link:hover,
.bsm-hero__cta--secondary .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--white, #fff) !important;
	color: var(--wp--preset--color--brookstreet-charcoal, #2e2e2e) !important;
}

/* Mobile — design has no mobile artboard (design.md); sensible desktop-first defaults. */
@media (max-width: 767px) {
	.bsm-hero {
		min-height: 460px;
	}

	.bsm-hero__content {
		padding: 0 20px;
	}

	.bsm-hero__title {
		font-size: 36px !important;
	}

	.bsm-hero__actions {
		flex-wrap: wrap;
	}

	.bsm-hero__cta {
		width: 100%;
	}

	.bsm-hero__cta .wp-block-button__link {
		width: 100%;
		min-width: 0;
	}
}
