/* ==========================================================================
   ESTILO PRINCIPAL — Hotel / Reservas
   Estrutura:
     1. Fonte customizada
     2. Reset e base
     3. Header e navegação
     4. Hero (seção principal)
        4a. Background e layout
        4b. Container de texto
        4c. Lateral de reserva
     5. Seção de localização
     6. Utilitários
     7. Responsivo
        7a. Tablet (≤ 1024px)
        7b. Mobile  (≤ 768px)
   ========================================================================== */

/* ==========================================================================
   1. FONTE CUSTOMIZADA
   ========================================================================== */

* {
  --libre: "Libre Caslon Display";
}

@font-face {
  font-family: "Noah";
  src: url(../fonts/Noah-Regular.ttf);
}

/* ==========================================================================
   2. RESET E BASE
   ========================================================================== */

* {
  font-family: "Noah";
  margin: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

img {
  width: 165px;
}

/* ==========================================================================
   3. HEADER E NAVEGAÇÃO
   ========================================================================== */

/* Barra de topo — posicionada de forma absoluta sobre o hero */
header {
  display: flex;
  background-color: transparent;
  flex-direction: row;
  justify-content: space-between;
  padding: 32px 200px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header a:hover {
  color: #c19d60;
}

/* Links de navegação alinhados à direita */
.navigation {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-left: auto;
}

.navigation a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  color: white;
}

/* Link ativo destacado em dourado */
.navigation .active {
  color: #c19d60;
}

/* ==========================================================================
   4. HERO (SEÇÃO PRINCIPAL)
   ========================================================================== */

.hero {
  width: 100%;
}

/* --- 4a. Background e layout --- */

/* Fundo com overlay escuro sobre a imagem de capa */
.hero .bg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 800px;
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/herobgsobre.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

/* --- 4b. Container de texto central --- */

.hero .container {
  color: white;
  text-align: center;
}

/* Subtítulo superior em caixa-alta com espaçamento de letras */
.container h6 {
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 7px;
  font-size: 12px;
  font-weight: 50px;
}

/* Título principal — usa fonte serifada */
.container h1 {
  margin: 0;
  font-size: 70px;
  margin-bottom: 15px;
  font-family: "Libre Caslon Display";
  font-weight: 400;
}

/* Subtítulo secundário */
.container h2 {
  margin: 0;
  margin-bottom: 20px;
  letter-spacing: 7px;
  font-weight: 400;
}

/* Botão de chamada para ação */
.container .button {
  display: inline-block;
  background-color: #00afdf;
  font-size: 17px;
  cursor: pointer;
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 3px;
  border: 1px solid #ffffff;
}

/* Hover: muda para dourado */
.container .button:hover {
  border: 1px solid #c19d60;
  background-color: #c19d60;
}

/* --- 4c. Lateral de reserva (texto vertical no lado esquerdo) --- */

/* Faixa lateral com texto rotacionado */
.hero .bg .reservation {
  writing-mode: vertical-lr;
  text-orientation: sideways;
  transform: rotate(180deg);
  margin: 0;
  position: absolute;
  top: 0;
  left: 40px;
  position: absolute;
  height: 60%;
  z-index: 9;
}

/* Bloco de chamada com número de telefone / cidade */
.hero .bg .reservation .call {
  color: #00afdf;
  text-transform: uppercase;
  font-family: "Noah", sans-serif;
  font-weight: 400;
  letter-spacing: 3px;
  font-size: 12px;
  line-height: 1.75em;
  margin-top: 15px;
}

/* Cada item da chamada em bloco separado */
.call span {
  display: block;
}

/* Nome da cidade em destaque com fonte serifada */
.call .city {
  color: white;
  font-size: 27px;
  font-family: "Libre Caslon Display";
}

/* ==========================================================================
   5. SEÇÃO DE LOCALIZAÇÃO
   ========================================================================== */

/* Layout flex: informações à esquerda, imagem à direita */
.location {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00afdf;
  padding: 60px 80px;
}

/* Wrapper interno: limita largura máxima e distribui texto e imagem lado a lado */
.container2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bloco de texto com endereço */
.container2 .informacoes {
  color: white;
  flex: 1;
  text-align: center;
}

/* Título da localização */
.container2 .informacoes h2:first-child {
  font-family: "Adamina";
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 20px;
}

/* Detalhes do endereço */
.container2 .informacoes h2:last-child {
  font-family: "Inter";
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 1px;
}

/* Keyframes de saída */
@keyframes exitLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-60px);
  }
}
@keyframes exitRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

/* Keyframes de entrada */
@keyframes enterFromRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes enterFromLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Classes aplicadas via JavaScript */
.slide-exit-left {
  animation: exitLeft 0.3s ease forwards;
}
.slide-exit-right {
  animation: exitRight 0.3s ease forwards;
}
.slide-enter-right {
  animation: enterFromRight 0.3s ease forwards;
}
.slide-enter-left {
  animation: enterFromLeft 0.3s ease forwards;
}

