/* BHM home — hero + catalog (PF-css). Enqueue: home/front/area. */

/* ==========================================================================
   Home hero (S1a)
   ========================================================================== */
.bhm-hero {
	position: relative;
	padding: var(--bhm-space-8) 0 var(--bhm-space-6);
	background: transparent;
	color: var(--bhm-navy);
}

/* P-H0a: local 1280 for hero/catalog — do not change global --bhm-container. */
.bhm-hero .bhm-container,
.bhm-catalog .bhm-container {
	width: min(1280px, calc(100% - var(--bhm-space-8)));
}

.bhm-hero__inner {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-6);
	align-items: stretch;
}

.bhm-hero__copy {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-5);
	min-width: 0;
}

.bhm-hero__title-block h1 {
	margin: 0 0 var(--bhm-space-4);
	font-size: var(--bhm-text-hero);
	line-height: var(--bhm-lh-tight);
	font-weight: var(--bhm-fw-extrabold);
	color: var(--bhm-navy);
	max-width: 18ch;
}

.bhm-hero__lead {
	margin: 0;
	font-size: var(--bhm-text-lead);
	line-height: var(--bhm-lh-body);
	color: var(--bhm-muted);
	max-width: 38rem;
}

.bhm-hero-geo {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
}

.bhm-hero-geo__hub {
	margin: 0.35rem 0 0;
	font-size: var(--bhm-text-caption, 0.8125rem);
	line-height: 1.35;
}

.bhm-hero-geo__hub-link {
	color: var(--bhm-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bhm-hero-geo__hub-link:hover,
.bhm-hero-geo__hub-link:focus-visible {
	color: var(--bhm-ink);
}

.bhm-hero-geo__trigger {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	color: var(--bhm-ink);
	font-family: var(--bhm-font);
	font-size: var(--bhm-text-lead);
	font-weight: var(--bhm-fw-bold);
	line-height: 1.2;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bhm-hero-geo__inner {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 3px;
	border-bottom: 1px solid color-mix(in srgb, var(--bhm-ink) 22%, transparent);
}

.bhm-hero-geo__trigger:hover,
.bhm-hero-geo__trigger:focus,
.bhm-hero-geo__trigger:active {
	background: transparent;
	color: var(--bhm-ink);
	border: 0;
	box-shadow: none;
}

.bhm-hero-geo__trigger:hover .bhm-hero-geo__inner,
.bhm-hero-geo.is-open .bhm-hero-geo__inner {
	border-bottom-color: var(--bhm-accent);
}

.bhm-hero-geo__trigger:focus-visible {
	outline: none;
	box-shadow: var(--bhm-focus-ring);
	border-radius: var(--bhm-radius-sm);
}

.bhm-hero-geo__pin,
.bhm-hero-geo .bhm-geo-chevron {
	display: block;
	flex-shrink: 0;
}

.bhm-hero-geo .bhm-geo-chevron {
	width: 12px;
	height: 7px;
	color: var(--bhm-accent);
}

.bhm-hero-geo.is-open .bhm-geo-chevron {
	transform: scaleY(-1);
}

.bhm-hero-geo__menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	z-index: 5;
	margin: 0;
	padding: var(--bhm-space-2);
	list-style: none;
	min-width: 14rem;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	background: var(--bhm-paper);
	box-shadow: var(--bhm-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	pointer-events: none;
	transition:
		opacity var(--bhm-duration) var(--bhm-ease),
		transform var(--bhm-duration) var(--bhm-ease),
		visibility var(--bhm-duration) var(--bhm-ease);
}

.bhm-hero-geo.is-open .bhm-hero-geo__menu,
.bhm-hero-geo.is-open .bhm-hero-geo__menu[hidden] {
	display: block !important;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.bhm-hero-geo__option {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 0;
	border-radius: var(--bhm-radius-sm);
	background: transparent;
	color: var(--bhm-navy);
	font-family: var(--bhm-font);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	text-align: left;
	cursor: pointer;
}

.bhm-hero-geo__option:hover,
.bhm-hero-geo__option.is-active {
	background: var(--bhm-accent-soft);
	color: var(--bhm-navy);
}

.bhm-hero-bullets {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-2);
}

.bhm-hero-bullets li {
	display: flex;
	align-items: center;
	gap: var(--bhm-space-2);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-regular);
	line-height: 1.55;
	color: var(--bhm-navy);
}

.bhm-hero-bullets img {
	flex-shrink: 0;
}

.bhm-hero__cta {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--bhm-space-4);
	width: 100%;
}

.bhm-hero__book {
	width: 100%;
	justify-content: center;
}

.bhm-hero__promo {
	justify-content: center;
	width: 100%;
	padding: 0;
	background: transparent;
	border-radius: 0;
	color: var(--bhm-navy);
	font-size: var(--bhm-text-small);
	text-align: center;
}

.bhm-hero-ba {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0;
	overflow: hidden;
	border-radius: var(--bhm-radius);
	aspect-ratio: 616 / 440;
	background: var(--bhm-surface-2);
	box-shadow: var(--bhm-shadow);
}

.bhm-hero-ba__panel {
	position: relative;
	min-width: 0;
	overflow: hidden;
}

.bhm-hero-ba__panel picture {
	display: block;
	width: 100%;
	height: 100%;
}

.bhm-hero-ba__panel img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bhm-hero-ba__badge {
	position: absolute;
	top: 8px;
	z-index: 2;
	padding: 4px 8px;
	border-radius: var(--bhm-radius-sm);
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-bold);
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bhm-paper);
}

