/**
 * Kovka-specific footer presentation.
 *
 * Extends the reusable Theme Zero footer without changing its PHP markup.
 * Business contact details and social links remain outside this foundation.
 */

.t0-footer {
	padding: clamp(0.75rem, 2vw, 1.5rem);
	border-block-start: 0;
	background: var(--wp--preset--color--background, #f4f7fb);
}

.t0-footer__inner {
	width: min(100%, 96rem);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 0.0625rem solid rgb(255 255 255 / 12%);
	border-radius: 1rem;
	background: #142a45;
	box-shadow: 0 0.75rem 2rem rgb(20 36 59 / 12%);
	color: #ffffff;
}

.t0-footer__top {
	align-items: stretch;
	gap: clamp(2rem, 5vw, 5rem);
}

.t0-footer__branding {
	max-width: 22rem;
	justify-content: flex-start;
	gap: 1rem;
}

.t0-footer__logo .custom-logo-link {
	min-height: 4rem;
	justify-content: center;
	padding: 0.625rem 0.875rem;
	border-radius: 0.75rem;
	background: #ffffff;
}

.t0-footer__logo .custom-logo {
	width: auto;
	max-width: min(12rem, 100%);
	max-height: 3rem;
}

.t0-footer__title {
	color: #ffffff;
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	letter-spacing: -0.02em;
}

.t0-footer__title:hover {
	color: #d9e8ff;
}

.t0-footer__description {
	max-width: 32ch;
	color: #d3deea;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.t0-footer__navigation {
	flex: 1 1 32rem;
	max-width: 48rem;
}

.t0-footer-menu {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	justify-content: stretch;
	gap: 0.25rem clamp(1rem, 3vw, 2rem);
}

.t0-footer-menu a {
	width: 100%;
	min-height: 2.5rem;
	justify-content: flex-start;
	padding-inline: 0;
	color: #eaf1f8;
	font-size: 0.875rem;
	font-weight: 600;
}

.t0-footer-menu a:hover {
	color: #ffffff;
	text-decoration: underline;
	text-decoration-thickness: 0.0625rem;
	text-underline-offset: 0.25em;
}

.t0-footer-menu a:focus-visible {
	outline: 0.1875rem solid #ffffff;
	outline-offset: 0.1875rem;
}

.t0-footer-menu .current-menu-item > a,
.t0-footer-menu .current-menu-ancestor > a {
	color: #ffffff;
	text-decoration: underline;
	text-decoration-thickness: 0.125rem;
	text-underline-offset: 0.3em;
}

.t0-footer__bottom {
	padding-block-start: 1.125rem;
	margin-block-start: clamp(1.5rem, 3vw, 2rem);
	border-block-start-color: rgb(255 255 255 / 18%);
	text-align: center;
}

.t0-footer__copyright {
	color: #c6d3e1;
	font-size: 0.8125rem;
}

@media (max-width: 61.9375rem) {
	.t0-footer__top {
		flex-direction: column;
		gap: 1.5rem;
	}

	.t0-footer__branding {
		max-width: 32rem;
	}

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

@media (max-width: 47.9375rem) {
	.t0-footer {
		padding: 0.5rem;
	}

	.t0-footer__inner {
		padding: 1.5rem;
		border-radius: 0.875rem;
	}

	.t0-footer__logo .custom-logo-link {
		justify-content: flex-start;
	}

	.t0-footer-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.25rem 1rem;
	}

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

	.t0-footer__bottom {
		text-align: start;
	}
}

@media (max-width: 29.9375rem) {
	.t0-footer-menu {
		grid-template-columns: 1fr;
	}
}

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

	.t0-footer__inner {
		background: Canvas;
		color: CanvasText;
		box-shadow: none;
	}

	.t0-footer__title,
	.t0-footer__description,
	.t0-footer-menu a,
	.t0-footer__copyright {
		color: CanvasText;
	}
}
