@import '../../styles/components/theme.css';

/* ====================================== */
/* Footer Animation */

.footer {
	animation: var(--animate-in);
}

.footer.is-hidden {
	animation: var(--animate-out);
}

/* ====================================== */
/* Page Variations */

/* Locked portfolio (password form): no footer — body class set by getBodyClasses() in functions.php */
body.portfolio-locked .footer {
	display: none;
}

/* body.tpl-home .footer__inner::before {
	opacity: 0;
} */

/* ====================================== */
/* Styles */

.footer {
	z-index: 99;
	position: fixed;
	bottom: 0;
	left: 0;
	-webkit-backdrop-filter: blur(3px); /* Safari before 18 */
	width: 100%;
	backdrop-filter: blur(3px);
	transition: background-color var(--transition-fast);
}

.tpl-typeface .footer,
.tpl-typefaces .footer,
.tpl-portfolio .footer {
	background-color: var(--bg-translucent);
}

/* Typeface page: footer in the page colour (90% + blur); */
.tpl-typeface.has-page-colors .footer {
	background-color: var(--page-bg-translucent);
}

.footer__inner {
	display: block;
	z-index: 1;
	position: relative;
	width: 100%;
	max-width: 100vw;
	padding: var(--spacing-m);
}

/* .footer__inner::before {
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 0;
	transition: background var(--transition);
	background: linear-gradient(to top, var(--bg) 30%, transparent 100%);
	width: 100%;
	height: 125%;
	pointer-events: none;
	content: '';
	user-select: none;
} */

/* Studio/Base Information Footer Bg */

body.tpl-information.parent-home .footer__inner::before {
	background: linear-gradient(
		to top,
		rgba(var(--blue), 1) 30%,
		rgba(var(--blue), 0.9) 60%,
		transparent 100%
	);
}

body.tpl-information.parent-typefaces .footer__inner::before {
	background: linear-gradient(
		to top,
		var(--color-grey) 30%,
		transparent 100%
	);
}

/* ====================================== */
/* Content */

.nav__list--footer {
	display: grid;
	z-index: 1;
	position: relative;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	width: 100%;
	gap: var(--spacing-l);
}

.nav__list--footer > .nav__item {
	display: flex;
	align-items: center;
}

@media (min-width: 1280px) {
	.nav__list--footer {
		grid-template-columns: repeat(12, 1fr);
	}
}
