/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #3D3E3E;
  line-height: 1.6;
  background-color: #ffffff;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
}

/* Cabeçalho */

.logo img {
  height: 80px;
  /* ajuste se quiser maior/menor */
  width: auto;
}

/* Ajuste de ancoragem para compensar o header fixo */
section {
  scroll-margin-top: 100px;
  /* ou o valor exato da altura do seu header */
}

.header {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}

/* Layout do cabeçalho com logo + menu lado a lado */
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #F05557;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a:hover {
  color: #F05557;
}

/* Layout hero */
.hero {
  background: #F05557;
  color: #fff;
  margin-top: 20px;
  padding: 120px 0 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin: 20px 0;
}

.btn {
  background-color: #3D3E3E;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 10px;
}

.btn:hover {
  background-color: #222;
}

/* Carrossel de clientes */
.clientes {
  padding: 60px 0;
  text-align: center;
}

.swiper {
  margin-top: 30px;
  padding: 10px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  max-height: 80px;
  max-width: 160px;
  object-fit: contain;
}

.swiper-slide-equipe {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide-equipe img {
  max-height: 220px;
  max-width: 320px;
  object-fit: contain;
}

.sobre-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.sobre-cards .card {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sobre-cards .card:hover {
  transform: translateY(-5px);
}

.sobre-cards h3 {
  margin-bottom: 10px;
  color: #F05557;
}

/* Soluções */
.solucoes {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

/* Sobre, Equipe, Contato */
.sobre,
.equipe,
.contato {
  padding: 60px 0;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form button {
  background: #F05557;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
}

form button:hover {
  background: #d74345;
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-float img {
  width: 48px;
  height: 48px;
}

/* Responsividade básica */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .logo {
    text-align: center;
  }
}


/* Carrossel (sobre) */
.sobre-swiper-wrapper {
  margin-top: 60px;
}

.sobre-swiper-wrapper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sobre-swiper-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* === Localização === */
.localizacao {
  padding: 60px 0;
  background: #f9f9f9;
}

.local-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.local-grid .info {
  flex: 1 1 260px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.local-grid .map {
  flex: 1 1 320px;
  min-width: 300px;
}

.local-grid a {
  color: #F05557;
  font-weight: 600;
}

@media (max-width: 768px) {
  .local-grid {
    flex-direction: column;
  }

  .local-grid .map iframe {
    height: 250px;
  }
}

.seo-final {
  background: #f4f4f4;
  padding: 30px 0;
  font-size: 1rem;
  color: #3D3E3E;
}

.form-status {
  margin-top: 15px;
  font-weight: bold;
  color: #3D3E3E;
}

.form-status.loading::before {
  content: '⏳ Enviando...';
  color: #F05557;
}

.form-status.success {
  color: green;
}

.form-status.error {
  color: red;
}

/* === Modal de carregamento ============================================= */
.modal-loading {
  position: fixed;
  inset: 0;
  /* top/right/bottom/left: 0 */
  background: rgba(0, 0, 0, 0.55);
  /* overlay escurecido */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  /* acima do header */
}

.modal-loading .modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-size: 1.1rem;
  color: #3D3E3E;
}

/* Spinner circular reutilizado */
.spinner {
  width: 28px;
  height: 28px;
  border: 4px solid #F05557;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: inline-block;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dropdown no menu de navegação */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  /* ✅ alinha a borda direita do submenu ao botão */
  /* left: 0;  <-- remova ou comente esta linha */

  background: #fff;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
  display: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #3D3E3E;
  white-space: nowrap;
  text-align: left;
}

.dropdown-menu li a:hover {
  background-color: #f4f4f4;
  color: #F05557;
}

/* Mostrar dropdown ao hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

#chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: #F05557;
  /* cor da sua marca */
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  cursor: pointer;
  z-index: 9999;
}

#chat-btn img {
  width: 32px;
  height: 32px;
}

#chat-btn:hover {
  transform: scale(1.08)
}

/*chat*/
#chat-container {
  display: none;
  width: 90vw;
  /* ocupa até 90 % da largura visível */
  max-width: 420px;
  /* nunca ultrapassa 420 px */
  height: 70vh;
  /* até 70 % da altura da viewport */
  max-height: 800px;
  /* mas não mais que 600 px */
  box-sizing: border-box;
  border: 2px solid #F05557;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 40px auto;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  scroll-margin-top: 120px;
  /* ancora abaixo do topo fixo */
  overflow-x: auto;
}

#toggle-chat-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F05557;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: background .3s;
  z-index: 10000;
}

#toggle-chat-btn:hover {
  background: #d94446;
}

#toggle-chat-btn img {
  width: 24px;
  height: 24px;
}

.chat-wrapper {
  text-align: center;
}

/* Ajustes extras para telas menores */
@media (max-width: 480px) {
  #chat-container {
    height: 60vh;
    max-height: none;
  }
}

.chat-header {
  background-color: #F05557;
  color: white;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.chat-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #F05557;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px #0004;
  cursor: pointer;
  z-index: 10000;
}

.chat-toggle-btn img {
  width: 32px;
  height: 32px;
}