/* Text Hero — ACF block (registered as blog-hero) */

.ortega-blog-hero.is-text-entrance-pending .ortega-blog-hero__headline,
.ortega-blog-hero.is-text-entrance-pending .ortega-blog-hero__description,
.ortega-blog-hero.is-text-entrance-pending .ortega-blog-hero__cta {
	visibility: hidden;
}

.ortega-blog-hero {
	--ortega-bh-blue: #0058a4;
	--ortega-bh-yellow: #ffe400;
	--ortega-bh-white: #fff;
	--ortega-bh-content-padding: clamp(20px, 4.5vw, 64px);
	--ortega-bh-grid-gap: clamp(1rem, 2vw, 1.5rem);
	isolation: isolate;
	overflow: visible;
	position: relative;
	width: 100%;
}

.ortega-blog-hero__pattern {
	background-color: var(--ortega-bh-blue);
	background-image: url("../images/recipes/bg-pattern-blue.svg");
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	inset: 0;
	position: absolute;
	z-index: 0;
}

.ortega-blog-hero__inner {
	align-items: flex-end;
	box-sizing: border-box;
	display: flex;
	min-height: clamp(22rem, 72vw, 26rem);
	padding:
		clamp(5.5rem, 16vw, 6.75rem)
		var(--ortega-bh-content-padding)
		clamp(3.75rem, 11vw, 4.75rem);
	position: relative;
	width: 100%;
	z-index: 2;
}

.ortega-blog-hero__content {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: none;
	width: 100%;
}

.ortega-blog-hero--has-body .ortega-blog-hero__content {
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.ortega-blog-hero__body {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2.5vw, 1.35rem);
	max-width: 36rem;
}

.ortega-blog-hero__headline {
	color: var(--ortega-bh-yellow);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-hero-lg--mobile);
	font-weight: 700;
	line-height: 0.88;
	margin: 0;
	text-transform: uppercase;
}

.ortega-blog-hero__headline :is(p, h1, h2, h3) {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0;
}

.ortega-blog-hero__headline :is(p, h1, h2, h3) + :is(p, h1, h2, h3) {
	margin-top: 0.04em;
}

.ortega-blog-hero__headline :is(span, .ortega-blog-hero__headline-accent) {
	display: block;
	font-size: var(--ortega-type-hero-sm--mobile);
	line-height: 1;
	margin-bottom: 0.08em;
	padding-left: 0.18em;
}

.ortega-blog-hero__description {
	color: var(--ortega-bh-white);
	font-family: var(--ortega-font-copy, var(--ortega-font-body));
	font-size: var(--ortega-type-body-lg, 1.125rem);
	font-weight: 400;
	line-height: 1.45;
	margin: 0;
	max-width: none;
}

.ortega-blog-hero__description p {
	margin: 0;
}

.ortega-blog-hero__description p + p {
	margin-top: 0.75em;
}

.ortega-blog-hero__cta.ortega-btn {
	align-self: flex-start;
	background-color: var(--ortega-bh-yellow);
	color: #093272;
}

.ortega-blog-hero__cta.ortega-btn:hover,
.ortega-blog-hero__cta.ortega-btn:focus-visible {
	background-color: #ffd000;
}

.ortega-blog-hero__edge {
	bottom: -1px;
	display: block;
	height: auto;
	left: 50%;
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	width: 110vw;
	z-index: 3;
}

.ortega-blog-hero-placeholder {
	background: #f7f7f8;
	border: 1px dashed var(--ortega-bh-blue);
	color: var(--ortega-bh-blue);
	font-family: var(--ortega-font-body);
	padding: 1.5rem;
	text-align: center;
}

@media (min-width: 782px) {
	.ortega-blog-hero__inner {
		min-height: clamp(26rem, 38vw, 34rem);
		padding:
			clamp(7rem, 11vw, 9rem)
			var(--ortega-bh-content-padding)
			clamp(4.5rem, 7vw, 8rem);
	}

	.ortega-blog-hero__headline {
		font-size: var(--ortega-type-hero-lg);
	}

	.ortega-blog-hero__headline :is(span, .ortega-blog-hero__headline-accent) {
		font-size: var(--ortega-type-hero-sm);
	}

	.ortega-blog-hero__description {
		font-size: var(--ortega-type-body-xl, 1.25rem);
	}

	/* 12-column desktop layout when a description is present */
	.ortega-blog-hero--has-description .ortega-blog-hero__content {
		align-items: end;
		column-gap: var(--ortega-bh-grid-gap);
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		row-gap: 0;
		width: 100%;
	}

	.ortega-blog-hero--has-description .ortega-blog-hero__headline {
		grid-column: 1 / 7;
	}

	.ortega-blog-hero--has-description .ortega-blog-hero__body {
		display: flex;
		flex-direction: column;
		gap: clamp(1.25rem, 2vw, 1.75rem);
		grid-column: 7 / 13;
		max-width: none;
		width: 100%;
	}
}

@media (min-width: 1200px) {
	.ortega-blog-hero {
		--ortega-bh-grid-gap: 38px;
	}

	.ortega-blog-hero--has-description .ortega-blog-hero__body {
		grid-column: 8 / 12;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-blog-hero.is-text-entrance-pending .ortega-blog-hero__headline,
	.ortega-blog-hero.is-text-entrance-pending .ortega-blog-hero__description,
	.ortega-blog-hero.is-text-entrance-pending .ortega-blog-hero__cta {
		visibility: visible;
	}

	.ortega-blog-hero__headline :is(span, .ortega-blog-hero__headline-accent) {
		transform: none;
	}
}
