/* ═══════════════════════════════════════════════════════════════════════════
   Lithops Header Footer Editor — Public Footer Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Основа футера ──────────────────────────────────────────────────────── */
.site-footer[data-lhfe='footer'] {
	position: relative;
	width: 100%;
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
	background-color: var(--lhfe-bg, #1a1f36);
	color: #fff;
	overflow: hidden;
}

/* ── Фоновое изображение ────────────────────────────────────────────────── */
.site-footer[data-lhfe='footer']::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--lhfe-bg-image, none);
	background-size: var(--lhfe-bg-size, cover);
	background-position: var(--lhfe-bg-pos, center);
	background-repeat: var(--lhfe-bg-repeat, no-repeat);
	opacity: var(--lhfe-bg-opacity, 0.15);
	z-index: 0;
	pointer-events: none;
}

/* ── Overlay ────────────────────────────────────────────────────────────── */
.site-footer[data-lhfe='footer']::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--lhfe-overlay-color, transparent);
	opacity: var(--lhfe-overlay-opacity, 0);
	z-index: 0;
	pointer-events: none;
}

.site-footer[data-lhfe='footer'] > * {
	position: relative;
	z-index: 1;
}

/* ── Текст ──────────────────────────────────────────────────────────────── */
.site-footer .footer-text {
	color: var(--lhfe-secondary, rgba(255, 255, 255, 0.65));
	font-size: 0.9rem;
	line-height: 1.6;
}

.site-footer .text-secondary,
.site-footer .text-muted {
	color: var(--lhfe-secondary, rgba(255, 255, 255, 0.5)) !important;
}

/* ── Логотип ────────────────────────────────────────────────────────────── */
.site-footer .footer-logo {
	max-height: 56px;
	display: block;
}

/* ── Ссылки ─────────────────────────────────────────────────────────────── */
.site-footer .footer-link {
	color: var(--lhfe-link, rgba(255, 255, 255, 0.7));
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s ease;
	display: inline-block;
}

.site-footer .footer-link:hover {
	color: #fff;
	text-decoration: none;
}

/* Колончатые ссылки */
.site-footer .footer-col-link {
	color: var(--lhfe-link, rgba(255, 255, 255, 0.7));
	text-decoration: none;
	font-size: 0.875rem;
	padding: 3px 0;
	display: block;
	transition: color 0.2s ease;
}

.site-footer .footer-col-link:hover {
	color: #fff;
}

/* ── Заголовки колонок ──────────────────────────────────────────────────── */
.site-footer .footer-col-title {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 16px;
}

/* ── Контакты ───────────────────────────────────────────────────────────── */
.site-footer .footer-contact {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.site-footer .footer-contact:hover {
	color: #fff;
}

.site-footer .footer-contact-icon {
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1.4;
}

/* ── CTA кнопка ─────────────────────────────────────────────────────────── */
.site-footer .footer-cta-btn {
	font-size: 0.875rem;
	padding: 8px 20px;
	border-radius: 6px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

/* ── Разделитель ────────────────────────────────────────────────────────── */
.site-footer .footer-divider {
	border: none;
	border-top: 1px solid var(--lhfe-divider, rgba(255, 255, 255, 0.12));
	margin: 0;
}

/* ── Нижняя строка (legal) ──────────────────────────────────────────────── */
.site-footer .footer-legal {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.45);
}

.site-footer .footer-legal a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer .footer-legal a:hover {
	color: rgba(255, 255, 255, 0.9);
}

.site-footer .footer-legal-sep {
	margin: 0 8px;
	opacity: 0.4;
}

/* ── Иконки соцсетей ────────────────────────────────────────────────────── */
.site-footer .footer-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--lhfe-icon-border, rgba(255, 255, 255, 0.25));
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 15px;
	transition:
		border-color 0.2s ease,
		color 0.2s ease,
		background 0.2s ease;
}

.site-footer .footer-icon svg {
	fill: currentColor;
	width: 16px;
	height: 16px;
}

/* Bootstrap Icons внутри кружка — фикс выравнивания */
.site-footer .footer-icon .bi {
	font-size: 16px;
	line-height: 1;
	display: block;
}

.site-footer .footer-icon:hover {
	border-color: var(--lhfe-icon-hover-border, rgba(255, 255, 255, 0.7));
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* ── Accordion (mobile columns) ─────────────────────────────────────────── */
.site-footer .accordion-button {
	background: transparent !important;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 12px 0;
	box-shadow: none !important;
}

.site-footer .accordion-button::after {
	filter: invert(1) brightness(2);
}

.site-footer .accordion-button:not(.collapsed) {
	color: #fff !important;
}

.site-footer .accordion-item {
	background: transparent !important;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .accordion-body {
	padding: 4px 0 16px;
}

.site-footer .accordion-collapse {
	background: transparent !important;
}

/* ── Custom CSS scope ───────────────────────────────────────────────────── */
/* Кастомный CSS из настроек вставляется как inline <style> */

/* ── Responsive tweaks ──────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
	.site-footer[data-lhfe='footer'] .footer-brand-col {
		margin-bottom: 32px;
	}

	.site-footer[data-lhfe='footer'] .social-col {
		margin-top: 24px;
	}
}
