/* ==========================================================================
   Footer (both languages share this structure; Persian mirrors automatically)

   Content is edited in two places:
   - Text: Appearance > Editor > Patterns > Template parts > "Footer" / "Footer (Persian)"
   - Links: Appearance > Editor > Navigation > "Footer – Explore / Contact & Media / Legal (EN|FA)"
   ========================================================================== */

/* Links on dark */
.site-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	text-underline-offset: 4px;
	transition: opacity 0.2s ease;
}

.site-footer a:hover {
	text-decoration: underline;
	opacity: 0.85;
}

.site-footer a:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Column titles: 12px above their content (was 0). Selector beats the theme's
   mobile `h2.wp-block-heading { font-size: 24px !important }`. */
.site-footer h2.vp-footer-title.wp-block-heading {
	margin: 0 0 12px !important;
	line-height: 1.4;
}

.site-footer .vp-footer-about {
	margin: 0;
	opacity: 0.85;
}

/* Link lists: one rhythm in both languages (was ~49px per item in English, ~27px in Persian). */
.site-footer .vp-footer-links .wp-block-navigation__container {
	gap: 4px !important;
}

.site-footer .vp-footer-links {
	font-size: 14px;
}

.site-footer .vp-footer-links .wp-block-navigation-item__content,
.site-footer .vp-footer-email {
	display: inline-block;
	padding-block: 4px;
	line-height: 1.6;
}

.site-footer .vp-footer-email {
	unicode-bidi: isolate;
}

/* Bottom row: legal links and social icons, under one quiet divider. */
.site-footer .vp-footer-bottom {
	margin-top: 56px !important;
	padding-top: 24px;
	border-top: 1px solid rgb(255 255 255 / 0.14);
	align-items: center;
	gap: 16px 32px;
}

/* Until legal pages and real social accounts are filled in, the row has nothing to show. */
.site-footer .vp-footer-bottom:not(:has(a)) {
	display: none;
}

.site-footer .vp-footer-legal .wp-block-navigation__container {
	gap: 8px 24px !important;
}

.site-footer .vp-footer-legal .wp-block-navigation-item__content {
	padding-block: 4px;
	color: rgb(255 255 255 / 0.72);
}

.site-footer .vp-footer-legal .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
}

.site-footer .vp-footer-social {
	gap: 8px !important;
	margin: 0;
}

.site-footer .vp-footer-social .wp-social-link a {
	padding: 8px;
}

.site-footer .vp-footer-social .wp-social-link a:hover {
	text-decoration: none;
	opacity: 0.7;
}

/* Copyright strip: same divider as above instead of a second, different line. */
.vp-footer-copyright {
	border-top: 1px solid rgb(255 255 255 / 0.08);
}

.vp-footer-copyright .vp-copyright {
	margin: 0;
	color: rgb(255 255 255 / 0.6) !important;
}

/* Persian: no Latin caps tracking; sizes per the Persian type scale. */
html:lang(fa) body .site-footer h2.vp-footer-title.wp-block-heading {
	font-size: 15px !important;
	font-weight: 700 !important;
}

html:lang(fa) body .site-footer .vp-footer-legal .wp-block-navigation-item__content {
	font-size: 13px;
	font-weight: 500;
}

html:lang(fa) body .vp-footer-copyright .vp-copyright {
	font-size: 13px !important;
}

/* Tablet and phone: About and Inquiries full width, the two link lists side by side. */
@media (max-width: 768px) {
	/* Beats the theme's mobile `.wp-block-group.alignfull { padding: 40px 20px !important }`,
	   which doubled the side margins and left an empty band under the copyright. */
	.site-footer.wp-block-group.alignfull {
		padding: 48px 0 0 !important;
	}

	.site-footer .vp-footer-copyright.wp-block-group.alignfull {
		padding: 16px 20px !important;
	}

	.site-footer .vp-footer-links .wp-block-navigation-item__content {
		white-space: normal;
	}

	.site-footer > .wp-block-group {
		padding: 0 20px 24px !important;
	}

	.site-footer .wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 32px 20px !important;
	}

	.site-footer .wp-block-column {
		width: 100% !important;
		margin: 0 !important;
	}

	.site-footer .wp-block-column:nth-child(1),
	.site-footer .wp-block-column:nth-child(4) {
		grid-column: span 2;
	}

	.site-footer h2.vp-footer-title.wp-block-heading {
		font-size: 12px !important;
		letter-spacing: 1.5px;
	}

	html:lang(fa) body .site-footer h2.vp-footer-title.wp-block-heading {
		font-size: 15px !important;
		letter-spacing: 0;
	}

	.site-footer .vp-footer-bottom {
		flex-direction: column;
		align-items: center;
		margin-top: 40px !important;
	}

	.site-footer .vp-footer-legal .wp-block-navigation__container {
		justify-content: center;
	}

	.vp-footer-copyright .vp-copyright {
		font-size: 11px !important;
		letter-spacing: 0.5px !important;
	}
}
