/* Native hero patterns. BEM presentation only; child CSS loads after this file.
 * Fallbacks let this stylesheet work inside the core content editor too. */
:where(.hero) {
	padding: clamp(2.5rem, 6vw, 5.25rem) clamp(1.5rem, 5vw, 4rem);
	color: var(--htmxpress-color-text, #0b1c30);
	background-color: var(--htmxpress-color-background, #fff);
}

.hero :where(.hero__eyebrow) {
	margin-block: 0 1.5rem;
	font-family: var(--htmxpress-font-navigation, system-ui, sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--htmxpress-color-highlight, #006a61);
}

.hero :where(.hero__title) {
	max-inline-size: 56rem;
	margin-block: 0 1.5rem;
	font-size: var(--htmxpress-hero-title-size, clamp(2.25rem, 5.5vw, 4.25rem));
	font-weight: 500;
	line-height: 1.09;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.hero :where(.hero__description) {
	max-inline-size: 38rem;
	margin-block: 0;
	font-size: 1.125em;
	line-height: 1.7;
}

.hero :where(.hero__title):not(:where([class*="-font-family"], [class*="-font-family"] *, [style*="font-family" i], [style*="font-family" i] *)) {
	font-family: var(--htmxpress-font-heading, system-ui, sans-serif);
}

.hero :where(.hero__description):not(:where(.has-text-color, .has-text-color *, [style*="color" i], [style*="color" i] *)) {
	color: var(--htmxpress-color-muted, #5d6677);
}

.hero :where(.hero__actions) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-block-start: 2rem;
}

.hero :where(.wp-block-button__link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: var(--htmxpress-control-size, 44px);
	padding: 0.75rem 1.375rem;
	font-family: var(--htmxpress-font-navigation, system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--htmxpress-color-on-accent, #fff);
	background-color: var(--htmxpress-color-accent, #1e3a8a);
	border: 1px solid transparent;
	border-radius: var(--htmxpress-radius-sm, 3px);
	text-decoration: none;
}

.hero :where(.is-style-outline .wp-block-button__link) {
	color: var(--htmxpress-color-text, #0b1c30);
	background-color: transparent;
	border-color: var(--htmxpress-color-border-strong, #cfd6e3);
}

.hero :where(.wp-block-button__link:hover) {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.hero :where(.hero__columns) {
	align-items: center;
	gap: clamp(2rem, 4vw, 3.5rem);
	margin-block: 0;
}

.hero :where(.hero__columns > .wp-block-column) {
	min-inline-size: 0;
}

.hero :where(.hero__media) {
	margin: 0;
}

.hero :where(.hero__media img) {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

.hero--split :where(.hero__title) {
	font-size: var(--htmxpress-hero-title-size, clamp(2.25rem, 4.5vw, 3.375rem));
}

.hero--centered :where(.hero__eyebrow, .hero__title, .hero__description) {
	margin-inline: auto;
	text-align: center;
}

.hero--centered :where(.hero__actions) {
	justify-content: center;
}

@media (max-width: 48.8125rem) {
	.hero :where(.hero__columns) {
		flex-direction: column;
	}
	.hero :where(.hero__columns > .wp-block-column) {
		inline-size: 100%;
	}
}
