/* --- CONFIGURAÇÕES GERAIS --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", Arial, sans-serif; }
html { scroll-behavior: auto; } /* Controlado pelo JS */
body { background-color: #ffffff; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-text { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* --- TÍTULOS --- */
.section-title-dark { color: #000; font-size: 2.5em; margin-bottom: 30px; }

/* --- NAVBAR (Mantendo suas fontes 22px) --- */
.navbar {
  background-color: #001427;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-img { width: 140px; height: auto; margin: -20px 0; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { font-size: 22px; color: white; transition: 0.3s; text-decoration: none; }
.nav-links a:hover { color: #00aaff; }
.divider { color: white; font-size: 22px; }

/* --- HERO --- */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 0 20px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-color: rgba(14, 39, 82, 0.6); backdrop-filter: blur(1px); z-index: 1;
}
.hero h1, .hero p, .hero button { position: relative; z-index: 2; }
.hero h1 { font-size: 2.8em; margin-bottom: 10px; text-shadow: 1px 1px 5px #000; }
.hero p { font-size: 1.2em; max-width: 600px; margin-bottom: 20px; text-shadow: 1px 1px 3px #000; }
.hero button {
  background-color: #00aaff; border: none; color: white; padding: 12px 25px;
  border-radius: 5px; font-size: 1em; cursor: pointer; transition: 0.3s;
}

/* --- SOBRE --- */
.sobre { padding: 100px 0; text-align: center; }
.sobre p { font-size: 20px; text-align: justify; margin-bottom: 20px; line-height: 1.7; }

/* --- SERVIÇOS --- */
.servicos { padding: 100px 40px; background-color: #eef3f8; text-align: center; }
.servicos-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin-top: 30px; }
.card {
  background-color: white; border-radius: 8px; padding: 25px; width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card h3 { color: #003366; margin-bottom: 10px; }

/* --- DIFERENCIAL --- */
.diferencial { padding: 100px 0; background-color: #ffffff; }
.diferencial-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.diferencial-texto { flex: 1 1 500px; }
.diferencial-texto p, .diferencial-texto ul { font-size: 20px; text-align: left; margin-bottom: 15px; }
.diferencial-texto ul { padding-left: 20px; }
.diferencial-imagem { flex: 1 1 400px; text-align: center; }
.diferencial-imagem img { width: 100%; max-width: 400px; border-radius: 10px; box-shadow: 0 6px 12px rgba(0,0,0,0.1); }

/* --- COMO TRABALHAMOS --- */
.como-trabalhamos { padding: 100px 0; background-color: #eef3f8; text-align: center; }
.como-trabalhamos p.invite { font-size: 20px; text-align: justify; line-height: 1.6; }

/* --- CLIENTES --- */
.clientes { padding: 80px 0; text-align: center; }
.client-title { font-size: 32px; color: #000; margin-bottom: 10px; }
.client-subtitle { font-size: 18px; color: #666; margin-bottom: 40px; }
.clientes-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card-empresa {
  flex: 1 1 250px; max-width: 320px; background: #fff; padding: 25px 15px;
  border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; transition: 0.3s;
}
.card-empresa:hover { transform: translateY(-5px); border-bottom: 3px solid #0055aa; }
.nome-empresa { font-weight: bold; color: #0055aa; font-size: 20px; }
.tipo-servico { font-size: 14px; text-transform: uppercase; color: #333; }

/* --- CONTATO (Correção do Form) --- */
.contato-full { padding: 60px 0; background-color: #eef3f8; }
.contact-section { display: flex; justify-content: center; padding: 0 20px; }
.contact-container {
  max-width: 1100px; width: 100%; display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 50px; background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-info { background-color: #2d3436; color: #fff; padding: 40px; border-radius: 10px; }
.contact-info h2 { font-size: 2rem; margin-bottom: 20px; color: #00cec9; }
.contact-info p { margin-bottom: 30px; color: #dfe6e9; }
.contact-form textarea {
  resize: none; 
  box-sizing: border-box;
}
.info-item { display: flex; align-items: center; margin-bottom: 20px; gap: 15px; }
.info-item i { color: #00cec9; font-size: 1.2rem; width: 20px; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.input-group input, .input-group textarea {
  width: 100%; padding: 12px; border: 2px solid #acacac; border-radius: 8px; outline: none;
}
.btn-submit {
  width: 100%; padding: 15px; background-color: #00cec9; color: white;
  border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background-color: #00b894; }

/* --- FOOTER --- */
footer { background-color: #003366; color: white; text-align: center; padding: 30px; font-size: 0.9em; line-height: 1.5; }
footer a { color: #FFFF33; font-style: italic; }

/* --- BOTÃO TOPO --- */
/* Estilização do Botão */
.Btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #003366; /* Azul escuro original */
  border: none;
  border-radius: 50%;
  display: none; /* O JS altera para 'flex' ao rolar a página */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.Btn svg path {
  fill: white;
}

/* Criando o balão de mensagem (Tooltip) */
/* Criando o balão de mensagem (Tooltip) Centralizado */
.Btn::after {
  content: "Voltar ao início";
  position: absolute;
  bottom: 65px;      /* Distância acima do botão */
  left: 50%;         /* Move o início do balão para o meio do botão */
  transform: translateX(-50%) translateY(10px); /* O -50% centraliza horizontalmente */
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Ajuste no Hover para manter a centralização na animação */
.Btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Mantém o -50% e remove o desvio vertical */
}

/* Mostrar mensagem ao passar o mouse */
.Btn:hover {
  background-color: #0055aa; /* Clareia levemente no hover */
  transform: scale(1.1);
}
/* --- Estilo Base (Focado no PC/Desktop) --- */
.img-diferencial {
  display: block;        /* Garante que as margens funcionem corretamente */
  margin-left: auto;     /* Centraliza a imagem horizontalmente */
  margin-right: auto;
  /* NO PC: Definimos uma largura máxima maior para não ficar pequena */
  max-width: 600px;      /* <--- Ajuste este valor para o tamanho ideal no PC */
  width: 100%;           /* Faz ela ocupar o espaço disponível até o max-width */
  height: auto;          /* Mantém a proporção da imagem (corrige o erro de 'height: 350x') */
  margin-top: 60px;       /* Mantém a margem superior que você já usava */
}

/* --- Estilo para Mobile (Telas até 768px) --- */
@media (max-width: 768px) {
  .img-diferencial {
    /* NO MOBILE: Mantemos o seu limite máximo original de 350px */
    max-width: 350px; 
    margin-top: 40px;     /* Opcional: diminui um pouco a margem superior no celular */
    margin-top: 180px;
    margin-bottom: -200px;
  }
}

/* Esconder a mensagem em telas touch (mobile) para não bugar o clique */
@media (max-width: 768px) {
  /* 1. ESCONDE O BOTÃO FLUTUANTE COMPLETAMENTE NO MOBILE */
  .Btn {
    display: none !important;
  }

  /* 2. ATIVA A BARRA INFERIOR */
  .bottom-nav {
    display: flex;
  }

  /* 3. AJUSTES DE SCROLL INDIVIDUAIS (Conforme solicitado) */
  #home { scroll-margin-top: 0px !important; }
  #sobre { scroll-margin-top: 80px !important; }
  #servicos { scroll-margin-top: 85px !important; }
  #diferencial { scroll-margin-top: 85px !important; }
  #como-trabalhamos { scroll-margin-top: 90px !important; }
  #empresas-parceiras { scroll-margin-top: 85px !important; }
  #contato { scroll-margin-top: 80px !important; }

  /* 4. ESPAÇO NO FINAL DO BODY PARA A BARRA NÃO COBRIR CONTEÚDO */
  body {
    padding-bottom: 70px;
  }

  /* 5. OCULTA O MENU HAMBÚRGUER SUPERIOR (Já que agora tem a barra inferior) */
  .menu-icon {
    display: none !important;
  }
}
/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
  .contact-container { grid-template-columns: 1fr; }
  .navbar { padding: 10px 20px; }
  .nav-links a, .divider { font-size: 18px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Oculta menu no mobile para não sobrepor */
  .hero h1 { font-size: 2em; }
  .section-title-dark { font-size: 1.8em; }
  .sobre p, .diferencial-texto p, .como-trabalhamos p.invite { font-size: 18px; text-align: left; }
  .diferencial-grid { flex-direction: column;  margin-top: -200px;}
  .diferencial-imagem { order: -1; }
  .contact-container { padding: 20px; }
  .contact-info { padding: 20px; }
}