/* VELYON Theme — Footer, M4 */

.site-footer {
	border-top: 1px solid var(--velyon-border);
	background: var(--velyon-surface-alt);
	margin-top: 40px;
}

/* ---------- Columns (built from widgets — see inc/footer.php) ---------- */
.footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 24px;
	/* v1.7.0: vertical only. These elements also carry .velyon-container;
	   `padding: 44px 0 20px` erased its left/right padding, which is why
	   footer text touched the screen edge on phones. */
	padding-top: 44px;
	padding-bottom: 20px;
}

/* v2.2.0: with the usual 5 widgets (brand + 4 menus) the brand column gets double width
   (1/3 of the row) and each menu 1/6, so the logo, text and social icons breathe and the
   menu columns stay tidy. Any other widget count keeps the equal auto-fit layout above. */
@media (min-width: 1025px) {
	.footer-columns:has(> :nth-child(5):last-child) {
		grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
	}
}

/* A grid item's default min-width is its longest unbreakable word, so one
   long e-mail address or URL in a widget could widen the whole footer
   (and with it the page). Let columns shrink and long strings wrap. */
.footer-columns > * {
	min-width: 0;
	overflow-wrap: anywhere;
}

.footer-widget h5 {
	font-family: var(--velyon-font-heading);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--velyon-text-muted);
	margin: 0 0 12px;
	font-weight: 700;
}

.footer-widget p {
	font-size: 12.5px;
	color: var(--velyon-text-muted);
	line-height: 1.6;
	margin: 0 0 9px;
}

.footer-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-widget ul li {
	margin: 0 0 9px;
}
.footer-widget a {
	font-size: 13px;
	color: var(--velyon-text);
	font-weight: 500;
}
.footer-widget a:hover {
	color: var(--velyon-accent-deep);
}

.footer-admin-hint {
	font-size: 13px;
	color: var(--velyon-text-muted);
	padding: 20px;
	border: 1px dashed var(--velyon-border);
	border-radius: var(--velyon-radius-m);
}
.footer-admin-hint a {
	color: var(--velyon-accent-deep);
	font-weight: 700;
}

/* ---------- Bottom bar ---------- */
.footer-bottom {
	border-top: 1px solid var(--velyon-border);
	padding-top: 16px;
	padding-bottom: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	color: var(--velyon-text-muted);
}

.footer-legal-nav ul {
	list-style: none;
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
}
.footer-legal-nav a {
	font-size: 12px;
	color: var(--velyon-text-muted);
}
.footer-legal-nav a:hover {
	color: var(--velyon-text);
}

@media (max-width: 782px) {
	.footer-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-top: 28px;
		padding-bottom: 10px;
	}
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}
