/*
 * Estilos gerais para a landing page Better Gestão.
 * Utilizamos cores inspiradas na paleta da Infotec Sistemas e na referência do site
 * da Chatwoot para criar uma experiência moderna e agradável.
 */

:root {
  --primary-color: #694ED6;
  --secondary-color: #0E72D7;
  --dark-color: #212121;
  --light-bg: #f9f9ff;
  --text-color: #333;
  --text-secondary: #555;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
  scroll-behavior: smooth;
}

/* Layout genérico */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cabeçalho */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5f0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
header .logo img {
  height: 60px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
nav a:hover {
  color: var(--primary-color);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #593bc3;
}
.btn-secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: #0b5ebb;
}

/* Seção Hero */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f3f5ff 100%);
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 400px;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin: 0 0 20px;
  line-height: 1.2;
}
.hero-text h1 span {
  color: var(--primary-color);
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.hero-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Seção Features */
.features {
  padding: 80px 0;
  background-color: #ffffff;
}
.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--dark-color);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.feature {
  background-color: #f8f8ff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.feature-icon {
  margin-bottom: 20px;
}
.feature-icon img {
  height: 64px;
  width: auto;
}
.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.feature p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Seção Serviços */
.services {
  padding: 80px 0;
  background-color: var(--light-bg);
  text-align: center;
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}
.services p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.service-item {
  flex: 1 1 260px;
  max-width: 300px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.service-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.service-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Chamada para ação */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  text-align: center;
}
.cta h2 {
  font-size: 2rem;
  margin: 0 0 20px;
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cta .btn-secondary {
  background-color: #ffffff;
  color: var(--primary-color);
  margin-top: 20px;
}
.cta .btn-secondary:hover {
  background-color: #f6f6f6;
}

/* Seção de contato */
.contact {
  padding: 80px 0;
  background-color: #ffffff;
  text-align: center;
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}
.contact p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Rodapé */
footer {
  background-color: var(--dark-color);
  color: #bbbbbb;
  padding: 40px 0;
  text-align: center;
}
footer .footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}
footer p {
  margin: 5px 0;
  font-size: 0.9rem;
}
footer a {
  color: #bbbbbb;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover {
  color: #ffffff;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text, .hero-image {
    flex: 1 1 auto;
  }
  nav ul {
    gap: 16px;
  }
  .service-list {
    flex-direction: column;
    align-items: center;
  }
  .service-item {
    max-width: none;
    width: 100%;
  }
}


/* Modal responsivo */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 26px;
  cursor: pointer;
  color: #694ED6;
}

/* Inputs e botão */
.modal-content input {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #694ED6;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content button:hover {
  background: #563bc7;
}

/* Transição suave */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Ajustes para celular */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px 15px;
    max-width: 90%;
  }

  .modal-content h2 {
    font-size: 1.3rem;
  }

  .modal-content input, 
  .modal-content button {
    font-size: 15px;
  }

  .close {
    font-size: 24px;
  }
}

/* Cria contexto para a marca d’água */


/* Marca d'água visível e centralizada */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1200px; /* aumenta o tamanho */
  height: 1200px;
  background: url("images/marcadagua.png") no-repeat center center;
  background-size: contain;
  opacity: 0.10;
  filter: blur(5px);
  transform: translate(-50%, -50%);
  z-index: 1; /* sobe acima do fundo */
  pointer-events: none;
}


/* Ajuste para telas menores */
@media (max-width: 768px) {
  body::before {
    width: 800px;
    height: 800px;
    opacity: 0.05;
    filter: blur(4px);
  }
}

/* Seção de Depoimentos */
.testimonials {
  background-color: #f9f9ff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--dark-color);
}

/* Agora usamos GRID com 3 colunas; só os .active aparecem (display:block) */
.carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Esconde por padrão para não ocupar espaço */
.testimonial {
  display: none;
  padding: 20px;
  box-sizing: border-box;
  transform: scale(0.98);
  transition: transform 0.25s ease;
}

/* Apenas os ativos aparecem e ocupam as 3 colunas */
.testimonial.active {
  display: block;
  transform: scale(1);
}

.testimonial p {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  padding: 25px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

.testimonial h4 {
  margin-top: 15px;
  color: var(--primary-color);
}

.testimonial span {
  display: block;
  font-size: 0.9rem;
  color: #777;
}

.carousel-controls {
  margin-top: 30px;
}

.carousel-controls button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: var(--secondary-color);
}

@media (max-width: 768px) {
  .carousel {
    grid-template-columns: 1fr; /* 1 por vez no mobile */
  }
}


/* Botão hamburguer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Oculta menu no mobile inicialmente */
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e5e5f0;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
  }

  nav a {
    font-size: 1.1rem;
  }

  /* Botão de demonstração centralizado */
  header .btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}
