/* ==========================================================================
   Matheson Custom Footer
   ========================================================================== */

#custom-footer,
#custom-footer * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

#custom-footer {
	background-color: #1c1f4e;
	color: #ffffff;
	font-family: 'Open Sans', sans-serif;
	padding: 0;
	width: 100%;
	position: relative;
}

/* Subtle top accent line */
#custom-footer::before {
	content: '';
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #B0C637 0%, #B0C637 30%, transparent 100%);
}

/* Container */
#custom-footer .footer-container {
	width: 80%;
	max-width: 1208px;
	margin: 0 auto;
}

/* ---- Top section: logo + contact inline ---- */
#custom-footer .footer-top {
	padding: 48px 0 40px;
}

#custom-footer .footer-brand {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	flex-wrap: nowrap;
}

#custom-footer .footer-brand-left {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

#custom-footer .footer-logo {
	display: block;
	max-width: 340px;
	height: auto;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
}

/* Contact block: two columns — address | phone/fax/email */
#custom-footer .footer-contact-block {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

#custom-footer .footer-contact-col {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
}

/* Address column: icon + label on top, address below */
#custom-footer .footer-address-col {
	flex-direction: column;
	gap: 6px;
}

#custom-footer .footer-address-eyebrow {
	display: flex;
	align-items: center;
	gap: 6px;
}

#custom-footer .footer-address-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: rgba(255, 255, 255, 0.4);
}

#custom-footer .footer-address-eyebrow svg {
	color: #B0C637;
}

#custom-footer .footer-contact-block svg {
	flex-shrink: 0;
	color: #B0C637;
	margin-top: 2px;
}

#custom-footer .footer-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#custom-footer .footer-contact-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.6);
}

#custom-footer .footer-contact-block a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.15s ease;
}

#custom-footer .footer-contact-block a:hover,
#custom-footer .footer-contact-block a:focus {
	color: #B0C637;
}

/* ---- Footer CTA ---- */
#custom-footer .footer-cta {
	margin-left: auto;
	flex-shrink: 0;
	align-self: flex-end;
	display: flex;
	align-items: flex-end;
	gap: 32px;
}

#custom-footer .footer-cta-text {
	font-size: 44px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
	white-space: nowrap;
}

#custom-footer .footer-cta-btn {
	display: inline-block;
	padding: 10px 28px;
	border: 1.5px solid #B0C637;
	color: #B0C637;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

#custom-footer .footer-cta-btn:hover,
#custom-footer .footer-cta-btn:focus {
	background: #B0C637;
	color: #1c1f4e;
}

/* ---- Divider ---- */
#custom-footer .footer-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
}

/* ---- Nav grid: 5 equal columns ---- */
#custom-footer .footer-nav-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 28px;
	padding: 36px 0 44px;
}

/* Headings */
#custom-footer .footer-col h2 {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 16px;
	color: #B0C637;
}

#custom-footer .footer-col h2.footer-subheading {
	margin-top: 28px;
}

/* Nav lists */
#custom-footer .footer-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}

#custom-footer .footer-nav li {
	margin-bottom: 7px;
}

#custom-footer .footer-nav a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-size: 13px;
	line-height: 1.4;
	transition: color 0.15s ease;
}

#custom-footer .footer-nav a:hover,
#custom-footer .footer-nav a:focus {
	color: #ffffff;
}

#custom-footer .footer-nav a:focus-visible {
	outline: 1px solid #B0C637;
	outline-offset: 2px;
}

#custom-footer .footer-nav a:focus:not(:focus-visible) {
	outline: none;
}

/* ---- Bottom bar ---- */
#custom-footer .footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 18px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#custom-footer .footer-sitemap-link {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.35);
	text-decoration: none;
	letter-spacing: 0.3px;
	transition: color 0.15s ease;
}

#custom-footer .footer-sitemap-link:hover,
#custom-footer .footer-sitemap-link:focus {
	color: #ffffff;
}

#custom-footer .footer-bottom p {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.35);
	letter-spacing: 0.3px;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
	#custom-footer .footer-container {
		width: 90%;
	}

	#custom-footer .footer-nav-grid {
		gap: 20px;
	}
}

@media (max-width: 1040px) {
	#custom-footer .footer-brand {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	#custom-footer .footer-cta {
		margin-left: 0;
		align-self: flex-start;
	}
}

@media (max-width: 980px) {
	#custom-footer .footer-contact-block {
		gap: 24px;
	}

	#custom-footer .footer-nav-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
	}
}

@media (max-width: 768px) {
	#custom-footer .footer-cta {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	#custom-footer .footer-cta-text {
		font-size: 32px;
		white-space: normal;
	}

	#custom-footer .footer-nav-grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
		padding: 30px 0 36px;
	}

	#custom-footer .footer-contact-block {
		flex-direction: column;
		gap: 16px;
	}
}

@media (max-width: 480px) {
	#custom-footer .footer-nav-grid {
		grid-template-columns: 1fr;
	}

	#custom-footer .footer-cta-text {
		font-size: 26px;
	}
}
