/*
 * Footer layout refinements.
 * Keep the Astra Builder content intact while giving the site a compact,
 * readable layout at every breakpoint.
 */

#colophon .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
	min-height: 0 !important;
	padding: 64px clamp(28px, 8vw, 116px) 34px !important;
	background: #071723;
}

#colophon .site-primary-footer-inner-wrap {
	align-items: start !important;
	min-height: 0 !important;
	padding: 0 !important;
}

#colophon .site-primary-footer-wrap,
#colophon .site-primary-footer-wrap p,
#colophon .site-primary-footer-wrap span,
#colophon .site-primary-footer-wrap strong,
#colophon .site-primary-footer-wrap .widget-title,
#colophon .site-primary-footer-wrap a {
	color: #eaf5fb;
}

#colophon .site-footer-primary-section-1 .ast-builder-html-element {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	column-gap: 18px;
	align-items: start;
}

#colophon .site-footer-primary-section-1 .ast-builder-html-element p {
	margin: 0;
}

#colophon .site-footer-primary-section-1 .ast-builder-html-element p:first-child {
	grid-row: 1 / span 2;
}

#colophon .site-footer-primary-section-1 .ast-builder-html-element img {
	width: 76px !important;
	height: auto !important;
	margin: 0 !important;
}

#colophon .site-footer-primary-section-1 strong {
	display: inline-block;
	margin: 2px 0 9px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	white-space: nowrap;
}

#colophon .site-footer-primary-section-1 span {
	display: block;
	font-size: 13px !important;
	line-height: 1.75;
	color: rgba(234, 245, 251, 0.7) !important;
}

#colophon .site-footer-primary-section-2 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

#colophon .site-footer-primary-section-2 .footer-widget-area-inner,
#colophon .site-footer-primary-section-2 .widget,
#colophon .site-footer-primary-section-2 .widget:last-child {
	margin: 0 !important;
}

#colophon .site-footer-primary-section-2 .widget-title {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

#colophon .site-footer-primary-section-2 .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

#colophon .site-footer-primary-section-2 .menu-item {
	margin: 0;
}

#colophon .site-footer-primary-section-2 .menu-link {
	display: inline-block;
	padding: 4px 0;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(234, 245, 251, 0.66) !important;
	transition: color 180ms ease, transform 180ms ease;
}

#colophon .site-footer-primary-section-2 .menu-link:hover,
#colophon .site-footer-primary-section-2 .menu-link:focus-visible {
	color: #57c3ff !important;
	transform: translateX(3px);
}

#colophon .site-footer-primary-section-3 .ast-builder-html-element {
	max-width: 280px;
	margin-left: auto;
}

#colophon .site-footer-primary-section-3 p {
	margin: 0;
	text-align: right !important;
}

#colophon .site-footer-primary-section-3 p:first-child {
	margin-bottom: 14px;
}

#colophon .site-footer-primary-section-3 p:first-child span {
	font-size: 18px !important;
}

#colophon .site-footer-primary-section-3 p:last-child {
	font-size: 14px;
	line-height: 1.9;
	color: rgba(234, 245, 251, 0.72) !important;
}

#colophon .site-below-footer-wrap[data-section="section-below-footer-builder"] {
	min-height: 0 !important;
	padding: 18px clamp(28px, 8vw, 116px) !important;
	background: #071723;
	border-top: 1px solid rgba(151, 204, 232, 0.16);
}

#colophon .site-below-footer-inner-wrap {
	min-height: 0 !important;
	padding: 0 !important;
}

#colophon .ast-footer-copyright,
#colophon .ast-footer-copyright p {
	margin: 0;
	font-size: 13px;
	color: rgba(234, 245, 251, 0.52) !important;
}

@media (max-width: 921px) {
	#colophon .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
		padding-top: 42px !important;
		padding-bottom: 28px !important;
	}

	#colophon .site-primary-footer-inner-wrap {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-template-areas:
			"brand brand"
			"menus menus"
			"contact contact";
		gap: 34px 22px !important;
	}

	#colophon .site-footer-primary-section-1 {
		grid-area: brand;
	}

	#colophon .site-footer-primary-section-2 {
		grid-area: menus;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	#colophon .site-footer-primary-section-2 .footer-widget-area-inner:last-child {
		grid-column: 1 / -1;
	}

	#colophon .site-footer-primary-section-3 {
		grid-area: contact;
		padding-top: 26px;
		border-top: 1px solid rgba(151, 204, 232, 0.16);
	}

	#colophon .site-footer-primary-section-3 .ast-builder-html-element {
		max-width: none;
		margin: 0;
	}

	#colophon .site-footer-primary-section-3 p {
		text-align: left !important;
	}
}

@media (max-width: 480px) {
	#colophon .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
		padding: 36px 24px 26px !important;
	}

	#colophon .site-primary-footer-inner-wrap {
		gap: 30px !important;
	}

	#colophon .site-footer-primary-section-1 .ast-builder-html-element {
		grid-template-columns: 62px minmax(0, 1fr);
		column-gap: 14px;
	}

	#colophon .site-footer-primary-section-1 .ast-builder-html-element img {
		width: 62px !important;
	}

	#colophon .site-footer-primary-section-1 strong {
		margin-top: 0;
		font-size: 16px;
	}

	#colophon .site-footer-primary-section-1 span {
		font-size: 12px !important;
		line-height: 1.65;
	}

	#colophon .site-footer-primary-section-2 {
		gap: 24px 16px;
	}

	#colophon .site-footer-primary-section-2 .widget-title {
		margin-bottom: 10px;
		font-size: 15px;
	}

	#colophon .site-footer-primary-section-2 .menu-link {
		padding: 3px 0;
		font-size: 13px;
	}

	#colophon .site-footer-primary-section-3 {
		padding-top: 22px;
	}

	#colophon .site-footer-primary-section-3 p:first-child {
		margin-bottom: 9px;
	}

	#colophon .site-footer-primary-section-3 p:first-child span {
		font-size: 16px !important;
	}

	#colophon .site-footer-primary-section-3 p:last-child {
		font-size: 13px;
		line-height: 1.8;
	}

	#colophon .site-below-footer-wrap[data-section="section-below-footer-builder"] {
		padding: 15px 24px !important;
	}

	#colophon .ast-footer-copyright,
	#colophon .ast-footer-copyright p {
		font-size: 12px;
	}
}
