/**
 * Theme Zero site footer.
 *
 * Contains only the reusable footer shell. Project-specific contact details,
 * social links and business content belong in a project layer or WordPress.
 */

.t0-footer {
	border-block-start: 0.0625rem solid var(--wp--preset--color--border, #d9e1ea);
	background: var(--wp--preset--color--surface, #ffffff);
	color: var(--wp--preset--color--text, #14243b);
}

.t0-footer__inner {
	width: min(calc(100% - (2 * var(--t0-gutter))), var(--t0-wide-size));
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--60, 2rem);
}

.t0-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--60, 2rem);
}

.t0-footer__branding {
	display: flex;
	max-width: 32rem;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20, 0.5rem);
}

.t0-footer__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.t0-footer__logo .custom-logo {
	width: auto;
	max-height: 2.75rem;
}

.t0-footer__title {
	color: var(--wp--preset--color--text, #14243b);
	font-size: var(--wp--preset--font-size--large, 1.125rem);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.t0-footer__title:hover {
	color: var(--wp--preset--color--primary, #2459b3);
	text-decoration: none;
}

.t0-footer__description {
	margin: 0;
	color: var(--wp--preset--color--text-muted, #5e6a78);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	line-height: 1.6;
}

.t0-footer__navigation {
	max-width: 40rem;
}

.t0-footer-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20, 0.5rem) var(--wp--preset--spacing--40, 1rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.t0-footer-menu li {
	margin: 0;
}

.t0-footer-menu a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	padding-inline: var(--wp--preset--spacing--20, 0.5rem);
	color: var(--wp--preset--color--text, #14243b);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.t0-footer-menu a:hover {
	color: var(--wp--preset--color--primary, #2459b3);
	text-decoration: none;
}

.t0-footer-menu .current-menu-item > a,
.t0-footer-menu .current-menu-ancestor > a {
	color: var(--wp--preset--color--primary-dark, #173f82);
}

.t0-footer__bottom {
	padding-block-start: var(--wp--preset--spacing--40, 1rem);
	margin-block-start: var(--wp--preset--spacing--50, 1.5rem);
	border-block-start: 0.0625rem solid var(--wp--preset--color--border, #d9e1ea);
}

.t0-footer__copyright {
	margin: 0;
	color: var(--wp--preset--color--text-muted, #5e6a78);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	line-height: 1.5;
}

@media (max-width: 47.9375rem) {
	.t0-footer__inner {
		padding-block: var(--wp--preset--spacing--50, 1.5rem);
	}

	.t0-footer__top {
		align-items: stretch;
		flex-direction: column;
		gap: var(--wp--preset--spacing--40, 1rem);
	}

	.t0-footer__navigation {
		max-width: none;
	}

	.t0-footer-menu {
		align-items: flex-start;
		justify-content: flex-start;
		flex-direction: column;
		gap: 0;
	}

	.t0-footer-menu li,
	.t0-footer-menu a {
		width: 100%;
	}

	.t0-footer-menu a {
		padding-inline: 0;
	}
}

@media (forced-colors: active) {
	.t0-footer,
	.t0-footer__bottom {
		border-color: CanvasText;
	}
}
