/* aieo/taxonomy-archive-hero — generic per-term archive hero.
 *
 * Variants emitted as BEM modifiers on the wrapper:
 *   .aieo-tax-hero--product_brand  → delegates to brand-archive-hero (own CSS).
 *   .aieo-tax-hero--product_cat    → delegates to category-hero (own CSS).
 *   .aieo-tax-hero--pa_need        → uses these rules.
 *   .aieo-tax-hero--product_tag    → uses these rules.
 *
 * The brand + category branches early-return inside render.php — they
 * never reach this CSS because their own render emits a different wrapper
 * class. So these rules only style need + tag (and any new taxonomy a
 * filter plugs in).
 */

.aieo-tax-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 var(--wp--preset--spacing--5, 24px);
	padding: 0;
	background: var(--wp--preset--color--neutral-50, #f9f9f9);
	border-radius: 8px;
}

.aieo-tax-hero.has-hero-image {
	min-height: 220px;
	background: transparent;
}

.aieo-tax-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.aieo-tax-hero__bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.aieo-tax-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
	pointer-events: none;
}

.aieo-tax-hero__body {
	position: relative;
	z-index: 1;
	padding: var(--wp--preset--spacing--6, 32px) var(--wp--preset--spacing--6, 32px);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	color: var(--wp--preset--color--fg, #1a1a1a);
}

.aieo-tax-hero.has-hero-image .aieo-tax-hero__body {
	color: #fff;
	min-height: 220px;
	justify-content: flex-end;
}

.aieo-tax-hero__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 0.25rem;
	background: rgba(255, 255, 255, 0.85);
	padding: 6px;
}

.aieo-tax-hero__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.aieo-tax-hero__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.aieo-tax-hero__headline {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	max-width: 60ch;
	opacity: 0.92;
}

.aieo-tax-hero__headline p {
	margin: 0 0 0.5em;
}

.aieo-tax-hero__headline p:last-child {
	margin-bottom: 0;
}

.aieo-tax-hero__meta {
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.85;
}

.aieo-tax-hero__count {
	display: inline-block;
}

@media (max-width: 600px) {
	.aieo-tax-hero__body {
		padding: var(--wp--preset--spacing--5, 24px) var(--wp--preset--spacing--5, 24px);
	}
	.aieo-tax-hero__title {
		font-size: clamp(1.25rem, 1.1rem + 1.2vw, 1.75rem);
	}
}
