/* ==========================================================================
   Site footer (BEM) – content managed in the ACF "Footer" options page
   ========================================================================== */

.site-footer {
	margin-top: 4rem;
	color: #212529;
	font-family: "Open Sans", sans-serif;
}

/* Main block ------------------------------------------------------------- */
.site-footer__main {
	background-color: #DCDBD2;
	padding: 2.5rem 0 3.5rem;
}

.site-footer__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Top row: logo + social -------------------------------------------------- */
.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(0, 0, 0, .15);
}

.site-footer__logo {
	display: inline-flex;
	align-items: center;
}

.site-footer__logo-img {
	display: block;
	width: auto;
	height: 44px;
	max-width: 100%;
}

.site-footer__social {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-footer__social-label {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.site-footer__social-list {
	display: flex;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #212529;
	border-radius: 50%;
	transition: background-color .2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus {
	background-color: rgba(0, 0, 0, .08);
}

.site-footer__social-icon {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* Body: newsletter + aside ------------------------------------------------ */
.site-footer__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-top: 2rem;
}

@media (min-width: 992px) {
	.site-footer__body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
	}

	.site-footer__newsletter {
		max-width: 370px;
	}

	.site-footer__aside {
		grid-column: 2;
	}
}

/* Newsletter: the form plugin markup is not restyled, this only restores what
   the old #footer-full-content widget wrapper used to apply */
.site-footer__newsletter .widget-title {
	font-family: "Anton", sans-serif;
	font-size: 2rem;
	margin-left: 0 !important;
}

.site-footer__newsletter p,
.site-footer__newsletter label {
	font-size: .875rem;
}

.site-footer__newsletter a {
	color: inherit;
}

/* Aside: navigation ------------------------------------------------------- */
.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, .15);
}

.site-footer__nav-col {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav-item + .site-footer__nav-item {
	margin-top: .5rem;
}

.site-footer__nav-link {
	color: #212529;
	font-size: 1rem;
	text-decoration: none;
}

.site-footer__nav-link:hover,
.site-footer__nav-link:focus {
	color: #000;
	text-decoration: underline;
}

/* Aside: sponsors --------------------------------------------------------- */
.site-footer__sponsors {
	padding-top: 1.75rem;
}

.site-footer__aside > .site-footer__sponsors:first-child {
	padding-top: 0;
}

.site-footer__sponsors-title {
	margin: 0 0 1.25rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.site-footer__sponsors-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__sponsor {
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-footer__sponsor-link {
	display: block;
}

.site-footer__sponsor-img {
	display: block;
	width: auto;
	max-width: 140px;
	max-height: 60px;
	height: auto;
}

/* Bottom bar -------------------------------------------------------------- */
.site-footer__bar {
	background-color: #000;
	color: #fff;
	font-size: .8125rem;
	padding: 1.25rem 0;
}

.site-footer__inner--bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 2rem;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__legal-link {
	color: #fff;
	text-decoration: none;
}

.site-footer__legal-link:hover,
.site-footer__legal-link:focus {
	color: #fff;
	text-decoration: underline;
}

.site-footer__copyright {
	margin: 0;
	opacity: .85;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 575.98px) {
	.site-footer__top {
		flex-direction: column;
		align-items: center;
	}

	.site-footer__social {
		justify-content: center;
	}

	.site-footer__nav {
		grid-template-columns: 1fr;
		gap: .5rem;
		text-align: center;
	}

	.site-footer__sponsors-title {
		text-align: center;
	}

	.site-footer__sponsors-list {
		justify-content: center;
		gap: 1.5rem 2rem;
	}

	.site-footer__inner--bar {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.site-footer__legal {
		justify-content: center;
	}
}
