/* =====================================================
   Natura Header
   ===================================================== */

.simples-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: hsl(38 40% 97% / 0.8);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-bottom: 1px solid transparent;
	font-family: Lato, system-ui, sans-serif;
	transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.simples-header.is-scrolled {
	background: hsl(38 40% 97% / 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	border-bottom-color: hsl(34 20% 85%);
}

/* ----- Inner grid ----- */

.simples-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto; /* mobile: Book-Now | logo | right-div */
	align-items: center;
	height: 80px;
	gap: 16px;
	padding: 0 12px;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.simples-header__inner {
		grid-template-columns: 1fr auto 1fr; /* tablet+: nav-or-empty | logo | right */
		max-width: 1400px;
		margin: 0 auto;
		padding: 0 32px;
	}
	/* Explicitly anchor right div to column 3 so logo stays centered */
	.simples-header__right {
		grid-column: 3;
	}
}

/* ----- Mobile left (Book Now, hidden md+) ----- */

.simples-header__mobile-left {
	display: flex;
	align-items: center;
}

@media (min-width: 768px) {
	.simples-header__mobile-left {
		display: none;
	}
}

/* ----- Desktop left nav (hidden < lg) ----- */

.simples-header__nav-left {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
}

@media (min-width: 1280px) {
	.simples-header__nav-left {
		gap: 32px;
	}
}

@media (min-width: 1024px) {
	.simples-header__nav-left {
		display: flex;
	}
}

.simples-header__nav-item {
	position: relative;
}

.simples-header__nav-item--has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.simples-header__nav-item--has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.simples-header__nav-item--has-children:hover > a::after,
.simples-header__nav-item--has-children:focus-within > a::after {
	transform: translateY(2px) rotate(225deg);
}

.simples-header__submenu {
	position: absolute;
	top: calc(100% + 18px);
	left: 50%;
	z-index: 30;
	display: grid;
	min-width: 220px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: hsl(38 40% 97%);
	border: 1px solid hsl(34 20% 85%);
	border-radius: 6px;
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.12);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 8px);
	transition:
		opacity 160ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.simples-header__submenu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 18px;
}

.simples-header__nav-item:hover > .simples-header__submenu,
.simples-header__nav-item:focus-within > .simples-header__submenu {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.simples-header__submenu a {
	display: block;
	padding: 10px 12px;
	border-radius: 4px;
	color: hsl(25 30% 12%);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.025em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background 150ms cubic-bezier(0.4, 0, 0.2, 1),
		color 150ms cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
}

.simples-header__submenu a:hover,
.simples-header__submenu a:focus-visible {
	background: hsl(34 20% 85% / 0.35);
	color: #8c6f52;
	text-decoration: none;
}

/* ----- Logo (always column 2) ----- */

.simples-header__logo {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	text-decoration: none;
}

.simples-header__logo img {
	height: 44px;
	width: auto;
	display: block;
}

@media (min-width: 768px) {
	.simples-header__logo img {
		height: 48px;
	}
}

/* ----- Right side ----- */

.simples-header__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

@media (min-width: 1024px) {
	.simples-header__right {
		gap: 24px;
	}
}

@media (min-width: 1280px) {
	.simples-header__right {
		gap: 32px;
	}
}

/* Desktop right nav (hidden < lg) */
.simples-header__nav-right {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: 24px;
}

@media (min-width: 1280px) {
	.simples-header__nav-right {
		gap: 32px;
	}
}

@media (min-width: 1024px) {
	.simples-header__nav-right {
		display: flex;
	}
}

/* ----- Nav link styles ----- */

.simples-header__nav-left a,
.simples-header__nav-right a {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	color: hsl(25 30% 12%);
	text-decoration: none;
	transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
}

.simples-header__nav-left a:hover,
.simples-header__nav-left a:focus-visible,
.simples-header__nav-right a:hover,
.simples-header__nav-right a:focus-visible {
	color: #8c6f52;
	text-decoration: none;
}

/* ----- Buttons ----- */

.simples-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #8c6f52;
	font-family: Lato, system-ui, sans-serif;
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.025em;
	text-decoration: none;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ID + pseudo-classes superam o a { color } global do Elementor/Hello Elementor */
#site-header .simples-header__btn,
#site-header .simples-header__btn:link,
#site-header .simples-header__btn:visited {
	color: hsl(34 30% 96%);
	text-decoration: none;
}

