/* ==========================================================================
   Sitewide footer: navy band below the CTA band, replacing Elementor footer
   template 357 ("Global Footer"). Classes are namespaced .wf-footer*.
   Tokens come from assets/css/tokens.css.

   SPECIFICITY NOTE -- every selector is scoped under .wf-footer: Elementor's
   kit stylesheet ships element rules at 0-1-1 (.elementor-kit-6 a / img),
   which beat a bare single class, so the scope is load-bearing here just as
   it is in cta-band.css and header.css -- this footer renders on Elementor
   pages too until every page is migrated off template-builder templates.
   ========================================================================== */

/* ---------- Scope resets (must out-specify .elementor-kit-6 <el>) ---------- */
body .wf-footer a {
	color: var(--wf-text-offwhite);
	text-decoration: none;
}

body .wf-footer img {
	border-radius: 0;
	max-width: 100%;
	height: auto;
}

/* ---------- Footer ---------- */
.wf-footer {
	background: var(--wf-navy);
	color: var(--wf-text-offwhite);
	padding-block: 64px;
}

/* ---------- Top: brand column + 4 nav columns ---------- */
.wf-footer .wf-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

@media (min-width: 600px) {
	.wf-footer .wf-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
		row-gap: 40px;
	}

	.wf-footer .wf-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.wf-footer .wf-footer__top {
		grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
		column-gap: 40px;
	}

	.wf-footer .wf-footer__brand {
		grid-column: auto;
	}
}

/* ---------- Brand column ---------- */
.wf-footer .wf-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wf-footer .wf-footer__logo-link {
	display: inline-flex;
}

.wf-footer .wf-footer__logo {
	display: block;
	width: 160px;
	height: auto;
}

.wf-footer .wf-footer__logo-text {
	font: 700 1.25rem/1.2 var(--wf-font-heading);
	color: var(--wf-white);
}

/* dl label/value rows */
.wf-footer .wf-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.wf-footer .wf-footer__contact-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
}

.wf-footer .wf-footer__contact-row dt {
	flex: none;
	font-family: var(--wf-font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wf-cyan);
}

.wf-footer .wf-footer__contact-row dd {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.5;
}

.wf-footer .wf-footer__contact-row a:hover,
.wf-footer .wf-footer__contact-row a:focus-visible {
	color: var(--wf-white);
	text-decoration: underline;
}

/* Social links: 20px glyph in a 36px ghost square. Min- rather than fixed-
   size so a network with no brand icon in inc/icons.php (all six, today --
   that file only carries reference-header + heroicon glyphs) still fits its
   text label instead of overflowing a fixed 36x36 box. */
.wf-footer .wf-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.wf-footer .wf-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding-inline: 8px;
	border-radius: var(--wf-radius);
	border: 1px solid rgba(247, 248, 250, .18);
	color: var(--wf-text-offwhite);
	transition: border-color var(--wf-dur) var(--wf-ease), color var(--wf-dur) var(--wf-ease), background var(--wf-dur) var(--wf-ease);
}

.wf-footer .wf-footer__social a:hover,
.wf-footer .wf-footer__social a:focus-visible {
	border-color: var(--wf-cyan);
	color: var(--wf-white);
	background: rgba(0, 180, 216, .1);
}

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

.wf-footer .wf-footer__social-text {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	white-space: nowrap;
}

/* ---------- Nav columns ---------- */
.wf-footer .wf-footer__col {
	min-width: 0;
}

.wf-footer .wf-footer__heading {
	margin: 0 0 16px;
	font-family: var(--wf-font-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wf-cyan);
}

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

.wf-footer .wf-footer__list a {
	font-size: .9375rem;
}

.wf-footer .wf-footer__list a:hover,
.wf-footer .wf-footer__list a:focus-visible {
	color: var(--wf-white);
	text-decoration: underline;
}

/* ---------- Bottom bar ---------- */
.wf-footer .wf-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--wf-border-dark);
}

.wf-footer .wf-footer__copyright,
.wf-footer .wf-footer__tagline {
	margin: 0;
	font-size: .8125rem;
}

.wf-footer .wf-footer__tagline {
	font-family: var(--wf-font-heading);
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--wf-gold);
}

.wf-footer .wf-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .8125rem;
}

.wf-footer .wf-footer__legal li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.wf-footer .wf-footer__legal li:not(:first-child)::before {
	content: '\00B7';
	color: var(--wf-text-mute);
}

.wf-footer .wf-footer__legal a:hover,
.wf-footer .wf-footer__legal a:focus-visible {
	color: var(--wf-white);
	text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 599px) {
	.wf-footer {
		padding-block: 32px;
	}

	.wf-footer .wf-footer__bottom {
		justify-content: flex-start;
	}
}
