/* Site footer (non-homepage) */

.ortega-footer-wrap {
	margin-block-start: 0 !important;
	overflow-x: clip;
	overflow-y: visible;
}

.ortega-footer {
	--ortega-footer-blue: #0058a4;
	--ortega-footer-yellow: #ffe400;
	--ortega-footer-navy: #093272;
	--ortega-footer-white: #fff;
	--ortega-footer-padding: clamp(1rem, 4vw, 3rem);
	background-color: var(--ortega-footer-blue);
	color: var(--ortega-footer-yellow);
	overflow-x: clip;
	overflow-y: visible;
	position: relative;
}

.ortega-footer__edge {
	display: block;
	height: auto;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: -1px;
	transform: translateX(-50%) scaleY(-1);
	width: 110vw;
	z-index: 4;
}

/* Blue closing modules share the footer blue — hide only that module's bottom
   edge when it is the last content block abutting the footer. */
.ortega-blue-footer-edge .wp-block-post-content > .ortega-follow-along:last-child .ortega-follow-along__edge--bottom,
.ortega-blue-footer-edge .wp-block-post-content > .wp-block-acf-follow-along:last-child .ortega-follow-along__edge--bottom {
	display: none;
}

/* Yellow Follow Along abutting yellow footer edge — hide module bottom edge
   so the footer's yellow rough edge is the only transition. */
.ortega-yellow-footer-edge .wp-block-post-content > .ortega-follow-along--yellow:last-child .ortega-follow-along__edge--bottom,
.ortega-yellow-footer-edge .wp-block-post-content > .wp-block-acf-follow-along:has(.ortega-follow-along--yellow):last-child .ortega-follow-along__edge--bottom {
	display: none;
}

/* Light orange Fiesta Marquee abutting orange footer edge — single tear. */
.ortega-orange-footer-edge .wp-block-post-content > .ortega-fiesta-marquee:last-child .edge.bottom,
.ortega-orange-footer-edge .wp-block-post-content > .wp-block-acf-fiesta-marquee:last-child .edge.bottom {
	display: none;
}

