/* ==========================================================================
   Site footer
   ========================================================================== */

.site-footer {
	--focus-color: var(--on-blue);

	padding-block: var(--space-8) var(--space-6);
	color: var(--on-blue);
	/* The only blue block at the bottom of the page: the closing CTA above is light grey. */
	background-color: var(--brand-blue);
}

/* Phones: stacked. Tablets: brand across the top, three columns below.
   Desktop: brand column plus three link columns in one row. */
.site-footer__main {
	display: grid;
	gap: var(--space-7);
}

/* Logo: 28px tall, clear space at least its own height around it. */
.site-footer__logo {
	display: inline-block;
}

.site-footer__logo img {
	width: auto;
	height: 1.75rem;
}

.site-footer__description {
	max-width: 32ch;
	margin-top: var(--space-6);
}

.site-footer__social {
	display: flex;
	gap: var(--space-2);
	margin-top: var(--space-5);
	margin-inline-start: calc(var(--space-3) * -1);
	padding: 0;
	list-style: none;
}

/* 44px tap target around a 20px icon. */
.site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--on-blue);
}

.site-footer__social svg {
	width: 1.25rem;
	height: 1.25rem;
}

.site-footer__social a:hover {
	color: var(--accent-yellow);
}

.site-footer__heading {
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	letter-spacing: 0.08em;
	color: var(--on-blue);
}

.site-footer__links {
	display: grid;
	gap: var(--space-1);
	margin-top: var(--space-4);
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: var(--on-blue);
	text-decoration: none;
}

.site-footer__links a,
.site-footer__legal a,
.site-footer__contact a {
	display: inline-block;
	padding-block: var(--space-1);
}

.site-footer__links a:hover,
.site-footer__legal a:hover,
.site-footer__contact a:hover {
	color: var(--on-blue);
	text-decoration: underline;
	text-decoration-color: var(--accent-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.site-footer__contact {
	display: grid;
	gap: var(--space-3);
	margin-top: var(--space-4);
	font-style: normal;
}

/* Bottom bar: copyright left, legal links right from tablet up. */
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3) var(--space-6);
	margin-top: var(--space-8);
	padding-top: var(--space-5);
	font-size: var(--text-sm);
	border-top: 1px solid var(--brand-blue-700);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-5);
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.site-footer__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64em) {
	.site-footer {
		padding-top: var(--space-9);
	}

	.site-footer__main {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
		gap: var(--space-8);
	}

	.site-footer__brand {
		grid-column: auto;
	}

	.site-footer__logo img {
		height: 2.25rem;
	}
}
