@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,500;0,600;1,300&display=swap');

/* === ESTILOS GERAIS === */
html { 
  scroll-behavior: smooth; 
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  background-color: #fff;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Evita scroll horizontal em dispositivos pequenos */
}

section {
  padding: 100px 4vw 60px; /* Usa unidades relativas para melhor adaptação */
  scroll-margin-top: 60px; /* Ajuste para links de ancoragem compensando o menu fixo */
}

.titulo {
  font-weight: 600;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.65rem); /* Tamanho responsivo de fonte */
}

.subtitulo {
  font-weight: 500;
  font-style: italic;
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem); /* Tamanho responsivo de fonte */
}

.texto {
  font-weight: 300;
  text-align: justify;
  font-size: clamp(0.9rem, 2vw, 1rem); /* Tamanho responsivo de fonte */
}

.titulo.branco {
  color: white;
}

/* === NAVEGAÇÃO === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4vw; /* Padding responsivo */
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav img {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: clamp(10px, 3vw, 30px); /* Gap responsivo */
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #0f1e2d;
  transition: color 0.3s;
  font-size: clamp(0.8rem, 1.8vw, 1rem); /* Fonte responsiva */
}

nav a:hover {
  color: #735f97;
}

/* Menu hamburguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #0f1e2d;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Animação do hamburguer para X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: #564ea3;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: #564ea3;
}

/* === SEÇÃO HERO === */
.hero {
  background: url('https://i.ibb.co/rRxfnd8h/BG-hero.png') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 60px 5vw; /* Padding responsivo */
}

.hero-titulo {
  font-size: clamp(2rem, 6vw, 3.25rem); /* Título responsivo para hero */
}

.botao-hero {
  margin-top: 40px;
  background-color: #564ea3;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-block;
}

.botao-hero:hover {
  background-color: #725f97;
}

/* === SEÇÃO SOBRE === */
.sobre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  background-color: #574ea2;
  color: white;
  margin-top: 0;
}

.sobre img {
  max-width: 56%;
  border-radius: 10px;
  flex: 1 1 300px;
  order: 2;
}

.sobre-texto {
  flex: 2;
  order: 1;
  padding-bottom: 30px;
}

/* === SEÇÃO SOLUÇÕES === */
.solucoes {
  background-color: #0f1e2d;
}

.descricao-solucoes {
  max-width: 90%; /* Aumentado de 70% para melhor visualização em telas pequenas */
  margin: 0 auto 30px;
  text-align: center;
  color: white;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  width: calc(50% - 20px);
  transition: 0.3s ease;
  color: #574ea2;
}

.card:hover {
  background-color: #f9f9f9;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem); /* Fonte responsiva */
  margin-top: 10px;
  margin-bottom: 10px;
}

.card p {
  font-size: clamp(0.85rem, 2vw, 0.95rem); /* Fonte responsiva */
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: underline;
  color: #564ea3;
}

/* === SEÇÃO CLIENTES === */
.clientes {
  background-color: #735f97;
}

.feedbacks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.feedbacks img {
  width: calc(25% - 20px); /* Ajusta para 4 imagens por linha em desktop */
  min-width: 250px; /* Garante um tamanho mínimo */
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.feedbacks img:hover {
  transform: scale(1.02);
}

/* === SEÇÃO CONTATO === */
.contato {
  background-color: #e6eff0;
  text-align: center;
}

.contato-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 30px;
}

.contato form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contato input,
.contato textarea {
  padding: 12px; /* Aumentado para melhor uso em touch */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%; /* Garante que ocupa toda a largura disponível */
  font-family: 'Montserrat', sans-serif;
}

.contato textarea:focus,
.contato input:focus {
  outline: none;
  border-color: #564ea3;
  box-shadow: 0 0 0 2px rgba(86, 78, 163, 0.2);
}

.contato button {
  background-color: #564ea3;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px; /* Melhor para touch */
  transition: background-color 0.3s, transform 0.2s;
}

.contato button:hover {
  background-color: #463c82;
  transform: translateY(-2px);
}

.contato button:active {
  transform: translateY(1px);
}

.dados-contato {
  flex: 1 1 300px;
  font-weight: 300;
  font-size: 1rem;
  color: #0f1e2d;
  text-align: left;
}

.dados-contato p {
  margin-bottom: 16px; /* Aumentado para melhor espaçamento em mobile */
}

.dados-contato a {
  text-decoration: none;
  color: #0f1e2d;
  transition: color 0.3s;
  display: block; /* Melhor área de toque */
  padding: 5px 0;
}

.dados-contato a:hover {
  color: #735f97;
}

/* Botão whatsapp */
.whatsapp-fixo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #564ea3;
  color: white;
  font-size: 24px;
  width: 60px; /* Tamanho fixo melhor para touch */
  height: 60px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 999;
  transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-fixo:hover {
  transform: scale(1.1);
  background-color: #463c82;
}

/* Acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animação fade-in */
.invisivel {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.aparecer {
  opacity: 1;
  transform: translateY(0);
}

/* === MEDIA QUERIES === */

/* Tablets/Dispositivos médios */
@media (max-width: 992px) {
  .cards .card {
    width: calc(100% - 20px); /* Cards ocupam largura total em tablets */
  }
  
  .feedbacks img {
    width: calc(50% - 20px); /* 2 imagens por linha em tablets */
  }
  
  .sobre img {
    max-width: 100%;
  }
  
  .sobre {
    flex-direction: column;
  }
  
  .sobre-texto {
    order: 1;
    padding-bottom: 20px;
  }
  
  .sobre img {
    order: 2;
  }
  
  /* Ajusta padding para telas médias */
  section {
    padding: 90px 30px 50px;
  }
}

/* Mobile/Smartphones */
@media (max-width: 768px) {
  section {
    padding: 80px 20px 50px; /* Menos padding em mobile */
  }
  
  nav {
    padding: 15px 20px;
  }
  
  /* Menu hamburguer ativado */
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: white;
    padding: 0;
    margin: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    text-align: center;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
  }
  
  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  nav ul li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  nav ul li:last-child {
    border-bottom: none;
  }
  
  nav ul li a {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
  }
  
  nav ul li a:hover {
    background-color: rgba(115, 95, 151, 0.1);
  }
  
  .hero {
    padding-top: 120px; /* Espaço para o menu fixo */
    text-align: center;
  }
  
  .hero-titulo {
    margin-bottom: 20px;
  }
  
  .sobre img {
    max-width: 100%;
  }
  
  .feedbacks img {
    width: 100%; /* 1 imagem por linha em mobile */
    max-width: 100%;
    margin-bottom: 10px;
  }
  
  .contato form,
  .dados-contato {
    width: 100%;
  }
  
  .dados-contato {
    text-align: center;
  }
  
  .whatsapp-fixo {
    display: flex; /* Mostrar em mobile */
  }
  
  /* Melhora o espaçamento em mobile */
  .titulo {
    margin-bottom: 15px;
  }
  
  .descricao-solucoes {
    max-width: 100%;
  }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
  .hero-titulo {
    font-size: clamp(1.7rem, 5vw, 2rem);
  }
  
  .botao-hero {
    width: 80%; /* Botão mais largo para melhor área de toque */
    text-align: center;
  }
  
  .sobre, .solucoes, .clientes, .contato {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .card {
    padding: 15px;
  }
  
  /* Reduz ainda mais o padding nas seções */
  section {
    padding-top: 70px;
    padding-bottom: 40px;
  }
  
  /* Aumenta a área de toque em links do menu */
  nav ul li a {
    padding: 18px 0;
  }
}
