/*
 * Configurable four-column MSF footer.
 * Loaded after assets/css/main.css.
 */

.site-footer {
	position: relative;
	margin-top: 0;
	background: var(--msf-navy);
	color: rgba(255, 255, 255, 0.9);
}

/* Use the same light neutral as the page so the wave joins the body seamlessly. */
.msf-wave--footer {
	position: relative;
	height: clamp(68px, 7vw, 112px);
	margin: -1px 0 0;
	background: var(--msf-light);
	line-height: 0;
	overflow: hidden;
}

.msf-wave--footer svg {
	display: block;
	width: 100%;
	height: 100%;
}

.msf-wave--footer path {
	fill: var(--msf-navy);
}

.site-footer .msf-container {
	width: min(calc(100% - 48px), 1560px);
}

.site-footer__main {
	margin-top: -1px;
	padding: clamp(3.75rem, 5.5vw, 5.5rem) 0 clamp(3.25rem, 4.5vw, 4.75rem);
	background: var(--msf-navy);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(280px, 1.1fr) minmax(190px, 0.72fr) minmax(280px, 0.98fr) minmax(360px, 1.32fr);
	gap: clamp(1.75rem, 2.6vw, 3rem);
	align-items: start;
}

.site-footer__column,
.site-footer__base-content,
.site-footer__widgets,
.footer-widget {
	min-width: 0;
}

.footer-widget__title,
.site-footer__column > h2 {
	position: relative;
	margin: 0 0 1.35rem;
	color: var(--msf-white);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.footer-widget__title::after {
	display: block;
	width: 46px;
	height: 3px;
	margin-top: 0.68rem;
	border-radius: 999px;
	background: var(--msf-green);
	content: "";
}

/* A light card gives transparent and dark-logo variants reliable contrast. */
.footer-brand-mark {
	display: inline-flex;
	max-width: 100%;
	min-height: 108px;
	align-items: center;
	justify-content: flex-start;
	margin: 0 0 1.35rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.84);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.footer-brand-mark .footer-logo {
	display: block;
	width: auto;
	max-width: min(100%, 285px);
	max-height: 122px;
	object-fit: contain;
	object-position: left center;
}

.footer-brand-mark__fallback {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--msf-navy);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.footer-brand-mark__fallback .msf-icon {
	width: 48px;
	height: 48px;
	padding: 9px;
	border-radius: 50% 50% 50% 16%;
	background: var(--msf-green);
	color: var(--msf-navy);
}

.footer-foundation-summary,
.site-footer__column p {
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.93rem;
	font-weight: 500;
	line-height: 1.72;
}

.footer-tagline {
	margin-top: 1.15rem !important;
	color: #b9dd69 !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.footer-links,
.footer-contact-list {
	display: grid;
	gap: 0.82rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-links li,
.footer-contact-list li {
	margin: 0;
}

.footer-links a {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.58rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.55;
	text-decoration: none;
}

.footer-links a > span[aria-hidden="true"] {
	color: var(--msf-green);
	font-size: 1.18rem;
	line-height: 1.05;
}

.footer-links a:hover,
.footer-contact-list a:hover {
	color: #b9dd69;
}

.footer-contact-list li {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 0.78rem;
	align-items: start;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.65;
}

.footer-contact-list a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	word-break: normal;
	overflow-wrap: normal;
}

.footer-contact-list a[href^="mailto:"] {
	white-space: nowrap;
}

.footer-contact-list .msf-icon {
	width: 19px;
	height: 19px;
	margin-top: 0.2rem;
	color: var(--msf-green);
}

.msf-newsletter-form {
	margin-top: 1.2rem;
}

.msf-subscribe-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 10px;
	background: var(--msf-white);
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.msf-subscribe-form input {
	width: 100%;
	min-width: 0;
	min-height: 50px;
	padding: 0.78rem 0.95rem;
	border: 0;
	border-radius: 0;
	background: var(--msf-white);
	color: var(--msf-navy);
	font-size: 0.88rem;
	outline: 0;
}

.msf-subscribe-form input::placeholder {
	color: #627486;
	opacity: 1;
}

.msf-subscribe-form input:focus {
	box-shadow: inset 0 0 0 2px var(--msf-green);
}

.msf-subscribe-form button {
	min-height: 50px;
	padding: 0.78rem 1.15rem;
	border: 0;
	border-radius: 0;
	background: var(--msf-green);
	color: var(--msf-navy);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.msf-subscribe-form button:hover {
	background: var(--msf-gold);
	color: var(--msf-white);
}

.msf-newsletter-privacy {
	margin: 0.78rem 0 0 !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 0.74rem !important;
	line-height: 1.6 !important;
}

.msf-subscribe-form .msf-form-status {
	margin-top: 0.72rem;
	font-size: 0.8rem;
	line-height: 1.55;
}

.msf-subscribe-form .msf-form-status.is-success {
	color: #d5f1a2;
}

.site-footer__widgets {
	display: grid;
	gap: 1.3rem;
	margin-top: 1.7rem;
	padding-top: 1.45rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__widgets .footer-widget {
	margin: 0;
}

.site-footer__widgets ul {
	padding-left: 1.1rem;
}

.site-footer__widgets a {
	color: rgba(255, 255, 255, 0.9);
}

.site-footer__widgets a:hover {
	color: var(--msf-green);
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(4, 20, 35, 0.32);
}

.site-footer__bottom-inner {
	display: grid;
	min-height: 70px;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem 2rem;
}

.site-footer__copyright,
.site-footer__credit {
	margin: 0 !important;
	font-size: 0.8rem !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
}

.site-footer__copyright {
	color: rgba(255, 255, 255, 0.8) !important;
}

.site-footer__bottom-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.1rem;
}

.site-footer__credit {
	white-space: nowrap;
	text-align: right;
}

.site-footer__credit a {
	color: var(--msf-white);
	font-weight: 700;
	text-decoration: none;
}

.site-footer__credit a:hover {
	color: var(--msf-green);
}

.footer-socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.42rem;
}

.footer-socials a {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.footer-socials a:hover {
	border-color: var(--msf-green);
	background: var(--msf-green);
	color: var(--msf-navy);
	transform: translateY(-2px);
}

.footer-socials .msf-icon {
	width: 15px;
	height: 15px;
}

@media (max-width: 1200px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3rem 3.5rem;
	}
}

@media (max-width: 700px) {
	.site-footer .msf-container {
		width: min(calc(100% - 32px), 1560px);
	}

	.msf-wave--footer {
		height: 70px;
	}

	.site-footer__main {
		padding-top: 3.2rem;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2.8rem;
	}

	.footer-contact-list a[href^="mailto:"] {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.site-footer__bottom-inner {
		grid-template-columns: 1fr;
		justify-items: center;
		padding-block: 1.3rem;
		text-align: center;
	}

	.site-footer__bottom-right {
		width: 100%;
		flex-direction: column;
		justify-content: center;
		gap: 0.8rem;
	}

	.footer-socials {
		justify-content: center;
	}

	.site-footer__credit {
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 430px) {
	.footer-brand-mark {
		width: 100%;
		padding: 0.85rem 1rem;
	}

	.msf-subscribe-form__row {
		grid-template-columns: 1fr;
	}

	.msf-subscribe-form button {
		width: 100%;
	}
}
