/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* ===================== VARIÁVEIS DE TEMA ===================== */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --link-color: #444;
  --link-hover: #e2e2e2;
  --btn-bg: gold;
  --btn-color: #000;
}

html.dark {
  --bg-color: #1f1f1f;
  --text-color: #ffffff;
  --link-color: #ccc;
  --link-hover: #444;
  --btn-bg: gold;
  --btn-color: #000;
}

/* ===================== NAVBAR ===================== */
.navbar {
  display: flex;
  justify-content: space-between; /* logo à esquerda, menu à direita */
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-weight: 700;
  color: #fff;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: gold;
}

/* ===================== MENU MOBILE ===================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* menu ativo -> X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 90;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================== MOBILE ===================== */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 100;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.show li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }
}

/* ===================== HERO ATUALIZADO ===================== */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* evita scroll lateral */
}

/* Remove limites do container padrão nas seções */
section.hero {
  max-width: none;
  width: 100vw;
  margin: 0;
  padding: 0;
}

/* HERO principal */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: url("./assets/Recanto-so-lazer-fundo-escuro.jpeg") center center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Overlay escuro */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
/* Conteúdo sobreposto */
.hero h1,
.hero p,
.hero .btn-whatsapp {
  position: relative;
  z-index: 1;
}

/* ===================== BOTÃO WHATSAPP ===================== */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: gold;
  color: #000;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #d4af37;
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* ===================== RESPONSIVO ===================== */
@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn-whatsapp {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* ===================== SEÇÕES ===================== */
section {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ===================== CARDS ===================== */
.cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 300px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 1rem;
  color: #000;
}

/* ===================== GALERIA ===================== */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.galeria img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
}

#verMaisBtn {
  display: block;
  margin: 2rem auto;
  padding: 0.75rem 1.5rem;
  border: none;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

#verMaisBtn:hover {
  background: #d4af37;
}

/* ===================== LIGHTBOX ===================== */
#lightboxModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightboxModal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

#lightboxModal .fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

#lightboxModal .prev,
#lightboxModal .next {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

#lightboxModal .prev {
  left: 20px;
}

#lightboxModal .next {
  right: 20px;
}

/* ===================== DEPOIMENTOS ===================== */
#depoimentos form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

#depoimentos input,
#depoimentos textarea {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
}

#depoimentos button {
  background: var(--btn-bg);
  color: var(--btn-color);
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

#depoimentos button:hover {
  background: #d4af37;
}

#listaDepoimentos {
  margin-top: 2rem;
}

/* ================= DEPOIMENTOS ================= */
#listaDepoimentos {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px; /* Limite de altura */
  overflow-y: auto; /* Scroll interno se muitos comentários */
  padding-right: 10px;
}

.depoimento {
  background-color: #f9f9f9;
  border-left: 4px solid gold;
  padding: 10px 15px;
  border-radius: 6px;
  position: relative;
  transition: background-color 0.3s;
}

.depoimento:hover {
  background-color: #fff2d1;
}

/* Botão Excluir */
.depoimento .excluir {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.depoimento:hover .excluir {
  opacity: 1; /* Aparece ao passar o mouse */
}

/* Scroll estilizado */
#listaDepoimentos::-webkit-scrollbar {
  width: 6px;
}

#listaDepoimentos::-webkit-scrollbar-thumb {
  background-color: gold;
  border-radius: 3px;
}

#listaDepoimentos::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

/* ===================== RODAPÉ ===================== */
.footer {
  background: #c4bdbd;
  color: #000;
  padding: 2rem 1rem;
  border-top: 2px solid rgba(255, 215, 0, 0.3);
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: #000;
  margin-bottom: 1rem;
}

.footer-section a,
.footer-section p {
  color: #000;
  text-decoration: none;
  display: block;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #444;
}

.footer svg {
  fill: #000; /* Cor padrão */
  transition: fill 0.3s ease;
  cursor: pointer;
}

html.dark .footer svg {
  fill: #ccc; /* Cor para tema escuro */
}

.footer svg:hover {
  fill: #444; /* Cor ao passar o mouse */
}

/* Centralizar bandeiras de cartões */
.payments {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  align-items: center; /* centraliza verticalmente */
  gap: 15px; /* espaçamento entre os ícones */
  flex-wrap: wrap; /* permite quebrar linha se necessário em telas pequenas */
  margin-top: 10px;
}

.payments svg {
  cursor: pointer;
  transition: transform 0.2s;
}

.payments svg:hover {
  transform: scale(1.05);
}

html.dark .footer-section a:hover {
  color: gold;
}

/* ===================== RESPONSIVIDADE ===================== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cards {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .payments {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
