/* ==========================================================================
   Footer Layout & Styling (On-Demand Loading)
   ========================================================================== */

/* Footer Styles (Figma Specification) */
.site-footer {
	background-color: #031E2C;
	padding: 80px 0 40px 0;
	width: 100%;
	border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-container {
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 40px;
	box-sizing: border-box;
}

/* Brand info column */
.footer-col-brand {
	width: 30%;
	max-width: 340px;
}

.footer-logo {
	margin-bottom: 24px;
}

.footer-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.footer-logo img.custom-logo {
	height: 48px;
	width: auto;
	display: block;
}

.footer-description {
	font-size: 14px;
	font-weight: 400;
	color: #C2C2C2;
	line-height: 2;
	margin: 0 0 24px 0;
}

/* Social icons styling */
.footer-socials {
	display: flex;
	gap: 16px;
	align-items: center;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: transparent;
	color: #ffffff;
	transition: transform 0.25s ease, color 0.25s ease;
	text-decoration: none;
}

.social-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.social-icon:hover {
	color: #00ABF4;
	transform: translateY(-3px);
}

/* Link Columns */
.footer-col-menu {
	min-width: 160px;
}

.footer-title {
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 24px 0;
}

.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-menu .menu-item {
	margin: 0;
	padding: 0;
}

.footer-menu .menu-item a {
	font-size: 14px;
	font-weight: 500;
	color: #c2c2c2;
	text-decoration: none;
	transition: color 0.25s ease, padding-left 0.25s ease;
	display: inline-block;
}

.footer-menu .menu-item a:hover {
	color: #00ABF4;
	padding-left: 4px;
}

/* Footer Bottom Area */
.footer-bottom {
	border-top: 1px solid rgba(148, 163, 184, 0.15);
	margin-top: 60px;
	padding-top: 30px;
	width: 100%;
}

.footer-bottom-container {
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	box-sizing: border-box;
}

.footer-copyright p {
	font-size: 12px;
	font-weight: 400;
	color: #64748B;
	margin: 0;
}

.footer-bottom-links {
	display: flex;
	align-items: center;
}

.footer-bottom-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer-bottom-menu-list .menu-item {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.footer-bottom-menu-list .menu-item a {
	font-size: 12px;
	font-weight: 500;
	color: #94A3B8;
	text-decoration: none;
	transition: color 0.25s ease;
}

.footer-bottom-menu-list .menu-item a:hover {
	color: #00ABF4;
}

.footer-bottom-menu-list .menu-item:not(:last-child)::after {
	content: '•';
	color: #475569;
	margin-left: 16px;
	pointer-events: none;
	font-size: 10px;
}

/* Tablet Footer Grid Layout (1024px to 1240px) */
@media (max-width: 1240px) and (min-width: 1025px) {
	.footer-container {
		display: grid;
		grid-template-columns: 320px 1fr 1fr;
		grid-template-rows: auto auto;
		gap: 40px 30px;
	}

	.footer-col-brand {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 100% !important;
		max-width: none !important;
	}

	/* Position columns explicitly: Row 1 */
	.footer-container> :nth-child(2) {
		/* NAICS codes (Footer Column 1) */
		grid-column: 2;
		grid-row: 1;
	}

	.footer-container> :nth-child(3) {
		/* Quick Links (Footer Column 2) */
		grid-column: 3;
		grid-row: 1;
	}

	/* Position columns explicitly: Row 2 */
	.footer-container> :nth-child(4) {
		/* Our Services (Footer Column 3) */
		grid-column: 2;
		grid-row: 2;
	}

	.footer-container> :nth-child(5) {
		/* Contact Us (Footer Column 4) */
		grid-column: 3;
		grid-row: 2;
	}
}

/* Footer Responsive Styles */
@media (max-width: 1024px) {
	.footer-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 40px;
		padding: 0 24px;
	}

	.footer-col-brand {
		width: 100%;
		max-width: none;
	}

	.footer-col-menu {
		width: 100%;
		border-bottom: 1px solid rgba(148, 163, 184, 0.1);
		padding-bottom: 24px;
	}

	.footer-col-menu:last-of-type {
		border-bottom: none;
		padding-bottom: 0;
	}

	.footer-bottom-container {
		flex-direction: column;
		align-items: flex-start;
		align-content: center;
		padding: 0 24px;
		gap: 16px;
	}

	.footer-bottom-menu-list {
		flex-wrap: wrap;
		gap: 12px 16px;
	}
}

/* Tablet Medium Footer Grid Layout (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
	.footer-container {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto auto;
		gap: 40px 30px;
	}

	.footer-col-brand {
		grid-column: 1 / span 2;
		grid-row: 1;
		width: 100% !important;
		max-width: none !important;
	}

	.footer-col-menu {
		width: 100% !important;
		border-bottom: none !important;
		padding-bottom: 0 !important;
	}

	/* Row 2: NAICS Codes (Footer Column 1) & Quick Links (Footer Column 2) */
	.footer-container> :nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	.footer-container> :nth-child(3) {
		grid-column: 2;
		grid-row: 2;
	}

	/* Row 3: Our Services (Footer Column 3) & Contact Us (Footer Column 4) */
	.footer-container> :nth-child(4) {
		grid-column: 1;
		grid-row: 3;
	}

	.footer-container> :nth-child(5) {
		grid-column: 2;
		grid-row: 3;
	}
}
