/*
 * LAHU footer.
 *
 * Default (light): white main section with the color logo, socials and
 * link columns, a teal top border, and a gray legal bar with copyright and
 * blurb. `theme="navy"` flips to the give-site dark palette.
 *
 * Fonts: the Adobe kit (avenir-lt-pro) is loaded by Elementor's
 * Adobe Fonts integration, not this plugin. Fallbacks cover the gap.
 */

.lahu-footer {
	--lahu-footer-accent: #00a99d;
	--lahu-footer-main-bg: #ffffff;
	--lahu-footer-legal-bg: #f3f4f6;
	--lahu-footer-heading: #003057;
	--lahu-footer-link: #1f2937;
	--lahu-footer-link-hover: #003057;
	--lahu-footer-legal-text: #111827;
	--lahu-footer-icon: #003057;

	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
	border-top: 6px solid var(--lahu-footer-accent);
	background: var(--lahu-footer-main-bg);
	color: var(--lahu-footer-link);
	font-family: "avenir-lt-pro", "Avenir", sans-serif;
	box-sizing: border-box;
}

.lahu-footer *,
.lahu-footer *::before,
.lahu-footer *::after {
	box-sizing: border-box;
}

/* ---- Main section: brand + link columns ------------------------------ */

.lahu-footer__main {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 3rem 1.5rem;
	background: var(--lahu-footer-main-bg);
}

@media (min-width: 1024px) {
	.lahu-footer__main {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 3rem;
		padding: 3.5rem 5rem;
	}
}

.lahu-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	flex: 0 0 auto;
}

@media (min-width: 1024px) {
	.lahu-footer__brand {
		align-items: flex-start;
		width: 220px;
	}
}

.lahu-footer__logo {
	display: inline-block;
	line-height: 0;
}

.lahu-footer__brand img {
	display: block;
	height: auto !important;
	width: 100% !important;
	max-width: 170px !important;
	background: transparent !important;
}

.lahu-footer__socials {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	color: var(--lahu-footer-icon);
}

@media (min-width: 1024px) {
	.lahu-footer__socials {
		padding-left: 2rem;
	}
}

.lahu-footer__socials a {
	display: inline-flex;
	color: inherit !important;
	line-height: 0;
	text-decoration: none !important;
	transition: opacity 0.15s ease;
}

.lahu-footer__socials a:hover {
	opacity: 0.7;
}

.lahu-footer__socials svg,
.lahu-footer__socials img {
	display: block;
	width: 20px;
	height: 20px;
}

.lahu-footer__col {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
}

@media (min-width: 1024px) {
	.lahu-footer__col {
		text-align: left;
		max-width: 280px;
	}
}

.lahu-footer__heading {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--lahu-footer-heading) !important;
}

.lahu-footer__heading-link,
.lahu-footer__link {
	color: var(--lahu-footer-link) !important;
	text-decoration: none !important;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
}

.lahu-footer__heading-link {
	color: var(--lahu-footer-heading) !important;
	font-size: inherit;
	font-weight: inherit;
}

.lahu-footer__link:hover,
.lahu-footer__heading-link:hover {
	color: var(--lahu-footer-link-hover) !important;
	text-decoration: underline !important;
}

/* ---- Legal bar: copyright + blurb ------------------------------------ */

.lahu-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem 1.5rem 1.75rem;
	background: var(--lahu-footer-legal-bg);
	color: var(--lahu-footer-legal-text);
}

@media (min-width: 1024px) {
	.lahu-footer__legal {
		padding: 1.5rem 5rem 1.75rem;
	}
}

.lahu-footer__copy,
.lahu-footer__blurb {
	margin: 0;
	max-width: 62rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: inherit;
}

.lahu-footer__copy {
	font-weight: 700;
}

/* ---- Navy theme (give-site palette) ---------------------------------- */

.lahu-footer--navy {
	--lahu-footer-main-bg: #003057;
	--lahu-footer-legal-bg: #00243f;
	--lahu-footer-heading: #ffffff;
	--lahu-footer-link: #ffffff;
	--lahu-footer-link-hover: #ffffff;
	--lahu-footer-legal-text: #ffffff;
	--lahu-footer-icon: #ffffff;
}
