/*
 * Footer. Figma: Footer / Mobile, Footer / Tablet, Footer / Desktop.
 *
 * phone:   brand → link columns (2 per row) → contact → certificates → legal + ©
 * tablet:  brand → three columns side by side → certificates → legal + ©
 * desktop: left: brand + legal + ©   |   right: three columns + certificates
 */

.site-footer {
	padding-bottom: var(--gutter);
}

.site-footer__box {
	display: grid;
	gap: var(--space-32);
	padding: var(--space-24);
	border-radius: var(--radius-lg);
	background: var(--c-surface-subtle);
	font-family: var(--ff-heading);
	font-size: var(--fs-nav);
	font-weight: 500;
	color: var(--c-text);
	grid-template-areas:
		"brand"
		"info"
		"legal";
}

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

.site-footer a:hover {
	color: var(--c-brand);
}

/* Brand */
.site-footer__brand {
	grid-area: brand;
	display: grid;
	justify-items: start;
	gap: var(--space-24);
}

.site-footer__tagline {
	font-family: var(--ff-heading);
	font-size: var(--fs-tagline);
	font-weight: 600;
	color: var(--c-accent-2);
	text-transform: uppercase;
}

/* Link columns + contact */
.site-footer__info {
	grid-area: info;
	display: grid;
	gap: var(--space-32);
}

.site-footer__cols {
	display: grid;
	gap: var(--space-32);
}

.footer-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-32) var(--space-24);
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-menu > li > a,
.site-footer__heading {
	display: inline-block;
	margin-bottom: var(--space-12);
	font-size: 1.125rem; /* 18 */
	font-weight: 500;
	color: var(--c-brand) !important;
}

.footer-menu .sub-menu,
.site-footer__contact-list {
	display: grid;
	gap: var(--space-12);
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-footer__contact-list li {
	display: flex;
	gap: 0.3em;
}

/* Certificates */
.site-footer__certs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-32);
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-footer__certs img {
	width: auto;
	height: 6.375rem; /* 102 */
}

/* Legal + copyright */
.site-footer__legal {
	grid-area: legal;
	display: grid;
	gap: var(--space-12);
}

.legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-20);
	padding: 0;
	margin: 0;
	list-style: none;
}

/* Tablet ---------------------------------------------------------------- */

@media (min-width: 768px) {
	.site-footer__box {
		padding: var(--space-32);
	}

	.site-footer__cols {
		grid-template-columns: auto auto;
		justify-content: start;
		column-gap: var(--space-48, 3rem);
	}

	.footer-menu {
		grid-template-columns: repeat(2, auto);
		column-gap: var(--space-48, 3rem);
	}
}

/* Desktop --------------------------------------------------------------- */

@media (min-width: 1200px) {
	.site-footer__box {
		grid-template-columns: auto 1fr;
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"brand info"
			"legal info";
		column-gap: var(--space-40);
		padding: var(--space-40);
	}

	.site-footer__brand {
		gap: 0;
	}

	.site-footer__tagline {
		margin-top: 1.45rem; /* 23 */
		margin-left: 3px;
	}

	.site-footer .social {
		margin-top: 1.8rem; /* 29 */
	}

	.site-footer__legal {
		align-self: end;
		gap: 4.8rem; /* legal links → © (77) */
		margin-top: var(--space-32);
	}

	.site-footer__info {
		justify-self: end;
		gap: 4.2rem; /* 67 */
	}

	.site-footer__certs {
		justify-content: flex-end;
		gap: 2.125rem; /* 34 */
	}
}