.bhm-hero-ba__badge--before {
	left: 8px;
	background: var(--bhm-glass-bg-dark);
	border: 1px solid var(--bhm-glass-border-dark);
}

.bhm-hero-ba__badge--after {
	right: 8px;
	background: var(--bhm-glass-bg-accent);
	border: 0.5px solid var(--bhm-accent);
}

.bhm-hero-ba__divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	transform: translateX(-50%);
	background: var(--bhm-paper);
	box-shadow: 0 0 0 1px rgba(2, 16, 86, 0.08);
	pointer-events: none;
	z-index: 1;
}

@media (min-width: 768px) {
	.bhm-hero {
		padding: var(--bhm-space-16) 0; /* ~80px — P-H0c */
		--bhm-text-hero: clamp(2rem, 3.2vw, 2.75rem);
	}

	.bhm-hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto auto;
		gap: clamp(1.5rem, 3vw, 3rem);
		column-gap: clamp(1.5rem, 3vw, 3rem);
		align-items: start;
	}

	.bhm-hero__copy {
		grid-column: 1;
		grid-row: 1;
	}

	.bhm-hero__cta {
		grid-column: 1;
		grid-row: 2;
		align-items: flex-start;
		width: auto;
	}

	.bhm-hero__book {
		width: auto;
		min-width: 286px; /* P-H0c */
	}

	.bhm-hero__promo {
		justify-content: flex-start;
		width: auto;
		text-align: left;
	}

	.bhm-hero-ba {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
		width: 100%;
		max-width: 616px;
		aspect-ratio: 616 / 440;
	}

	.bhm-hero-geo__trigger {
		font-size: 1.25rem; /* ~20 — P-H0c */
	}
}

.bhm-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.bhm-geo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}

.bhm-geo-chip {
	min-height: 40px;
	padding: 0.45rem 0.85rem;
	border-radius: var(--bhm-radius-sm);
	border: 1px solid var(--bhm-border);
	background: var(--bhm-surface);
	color: var(--bhm-navy);
	font-weight: var(--bhm-fw-semibold);
	font-size: var(--bhm-text-small);
	cursor: pointer;
}

.bhm-geo-chip.is-active,
.bhm-geo-chip:hover {
	background: var(--bhm-accent);
	color: var(--bhm-paper);
	border-color: var(--bhm-accent);
}

.bhm-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.25rem;
}

.bhm-trust-pill {
	padding: 0.4rem 0.75rem;
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-surface-2);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
}

/* ==========================================================================
   Home catalog (S1a)
   ========================================================================== */
