/* ================================
   VARIÁVEIS E RESET GERAL
================================== */
:root {
  --primary: #0086d1;
  --accent: #00c6ff;
  --light: #f4faff;
  --text: #1b1b1b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

/* ================================
   CABEÇALHO E MENU
================================== */
header {
  background: var(--primary);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header img {
  height: 50px;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #e0f7ff;
}

.menu-icon {
  display: none;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary);
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem;
  }

  #menu-toggle:checked ~ nav {
    display: flex;
  }

  nav a {
    padding: 10px 0;
  }
}

/* ================================
   HERO SECTION
================================== */
.hero {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.hero-img-lg {
    max-width: 90%;
    height: auto;
  }

  .hero-img-md {
    max-width: 85%;
    height: auto;
  }

  @media (max-width: 768px) {
    .hero-img-lg,
    .hero-img-md {
      max-width: 100%;
    }
  }

  .cta-btn.responsive-btn {
    display: inline-block;
    background: #FFC107;
    color: #000;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
  }

  @media (max-width: 480px) {
    .cta-btn.responsive-btn {
      font-size: 16px;
      padding: 12px 20px;
    }
  }

/* ================================
   SEÇÕES E CONTEÚDO
================================== */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
}

/* ================================
   CARDS GENÉRICOS
================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card,
.plano {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ================================
   WHATSAPP CTA
================================== */
.whatsapp {
  text-align: center;
  margin: 60px 0;
}

.whatsapp a {
  background: #25d366;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.2em;
}

/* ================================
   FORMULÁRIO DE CONTATO
================================== */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.contact-form button {
  background: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

/* ================================
   BOTÃO DE VOLTAR AO TOPO
================================== */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.scroll-top.show {
  display: block;
}

/* ================================
   SCROLL DE PLANOS (antigo horizontal)
================================== */
.cards.planos-wrapper {
  position: relative;
}

.cards.planos {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 10px 40px;
}

.cards.planos::-webkit-scrollbar {
  height: 8px;
}

.cards.planos::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}

.scroll-button.left {
  left: 0;
}

.scroll-button.right {
  right: 0;
}

/* ================================
   GRADE DE PLANOS (4 colunas)
================================== */
.cards.planos-grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

.cards.planos-grade .plan.card {
  padding: 20px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cards.planos-grade .plan.card:hover {
  transform: scale(1.02);
}

.cards.planos-grade h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cards.planos-grade strong {
  font-size: 1rem;
}

.cards.planos-grade ul {
  list-style: none;
  padding: 0;
}

.cards.planos-grade ul li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.cards.planos-grade button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 14px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Responsivo */
@media (max-width: 1200px) {
  .cards.planos-grade {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards.planos-grade {
    grid-template-columns: 1fr;
  }
}

/* ================================
   ANIMAÇÃO
================================== */
@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  }
  to {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
  }
}
