/**
 * Site footer (BEM: fazis-footer). Background: assets/images/footer-bg.webp
 */

.fazis-footer {
	--fazis-footer-copyright: rgb(226 238 255);
	--fazis-footer-link: rgb(255 255 255);
	position: relative;
	overflow: hidden;
	margin-top: var(--fazis-section-pt);
	background-color: rgb(0 16 53);
}

.fazis-footer__bg {
	position: absolute;
	inset: 0;
	background-image: url("../images/footer-bg.webp");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	pointer-events: none;
	z-index: 0;
}

.fazis-footer__inner {
	position: relative;
	z-index: 1;
	max-width: var(--fazis-section-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--fazis-section-px);
	padding-right: var(--fazis-section-px);
	padding-top: clamp(2rem, 4vw, 5rem);
	padding-bottom: clamp(2rem, 4vw, 5rem);
	box-sizing: border-box;
}

.fazis-footer__row--top {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem 2rem;
}

.fazis-footer__brand {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.fazis-footer__logo {
	display: block;
	width: 9.5rem;
	height: auto;
	max-width: 100%;
}

.fazis-footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
}

.fazis-footer__nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	border-radius: 2.5rem;
	color: var(--fazis-footer-link);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fazis-footer__nav-link:hover,
.fazis-footer__nav-link:focus-visible {
	background-color: rgba(255 255 255 / 0.08);
	color: rgb(255 255 255);
}

.fazis-footer__rule {
	margin: clamp(1.5rem, 3vw, 5rem) 0 clamp(1.5rem, 3vw, 2rem);
	border: none;
	height: 1px;
	background: rgba(255 255 255 / 0.12);
}

.fazis-footer__row--bottom {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem 2rem;
}

.fazis-footer__copyright {
	margin: 0;
	color: var(--fazis-footer-copyright);
	font-size: 0.875rem;
	line-height: 1.3;
	text-align: left;
}

.fazis-footer__legal-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
}

.fazis-footer__legal-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	border-radius: 2.5rem;
	color: var(--fazis-footer-link);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.fazis-footer__legal-link:hover,
.fazis-footer__legal-link:focus-visible {
	background-color: rgba(255 255 255 / 0.08);
	color: rgb(255 255 255);
}

@media (max-width: 550px) {
	.fazis-footer{
		margin-top: 80px;
	}
	.fazis-footer__inner {
		padding-left: var(--fazis-section-px-sm);
		padding-right: var(--fazis-section-px-sm);
		padding-top: 3rem;
		padding-bottom: 2.25rem;
	}

	.fazis-footer__row--top {
		flex-direction: column;
		align-items: center;
		width: 100%;
	}

	.fazis-footer__brand {
		margin: 0 auto;
	}

	.fazis-footer__nav {
		width: 100%;
	}

	.fazis-footer__nav-list {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		gap: 0.5rem;
	}

	.fazis-footer__nav-link {
		font-size: 1rem;
		min-height: 2.5rem;
	}

	.fazis-footer__rule {
		width: 100%;
		margin: 2.25rem 0;
	}

	.fazis-footer__row--bottom {
		flex-direction: column;
		align-items: center;
		width: 100%;
		gap: 2.25rem;
	}

	.fazis-footer__legal {
		width: 100%;
		order: 1;
	}

	.fazis-footer__legal-list {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
	}

	.fazis-footer__legal-link {
		font-size: 1rem;
		text-align: center;
	}

	.fazis-footer__copyright {
		text-align: center;
		order: 2;
	}
}
