/* =======================
   RESET & BASE
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}

/* =======================
   HEADER
======================= */
header {
  background: #000000;
  color: white;
  padding: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-container h1 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.logo-container p {
  font-size: 0.9rem;
}

.logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-right: 1rem;
}

.social a img {
  margin-left: 0.5rem;
  border-radius: 50%;
  transition: transform 0.2s;
}

.social a img:hover {
  transform: scale(1.1);
}

/* =======================
   BOTÃO VOLTAR AO MENU
======================= */
.back-menu {
  text-align: center;
  margin: 1rem 0;
}

.btn-back {
  background: #000000;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: background 0.3s;
}

.btn-back:hover {
  background: #000000;
}

/* =======================
   CARDS
======================= */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-content {
  padding: 1rem;
}

.card-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0c44ff;
  cursor: pointer;
}

.price {
  font-weight: bold;
  color: #27ae60;
  margin-bottom: 0.8rem;
}

.btn.whatsapp {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn.whatsapp:hover {
  background: #1ebc57;
}

/* =======================
   CARROSSEL
======================= */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-track img,
.carousel-track video {
  min-width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 1.8rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* =======================
   MODAL DE MÍDIA
======================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.modal-content img,
.modal-content video {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.modal .close,
.modal .prev,
.modal .next {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  user-select: none;
}

.modal .close {
  top: 20px;
  right: 20px;
}

.modal .prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.modal .next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* =======================
   MODAL DE INFORMAÇÕES
======================= */
#infoModal .info-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  text-align: center;
}

#infoModal h2 {
  color: #000000;
  margin-bottom: 1rem;
}

#infoModal p {
  font-size: 1rem;
  line-height: 1.6;
}

.close-info {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* =======================
   FOOTER
======================= */
footer {
  background: #000000;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

footer .social a img {
  margin: 0 0.5rem;
  border-radius: 50%;
  transition: transform 0.2s;
}

footer .social a img:hover {
  transform: scale(1.1);
}

/* =======================
   ANIMAÇÕES
======================= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =======================
   RESPONSIVIDADE
======================= */
@media (max-width: 600px) {
  .logo-container {
    flex-direction: column;
    text-align: center;
  }

  .carousel-track img,
  .carousel-track video {
    height: 180px;
  }

  .btn-back {
    display: inline-block;
    margin-top: 0.5rem;
  }
}

/* Botão de fechar sempre fixo e acessível */
.modal .close {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 2rem; /* tamanho do X */
  background: rgba(0, 0, 0, 0.6); /* fundo para destacar */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;  
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999; /* garante que fique sempre por cima */
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
  .modal .close {
    top: 5px;
    right: 5px;
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
  }
}

/* =======================
   MODAL DE MÍDIA AJUSTADO
======================= */
.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 90%;   /* menor que a tela */
  max-height: 80vh; /* controla a altura */
  overflow-y: auto; /* ativa rolagem se necessário */
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img,
.modal-content video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    max-height: 75vh;
    padding: 8px;
  }

  .modal-content img,
  .modal-content video {
    max-height: 65vh;
  }
}
