/* ==========================================================================
   Footer Styles — Lepapa Theme
   ========================================================================== */

.site-footer {
	background-color: #F2F4F5;
	margin-top: auto;
	position: relative;
	z-index: 10;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 126px;
	padding: 0 var(--container-padding);
}

/* Footer Navigation
   ========================================================================== */

.footer-nav > ul {
	display: flex;
	gap: var(--nav-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav a {
	font-family: var(--font-body);
	font-size: var(--font-size-body2);
	font-weight: 400;
	color: var(--color-black);
	text-decoration: none;
	transition: opacity var(--transition-fast);
}

.footer-nav a:hover {
	opacity: 1;
}

/* Footer Dropdowns (Юридическая информация, Соцсети)
   ========================================================================== */

.footer-nav__has-dropdown {
	position: relative;
}

.footer-nav__dropdown {
	position: absolute;
	bottom: calc(100% + 24px);
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

/* Full-width background that overlays content above footer */
.footer-nav__dropdown::before {
	content: '';
	position: absolute;
	left: -9999px;
	right: -9999px;
	top: -18px;
	bottom: -32px;
	background: #F2F4F5;
	z-index: -1;
}

.footer-nav__has-dropdown:hover .footer-nav__dropdown {
	visibility: visible;
	opacity: 1;
}

.footer-nav__dropdown a {
	white-space: nowrap;
}

/* Country label (non-clickable, styled like nav links) */
.footer-nav__country {
	cursor: default;
}

.footer-nav__country-value {
	text-decoration: underline;
	cursor: pointer;
}

/* Copyright
   ========================================================================== */

.footer-copyright {
	font-family: var(--font-body);
	font-size: var(--font-size-body2);
	font-weight: 400;
	color: var(--color-black);
	flex-shrink: 0;
}

/* Mobile Social Section — hidden on desktop
   ========================================================================== */

.footer-social {
	display: none;
}

/* Responsive — Mobile
   ========================================================================== */

@media (max-width: 768px) {
	.site-footer__inner {
		flex-direction: column;
		height: auto;
		padding: 66px 27px 28px;
		align-items: flex-start;
		gap: 0;
	}

	/* Stack nav links vertically */
	.footer-nav {
		width: 100%;
		margin-bottom: 0;
	}

	.footer-nav ul {
		flex-direction: column;
		gap: 24px;
	}

	.footer-nav a {
		font-size: var(--font-size-body2);
	}

	/* Hide Соцсети nav item on mobile (moved to footer-social section) */
	.footer-nav__social-item {
		display: none;
	}

	/* Hide all dropdowns on mobile — flat links only */
	.footer-nav__dropdown {
		display: none !important;
	}

	.footer-nav__dropdown::before {
		display: none;
	}

	/* Mobile Social Section
	   ================================================================ */

	.footer-social {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin-top: 80px;
	}

	.footer-social__divider {
		border: none;
		height: 1px;
		background-color: #858585;
		opacity: 0.3;
		margin: 0 -27px;
		width: calc(100% + 54px);
	}

	.footer-social__text {
		font-family: var(--font-body);
		font-size: 12px;
		font-weight: 400;
		line-height: 1.2;
		color: var(--color-black);
		margin: 25px 0 0;
	}

	.footer-social__links {
		display: flex;
		gap: 24px;
		margin-top: 32px;
	}

	.footer-social__link {
		font-family: var(--font-body);
		font-size: 12px;
		font-weight: 600;
		line-height: 1.2;
		color: var(--color-black);
		text-decoration: none;
	}

	.footer-social__link:hover {
		opacity: 1;
	}

	/* Copyright at bottom */
	.footer-copyright {
		font-size: var(--font-size-body2);
		margin-top: 80px;
	}
}
