body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
}

.header-container {
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-border-light);
}

.logo {
  max-width: 170px;
  height: auto;
  z-index: 1001;
}

/* Ocultar checkbox do menu hack */
.menu-toggle {
  display: none;
}

/* Botão hambúrguer no mobile */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Transformação para o ícone X ao clicar */
.menu-toggle:checked ~ .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle:checked ~ .menu-btn span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Bloquear scroll da página com o menu aberto no mobile */
body:has(.menu-toggle:checked) {
  overflow: hidden;
}

/* Menu no Mobile (Oculto por padrão) */
.main-nav {
  display: none;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: center;
  background-color: var(--white);
  padding: 5rem 1rem 0rem 1rem; /* Espaço para o header e margem inferior do botão */
  gap: 0.8rem;
  z-index: 999;
}

/* Exibir menu quando checkbox estiver ativo */
.menu-toggle:checked ~ .main-nav {
  display: flex;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-h3); /* Fonte maior para mobile */
  color: var(--color-text-dark);
  text-transform: capitalize;
  transition: color 0.25s ease-in-out;
  padding: 0;
  text-align: start;
  align-items: start;
  width: 100%;
}

.nav-link:hover {
  color: var(--color-primary);
}

/* Botão de Reserva no Mobile (CTA) */
.cta {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--white);
  border: none;
  padding: 0.9rem;
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.1s;
  margin-top: auto; /* Fixa no bottom empurrando com flexbox */
  margin-bottom: 3.5rem; /* Margem de 1.5rem da borda inferior */
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta:hover {
  background-color: var(--color-primary-hover);
}

.cta:active {
  transform: scale(0.98);
}

/* Acessibilidade - Foco visível */
a:focus-visible,
button:focus-visible {
  border-radius: 14px;
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Desktop e Tablets (Telas maiores) */
@media (min-width: 768px) {
  .header-container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0.7rem 1.2rem;
  }

  .logo {
    max-width: 190px;
  }

  .menu-btn {
    display: none; /* Esconde botão hambúrguer */
  }

  .main-nav {
    height: auto;
    display: flex !important; /* Sempre visível */
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    background-color: transparent;
    padding: 0;
    gap: 2rem;
    border-bottom: none;
  }

  .nav-link {
    font-size: var(--font-size-body);
    padding: 0;
    width: auto;
  }

  /* Adaptação do CTA no desktop */
  .cta {
    width: auto;
    margin: 0;
    padding: 0.7rem 1.8rem;
  }

}
