/* Featured Product — ACF block */

.ortega-featured-product {
	--ortega-fp-yellow: #ffe400;
	--ortega-fp-yellow-hover: #ffd000;
	--ortega-fp-navy: #092450;
	--ortega-fp-orange: #cb4a00;
	--ortega-fp-orange-dark: #a83d00;
	box-sizing: border-box;
	padding: clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem);
	position: relative;
}

.ortega-featured-product--category {
	padding-bottom: 0;
}

.ortega-featured-product--category .ortega-featured-product__description {
	white-space: pre-line;
}

.ortega-featured-product.is-text-entrance-pending .ortega-featured-product__headline,
.ortega-featured-product.is-text-entrance-pending .ortega-featured-product__description,
.ortega-featured-product.is-text-entrance-pending .ortega-featured-product__learn-more,
.ortega-featured-product.is-text-entrance-pending .ortega-featured-product__find-it {
	visibility: hidden;
}

.ortega-featured-product__panel {
	background-color: var(--ortega-fp-yellow);
	border-radius: 20px;
	margin-inline: auto;
	max-width: 1372px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.ortega-featured-product__inner {
	--ortega-fp-pad-left: 1.5rem;
	--ortega-fp-pad-right: 1.5rem;
	--ortega-fp-pad-top: 2.5rem;
	--ortega-fp-pad-bottom: 2rem;
	align-items: end;
	box-sizing: border-box;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr);
	margin-inline: auto;
	max-width: 100%;
	padding: var(--ortega-fp-pad-top) var(--ortega-fp-pad-right) var(--ortega-fp-pad-bottom) var(--ortega-fp-pad-left);
	width: 100%;
}

.ortega-featured-product__content {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

.ortega-featured-product__badge + .ortega-featured-product__headline {
	margin-top: 4px;
}

.ortega-featured-product__headline + .ortega-featured-product__description {
	margin-top: 16px;
}

.ortega-featured-product__description + .ortega-featured-product__actions {
	margin-top: 20px;
}

.ortega-featured-product__badge {
	color: var(--ortega-fp-yellow);
	display: inline-block;
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-eyebrow);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0;
	padding: 0.2em 0.15em;
	paint-order: stroke fill;
	text-transform: uppercase;
	transform: rotate(-2.53deg);
	transform-origin: left center;
	-webkit-text-stroke: 8px var(--ortega-fp-orange);
	width: fit-content;
}

.ortega-featured-product__headline {
	color: var(--ortega-fp-navy);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-title-lg);
	font-weight: 700;
	line-height: 0.95;
	margin: 0;
	text-transform: uppercase;
	white-space: pre-line;
}

.ortega-featured-product__description {
	color: var(--ortega-fp-navy);
	font-family: var(--ortega-font-body);
	font-size: var(--ortega-type-body-lg);
	font-weight: 400;
	line-height: 1.35;
	margin: 0;
}

.ortega-featured-product__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1rem, 3vw, 1.75rem);
	margin-top: 0;
}

.ortega-featured-product__learn-more,
.ortega-featured-product__learn-more--static {
	align-items: center;
	background-color: var(--ortega-fp-navy);
	border: 0;
	border-radius: 999px;
	box-sizing: border-box;
	color: var(--ortega-fp-yellow);
	display: inline-flex;
	font-family: var(--ortega-font-body);
	font-size: var(--ortega-type-cta);
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: clamp(44px, 5vw, 52px);
	padding: 0 clamp(1.35rem, 3vw, 1.85rem);
	text-decoration: none;
	/* Don't transition transform here — it fights the GSAP mask reveal. */
	transition: background-color 0.2s ease;
}

.ortega-featured-product__learn-more:hover,
.ortega-featured-product__learn-more:focus-visible {
	background-color: #093272;
	transition: background-color 0.2s ease;
}

.ortega-featured-product__learn-more:focus-visible {
	outline: 2px solid var(--ortega-fp-navy);
	outline-offset: 3px;
}

.ortega-featured-product__find-it,
.ortega-featured-product__find-it--static {
	align-items: center;
	color: var(--ortega-fp-navy);
	display: inline-flex;
	font-family: var(--ortega-font-body);
	font-size: var(--ortega-type-cta);
	font-weight: 700;
	gap: 0.45rem;
	line-height: 1.2;
}

.ortega-featured-product__find-it:hover,
.ortega-featured-product__find-it:focus-visible {
	color: #0058a4;
}

.ortega-featured-product__find-it:focus-visible {
	outline: 2px solid var(--ortega-fp-navy);
	outline-offset: 4px;
}

.ortega-featured-product__find-it-icon {
	display: block;
	flex-shrink: 0;
	height: auto;
	width: clamp(14px, 1.6vw, 18px);
}

.ortega-featured-product__figure {
	align-items: flex-end;
	display: flex;
	justify-content: flex-end;
	margin-bottom: calc(-1 * var(--ortega-fp-pad-bottom));
	margin-inline: 0 calc(-1 * var(--ortega-fp-pad-right));
	width: calc(100% + var(--ortega-fp-pad-right));
}

.ortega-featured-product__image {
	display: block;
	height: auto;
	max-height: 420px;
	max-width: 100%;
	object-fit: contain;
	object-position: bottom right;
	width: auto;
}

.ortega-featured-product-placeholder {
	background: #f7f7f8;
	border: 1px dashed #0058a4;
	color: #0058a4;
	padding: 24px;
	text-align: center;
}

@media (min-width: 782px) {
	.ortega-featured-product__inner {
		--ortega-fp-pad-left: 80px;
		--ortega-fp-pad-right: 2.5rem;
		--ortega-fp-pad-top: 3rem;
		--ortega-fp-pad-bottom: 2.5rem;
		gap: 2rem;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ortega-featured-product__content {
		align-self: center;
		max-width: min(560px, 100%);
	}

	.ortega-featured-product__description {
		max-width: 28ch;
	}

	.ortega-featured-product__figure {
		justify-content: flex-end;
		margin-bottom: calc(-1 * var(--ortega-fp-pad-bottom));
		margin-inline: 0 calc(-1 * var(--ortega-fp-pad-right));
		width: calc(100% + var(--ortega-fp-pad-right));
	}

	.ortega-featured-product__image {
		max-height: 520px;
		object-position: bottom right;
		width: auto;
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-featured-product__badge {
		transform: none;
	}

	.ortega-featured-product__learn-more {
		transition: none;
	}

	.ortega-featured-product.is-text-entrance-pending .ortega-featured-product__headline,
	.ortega-featured-product.is-text-entrance-pending .ortega-featured-product__description,
	.ortega-featured-product.is-text-entrance-pending .ortega-featured-product__learn-more,
	.ortega-featured-product.is-text-entrance-pending .ortega-featured-product__find-it {
		visibility: visible;
	}
}
