/**
 * _footer.css — the footer Astra's builder draws (header-footer.php), in the kit's SiteFooter look.
 * Owns: the footer widgets' blocks (spectra-build/footer.cjs): the column labels, the address and phone lines, the logo,
 * the map; the Footer Menu's hover; the copyright, the legal links after it (ul.rl-legal-links) and the credit.
 * Doesn't own: the rows, columns and colors (Astra's builder settings).
 * Depends on: global/_tokens.css. The footer is navy: text muted (#C9CDD6, 8.37:1), links white.
 */

/* Column labels: Mulish 700 16px caps, .08em, teal (6.07:1 on navy) — the kit's 15px raised to the floor. */
.site-footer .rl-footer-label.rl-footer-label {
	margin: 0 0 8px;
	font-family: var(--rl-font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rl-color-alt-brand);
}

/* The address and phone lines: the icon, then the text taking the rest of the column. */
.site-footer .rl-footer-line.rl-footer-line > p {
	flex: 1;
	min-width: 0;
	width: auto;
	margin: 0;
}

/* Spectra stretches a container's non-container children with width: 100%: the icon is held by max-width. */
.site-footer .rl-footer-line.rl-footer-line > .uagb-icon-wrapper {
	flex: none;
	max-width: 18px;
	margin-top: 4px;
}

.site-footer .rl-footer-address {
	font-size: 16px;
	line-height: 1.6;
	color: var(--rl-color-on-dark-muted);
}

.site-footer .rl-footer-phone a {
	font-size: 16px;
	font-weight: 700;
	color: var(--rl-white);
}

.site-footer :is(.rl-footer-address, .rl-footer-phone) a {
	text-decoration: none;
	text-underline-offset: 3px;
}

.site-footer :is(.rl-footer-address, .rl-footer-phone) a:is(:hover, :focus-visible),
.site-footer .footer-nav-wrap .menu-link:is(:hover, :focus-visible) {
	text-decoration: underline 2px var(--rl-color-alt-brand);
}

.site-footer .rl-footer-address a {
	color: var(--rl-white);
	font-weight: 600;
}

/* The logo: 220px. */
.site-footer .rl-footer-logo img {
	width: 220px;
	height: auto;
}

/* The social icons under the logo, the kit's (Markup #19, 2026-10-28): 44px teal circles around Spectra's 22px navy
   icons (6.1:1); hover and focus turn the circle white. Spectra stretches a container's children to 100%: the icons
   keep their own width. */
.site-footer .rl-social.rl-social {
	flex-wrap: wrap;
}

.site-footer .rl-social > .rl-social__icon.rl-social__icon {
	flex: none;
	width: auto;
	max-width: max-content;
}

/* Spectra sets the icon's link to display: contents and sizes its wrapper to the icon: the link is the circle. */
.site-footer .rl-social__icon.rl-social__icon .uagb-svg-wrapper {
	display: block;
	width: auto;
	height: auto;
}

.site-footer .rl-social__icon.rl-social__icon .uagb-svg-wrapper a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rl-color-alt-brand);
	transition: background-color var(--rl-ease);
}

.site-footer .rl-social__icon.rl-social__icon .uagb-svg-wrapper a:is(:hover, :focus-visible) {
	background: var(--rl-white);
}

/* The footer is navy: the focus outline turns white there, as in the navy bands (_surfaces.css). */
body:not(.wp-admin) .site-footer :focus-visible {
	outline-color: var(--rl-white);
}

/* The Footer Menu under its label. */
.site-footer .footer-nav-wrap .menu-link {
	text-decoration: none;
}

.site-footer .footer-widget-area + .footer-widget-area,
.site-footer .footer-widget-area + .footer-bar-navigation,
.site-footer .footer-widget-area + .ast-footer-menu-wrap {
	margin-top: 0;
}

/* The map: 4:3, up to 340px wide (the mockup's). */
.site-footer .rl-footer-map {
	max-width: 340px;
}

/* Spectra renders the map as an <embed> 640px wide: fit it to the column. */
.site-footer .rl-footer-map :is(embed, iframe) {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* The bottom bar: 16px copyright; the credit 22px tall. */
.site-footer .ast-footer-copyright p {
	margin: 0;
}

/* The copyright, then the legal links (header-footer.php prints them in its element; the pre-launch QA, 2026-10-29):
   one line where it fits, 24px apart; a middle dot between the links. Links are white, as the footer's others, with
   their teal underline on hover. */
.site-footer .ast-footer-copyright > .ast-footer-copyright {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 24px;
}

.site-footer ul.rl-legal-links {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer ul.rl-legal-links li {
	margin: 0;
}

.site-footer ul.rl-legal-links li + li::before {
	content: "·" / "";
	margin: 0 10px;
}

.site-footer ul.rl-legal-links a {
	color: var(--rl-white);
	text-decoration: none;
	text-underline-offset: 3px;
}

.site-footer ul.rl-legal-links a:is(:hover, :focus-visible) {
	text-decoration: underline 2px var(--rl-color-alt-brand);
}

.site-footer .rl-credit-logo {
	display: inline-block;
	height: 30px; /* Markup #18 — 22px read small and soft */
	width: auto;
	vertical-align: middle;
}

.site-footer .footer-widget-area-inner p {
	margin-bottom: 0;
}