.bhm-catalog {
	padding-block: var(--bhm-space-8);
}

.bhm-catalog__header {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-5);
	margin-bottom: var(--bhm-space-6);
	overflow: visible;
}

.bhm-catalog__title-block {
	margin-bottom: 0;
}

.bhm-catalog__title-block .bhm-title {
	font-size: var(--bhm-text-h2);
}

.bhm-catalog__chips {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.bhm-catalog__chips::-webkit-scrollbar {
	display: none;
}

.bhm-catalog__chips .bhm-chip {
	flex: 0 0 auto;
	border-radius: var(--bhm-radius-sm);
	min-height: 2.25rem;
	padding: 0.5rem 1rem;
	font-size: var(--bhm-text-btn);
	white-space: nowrap;
}

.bhm-catalog__chips .bhm-chip.is-active,
.bhm-catalog__chips .bhm-chip[aria-selected="true"],
.bhm-catalog__chips .bhm-chip[aria-pressed="true"] {
	background: var(--bhm-accent);
	border-color: var(--bhm-accent);
	color: var(--bhm-paper);
}

.bhm-catalog__panels,
.bhm-catalog__panel:not([hidden]) {
	overflow: visible;
}

.bhm-catalog__panel[hidden] {
	display: none;
}

.bhm-catalog__filters {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-4);
	margin-bottom: var(--bhm-space-6);
}

.bhm-catalog__size-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bhm-space-2);
}

.bhm-catalog__size-chip.is-active,
.bhm-catalog__size-chip[aria-pressed="true"] {
	background: var(--bhm-navy);
	border-color: var(--bhm-navy);
	color: var(--bhm-paper);
}

.bhm-catalog__job-grid {
	align-items: stretch;
}

.bhm-catalog__job-grid > .bhm-job-card {
	--bhm-job-card-w: 100%;
	width: 100%;
	max-width: none;
	flex: none;
	align-self: stretch;
}

.bhm-catalog__job-grid > .bhm-job-card:hover,
.bhm-catalog__job-grid > .bhm-job-card:focus-within,
.bhm-catalog__job-grid > .bhm-job-card.is-open {
	--bhm-job-card-w: 100%;
}

/* Filter Home catalog: always CSS grid (never H-scroll dump). */
[data-bhm-catalog-layout="filter"] .bhm-wc-grid.bhm-grid--3,
[data-bhm-catalog-layout="filter"] .bhm-wc-grid,
[data-bhm-catalog-layout="filter"] .bhm-catalog__grid,
[data-bhm-catalog-layout="filter"] .bhm-catalog__job-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bhm-space-4);
	overflow: visible;
	scroll-snap-type: none;
	flex-direction: unset;
	flex-wrap: unset;
	padding-bottom: 0;
}

[data-bhm-catalog-layout="filter"] .bhm-wc-grid > *,
[data-bhm-catalog-layout="filter"] .bhm-catalog__grid > *,
[data-bhm-catalog-layout="filter"] .bhm-catalog__job-grid > * {
	flex: none;
	width: 100%;
	max-width: none;
	scroll-snap-align: unset;
}

@media (min-width: 768px) {
	[data-bhm-catalog-layout="filter"] .bhm-wc-grid.bhm-grid--3,
	[data-bhm-catalog-layout="filter"] .bhm-catalog__grid,
	[data-bhm-catalog-layout="filter"] .bhm-catalog__job-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--bhm-space-5);
	}
}

@media (min-width: 1100px) {
	[data-bhm-catalog-layout="filter"] .bhm-wc-grid.bhm-grid--3,
	[data-bhm-catalog-layout="filter"] .bhm-catalog__grid,
	[data-bhm-catalog-layout="filter"] .bhm-catalog__job-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--bhm-space-6);
	}
}

.bhm-catalog__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhm-space-4);
	padding: var(--bhm-space-6);
	border: 1px dashed var(--bhm-border);
	border-radius: var(--bhm-radius-lg);
	background: var(--bhm-surface);
}

.bhm-catalog__empty .bhm-lead {
	margin: 0;
	max-width: 36rem;
}

