/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #0a1a2f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Cabeçalho */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0d6efd;
  color: white;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000; /* para ficar acima do conteúdo */
}

/* Para que o conteúdo abaixo do header não fique escondido atrás dele, adicionamos um padding-top ao body ou main */
body {
  padding-top: 70px; /* ajuste conforme a altura do header */
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  user-select: none;
}

/* Menu e navegação */
.menu-toggle {
  font-size: 2.2rem;
  cursor: pointer;
  display: none;
  user-select: none;
}
/* Base */
nav {
  background: #0a1a2f;
  font-family: 'Segoe UI', sans-serif;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 12px 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
  background: #0077cc;
  color: #fff;
  border-radius: 6px;
}

/* Dropdown */
nav ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 10;
}

nav ul.dropdown li a {
  padding: 10px 15px;
  color: #0a1a2f;
}

nav li:hover > .dropdown {
  display: block;
}

/* Toggle menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  padding: 15px;
  color: white;
}

/* Estilo Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0a1a2f;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li a {
    padding: 14px 20px;
    color: #fff;
  }

  .dropdown {
    position: static;
    background: #0a1a2f;
    box-shadow: none;
  }

  .dropdown li a {
    color: #fff;
  }

  .has-dropdown.open .dropdown {
    display: flex;
    flex-direction: column;
  }
}

/* Hero */
.hero {
  background-color: #0077cc;
  color: #f9f9f9;
  padding: 80px 0;
  text-align: center;
}
.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}
.btn {
  background: #ff8800;
  color: #0a1a2f;
  text-decoration: none;
  padding: 14px 40px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 40px;
  transition: background-color 0.3s ease;
  display: inline-block;
}
.btn:hover {
  background: #ffaa33;
}

/* Seções padrão */
.section {
  padding: 60px 0;
  text-align: center;
}
.section.light {
  background-color: #f9f9f9;
  color: #0a1a2f;
}

/* Serviços (corrigido e mais robusto) */
.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding-left: 0;   /* <-- zera o recuo do UL */
  margin-left: 0;    /* opcional, só pra garantir */
}

/* Aplica o card tanto para <li> quanto para <div> filhos diretos */
.grid > li,
.grid > div {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  color: #0a1a2f;
  font-weight: 600;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid > li strong,
.grid > div strong {
  color: #ff8800;
  margin-right: 8px;
}

/* (Opcional) Em telas muito pequenas, deixa as colunas um pouco mais largas */
@media (max-width: 420px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}


/* ============================
   PLANOS - TABELA DE PREÇOS
============================ */
.plans {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.plans h2 {
  color: #0077cc;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}
.plans-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.plan-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 35px 25px 45px;
  flex: 1 1 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  position: relative;
}
.plan-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.plan-item h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #0a1a2f;
  font-weight: 700;
}
.price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.price span {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
}
.plan-item ul {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  width: 100%;
  padding-left: 0;
  color: #444;
}
.plan-item ul li {
  padding-left: 25px;
  margin-bottom: 12px;
  position: relative;
  font-size: 1rem;
}
.plan-item ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Botões dos planos */
.plan-item .btn {
  border: none;
  padding: 14px 35px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  display: inline-block;
}

/* Cores específicas por plano */
.plan-item:nth-child(1) { /* Essencial */
  border-top: 6px solid #ccc;
}
.plan-item:nth-child(1) .price { color: #666; }
.plan-item:nth-child(1) ul li::before { color: #666; }
.plan-item:nth-child(1) .btn {
  background: #ccc;
  color: #222;
}
.plan-item:nth-child(1) .btn:hover {
  background: #aaa;
}

.plan-item:nth-child(2) { /* Profissional */
  border-top: 6px solid #0077cc;
}
.plan-item:nth-child(2) .price { color: #0077cc; }
.plan-item:nth-child(2) ul li::before { color: #0077cc; }
.plan-item:nth-child(2) .btn {
  background: #0077cc;
  color: #fff;
}
.plan-item:nth-child(2) .btn:hover {
  background: #005fa3;
}

.plan-item:nth-child(3) { /* Avançado */
  border-top: 6px solid #d4af37;
}
.plan-item:nth-child(3) .price { color: #d4af37; }
.plan-item:nth-child(3) ul li::before { color: #d4af37; }
.plan-item:nth-child(3) .btn {
  background: linear-gradient(45deg, #d4af37, #f1c40f);
  color: #fff;
}
.plan-item:nth-child(3) .btn:hover {
  background: linear-gradient(45deg, #c29d2e, #e1b90a);
}

/* Badge recomendado */
.plan-item:nth-child(3)::before {
  content: "Recomendado";
  position: absolute;
  top: -25px;
  background: #d4af37;
  color: #fff;
  font-weight: 700;
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.plan-item:nth-child(4) { /* Premium */
  border-top: 6px solid #000;
  background: linear-gradient(145deg, #111, #222);
  color: #fff;
}
.plan-item:nth-child(4) h3,
.plan-item:nth-child(4) .price,
.plan-item:nth-child(4) ul { color: #fff; }
.plan-item:nth-child(4) ul li::before { color: #f1c40f; }
.plan-item:nth-child(4) .btn {
  background: linear-gradient(45deg, #000, #d4af37);
  color: #fff;
}
.plan-item:nth-child(4) .btn:hover {
  background: linear-gradient(45deg, #222, #c29d2e);
}

/* Portfólio */
#portfolio .container {
  text-align: center;
  color: #0a1a2f;
  padding: 40px 0;
}

/* Contato */
#contato form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#contato input,
#contato textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
}
#contato button {
  background: #ff8800;
  color: #0a1a2f;
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#contato button:hover {
  background: #ffaa33;
}

/* Rodapé */
footer {
  background: #0a1a2f;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.whatsapp-float:hover {
  background-color: #128c36;
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
}

/* Responsividade */

/* Mobile menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: #0077cc;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 20px;
    border-radius: 12px;
  }
  nav ul.active {
    display: flex;
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    padding: 10px;
    display: block;
  }
  nav ul li.open > .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .dropdown {
    padding-left: 20px;
  }
}

/* Font size adjust for smaller screens */
@media (max-width: 400px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  .plans h2 {
    font-size: 2rem;
  }
  .plan-item h3 {
    font-size: 1.3rem;
  }
}

/* Destaque */

.section.destaque {
  background: #fefefe;
  padding: 60px 20px;
  text-align: center;
}
.section.destaque .container {
  max-width: 1000px;
  margin: auto;
}
.section.destaque h2 {
  font-size: 2.2em;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.section.destaque .sub-texto {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}
.section.destaque ul.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
}
.section.destaque ul li {
  font-size: 1.05em;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .section.destaque ul.grid {
    grid-template-columns: 1fr;
  }
}
