/**
 * ErosCharm — site footer (replaces Kadence's credit-line footer).
 *
 * Self-contained tokens on the footer root. Logical properties for RTL.
 */

.ec-footer {
	--ec-f-bg: #1f1612;
	--ec-f-ink: #f4efea;
	--ec-f-muted: #b9ada3;
	--ec-f-line: rgba(244, 239, 234, 0.14);
	--ec-f-serif: "Playfair Display", Georgia, "Noto Naskh Arabic", "Times New Roman", serif;
	--ec-f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans Arabic", Arial, sans-serif;

	background: var(--ec-f-bg) !important;
	color: var(--ec-f-ink);
	font-family: var(--ec-f-sans);
}

.ec-footer__inner {
	max-width: 1380px;
	margin-inline: auto;
	padding-inline: clamp(16px, 3vw, 44px);
}

.ec-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-block: clamp(40px, 5vw, 64px) 36px;
}

.ec-footer__logo {
	margin: 0 !important;
	font-family: var(--ec-f-serif);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--ec-f-ink);
}

.ec-footer__motto {
	margin: 10px 0 0 !important;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ec-f-muted);
}

.ec-footer__heading {
	margin: 0 0 14px !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ec-f-muted);
}

.ec-footer ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ec-footer li {
	margin: 0 !important;
}

.ec-footer__col li + li {
	margin-block-start: 4px !important;
}

.ec-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-size: 14px;
	color: var(--ec-f-ink) !important;
	text-decoration: none !important;
}

.ec-footer a:hover {
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.ec-footer a:focus-visible {
	outline: 2px solid var(--ec-f-ink);
	outline-offset: 3px;
}

.ec-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-block: 18px;
	border-block-start: 1px solid var(--ec-f-line);
}

.ec-footer.is-minimal .ec-footer__bottom {
	border-block-start: 0;
}

.ec-footer__copy {
	margin: 0 !important;
	font-size: 13px;
	color: var(--ec-f-muted);
}

.ec-footer__langs ul {
	display: flex;
	gap: 4px;
}

.ec-footer__langs a {
	min-width: 40px;
	min-height: 40px;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--ec-f-muted) !important;
}

.ec-footer__langs a[aria-current] {
	color: var(--ec-f-ink) !important;
	text-decoration: underline !important;
	text-underline-offset: 5px;
}

@media (max-width: 767px) {
	.ec-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.ec-footer__brand {
		grid-column: 1 / -1;
	}
}
