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

.site-footer {
	box-sizing: border-box;
	width: 100%;
	padding-inline: 1rem;
	background-color: var(--primary);
	color: #e5e7eb;
}

body.dark-mode .site-footer {
	background-color: #2d3036;
}

.site-footer__top {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	margin-top: 2rem;
	padding: 1rem 0;
}

.site-footer__brand {
	display: inline-flex;
	flex-direction: column;
	margin-top: auto;
	margin-bottom: auto;
	color: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	text-align: start;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
}

.site-footer__logo {
	display: inline-block;
	width: auto;
	height: 0.75rem;
	max-width: none;
	margin-bottom: 0.25rem;
	padding-top: 0.125rem;
}

.site-footer__tagline {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.5rem;
	font-weight: 600;
}

.site-footer__social {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.site-footer__social-label,
.site-footer__company,
.site-footer__legal-links,
.site-footer__copyright {
	font-size: 0.875rem;
}

.site-footer__social-list {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__social-item {
	cursor: pointer;
	transition: opacity var(--transition-normal);
}

.site-footer__social-item:hover {
	opacity: 0.8;
}

.site-footer__body {
	padding-bottom: 2rem;
	border-top: 1px solid rgba(156, 163, 175, 0.5);
	border-right: 1px solid rgba(156, 163, 175, 0.5);
	border-left: 1px solid rgba(156, 163, 175, 0.5);
}

.site-footer__body-inner {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
	padding-right: 1rem;
	padding-left: 1rem;
}

.site-footer__section,
.site-footer__contact {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.site-footer__section-title {
	font-weight: 700;
}

.site-footer__link-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.site-footer__link-item {
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
}

.site-footer__link {
	color: inherit;
	text-decoration: none;
}

.site-footer__link-item:hover,
.site-footer__link:hover {
	text-decoration: underline;
}

.site-footer__quick {
	display: none;
	flex: 1 1 0%;
	height: 100%;
	padding: 1rem 0 1rem 1rem;
	border-left-color: rgba(156, 163, 175, 0.5);
}

.site-footer__quick-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	width: fit-content;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.site-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.site-footer__contact-button {
	padding: 0.5rem 1rem;
	border: 1px solid #fff;
	border-radius: 0.375rem;
	background: transparent;
	color: inherit;
	font-size: 0.75rem;
	cursor: pointer;
	transition: background-color var(--transition-normal);
}

.site-footer__contact-button:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.site-footer__contact-text {
	font-size: 0.75rem;
}

.site-footer__bottom {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	padding: 1rem;
	border-top: 1px solid rgba(156, 163, 175, 0.5);
}

.site-footer__company,
.site-footer__legal {
	color: rgba(255, 255, 255, 0.8);
}

.site-footer__company {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.site-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.site-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	text-decoration: underline;
}

.site-footer__legal-link {
	color: inherit;
	cursor: pointer;
}

.site-footer__legal-link:hover {
	text-underline-offset: 2px;
}

@media (min-width: 768px) {
	.site-footer__top {
		flex-direction: row;
		gap: 0;
	}

	.site-footer__brand {
		font-size: 1.5rem;
	}

	.site-footer__logo {
		height: 1rem;
	}

	.site-footer__tagline {
		font-size: 0.625rem;
	}

	.site-footer__social,
	.site-footer__contact,
	.site-footer__legal {
		align-items: flex-end;
	}

	.site-footer__body-inner {
		flex-direction: row;
		gap: 1rem;
	}

	.site-footer__contact-text {
		text-align: right;
	}

	.site-footer__bottom {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
	}
}
