/* =========================================================================
   INAA site footer
   ========================================================================= */

.inaa-footer {
	--inaa-footer-bg: var(--inaa-navy, #14275c);
	--inaa-footer-text: rgba(255, 255, 255, 0.86);

	position: relative;
	background: var(--inaa-footer-bg);
	color: var(--inaa-footer-text);
	font-family: var(--inaa-font);
	padding: 36px 20px 26px;
}

@media (min-width: 768px) {
	.inaa-footer {
		padding-inline: 32px;
	}
}

.inaa-footer * {
	box-sizing: border-box;
}

/* The footer sits in a narrower block than the rest of the site (1280px), so
   the content reads as a centred slab rather than running to the edges — the
   reference does the same. Deliberately NOT --inaa-container: this inset is
   footer-only, so the footer's left edge sits inboard of the header's. */
.inaa-footer__inner {
	width: 100%;
	max-width: 1150px;
	margin-inline: auto;
}

/* ---------- columns ---------- */

.inaa-footer__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
}

@media (min-width: 700px) {
	.inaa-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Four columns: offices, the link menu across two, then contact.
   This used to be "250px 250px 1fr" with the trailing space left to under-fill
   deliberately. That read as balanced while the offices column was long, but
   the footer now lists only locations that actually have an address — often
   one or two — which left the row looking half-empty. Splitting the link menu
   over two columns fills the width from content that already exists, rather
   than padding it out with something invented. */
@media (min-width: 1000px) {
	.inaa-footer__cols {
		grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 0.85fr)) minmax(0, 1.1fr);
		gap: 40px;
	}

	.inaa-footer__col--links {
		grid-column: span 2;
	}

	/* One WordPress menu, flowed into two columns, so editors keep managing a
	   single list and the balance adjusts itself as items are added. */
	.inaa-footer__col--links .inaa-footer__list {
		columns: 2;
		column-gap: 40px;
	}

	.inaa-footer__col--links .inaa-footer__list li {
		break-inside: avoid;
	}
}

.inaa-footer__heading {
	margin: 0 0 10px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

.inaa-footer__heading--follow {
	margin-top: 22px;
}

/* ---------- offices ---------- */

.inaa-footer__office + .inaa-footer__office {
	margin-top: 20px;
}

.inaa-footer__address {
	margin: 0;
	font-size: 0.875rem;
	font-style: normal;
	line-height: 1.55;
}

.inaa-footer__phone,
.inaa-footer__contact a,
.inaa-footer__list a,
.inaa-footer__also-list a {
	color: var(--inaa-footer-text);
	text-decoration: none;
	transition: color 180ms ease;
}

.inaa-footer__phone {
	display: inline-block;
	margin-top: 2px;
	font-size: 0.875rem;
	line-height: 1.55;
}

.inaa-footer__phone:hover,
.inaa-footer__contact a:hover,
.inaa-footer__list a:hover,
.inaa-footer__also-list a:hover,
.inaa-footer__phone:focus-visible,
.inaa-footer__contact a:focus-visible,
.inaa-footer__list a:focus-visible,
.inaa-footer__also-list a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.inaa-footer__badge {
	margin-top: 22px;
}

.inaa-footer__badge img {
	display: block;
	width: auto;
	max-width: 160px;
	height: auto;
}

/* ---------- link list ---------- */

.inaa-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.inaa-footer__list li {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.inaa-footer__list a {
	font-size: 0.84375rem;
	line-height: 1.5;
}

/* ---------- contact ---------- */

.inaa-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.inaa-footer__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.inaa-footer__contact svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: #fff;
	opacity: 0.9;
}

.inaa-footer__hours {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* ---------- social ---------- */

.inaa-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.inaa-footer__social li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.inaa-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	color: #fff;
	transition: background-color 180ms ease, transform 180ms ease;
}

.inaa-footer__social svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.inaa-footer__social a:hover,
.inaa-footer__social a:focus-visible {
	background: var(--inaa-red, #d0111b);
	transform: translateY(-1px);
}

/* ---------- also of interest ---------- */

.inaa-footer__also {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 20px;
	margin-top: 30px;
}

.inaa-footer__also-title {
	margin: 0;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
}

.inaa-footer__also-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.inaa-footer__also-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.inaa-footer__also-list a {
	font-size: 0.84375rem;
}

/* ---------- bottom ---------- */

.inaa-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 30px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/* The logo is navy artwork, so on navy it needs a light plate. */
.inaa-footer__logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 5px 9px;
	border-radius: 3px;
	background: #fff;
	text-decoration: none;
}

.inaa-footer__logo .inaa-logo__img {
	display: block;
	width: auto;
	height: auto;
	max-height: 34px;
}

.inaa-footer__logo .inaa-logo__text {
	display: none;
}

.inaa-footer__logo .inaa-logo__mark {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
}

.inaa-footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.8125rem;
	line-height: 1.55;
}

/* ---------- back to top ---------- */

.inaa-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--inaa-navy, #14275c);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(13, 26, 62, 0.34);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 220ms ease, transform 220ms ease, background-color 180ms ease;
}

.inaa-to-top[hidden] {
	display: none;
}

.inaa-to-top.is-visible {
	opacity: 1;
	transform: none;
}

.inaa-to-top:hover,
.inaa-to-top:focus-visible {
	background: var(--inaa-red, #d0111b);
}

.inaa-to-top svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.inaa-footer :focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.inaa-to-top,
	.inaa-footer__social a {
		transition: none;
	}
}

@media (max-width: 560px) {
	.inaa-footer {
		padding-top: 30px;
	}

	.inaa-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.inaa-to-top {
		right: 14px;
		bottom: 14px;
	}
}

/* Developer credit — opposite end of the bottom bar from the logo. */

.inaa-footer__credit {
	margin: 0 0 0 auto;
	text-align: right;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8125rem;
	line-height: 1.55;
}

.inaa-footer__credit a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 180ms ease;
}

.inaa-footer__credit a:hover,
.inaa-footer__credit a:focus-visible {
	color: #fff;
}

/* Must come after the base .inaa-footer__credit rule above, or the auto
   margin wins on equal specificity. Stacked bar: nothing to sit opposite. */
@media (max-width: 560px) {
	.inaa-footer__credit {
		margin-left: 0;
		text-align: left;
	}
}

/* Focus-after-click keeps the fill (the global reset blanks :focus). */
.inaa-to-top:focus { background: var(--inaa-red, #d0111b); }
