/* ═══════════════════════════════════════════════════════════════════════════
   Lithops Header Footer Editor — Public Header Styles  (v1.7.1)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────────────────── */
#lhfe-site-header {
	width: 100%;
	box-sizing: border-box;
	background-color: var(--lhfe-bg, #fff);
	border-bottom: var(--lhfe-border, none);
}

/* ── Цвет ссылок через CSS-переменную ──────────────────────────────────── */
#lhfe-site-header .lhfe-nav-link,
#lhfe-site-header .lhfe-brand {
	color: var(--lhfe-link, inherit) !important;
}

/* ── Логотип ────────────────────────────────────────────────────────────── */
.lhfe-logo {
	width: var(--lhfe-logo-w, auto);
	height: var(--lhfe-logo-h, auto);
	display: block;
	object-fit: contain;
	margin: 5px 15px 5px 0;
}

/* ── Активная ссылка навигации ──────────────────────────────────────────── */
.lhfe-nav-link.fw-bold {
	font-weight: 700 !important;
}

/* ── Header inner layout ─────────────────────────────────────────────── */
.lhfe-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

/* ── Nav collapse ────────────────────────────────────────────────────── */
.lhfe-nav-collapse {
	display: flex;
	align-items: center;
	flex: 1;
}

.lhfe-nav-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.lhfe-nav-link {
	padding: 8px 12px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.lhfe-nav-link:hover {
	opacity: 0.75;
}

/* ── Burger button ───────────────────────────────────────────────────── */
.lhfe-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin-left: auto;
	z-index: 10;
}

.lhfe-burger-line {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--lhfe-link, #333);
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
	border-radius: 1px;
}

/* Burger → X animation */
.lhfe-nav-open .lhfe-burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.lhfe-nav-open .lhfe-burger-line:nth-child(2) {
	opacity: 0;
}
.lhfe-nav-open .lhfe-burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Desktop (≥ 992px) ────────────────────────────────────────────────── */
@media (min-width: 992px) {
	.lhfe-header-inner {
		flex-wrap: nowrap;
	}
	.lhfe-burger {
		display: none !important;
	}
}

/* ── Tablet + Mobile (< 992px) ────────────────────────────────────────── */
@media (max-width: 991.98px) {
	.lhfe-burger {
		display: flex;
	}

	.lhfe-nav-collapse {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
	}

	.lhfe-nav-open .lhfe-nav-collapse {
		max-height: 600px;
	}

	.lhfe-nav-list {
		flex-direction: column;
		padding: 12px 0;
	}

	.lhfe-nav-link {
		padding: 10px 0;
		display: block;
	}

	.lhfe-auth-buttons {
		padding: 12px 0;
		border-top: 1px solid rgba(128, 128, 128, 0.2);
	}
}
