/* TPVy Footer Builder — conditionally loaded. */
.tpvy-site-footer {
	width: 100%;
	border-top: 1px solid var(--tpvy-color-border);
	background: var(--tpvy-color-surface-alt);
}

.tpvy-site-footer__inner {
	width: min(100%, var(--tpvy-content-width));
	margin-inline: auto;
	padding-inline: var(--tpvy-space-inline);
	padding-block: 2rem;
}

/* --------------------------------------------------------------------------
 * TPVy Theme 1.0.4 — Footer Builder
 * -------------------------------------------------------------------------- */
.tpvy-site-footer {
	margin: 0;
	border-top: 1px solid var(--tpvy-color-border);
	background: var(--tpvy-color-surface-alt);
	color: var(--tpvy-color-text);
}

.tpvy-site-footer--surface {
	background: var(--tpvy-color-surface);
}

.tpvy-site-footer--dark {
	border-top-color: rgba(255, 255, 255, .14);
	background: var(--tpvy-color-ink);
	color: #e5e7eb;
}

.tpvy-site-footer__main {
	display: grid;
	grid-template-columns: minmax(220px, 1.15fr) minmax(0, 2fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	padding-block: var(--tpvy-footer-padding, 64px);
}

.tpvy-footer-brand {
	max-width: 360px;
}

.tpvy-footer-brand__logo {
	margin-bottom: var(--tpvy-space-4);
}

.tpvy-footer-brand__logo .custom-logo-link {
	display: inline-block;
}

.tpvy-footer-brand__logo img {
	width: var(--tpvy-footer-logo-width, 52px);
	max-width: var(--tpvy-footer-logo-width, 52px);
	height: auto;
}

.tpvy-footer-brand__title {
	display: inline-block;
	color: var(--tpvy-color-ink);
	font-family: var(--tpvy-font-heading);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.tpvy-footer-brand__title:hover {
	color: var(--tpvy-color-primary);
}

.tpvy-footer-brand__description {
	margin: var(--tpvy-space-4) 0 0;
	color: var(--tpvy-color-muted);
	font-size: .95rem;
}

.tpvy-footer-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.75rem, 4vw, 4rem);
}

.tpvy-footer-column__title {
	margin: 0 0 var(--tpvy-space-4);
	color: var(--tpvy-color-ink);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .02em;
}

.tpvy-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpvy-footer-links li + li {
	margin-top: .65rem;
}

.tpvy-footer-links a {
	color: var(--tpvy-color-muted);
	font-size: .94rem;
	text-decoration: none;
}

.tpvy-footer-links a:hover,
.tpvy-footer-links a:focus-visible {
	color: var(--tpvy-color-primary);
}

.tpvy-site-footer__bottom {
	border-top: 1px solid var(--tpvy-color-border);
}

.tpvy-site-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .55rem;
	min-height: 58px;
	padding-block: .75rem;
	color: var(--tpvy-color-muted);
	font-size: .82rem;
}

.tpvy-site-footer__bottom a {
	color: inherit;
	text-decoration: none;
}

.tpvy-site-footer__bottom a:hover,
.tpvy-site-footer__bottom a:focus-visible {
	color: var(--tpvy-color-primary);
}

.tpvy-footer-separator {
	user-select: none;
}

.tpvy-site-footer--dark .tpvy-footer-brand__title,
.tpvy-site-footer--dark .tpvy-footer-column__title {
	color: #fff;
}

.tpvy-site-footer--dark .tpvy-footer-brand__description,
.tpvy-site-footer--dark .tpvy-footer-links a,
.tpvy-site-footer--dark .tpvy-site-footer__bottom-inner {
	color: #b8c0cc;
}

.tpvy-site-footer--dark .tpvy-footer-brand__title:hover,
.tpvy-site-footer--dark .tpvy-footer-links a:hover,
.tpvy-site-footer--dark .tpvy-site-footer__bottom a:hover {
	color: #fff;
}

.tpvy-site-footer--dark .tpvy-site-footer__bottom {
	border-top-color: rgba(255, 255, 255, .14);
}

.tpvy-footer-disabled .tpvy-site-footer {
	display: none;
}

@media (max-width: 900px) {
	.tpvy-site-footer__main {
		grid-template-columns: 1fr;
		gap: var(--tpvy-space-7);
	}

	.tpvy-footer-brand {
		max-width: 520px;
	}
}

@media (max-width: 640px) {
	.tpvy-site-footer__main {
		padding-block: max(36px, calc(var(--tpvy-footer-padding, 64px) * .75));
	}

	.tpvy-footer-columns {
		grid-template-columns: 1fr;
		gap: var(--tpvy-space-6);
	}

	.tpvy-site-footer__bottom-inner {
		justify-content: flex-start;
	}
}
