/* style.css */
/* =========================
   Geral
========================= */
body {
  scroll-behavior: smooth;
  font-family: 'Helvetica', sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  margin: 0;
  padding: 0;
}

/* =========================
   Hero Section
========================= */
.hero-section {
  position: relative;
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* camada escura */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  color: white;
}

.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.5;
}

.hero-overlay a {
  background: #fbbf24;
  color: #111827;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-overlay a:hover {
  background: #fcd34d;
  transform: scale(1.05);
}

/* =========================
   Benefícios
========================= */
.grid .card-hover {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.grid .card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
}

/* =========================
   Contador
========================= */
.countdown {
  font-weight: bold;
  font-size: 2rem;
  color: #ffeb3b; /* amarelo para destaque */
  letter-spacing: 2px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.oferta-alerta {
  animation: piscar 1s infinite;
}

@keyframes piscar {
  0%, 50%, 100% { color: #ffeb3b; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
  25%, 75% { color: #f87171; text-shadow: 1px 1px 10px rgba(0,0,0,0.8); }
}

/* =========================
   Produtos
========================= */
.produtos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.produto-card {
  border: 2px solid #007bff;
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.produto-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.produto-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

.produto-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
  color: #374151;
}

.produto-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
  border-color: #0056b3;
}

.produto-card.destaque {
  border: 3px solid #fbbf24;
}

/* =========================
   Planos
========================= */
.planos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.planos-container .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid #007bff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.planos-container .card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 16px 30px rgba(0,0,0,0.2);
  border-color: #0056b3;
}

.selo-basico::before,
.selo-intermediario::before,
.selo-completo::before {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.selo-basico::before { content: "Básico"; }
.selo-intermediario::before { content: "Intermediário"; }
.selo-completo::before { content: "Completo"; }

/* =========================
   Preço dos Planos
========================= */
.planos-container .card p.text-indigo-600 {
  font-size: 2rem;
  font-weight: bold;
}

/* =========================
   Depoimentos
========================= */
/* O formulário de depoimento fica oculto por padrão (classe 'hidden' / controlado via JS) */
#form-depoimento input,
#form-depoimento textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.estrela {
  transition: color 0.2s;
  cursor: pointer;
}

.estrela.cheia {
  color: #fbbf24;
}

/* Feedback de envio */
#feedback-comentario {
  margin-top: 0.5rem;
  font-weight: bold;
}

#feedback-comentario.success {
  color: #16a34a;
}

#feedback-comentario.error {
  color: #dc2626;
}

/* =========================
   CTA Final
========================= */
.relative.bg-cover {
  position: relative;
}

.relative.bg-cover .container {
  position: relative;
  z-index: 10;
}

.relative.bg-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* =========================
   Botão fixo CTA
========================= */
a.fixed {
  z-index: 50;
  transition: transform 0.3s ease, background 0.3s ease;
}

a.fixed:hover {
  transform: scale(1.05);
  background: #fcd34d;
}

/* =========================
   Footer
========================= */
footer {
  background-color: #1f2937;
  color: #d1d5db;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}

/* =========================
   Avatar
========================= */
.avatar-container {
  width: 8rem;
  height: 8rem;
  margin: 0 auto;
  border-radius: 9999px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.scale-0 { transform: scale(0); opacity: 0; }
.scale-100 { transform: scale(1); opacity: 1; }
.transition-transform { transition: transform 0.5s ease, opacity 0.5s ease; }

/* =========================
   Botões dos Planos
========================= */
button {
  cursor: pointer;
  transition: all 0.3s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  transform: scale(1.05);
}

/* =========================
   Responsividade
========================= */
@media (max-width: 768px) {
  .planos-container {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-overlay h1 {
    font-size: 2.5rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}
