/* --- Reset Básico e Estilos Globais --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}    
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #121212;
  color: #f1f1f1;
  padding-top: 95px; /* Espaço para o header fixo */
}

/* --- Header --- */
header {
  background: #1f1f1f;
  padding: 15px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  gap: 10px;
}
header h1 {
  margin: 0;
  color: #ff6600;
  font-size: 1.8rem;
  font-weight: bold;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #f1f1f1;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff6600;
}

/* --- Banner --- */
.banner {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1603206754286-60bde4276c5d') no-repeat center center/cover;
  color: white;
  padding: 40px 20px;
}
.banner h2 {
  font-size: 3rem;
  animation: fadeInDown 1.5s ease-out;
}
.banner p {
  font-size: 1.2rem;
  margin: 20px 0 30px 0;
  animation: fadeInUp 1.5s ease-out;
}
@keyframes fadeInDown {
  from {opacity: 0; transform: translateY(-30px);} to {opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(30px);} to {opacity: 1; transform: translateY(0);}
}

/* --- Títulos de Seção --- */
.section-title {
  text-align: center;
  color: #ff6600;
  font-size: 2.5rem;
  margin-top: 60px;
  margin-bottom: 40px;
}

/* --- Grid de Cards (Categorias e Perguntas) --- */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.card {
  background: #1e1e1e;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 1 300px; /* Controle de tamanho: não cresce, pode encolher, base de 300px */
}
.card:hover {
  transform: translateY(-10px);
}
.card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ff6600;
}
.card h3 {
  margin: 10px 0;
  color: #fff;
  font-size: 1.3rem;
}
.card p {
  color: #ccc;
  font-size: 0.95rem;
}

/* --- Botões --- */
.btn {
  background: #ff6600;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
  cursor: pointer;
  border: none;
}
.btn:hover {
  background: #e05500;
  transform: scale(1.05);
}
.assine-container {
  text-align: center;
  padding: 60px 20px 20px 20px;
}

/* --- Footer --- */
footer {
  background: #1f1f1f;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}
footer a {
  color: #25d366;
  text-decoration: none;
}

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transition: transform 0.3s, background 0.3s;
  z-index: 999;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  background: #20b954;
}

/* --- Modal (Popup) --- */
.modal {
      display: none; 
      position: fixed;
      z-index: 1000;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
    }
.modal-content {
    background: #1a1a1a;
    margin: 10% auto;
    padding: 30px 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    position: relative;
}
.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 0.8;
}
.close:hover {
    color: #ff6600;
}
#form-assine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  #form-assine input,
  #form-assine select {
    padding: 12px;
    width: 100%;
    max-width: 300px;
    border: none;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
  }

  #form-assine input::placeholder,
  #form-assine select {
    color: #aaa;
  }

  #form-assine button {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
    margin-top: 10px;
    transition: background 0.3s;
  }

  #form-assine button:hover {
    background: #1ebe57;
  }

/* --- Estilos Responsivos para Telas Menores --- */
@media (max-width: 768px) {
  body {
    padding-top: 85px; /* Altura ajustada do header para mobile */
  }
  header {
    padding: 10px 15px;
  }
  header h1 {
    font-size: 1.6rem;
  }
  nav a {
    font-size: 0.9rem;
    margin: 0 10px;
  }
  .banner {
    min-height: 40vh;
  }
  .banner h2 {
    font-size: 2.2rem;
  }
  .banner p {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2rem;
    margin-top: 40px;
  }
  .modal-content {
    margin: 20% auto;
  }
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}