/* ==============================
   RESET E BASE
============================== */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #333;
}

/* ==============================
   CABEÇALHO
============================== */
header {
  text-align: center;
  padding: 2rem 1rem;
  color: #fff;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

header img.banner {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 5px solid #fff;
}

/* ==============================
   CONTAINER
============================== */
.container {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================
   GRID DE CARDS
============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* ==============================
   CARD PADRÃO
============================== */
.card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h2 {
  color: #2575fc;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ==============================
   CARTÕES ANIMADOS (DETALHES OU LI)
============================== */
.detalhes {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.detalhes ul {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0;
}

.detalhes li {
  background: linear-gradient(45deg, #6a11cb, #2575fc, #f7971e, #ffd200);
  background-size: 400% 400%;
  color: white;
  padding: 20px;
  border-radius: 12px;
  flex: 1 1 220px;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s forwards, gradientAnim 10s ease infinite;
}

.detalhes li span {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Delay progressivo para efeito cascata */
.detalhes li:nth-child(1) { animation-delay: 0.1s; }
.detalhes li:nth-child(2) { animation-delay: 0.2s; }
.detalhes li:nth-child(3) { animation-delay: 0.3s; }
.detalhes li:nth-child(4) { animation-delay: 0.4s; }

.detalhes li:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* ==============================
   BOTÕES
============================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  margin: 0.3rem;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover { background: linear-gradient(135deg, #2575fc, #6a11cb); }

.btn.voltar { background: #444; }
.btn.voltar:hover { background: #222; }

.btn.whatsapp { background: #25d366; }
.btn.whatsapp:hover { background: #128c7e; }

/* ==============================
   RODAPÉ
============================== */
footer {
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  color: #fff;
}

footer .whatsapp {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
}

footer .whatsapp:hover {
  background: #128c7e;
}

/* ==============================
   RESPONSIVO
============================== */
@media (max-width: 600px) {
  .detalhes li { flex: 1 1 100%; }
  .grid { grid-template-columns: 1fr; }
}
