/* ================================================
   CABEÇALHO FIXO
================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #f6efe6;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ================================================
   NAVBAR
================================================ */

#navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ================================================
   LOGOTIPO
================================================ */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-texto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-texto .lirio {
  font-family: "Cinzel Decorative", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #630000;
  line-height: 1;
}

.logo-texto .hotel {
  font-family: "Cinzel Decorative", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #500000;
  margin-top: -4px;
  padding-left: 29px;
}

/* ================================================
   LISTA DE NAVEGAÇÃO (desktop)
================================================ */

#nav_list {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  color: rgba(29, 29, 29, 0.68);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 6px;
  transition: color 0.2s ease;
}

.nav-item a:hover {
  color: #1d1d1d;
}

.nav-item.active a {
  color: #1d1d1d;
  border-bottom: 3px solid #b00000;
}

/* ================================================
   BOTÃO CONTATO (desktop)
================================================ */

.btn-contato {
  font-size: 0.9rem;
  padding: 8px 20px;
  flex-shrink: 0;
}

/* ================================================
   BOTÃO HAMBURGUER (mobile — oculto no desktop)
================================================ */

#mobile_btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

#mobile_btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

#mobile_btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1d1d1d;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity   0.25s ease;
}

/* Estado aberto — animação X */
#mobile_btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#mobile_btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#mobile_btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   MENU MOBILE (drawer de cima)
================================================ */

#mobile_menu {
  display: none; /* controlado por JS via classe .open */
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: #f6efe6;
  padding: 24px 24px 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 999;

  /* Animação de entrada */
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity   0.3s ease;
}

#mobile_menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

#mobile_menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

#mobile_menu ul li a {
  display: block;
  padding: 12px 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(29, 29, 29, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

#mobile_menu ul li a:hover {
  color: #1d1d1d;
  padding-left: 14px;
}

/* Ícones sociais dentro do menu mobile */
.mobile-menu-social {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.mobile-menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #ffffff;
  color: #1d1d1d;
  font-size: 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mobile-menu-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

/* ================================================
   RESPONSIVO — TABLET / MOBILE (max 768px)
================================================ */

@media (max-width: 768px) {
  #navbar {
    padding: 0 16px;
    height: 100%;
  }

  /* Oculta nav e botão de contato */
  #nav_list,
  .btn-contato {
    display: none;
  }

  /* Exibe hamburguer */
  #mobile_btn {
    display: flex;
  }

  .logo-texto .lirio {
    font-size: 22px;
  }

  .logo-texto .hotel {
    font-size: 11px;
    padding-left: 22px;
  }

  .logo img {
    height: 42px;
  }
}

/* ================================================
   RESPONSIVO — TELAS MÉDIAS (768px – 1170px)
================================================ */

@media (min-width: 769px) and (max-width: 1170px) {
  #nav_list {
    gap: 28px;
  }

  .nav-item a {
    font-size: 0.85rem;
  }

  #navbar {
    padding: 0 24px;
  }
}