.ortega-footer__pattern {
	background-color: var(--ortega-footer-blue);
	background-image: url("../images/footer/global-footer-bg.svg");
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: auto 480px;
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.ortega-footer__decor {
	display: none;
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.ortega-footer__decor-item--taco {
	display: none;
}

.ortega-footer__inner {
	box-sizing: border-box;
	display: grid;
	gap: clamp(1.75rem, 4vw, 2.5rem);
	margin-inline: auto;
	max-width: min(1440px, 100%);
	padding:
		clamp(3.5rem, 9vw, 5rem)
		var(--ortega-footer-padding)
		clamp(2rem, 5vw, 3rem);
	position: relative;
	width: 100%;
	z-index: 2;
}

/* CTA cards */

.ortega-footer__cta-grid {
	display: grid;
	gap: clamp(1rem, 3vw, 1.5rem);
	grid-template-columns: minmax(0, 1fr);
}

.ortega-footer__cta-card {
	min-width: 0;
}

.ortega-footer__cta-card-link {
	border-radius: 10px;
	display: block;
	line-height: 0;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.ortega-footer__cta-card-link:hover {
	transform: translateY(-2px);
}

.ortega-footer__cta-card-link:focus-visible {
	outline: 2px solid var(--ortega-footer-white);
	outline-offset: 3px;
}

.ortega-footer__cta-picture {
	display: block;
}

.ortega-footer__cta-image {
	display: block;
	height: auto;
	width: 100%;
}

/* Navigation */

.ortega-footer__nav {
	display: grid;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-items: center;
}

.ortega-footer__link-list {
	display: grid;
	gap: 34px;
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.ortega-footer__nav .ortega-footer__link-list a,
.ortega-footer__nav-link {
	color: var(--ortega-footer-yellow);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-title-md);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
}

.ortega-footer__nav-link {
	display: inline-flex;
	max-width: 100%;
	overflow: hidden;
	position: relative;
	vertical-align: top;
}

.ortega-footer__nav-link-label {
	display: block;
	position: relative;
	transform: translate3d(0, 0, 0);
	transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
	white-space: nowrap;
	will-change: transform;
	z-index: 1;
}

.ortega-footer__nav-link::after {
	color: inherit;
	content: attr(data-text);
	display: block;
	font: inherit;
	letter-spacing: inherit;
	left: 0;
	position: absolute;
	text-transform: inherit;
	top: 0;
	transform: translate3d(0, -110%, 0);
	transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
	white-space: nowrap;
	will-change: transform;
	z-index: 1;
}

.ortega-footer__nav .ortega-footer__link-list a:hover,
.ortega-footer__nav .ortega-footer__link-list a:focus-visible,
.ortega-footer__nav-link:hover,
.ortega-footer__nav-link:focus-visible {
	color: var(--ortega-footer-white);
}

.ortega-footer__nav .ortega-footer__nav-link:hover .ortega-footer__nav-link-label,
.ortega-footer__nav .ortega-footer__nav-link:focus-visible .ortega-footer__nav-link-label {
	transform: translate3d(0, 110%, 0);
}

.ortega-footer__nav .ortega-footer__nav-link:hover::after,
.ortega-footer__nav .ortega-footer__nav-link:focus-visible::after {
	transform: translate3d(0, 0, 0);
}

.ortega-footer__nav .ortega-footer__link-list a:focus-visible,
.ortega-footer__nav-link:focus-visible {
	outline: 2px solid var(--ortega-footer-white);
	outline-offset: 3px;
}

/* Social */

.ortega-footer__social {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2vw, 1rem);
}

.ortega-footer__handle {
	color: var(--ortega-footer-yellow);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-handle);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.2;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(2deg);
}

.ortega-footer__social-links {
	display: flex;
	flex-flow: row wrap;
	gap: clamp(0.5rem, 1.5vw, 0.75rem);
	justify-content: center;
}

.ortega-footer__social-link {
	--ortega-social-bg: var(--ortega-footer-navy);
	align-items: center;
	color: var(--ortega-footer-yellow);
	display: inline-flex;
	height: clamp(44px, 10vw, 52px);
	justify-content: center;
	text-decoration: none;
	transition: transform 0.2s ease;
	width: clamp(44px, 10vw, 52px);
}

.ortega-footer__social-link:hover,
.ortega-footer__social-link:focus-visible {
	--ortega-social-bg: #092450;
	transform: scale(1.05);
}

.ortega-footer__social-link:focus-visible {
	outline: 2px solid var(--ortega-footer-white);
	outline-offset: 3px;
}

.ortega-footer__social-icon {
	display: block;
	height: 100%;
	width: 100%;
}

.ortega-footer__social-icon .ortega-social-icon__bg {
	fill: var(--ortega-social-bg);
	transition: fill 0.2s ease;
}

.ortega-footer__social-icon .ortega-social-icon__glyph {
	fill: currentColor;
}

/* Brand */

.ortega-footer__brand {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: clamp(0.85rem, 2vw, 1.25rem);
	justify-content: center;
}

.ortega-footer__logo-link {
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
}

.ortega-footer__logo {
	display: block;
	height: auto;
	width: clamp(220px, 62vw, 320px);
}

.ortega-footer__copyright {
	color: var(--ortega-footer-yellow);
	font-family: var(--ortega-font-body);
	font-size: var(--ortega-type-legal);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	margin: 0;
	max-width: min(100%, 360px);
	text-align: center;
	text-transform: uppercase;
}

.ortega-footer__legal-links {
	display: grid;
	gap: clamp(0.75rem, 2vw, 1rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: min(100%, 420px);
}

.ortega-footer__legal-links .ortega-footer__link-list {
	gap: clamp(0.35rem, 1vw, 0.5rem);
}

.ortega-footer__legal-links .ortega-footer__link-list a {
	color: var(--ortega-footer-yellow);
	font-family: var(--ortega-font-body);
	font-size: var(--ortega-type-legal-sm);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.35;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.ortega-footer__legal-links .ortega-footer__link-list a:hover,
.ortega-footer__legal-links .ortega-footer__link-list a:focus-visible {
	color: #ffd000;
}

.ortega-footer__legal-links .ortega-footer__link-list a:focus-visible {
	outline: 2px solid var(--ortega-footer-white);
	outline-offset: 2px;
}

@media (max-width: 781px) {
	.ortega-footer__inner {
		gap: 0;
	}

	.ortega-footer__cta-grid {
		margin-bottom: clamp(2rem, 6vw, 3rem);
	}

	.ortega-footer__nav {
		padding-top: clamp(1rem, 4vw, 2rem);
	}

	.ortega-footer__nav .ortega-footer__link-list a,
	.ortega-footer__nav-link {
		font-family: var(--ortega-font-body);
		font-size: var(--ortega-type-title-md--mobile);
		text-transform: none;
	}

	.ortega-footer__social {
		margin-top: 70px;
	}

	.ortega-footer__brand {
		margin-top: 70px;
	}
}

@media (min-width: 782px) {
	.ortega-footer__pattern {
		background-size: 100% auto;
	}

	.ortega-footer__decor {
		display: block;
	}

	.ortega-footer__decor-item--taco {
		bottom: 0;
		display: block;
		height: auto;
		position: absolute;
		right: 0;
		width: 50%;
	}

	.ortega-footer__cta-grid {
		gap: clamp(1rem, 2vw, 1.5rem);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ortega-footer__inner {
		align-items: start;
		column-gap: clamp(1.5rem, 3vw, 3rem);
		grid-template-areas:
			"cta cta cta"
			"explore explore explore"
			"nav nav social"
			"brand brand .";
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
		padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
		padding-top: clamp(4rem, 7vw, 5.5rem);
		row-gap: 0;
	}

	.ortega-footer__cta-grid {
		grid-area: cta;
		margin-bottom: 24px;
	}

	.ortega-footer__nav {
		grid-area: nav;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-items: start;
	}

	.ortega-footer__nav .ortega-footer__link-list {
		text-align: left;
	}

	.ortega-footer__nav .ortega-footer__link-list a,
	.ortega-footer__nav-link {
		font-size: var(--ortega-type-title-md--desktop);
		font-weight: 400;
	}

	.ortega-footer__social {
		align-items: flex-start;
		grid-area: social;
		justify-self: end;
	}

	.ortega-footer__handle {
		font-size: var(--ortega-type-handle--desktop);
		text-align: right;
	}

	.ortega-footer__social-links {
		justify-content: flex-end;
	}

	.ortega-footer__brand {
		align-items: flex-start;
		align-self: end;
		grid-area: brand;
		justify-content: flex-end;
		justify-self: start;
		margin-top: clamp(2.5rem, 5vw, 4rem);
		max-width: min(100%, 520px);
	}

	.ortega-footer__logo {
		width: clamp(240px, 22vw, 340px);
	}

	.ortega-footer__copyright {
		max-width: none;
		text-align: left;
	}

	.ortega-footer__legal-links {
		justify-items: start;
		margin-top: clamp(0.25rem, 1vw, 0.5rem);
		width: min(100%, 420px);
	}

	.ortega-footer__legal-links .ortega-footer__link-list {
		text-align: left;
	}
}

@media (min-width: 1024px) {
	.ortega-footer__decor-item--taco {
		width: 800px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-footer__cta-card-link,
	.ortega-footer__social-link,
	.ortega-footer__social-icon .ortega-social-icon__bg,
	.ortega-footer__nav .ortega-footer__link-list a,
	.ortega-footer__legal-links .ortega-footer__link-list a {
		transition: none;
	}

	.ortega-footer__nav-link-label,
	.ortega-footer__nav-link::after {
		transition: none;
	}

	.ortega-footer__nav .ortega-footer__nav-link:hover .ortega-footer__nav-link-label,
	.ortega-footer__nav .ortega-footer__nav-link:focus-visible .ortega-footer__nav-link-label {
		transform: none;
	}

	.ortega-footer__nav .ortega-footer__nav-link:hover::after,
	.ortega-footer__nav .ortega-footer__nav-link:focus-visible::after {
		transform: translate3d(0, -110%, 0);
	}
}
