/* ==========================================================================
   Meridian West - Custom Footer Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
	--mw-footer-bg: #0D0C33;
	--mw-footer-text: #ffffff;
	--mw-footer-link: #ffffff;
	--mw-footer-link-hover: #a0a0ff;
	--mw-footer-font: "Meridian West", sans-serif;
	--mw-footer-padding-x: 20px;
	--mw-footer-divider: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Footer Base
   -------------------------------------------------------------------------- */
.mw-footer {
	background-color: var(--mw-footer-bg);
	color: var(--mw-footer-text);
	font-family: var(--mw-footer-font);
}

.mw-footer__inner {
	max-width: var(--container-max-width, 1320px);
	margin: 0 auto;
	padding: 60px var(--mw-footer-padding-x) 30px;
}

/* --------------------------------------------------------------------------
   Upper Footer (Top Section)
   -------------------------------------------------------------------------- */
.mw-footer__top {
	display: grid;
	grid-template-columns: 78px 1fr auto;
	gap: 40px;
	align-items: start;
}

/* Ensure first elements align flush to grid top */
.mw-footer__menu li:first-child a,
.mw-footer__address,
.mw-footer__logo-img {
	display: block;
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.mw-footer__logo a {
	display: block;
	text-decoration: none;
}

.mw-footer__logo-img {
	width: 78px;
	height: auto;
	display: block;
}

/* --------------------------------------------------------------------------
   Navigation Columns
   -------------------------------------------------------------------------- */
.mw-footer__nav-columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.mw-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mw-footer__menu li {
	margin-bottom: 6px;
}

.mw-footer__menu li:last-child {
	margin-bottom: 0;
}

.mw-footer__menu li a {
	font-family: var(--mw-footer-font);
	font-size: 15px;
	font-weight: 400;
	color: var(--mw-footer-link);
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.mw-footer__menu li a:hover,
.mw-footer__menu li a:focus {
	color: var(--mw-footer-link-hover);
}

/* --------------------------------------------------------------------------
   Contact Info
   -------------------------------------------------------------------------- */
.mw-footer__contact {
	text-align: right;
}

.mw-footer__address {
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 20px;
}

.mw-footer__details {
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
}

.mw-footer__details a {
	color: var(--mw-footer-link);
	text-decoration: none;
	transition: color 0.3s ease;
}

.mw-footer__details a:hover,
.mw-footer__details a:focus {
	color: var(--mw-footer-link-hover);
}

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.mw-footer__divider {
	border: none;
	border-top: 1px solid var(--mw-footer-divider);
	margin: 40px 0 20px;
}

/* --------------------------------------------------------------------------
   Bottom Bar
   -------------------------------------------------------------------------- */
.mw-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mw-footer__bottom-right {
	display: flex;
	align-items: center;
	gap: 30px;
}

.mw-footer__copyright {
	font-size: 14px;
	font-weight: 400;
	color: var(--mw-footer-text);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Legal Navigation
   -------------------------------------------------------------------------- */
.mw-footer__legal-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 24px;
}

.mw-footer__legal-menu li a {
	font-family: var(--mw-footer-font);
	font-size: 14px;
	font-weight: 400;
	color: var(--mw-footer-text);
	text-decoration: none;
	transition: color 0.3s ease;
	white-space: nowrap;
}

.mw-footer__legal-menu li a:hover,
.mw-footer__legal-menu li a:focus {
	color: var(--mw-footer-link-hover);
}

/* --------------------------------------------------------------------------
   Social Links
   -------------------------------------------------------------------------- */
.mw-footer__social {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mw-footer__social-label {
	font-size: 17px;
	font-weight: 400;
	color: var(--mw-footer-text);
	white-space: nowrap;
}

.mw-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mw-footer-link);
	text-decoration: none;
	transition: color 0.3s ease;
}

.mw-footer__social a:hover,
.mw-footer__social a:focus {
	color: var(--mw-footer-link-hover);
}

.mw-footer__social-icon {
	width: 20px;
	height: 20px;
}

/* --------------------------------------------------------------------------
   Keyboard Focus Styles
   -------------------------------------------------------------------------- */
.mw-footer a:focus-visible {
	outline: 2px solid var(--mw-footer-link-hover);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive - Tablet (< 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.mw-footer__top {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.mw-footer__contact {
		text-align: left;
	}

	.mw-footer__nav-columns {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.mw-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.mw-footer__bottom-right {
		flex-wrap: wrap;
		gap: 16px 24px;
	}
}

/* --------------------------------------------------------------------------
   Responsive - Mobile (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.mw-footer__inner {
		padding: 40px var(--mw-footer-padding-x) 64px;
	}

	/* Hide nav columns — sticky header handles navigation */
	.mw-footer__nav-columns {
		display: none;
	}

	.mw-footer__logo {
		margin-bottom: 40px;
	}

	.mw-footer__top {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mw-footer__contact {
		text-align: left;
	}

	.mw-footer__address,
	.mw-footer__details {
		font-size: 16px;
	}

	.mw-footer__divider {
		margin: 30px 0 16px;
	}

	.mw-footer__bottom-right {
		flex-wrap: wrap;
		gap: 12px 20px;
	}

	.mw-footer__legal-menu {
		flex-wrap: wrap;
		gap: 12px 20px;
	}
}

/* --------------------------------------------------------------------------
   Hide parent theme's default footer when our custom one is active
   -------------------------------------------------------------------------- */
.site-footer {
	display: none !important;
}