.bhm-catalog__empty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bhm-space-3);
}

/* Alias scan-more root hook — layout from bhm-scan-more.css */
.bhm-catalog .bhm-more.bhm-catalog__more {
	margin-top: var(--bhm-space-6);
}

.bhm-catalog__exit {
	margin: var(--bhm-space-6) 0 0;
	text-align: center;
}

.bhm-catalog__exit-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--bhm-navy);
	font-size: var(--bhm-text-body);
	font-weight: var(--bhm-fw-semibold);
	text-decoration: none;
}

.bhm-catalog__exit-link:hover,
.bhm-catalog__exit-link:focus-visible,
.bhm-catalog__exit-link.is-mid-hover {
	color: var(--bhm-accent);
	text-decoration: underline;
}

.bhm-wc-grid.bhm-grid--3,
.bhm-wc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--bhm-space-6);
	align-items: stretch;
}

/* Home catalog mobile: filter layout stays grid (PLP twin). Legacy non-filter only. */
@media (max-width: 767px) {
	.bhm-catalog:not([data-bhm-catalog-layout="filter"]) .bhm-wc-grid.bhm-grid--3,
	.bhm-catalog:not([data-bhm-catalog-layout="filter"]) .bhm-wc-grid,
	[data-bhm-catalog]:not([data-bhm-catalog-layout="filter"]) .bhm-wc-grid.bhm-grid--3,
	[data-bhm-catalog]:not([data-bhm-catalog-layout="filter"]) .bhm-wc-grid {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: var(--bhm-space-4);
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		grid-template-columns: none;
		padding-bottom: var(--bhm-space-2);
	}

	.bhm-catalog:not([data-bhm-catalog-layout="filter"]) .bhm-wc-grid > *,
	[data-bhm-catalog]:not([data-bhm-catalog-layout="filter"]) .bhm-wc-grid > * {
		flex: 0 0 min(360px, 85vw);
		width: min(360px, 85vw);
		max-width: 392px;
		scroll-snap-align: start;
	}

	.bhm-catalog:not([data-bhm-catalog-layout="filter"]) .bhm-wc-grid > .bhm-product-card,
	[data-bhm-catalog]:not([data-bhm-catalog-layout="filter"]) .bhm-wc-grid > .bhm-product-card {
		align-self: stretch;
	}
}

@media (min-width: 768px) {
	.bhm-wc-grid.bhm-grid--3,
	.bhm-wc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.bhm-wc-grid.bhm-grid--3,
	.bhm-wc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bhm-catalog .bhm-product-card__media {
	aspect-ratio: 410 / 200;
}

@media (min-width: 768px) {
	.bhm-catalog {
		padding-block: var(--bhm-space-16);
	}

	.bhm-catalog__header {
		gap: 1.875rem;
	}
}

.bhm-packages {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 1fr);
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	scroll-snap-type: x mandatory;
}

.bhm-package {
	scroll-snap-align: start;
	padding: 1.25rem;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	background: var(--bhm-paper);
	min-height: 100%;
}

.bhm-package strong {
	display: block;
	color: var(--bhm-navy);
	font-size: var(--bhm-text-lead);
	margin-bottom: 0.35rem;
}

.bhm-quote-form,
.bhm-calculator {
	background: var(--bhm-paper);
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	padding: 1.25rem;
	box-shadow: var(--bhm-shadow);
}

.bhm-quote-form label,
.bhm-calculator label {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 0.9rem;
	font-weight: var(--bhm-fw-semibold);
	font-size: var(--bhm-text-small);
}

.bhm-quote-form input,
.bhm-quote-form select,
.bhm-quote-form textarea,
.bhm-calculator select {
	width: 100%;
	min-height: var(--bhm-touch);
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-paper);
	font: inherit;
}

.bhm-quote-form textarea {
	line-height: var(--bhm-lh-field);
}

.bhm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

@media (max-width: 1099px) {
	.bhm-parallax {
		transform: none;
		will-change: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhm-hero-geo__menu,
	.bhm-hero-geo .bhm-geo-chevron {
		transition: none;
	}
}