#site-header .simples-header__btn:hover,
#site-header .simples-header__btn:focus-visible {
	background: #d9b463;
	color: hsl(34 30% 96%);
	text-decoration: none;
}

/* Mini — mobile left */
.simples-header__btn--mini {
	height: 32px;
	padding: 0 8px;
	font-size: 12px;
	box-shadow: 0 1px 2px hsl(0 0% 0% / 0.1);
	border-radius: 6px;
}

/* CTA — desktop right (hidden < md) */
.simples-header__btn--cta {
	display: none;
}

@media (min-width: 768px) {
	.simples-header__btn--cta {
		display: inline-flex;
		height: 36px;
		padding: 0 20px;
		box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
		transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
	}

	.simples-header__btn--cta:hover {
		box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
		transform: translateY(-2px);
	}
}

/* Full width — mobile drawer CTA */
.simples-header__btn--full {
	display: flex;
	width: 100%;
	height: 44px;
	padding: 0 32px;
	margin-top: 20px;
	justify-content: center;
	align-items: center;
}

/* ----- Hamburger button (hidden lg+) ----- */

.simples-header__hamburger {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	cursor: pointer;
	line-height: 1;
}

#site-header .simples-header__hamburger,
#site-header .simples-header__hamburger:hover,
#site-header .simples-header__hamburger:focus {
	background: none;
	background-color: transparent;
	border: none;
	box-shadow: none;
	color: hsl(25 30% 12%);
	outline: none;
	padding-right: 0;
}

@media (min-width: 1024px) {
	.simples-header__hamburger {
		display: none;
	}
}

.simples-header__hamburger svg {
	width: 24px;
	height: 24px;
}

/* Mostrar menu, esconder X por padrão */
.simples-header__icon-menu {
	display: block;
}

.simples-header__icon-close {
	display: none;
}

/* Quando aberto: inverter */
.simples-header.is-open .simples-header__icon-menu {
	display: none;
}

.simples-header.is-open .simples-header__icon-close {
	display: block;
}

/* ----- Mobile drawer ----- */

.simples-header__drawer {
	display: none;
	background: hsl(38 40% 97%);
	border-top: 1px solid hsl(34 20% 85%);
	padding: 0 24px 24px;
}

.simples-header.is-open .simples-header__drawer {
	display: block;
}

@media (min-width: 1024px) {
	.simples-header__drawer {
		display: none !important;
	}
}

.simples-header__drawer ul {
	list-style: none;
	margin: 0;
	padding: 16px 0 0;
	display: flex;
	flex-direction: column;
}

.simples-header__drawer li a {
	display: block;
	padding: 12px 0;
	font-size: 1rem;
	font-weight: 500;
	color: hsl(25 30% 12%);
	text-decoration: none;
	border-bottom: 1px solid hsl(34 20% 85% / 0.6);
	transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.simples-header__drawer-submenu {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0 0 6px 16px;
	list-style: none;
	border-bottom: 1px solid hsl(34 20% 85% / 0.6);
}

.simples-header__drawer .simples-header__drawer-submenu li a {
	padding: 8px 0;
	border-bottom: 0;
	color: #8c6f52;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
}

.simples-header__drawer-item--has-children > a {
	border-bottom: 0;
}

.simples-header__drawer li a:hover,
.simples-header__drawer li a:focus-visible {
	color: #8c6f52;
	text-decoration: none;
}
