/* Site footer (§3, §6) */

.site-footer {
	background: var(--footer-bg);
	color: rgba(255, 255, 255, 0.85);
}

.site-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	padding-block: var(--section-pad) 64px;
}

.site-footer__brand {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	max-width: 260px;
}
.site-footer__brand img {
	height: 32px;
	width: auto;
}
.site-footer__tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9375rem;
}

.site-footer__address {
	margin: 4px 0 0;
	font-style: normal;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.55);
}

.site-footer__columns {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 32px;
	flex: 1;
}

.site-footer__heading {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.site-footer__column ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 19.2px; /* 12px + the 7.2px of leading removed by the li line-height below (16px × (1.6 − 1.15)) */
	line-height: 1.15; /* tight wrapped lines; set here (not on the inline <a>) since the li's strut governs line spacing */
}

.site-footer__column a {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	transition: color 150ms ease-out;
}
.site-footer__column a:hover,
.site-footer__column a:focus-visible {
	color: var(--cyan);
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	padding-block: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__legal {
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Tablet: 5 columns → 2 columns (§6) */
@media (max-width: 1024px) {
	/* The office address is desktop-only. */
	.site-footer__address {
		display: none;
	}

	.site-footer__top {
		flex-direction: column;
	}
	.site-footer__columns {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 24px;
	}
}

/* Mobile: keep two columns of links rather than one long list (§6) */
@media (max-width: 640px) {
	.site-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}
	.site-footer__bottom {
		flex-direction: column;
	}
	.site-footer__legal {
		text-align: left;
	}
}
