/**
 * Footer — one combined logo left, contact columns packed right, legal bar below.
 */

.uw-footer {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	padding-top: 47px;
	padding-bottom: 15px;
}

.uw-footer a {
	color: #ffffff;
	text-decoration: none;
}

.uw-footer__cols .wp-block-heading,
.uw-footer__cols h3 {
	margin: 0 0 0.75rem;
	font-family: "Fraunces", var(--wp--preset--font-family--fraunces, Georgia, serif);
	font-style: normal;
	font-weight: 600;
	font-size: 20px;
	line-height: 28px;
	color: #ffffff;
}

.uw-footer__cols p,
.uw-footer__cols a {
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
	color: #ffffff;
}

.uw-footer__cols p {
	margin: 0;
}

.uw-footer__cols p + p {
	margin-top: 0.35rem;
}

.uw-footer__email-label {
	display: block;
	margin: 0 0 0.1em;
	font-size: 16px;
	line-height: 22px;
	opacity: 0.85;
}

.uw-footer__cols p:has(> .uw-footer__email-label) {
	max-width: 22rem;
}

.uw-footer__cols p:has(> .uw-footer__email-label) a {
	display: inline-block;
	word-break: break-word;
}

.uw-footer__address {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 0 !important;
}

.uw-footer__address-icon {
	flex: 0 0 auto;
	display: inline-flex;
	width: 30px;
	height: 30px;
	margin-top: 0;
}

.uw-footer__address-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Top row: combined logo left · contact cols right · open middle gutter */
.uw-footer__inner {
	max-width: var(--uw-container);
	margin-inline: auto;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
	width: 100%;
	padding-inline: var(--uw-gutter, 1rem);
	box-sizing: border-box;
}

.uw-footer__logos {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	max-width: min(640px, 52%);
}

.uw-footer__logo {
	margin: 0;
	width: 100%;
}

.uw-footer__logo a {
	display: inline-block;
	line-height: 0;
	max-width: 100%;
}

.uw-footer__logos img,
.uw-footer__logo img {
	display: block;
	height: auto;
	width: auto;
	max-height: 129px;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}

/* Three content-sized columns, packed to the right with 40px gaps */
.uw-footer__cols.wp-block-columns,
.uw-footer__cols {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 40px !important;
	width: auto;
	max-width: none;
	margin: 0 0 0 auto;
	flex: 0 0 auto;
}

.uw-footer__cols > .wp-block-column {
	flex-basis: auto !important;
	flex-grow: 0 !important;
	flex-shrink: 0;
	width: auto !important;
	max-width: none;
}

/* Copyright centered across full bar; legal flush right */
.uw-footer__bottom.wp-block-group,
.uw-footer__bottom {
	max-width: var(--uw-container);
	margin-inline: auto;
	margin-top: 2rem;
	padding-top: 1.25rem;
	padding-inline: var(--uw-gutter, 1rem);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 20%, transparent);
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	box-sizing: border-box;
}

.uw-footer__bottom > p:first-child {
	grid-column: 2;
	justify-self: center;
	text-align: center;
}

.uw-footer__langs {
	display: none;
	grid-column: 1;
	justify-self: start;
}

/* Kill WP flow-layout stacking/margins inside the bottom bar. */
.uw-footer__bottom.is-layout-flow > * + *,
.uw-footer__bottom.wp-block-group-is-layout-flow > * + * {
	margin-block-start: 0 !important;
}

.uw-footer__lang-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.uw-footer__lang-item a {
	display: inline-flex;
	align-items: center;
	padding: 4px 0;
	opacity: 0.72;
	text-decoration: none;
	transition: opacity 160ms ease;
}

.uw-footer__lang-item a:hover,
.uw-footer__lang-item a:focus-visible {
	opacity: 1;
}

.uw-footer__lang-item.is-active a,
.uw-footer__lang-item a[aria-current="true"] {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.uw-footer__bottom > p:last-child {
	grid-column: 3;
	justify-self: end;
	text-align: right;
}

.uw-footer__bottom p,
.uw-footer__bottom a {
	margin: 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 16px;
	color: #ffffff;
}

@media (min-width: 1501px) {
	.uw-footer__cols.wp-block-columns,
	.uw-footer__cols {
		gap: 100px !important;
	}
}

@media (max-width: 1023px) {
	.uw-footer__inner {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.uw-footer__logos {
		max-width: 100%;
	}

	.uw-footer__cols.wp-block-columns,
	.uw-footer__cols {
		flex-wrap: wrap;
		width: 100%;
		margin-left: 0;
		justify-content: flex-start;
	}

	.uw-footer__langs {
		display: block;
	}

	.uw-footer__bottom.wp-block-group,
	.uw-footer__bottom {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"langs langs"
			"copy legal";
		align-items: center;
		gap: 14px 16px;
	}

	.uw-footer__langs {
		grid-area: langs;
		justify-self: center;
		width: 100%;
	}

	.uw-footer__lang-list {
		justify-content: center;
	}

	.uw-footer__bottom > p:first-of-type {
		grid-area: copy;
		grid-column: auto;
		justify-self: start;
		text-align: left;
		line-height: 1.35;
	}

	.uw-footer__bottom > p:last-of-type {
		grid-area: legal;
		grid-column: auto;
		justify-self: end;
		text-align: right;
		line-height: 1.35;
	}
}

@media (max-width: 767px) {
	.uw-footer__inner {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.uw-footer__logos {
		justify-content: center;
	}

	.uw-footer__cols.wp-block-columns,
	.uw-footer__cols {
		gap: 24px !important;
		justify-content: center;
		text-align: center;
	}

	.uw-footer__cols > .wp-block-column,
	.uw-footer__cols > .wp-block-column.is-layout-flow {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100% !important;
	}

	.uw-footer__cols .wp-block-heading,
	.uw-footer__cols h3,
	.uw-footer__cols p,
	.uw-footer__cols a {
		text-align: center;
	}

	.uw-footer__address {
		justify-content: center;
		align-items: flex-start;
		text-align: left;
	}

	.uw-footer__bottom.wp-block-group,
	.uw-footer__bottom {
		gap: 12px 12px;
	}

	.uw-footer__bottom > p:first-of-type,
	.uw-footer__bottom > p:last-of-type {
		font-size: 14px;
		line-height: 1.35;
	}
}
