/**
 * Cabeçalho compartilhado das Landing Pages.
 */

/* Compensa o header sticky ao clicar nos links do menu (#âncora). */
html:has(.lp-header) {
	scroll-padding-top: 96px;

	@media (min-width: 992px) {
		scroll-padding-top: 104px;
	}
}

.lp-header {
	--lp-header-bg: #8c3b20;
	--lp-header-fg: #f5f0e8;
	--lp-header-fg-muted: rgba(245, 240, 232, 0.92);
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: var(--lp-header-bg);
	color: var(--lp-header-fg);
	transition:
		box-shadow 0.35s ease 0.08s,
		background-color 0.35s ease;
}

@media (min-width: 992px) {
	.lp-header.is-compact {
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	}
}

.lp-header__bg {
	display: none;
	@media (min-width: 992px) {
		position: absolute;
		top: 0;
		right: 33px;
		bottom: 0;
		z-index: 0;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		pointer-events: none;
		opacity: 1;
		transition: opacity 0.35s ease 0.05s, transform 0.4s ease;
	}
}

@media (min-width: 992px) {
	.lp-header.is-compact .lp-header__bg {
		opacity: 0.35;
		right: 100px;
	}
}

@media (min-width: 2000px) {
	.lp-header.is-compact .lp-header__bg {
		right: 500px;
	}
}

.lp-header__bg-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: right center;
}

.lp-header__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: 1rem 1.25rem;
	min-height: 72px;
	transition:
		min-height 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
		padding 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
		gap 0.35s ease;

	@media (min-width: 992px) {
		padding: 1.15rem clamp(1.5rem, 4vw, 4.5rem);
		min-height: 185px;
		gap: 2rem;
	}
}

@media (min-width: 992px) {
	.lp-header.is-compact .lp-header__inner {
		min-height: 72px;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
		gap: 1.25rem;
	}
}

.lp-header__brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
	text-decoration: none;
}

.lp-header__logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 42px;
	transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s, transform 0.4s ease;

	@media (min-width: 991px) {
		max-height: 40px;
	}

	@media (min-width: 1800px) {
		max-height: 60px;
	}
}

@media (min-width: 992px) {
	.lp-header.is-compact .lp-header__logo {
		max-height: 40px;
	}
}

.lp-header__toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	margin-left: auto;
	padding: 0.45rem 0 0.45rem 0.45rem;
	border: 0;
	background: transparent;
	cursor: pointer;

	@media (min-width: 992px) {
		display: none;
	}
}

.lp-header__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--lp-header-fg);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.lp-header.is-open .lp-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.lp-header.is-open .lp-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.lp-header.is-open .lp-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.lp-header__nav-wrap {
	display: none;
	flex-direction: column;
	align-items: stretch;
	gap: 1.25rem;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 1rem 1.25rem 1.35rem;
	border-top: 1px solid rgba(245, 240, 232, 0.18);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);

	@media (min-width: 992px) {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
		gap: clamp(1.5rem, 3vw, 3rem);
		position: static;
		padding: 0;
		border: 0;
		box-shadow: none;
		flex: 1;
	}
}

.lp-header.is-open .lp-header__nav-wrap {
	display: flex;
}

.lp-header__nav {
	width: 100%;

	@media (min-width: 992px) {
		width: auto;
		margin-left: auto;
	}
}

.lp-header__menu {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;

	@media (min-width: 992px) {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 15px;
	}

	@media (min-width: 1200px) {
		gap: 40px;
	}

	@media (min-width: 1800px) {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 65px;
	}
}
@media (min-width: 992px) {
	.lp-header.is-compact .lp-header__menu {
		gap: 30px;
	}
}

.lp-header__menu-link {
	font-family: 'Space Grotesk', sans-serif;
	display: inline-block;
	color: var(--lp-header-fg-muted);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.2s ease, color 0.2s ease, font-size 0.35s ease;

	@media (min-width: 992px) {
		font-size: 15px;
	}

	@media (min-width: 1210px) {
		font-size: 20px;
	}

	@media (min-width: 1800px) {
		font-size: 25px;
	}
}

@media (min-width: 992px) {
	.lp-header.is-compact .lp-header__menu-link {
		font-size: 17px;
	}
}

.lp-header__menu-link:hover,
.lp-header__menu-link:focus-visible {
	color: var(--lp-header-fg);
	opacity: 0.85;
}

.lp-header__cta {
	font-family: 'Space Grotesk', sans-serif;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 0.7rem 1.15rem;
	border: 1px solid var(--lp-header-fg);
	background: transparent;
	color: var(--lp-header-fg);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		opacity 0.2s ease,
		padding 0.35s ease 0.05s,
		font-size 0.35s ease 0.05s;

	@media (max-width: 991px) {
		width: 100%;
	}

	@media (min-width: 992px) {
		align-self: center;
		padding: 15px 20px;
		font-size: 15px;
	}

	@media (min-width: 1800px) {
		padding: 20px 36px;
		font-size: 25px;
	}
}

@media (min-width: 992px) {
	.lp-header.is-compact .lp-header__cta {
		padding: 0.5rem 0.95rem;
		font-size: 0.82rem;
	}
}

.lp-header__cta:hover,
.lp-header__cta:focus-visible {
	background: var(--lp-header-fg);
	color: var(--lp-header-bg);
}