/* Slider de imagens: botão | imagem | botão em linha */
.slide {
  flex: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slide img {
  flex: 1;
  height: 400px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  will-change: transform;
  /* transition só para o reset suave ao tirar o mouse */
  transition: box-shadow 0.3s ease;
}

/* Botões de navegação do slider */
.slider-btn {
  background: none;
  border: none;
  color: white;
  font-size: 48px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.slider-btn:hover {
  opacity: 1;
}

/* ==========================================================================
   6. SEÇÃO DE JANTAR
   ========================================================================== */

/* Layout principal: texto à esquerda, imagens à direita */
.jantar {
  background-color: #ffffff;
}

.container3 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  padding: 100px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Coluna de texto */
.jantar-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Subtítulo em teal, caixa-alta */
.jantar-texto h6 {
  color: #c19d60;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 400;
}

/* Título principal em fonte serifada */
.jantar-texto h5 {
  font-family: "Libre Caslon Display";
  font-size: 50px;
  font-weight: 400;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0;
  width: 400px;
}

/* Parágrafos de descrição */
.jantar-texto p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  max-width: 440px;
  width: 350px;
}

/* Bloco inferior: logo + local + botão */
.jantar-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

/* Logo pequena no CTA */
.jantar-logo {
  width: 48px;
  height: auto;
}

/* Nome do local em teal, caixa-alta */
.jantar-local {
  display: block;
  color: #00afdf;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Link de compra */
.jantar-btn {
  font-size: 30px;
  color: #000000;
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 400;
  font-family: var(--libre);
}

.jantar-btn:hover {
  color: #c19d60;
}

/* Coluna de imagens: duas fotos lado a lado */
.imgjantar {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

/* Primeira imagem — deslocada para baixo */
.imgjantar img:first-child {
  width: 330px;
  height: 330px;
  object-fit: cover;
  object-position: center;
  margin-top: 60px;
}

/* Segunda imagem — mesmo tamanho, posição normal */
.imgjantar img:last-child {
  width: 330px;
  height: 330px;
  object-fit: cover;
}

/* ==========================================================================
   7. SEÇÃO IMAGENS
   ========================================================================== */

/* Grid de 6 colunas: imagens normais ocupam 2, as largas ocupam 3
   Layout: [1][1][2][2][3][3]  ← linha 1 (3 imagens × 2 cols)
           [4  4  4][5  5  5]  ← linha 2 (2 imagens × 3 cols)
           [6][6][7][7][8][8]  ← linha 3 (3 imagens × 2 cols) */
.imagens-do-local .imagens {
  display: grid;
  padding: 20px 150px;
  gap: 20px;
  grid-template-columns: repeat(6, 1fr);
}

/* Altura de cada célula e background correto */
.imagens-do-local .imagens > div {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.imagens-do-local .imagens .image1.col-mb-span3 {
  grid-column: span 2;
}

.imagens-do-local .imagens .image2.col-mb-span3 {
  grid-column: span 2;
}

.imagens-do-local .imagens .image3.col-mb-span6 {
  grid-column: span 2;
}

.imagens-do-local .imagens .image4.col-span3 {
  grid-column: span 3;
}

.imagens-do-local .imagens .image5.col-span3 {
  grid-column: span 3;
}

.imagens-do-local .imagens .image6.col-mb-span6 {
  grid-column: span 2;
}

.imagens-do-local .imagens .image7.col-mb-span3 {
  grid-column: span 2;
}

.imagens-do-local .imagens .image8.col-mb-span3 {
  grid-column: span 2;
}

.imagens-do-local .imagens .image4 {
  height: 280px;
}

.imagens-do-local .imagens .image5 {
  height: 280px;
}

.imagens-do-local .imagens > div {
  position: relative;
  overflow: hidden;
}

.imagens-do-local .imagens > div::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.imagens-do-local .imagens > div:hover::before {
  transform: scale(1.15);
}

.imagens-do-local .imagens .image1 {
  background-image: url(../img/localimagens1.jpg);
}

.imagens-do-local .imagens .image2 {
  background-image: url(../img/imgnossahistoria.jpg);
}

.imagens-do-local .imagens .image3 {
  background-image: url(../img/localimagens3.jpg);
}

.imagens-do-local .imagens .image4 {
  background-image: url(../img/localimagens4.png);
}

.imagens-do-local .imagens .image5 {
  background-image: url(../img/localimagens5.png);
}

.imagens-do-local .imagens .image6 {
  background-image: url(../img/localimagens6.png);
}

.imagens-do-local .imagens .image7 {
  background-image: url(../img/localimagens7.jpg);
}

.imagens-do-local .imagens .image8 {
  background-image: url(../img/localimagens8.png);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

footer {
  background-color: #1b1b1b;
}

/* Wrapper interno centralizado com duas colunas */
.container4 {
  display: flex;
  flex-direction: row;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 60px;
}

/* Título dourado em fonte serifada — compartilhado pelas duas colunas */
.footer-sobre h3,
.footer-info h3 {
  color: #c19d60;
  font-family: var(--libre);
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Coluna esquerda — texto longo */
.footer-sobre {
  flex: 1.2;
  color: #c8c4bc;
  line-height: 1.9;
  font-size: 14px;
}

/* Coluna direita — localização, email e redes sociais */
.footer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #c8c4bc;
  font-size: 14px;
  line-height: 1.7;
}

/* Email com sublinhado estilo borda inferior */
.footer-email {
  display: inline-block;
  color: #c8c4bc;
  text-decoration: none;
  border-bottom: 1px solid #c8c4bc;
  padding-bottom: 2px;
  font-size: 14px;
}

.footer-email:hover {
  color: #c19d60;
  border-bottom-color: #c19d60;
}

/* Ícone do Instagram em círculo */
.footer-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c8c4bc;
  border-radius: 50%;
  color: #c8c4bc;
  font-size: 16px;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.footer-instagram:hover {
  color: #c19d60;
  border-color: #c19d60;
}

.footer-info .contact-info {
  font-size: 16px;
}

.footer-info .social-info {
  display: flex;

  flex-direction: row;
  gap: 16px;
}

/* ==========================================================================
   8. UTILITÁRIOS
   ========================================================================== */

.centralizado {
  text-align: center;
}

/* Fundo preto para o campo CPF */
#cpf {
  background-color: black;
}

/* ==========================================================================
   9. RESPONSIVO
   ========================================================================== */

/* --- 7a. Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  header {
    padding: 24px 40px;
  }

  .container h1 {
    font-size: 52px;
  }

  .container h2 {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .location {
    padding: 50px 40px;
    gap: 40px;
  }

  .imgjantar img:first-child,
  .imgjantar img:last-child {
    width: 100%;
    height: 220px;
  }
}

/* --- 7b. Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  header {
    padding: 20px 24px;
    align-items: center;
  }

  header img {
    width: 120px;
  }

  .navigation {
    gap: 16px;
  }

  /* Hero ocupa a altura total da viewport em mobile */
  .hero .bg {
    height: 100svh;
    padding: 0 24px;
    box-sizing: border-box;
  }

  /* Faixa lateral oculta em telas pequenas */
  .hero .bg .reservation {
    display: none;
  }

  .container h6 {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .container h1 {
    font-size: 65px;
    margin-bottom: 10px;
  }

  .container h2 {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .container .button {
    font-size: 20px;
    padding: 20px 25px;
    letter-spacing: 2px;
  }

  /* Localização em coluna única */
  .location {
    padding: 40px 24px;
  }

  .container2 {
    flex-direction: column;
    gap: 32px;
  }

  .slide img {
    width: 100%;
    height: 260px;
  }

  /* SEÇÃO DE JANTAR MOBILE */

  .container3 {
    flex-direction: column;
    padding: 60px 24px;
  }

  /* Remove larguras fixas que causam overflow */
  .jantar-texto {
    width: 100%;
    min-width: 0;
  }

  .jantar-texto h5,
  .jantar-texto p {
    width: 100%;
    max-width: 100%;
  }

  /* Imagens empilhadas em coluna, sem larguras fixas */
  .imgjantar {
    flex-direction: column;
    width: 100%;
  }

  .imgjantar img:first-child,
  .imgjantar img:last-child {
    width: 100%;
    height: 220px;
    margin-top: 0;
    background-position: center;
  }

  /* Cards em coluna no mobile */
  .cards {
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
  }

  .cards .card {
    width: 100%;
    max-width: 100%;
  }

  /* Desabilita hover no mobile — toque dispara :hover e conflita com a animação por scroll */
  .card:hover .card-icon {
    transform: none;
    color: #00afdf;
    transition: none;
  }

  /* Ícone ativado quando o card está no centro da tela */
  @keyframes cardSpin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  .card.card-active .card-icon {
    animation: cardSpin 0.5s ease forwards;
    color: #c19d60;
    transition: color 0.4s ease;
  }

  /* Footer em coluna no mobile */
  .container4 {
    flex-direction: column;
    gap: 40px;
    padding: 60px 24px;
  }

  .imagens-do-local .imagens .image1.col-mb-span3 {
    grid-column: span 3;
  }

  .imagens-do-local .imagens .image2.col-mb-span3 {
    grid-column: span 3;
  }

  .imagens-do-local .imagens .image3.col-mb-span6 {
    grid-column: span 6;
  }

  .imagens-do-local .imagens .image4.col-span3 {
    grid-column: span 3;
  }

  .imagens-do-local .imagens .image5.col-span3 {
    grid-column: span 3;
  }

  .imagens-do-local .imagens .image6.col-mb-span6 {
    grid-column: span 6;
  }

  .imagens-do-local .imagens .image7.col-mb-span3 {
    grid-column: span 3;
  }

  .imagens-do-local .imagens .image8.col-mb-span3 {
    grid-column: span 3;
  }

  .imagens-do-local .imagens .image4 {
    height: 200px;
  }

  .imagens-do-local .imagens .image5 {
    height: 200px;
  }

  .imagens-do-local .imagens {
    padding: 20px 40px;
  }
}

@media (max-width: 430px) {
  .imagens-do-local .imagens {
    display: flex;
    flex-direction: column;
  }
}