.site-footer {
	background-color: var(--color-footer-bg);
}

.footer {
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding: var(--space-section-horizontal-desktop) var(--space-section-horizontal) 0;
}

@media (min-width: 1024px) {
	.footer {
		padding-inline: var(--space-section-horizontal-desktop);
	}
}

.footer__row--top {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	padding-bottom: var(--space-6);
	border-bottom: 1px solid var(--color-footer-border);
}

@media (min-width: 1024px) {
	.footer__row--top {
		flex-direction: row;
		justify-content: space-between;
	}
}

.footer__column--brand {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	max-width: 365px;
}

.footer__logo {
	display: block;
	width: 70px;
}

.footer__logo-image {
	width: 100%;
	height: auto;
}

.footer__description {
	font-size: var(--font-size-body);
	/* `--color-text-body` is tuned for light backgrounds; against the dark
	   footer it fell below the required contrast ratio. */
	color: var(--color-footer-text-muted);
}

.footer__social {
	display: flex;
	gap: 9px;
	margin-top: 57px;
	padding-top: var(--space-3);
}

.footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--color-bg-light);
	border: 1px solid var(--color-footer-icon-border);
}

.footer__social-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* These four come from Figma exported the same way the rest of the
   site's icon SVGs are (a layer meant to sit inside a `scale(-1,-1)`
   wrapper it was drawn against) — without that wrapper they render
   upside down, so the vertical flip is applied here instead. */
.footer__social-icon--instagram,
.footer__social-icon--facebook,
.footer__social-icon--tiktok,
.footer__social-icon--google {
	transform: scaleY(-1);
}

/* This one is still a plain PNG (no Figma vector available) with a lot
   of transparent padding baked into its canvas, which makes its glyph
   look smaller than the SVGs' tightly-cropped ones at the same box
   size — sized up to compensate. */
.footer__social-icon--nextdoor {
	width: 40px;
	height: 40px;
}

.footer__column-title {
	font-size: var(--font-size-h4);
	font-weight: 400;
	letter-spacing: 0.1056px;
	color: var(--color-text-body);
	margin-bottom: var(--space-3);
}

.footer__links {
	display: flex;
	flex-direction: column;
}

.footer__links li {
	padding: var(--space-1);
}

.footer__links a {
	font-size: var(--font-size-body);
	color: var(--color-footer-text);
}

.footer__links--contact {
	margin-top: var(--space-1);
}

.footer__contact-item {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	padding: var(--space-1) 0;
}

.footer__contact-item img {
	filter: brightness(0) invert(1);
}

.footer__contact-item a {
	font-size: var(--font-size-body);
	color: var(--color-footer-text);
}

.footer__contact-item--email a {
	font-size: var(--font-size-h4);
	font-weight: 600;
}

.footer__row--bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	padding: 20px 0;
}

@media (min-width: 1024px) {
	.footer__row--bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.footer__copyright,
.footer__credit,
.footer__privacy {
	font-size: 12px;
	color: var(--color-footer-text-muted);
}

.footer__meta {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.footer__divider {
	width: 7px;
}