/* RESET E CONFIGURAÇÕES GLOBAIS */
:root {
  --primary-color: #4077ba; /* Azul principal */
  --dark-color: #646464; /* Cinza escuro para textos */
  --gray-color: #9d9d9d;
  --light-gray-color: #f8f9fa; /* Cinza claro do fundo */
  --white-color: #ffffff;
  --cta-color: #4077ba;
  --font-family: "Raleway", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--white-color);
  color: var(--dark-color);
  line-height: 1.7;
}

/* Estilo para o logo da imagem */
.header .logo img {
  height: 40px;
  width: auto;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

/* UTILIDADES E BOTÕES */
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-outline,
.btn-cta-secondary {
  transition: all 0.3s ease;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  text-align: center;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background-color: var(--dark-color);
  color: var(--white-color);
  font-weight: 600;
  text-align: center;
}

.btn-secondary:hover {
  background-color: #555;
}

.btn-cta {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 6px;
  background-color: var(--cta-color);
  color: var(--white-color);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-cta-secondary {
  background-color: var(--white-color);
  color: var(--primary-color);
  padding: 15px 35px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-cta-secondary:hover {
  background-color: var(--cta-color);
  color: var(--white-color);
}

/* TÍTULOS DE SEÇÃO */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
}

.section-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* --- CABEÇALHO MODERNIZADO --- */

.header {
  background-color: rgba(255, 255, 255, 0.95); /* Leve transparência */
  backdrop-filter: blur(10px); /* Efeito de vidro moderno */
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Sombra mais suave e difusa */
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px; /* Um pouco mais alto para respirar */
  padding: 0 2rem;
  max-width: 1200px; /* Limita a largura para não ficar muito espalhado em telas grandes */
  margin: 0 auto;
}

/* Ajuste do Logo */
.header .logo img {
  height: 45px; /* Tamanho otimizado */
  width: auto;
  transition: transform 0.3s ease;
}

.header .logo:hover img {
  transform: scale(1.05); /* Efeito sutil de zoom no logo */
}

/* Menu de Navegação */
.nav-menu > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem; /* Mais espaço entre os itens */
}

/* Links do Menu (exceto botão) */
.nav-link {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Efeito de sublinhado animado */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Ícone da seta no dropdown */
.nav-link i {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
  transform: rotate(180deg); /* Gira a setinha ao passar o mouse */
}

/* Botão de Destaque (Fale Conosco) */
.btn-nav-highlight {
  background-color: var(--primary-color);
  color: var(--white-color) !important; /* Força cor branca */
  padding: 10px 24px;
  border-radius: 50px; /* Borda redonda estilo "pill" */
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(64, 119, 186, 0.2); /* Sombra colorida */
  transition: all 0.3s ease;
}

.btn-nav-highlight:hover {
  background-color: #2c5da0; /* Um tom mais escuro do azul */
  transform: translateY(-2px); /* Sobe levemente */
  box-shadow: 0 6px 15px rgba(64, 119, 186, 0.3);
}

/* --- CORREÇÃO DO POSICIONAMENTO DO DROPDOWN --- */

/* 1. O pai (o li que contém o link e o submenu) deve ser a âncora */
.dropdown {
  position: relative; /* ESSENCIAL: Segura o menu filho dentro dele */
  height: 100%;
  display: flex;
  align-items: center;
}

/* 2. O menu filho se posiciona em relação ao pai (.dropdown) */
.dropdown-menu {
  display: block; /* Mantemos block para animação via opacidade */
  visibility: hidden; /* Esconde visualmente */
  opacity: 0;
  position: absolute; /* Flutua em relação ao pai */
  top: 100%; /* Começa logo abaixo do pai */
  left: 0; /* Alinha a esquerda do menu com a esquerda do item pai */
  background-color: var(--white-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  min-width: 260px; /* Largura mínima para não quebrar texto */
  padding: 1rem 0;
  list-style: none;
  z-index: 1001;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  transform: translateY(10px); /* Começa um pouco descido para animar subindo */
}

/* 3. Efeito ao passar o mouse */
.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0); /* Sobe suavemente para a posição original */
}

/* Estilo dos links dentro do dropdown */
.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  text-align: left; /* Garante que o texto fique alinhado à esquerda */
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: 1.8rem;
}
/* Responsividade Básica do Header */
@media (max-width: 992px) {
    .header .container {
        padding: 0 1rem;
    }
    .nav-menu {
        display: none; /* Em telas menores, precisaremos do menu hambúrguer futuramente */
    }
}

/* SEÇÃO HERO (PÁGINA INICIAL) */
.hero {
  background: 
  url("./img/Fisco\ banner.png") no-repeat center center/cover;
  min-height: 50vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white-color);
  padding: 4rem 0;
}
/* --- HERO COM VÍDEO --- */
.hero-video {
  position: relative;
  height: 100vh; /* Tela cheia */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--white-color);
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente Azulado (Mantendo sua identidade) + Escuro para contraste */
  background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(64, 119, 186, 0.6));
  z-index: -1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .container {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* SEÇÃO SOBRE NÓS */
.about {
  padding: 4rem 0;
  background-color: var(--light-gray-color);
}

.about .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

.about-content .section-title {
  text-align: left;
}

/* SEÇÃO: MISSÃO E VALORES */
/* SEÇÃO: MISSÃO E VALORES */
.mission-values-banner {
  /* Novo degradê */
  background: linear-gradient(
    to right,
    #4077ba,
    #5a93d0
  ); /* Degradê do azul original para um azul mais claro */
  color: var(--white-color);
  padding: 4rem 0;
}

.mission-values-banner .container {
  text-align: left;
}

.mission-values-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--white-color);
}

.mission-values-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  max-width: 2000px;
}

/* SEÇÃO DE SERVIÇOS (HOME) */
.services {
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.service-card {
  background-color: var(--white-color);
  /* Removemos a sombra pesada e trocamos por uma borda sutil */
  border: 1px solid #eef2f6; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.02); /* Sombra quase invisível */
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 8px;
}

.service-card:hover {
  transform: translateY(-8px); /* Sobe mais suave */
  box-shadow: 0 20px 40px rgba(64, 119, 186, 0.12); /* Sombra azulada suave */
  border-color: var(--primary-color);
}

.service-card .icon-wrapper {
  background-color: var(--primary-color);
  color: var(--white-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--gray-color);
  font-size: 0.95rem;
}

/* SEÇÃO NOSSO TIME */
.team {
  padding: 4rem 0;
  background-color: var(--white-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  background: var(--light-gray-color);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 5px solid var(--white-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.team-member p {
  color: var(--gray-color);
  font-weight: 500;
  margin-bottom: 1rem;
  min-height: 40px;
}

/* BANNER DE CHAMADA PARA AÇÃO (CTA) */
.cta-banner {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* SEÇÃO DE CONTATO */
.contact {
  padding: 4rem 0;
}

.contact .container {
  display: flex;
  gap: 4rem;
align-items: stretch; 
}

.contact-info {
  flex-basis: 30%; /* Diminui a largura da coluna de texto */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza o texto verticalmente se o mapa for maior */
}

.contact-info .section-title {
  text-align: left;
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.contact-info .info-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-map {
  flex-basis: 70%; /* Aumenta a largura da coluna do mapa */
  min-height: 400px; /* Altura mínima garantida */
  position: relative; /* Necessário para o iframe preencher tudo */
}

.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Preenche 100% da altura do pai (que foi esticado) */
  border: 0;
  border-radius: 8px;
  object-fit: cover;
}

/* ESTILOS DAS PÁGINAS DE SERVIÇO */
.page-hero {
  position: relative; /* Necessário para o posicionamento do fundo */
  min-height: 40vh; /* Altura mínima */
  display: flex;
  align-items: center;
  color: var(--white-color);
  padding: 4rem 0;
  overflow: hidden; /* Garante que a imagem não vaze */
  background-color: #333; /* Cor de fundo de segurança */
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Imagem de fundo */
  background: url("https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop") no-repeat center center/cover;
  
  /* O SEGREDO: Filtro de Escala de Cinza + Escurecimento */
  filter: grayscale(100%) brightness(40%); 
  
  z-index: 0; /* Fica atrás do texto */
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 2.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Sombra para destacar ainda mais */
}

.breadcrumb {
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--white-color);
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

.page-content {
  padding: 4rem 0;
  background-color: var(--white-color);
}

.page-content .container {
  max-width: 800px;
}

.page-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  font-size: 1.1rem;
}

.page-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.page-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.page-content ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--gray-color);
}

.page-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* RODAPÉ */
.footer {
  background-color: var(--light-gray-color);
  color: var(--dark-color);
  padding: 1rem 0 0;
  position: relative;
  border-top: 1px solid #e0e0e0;
}

.footer h3 {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.footer .small-text {
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer a {
  color: var(--gray-color);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

.footer .container {
  padding-bottom: 0.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: left;
}

.footer-about-col .footer-social {
  margin-top: 1.5rem;
}

.footer-about-col .footer-social a {
  color: var(--primary-color); /* Alterado para a cor azul primária */
  font-size: 1.5rem;
  margin-right: 1rem;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 0.75rem;
}

.footer-links-col ul li a {
  font-size: 0.95rem;
}

.footer-contact-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-col .contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-col .contact-item p {
  margin: 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #ddd;
}

/* AJUSTE PARA DESLOCAR O LOGO E O MENU PARA AS BORDAS */
.header .container {
  max-width: 100%;
  padding: 0 200px;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
  .header .container {
    flex-direction: column;
    height: auto;
    padding: 1rem 40px; /* Ajuste no padding responsivo do header */
  }
  .nav-menu > ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .dropdown {
    width: 100%;
    text-align: center;
  }
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    width: 100%;
  }
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  .about .container,
  .contact .container {
    flex-direction: column;
    text-align: center;
  }
  .about-content .section-title,
  .contact-info .section-title {
    text-align: center;
  }
  .about-image {
    margin-bottom: 2rem;
  }
  .contact .container {
    flex-direction: column-reverse;
  }
  .contact-info {
    margin-top: 3rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact-col .contact-item {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .header .container {
    padding: 1rem 20px;
  }
}

/* --- ESTILOS DA FERRAMENTA DE CONSULTA --- */

.tool-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #eee;
}

.tool-header {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 2.5rem 2rem;
  text-align: center;
}

.tool-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.tool-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-header p {
  font-size: 1.1rem;
  opacity: 1; /* Mudado de 0.9 para 1 para ficar branco total */
  color: #fff; /* Força a cor branca */
  max-width: 600px;
  margin: 0 auto;
}

.tool-box {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--gray-color);
  font-size: 0.8rem;
}

/* Estilo do Input com Ícone */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 15px 12px 45px; /* Padding esquerda maior para o ícone */
  border: 2px solid #e1e1e1;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--dark-color);
  transition: border-color 0.3s ease;
  outline: none;
}

.input-wrapper input:focus {
  border-color: var(--primary-color);
}

/* Mensagens de Status */
.status-box {
  margin-top: 1.5rem;
  text-align: center;
  min-height: 20px;
  font-weight: 500;
}

.status-box .error {
  color: #d9534f;
}

.status-box .success {
  color: #28a745;
}

.status-box .loading {
  color: var(--primary-color);
}

/* Responsividade da ferramenta */
@media (max-width: 768px) {
  .tool-header {
    padding: 2rem 1rem;
  }
  .tool-box {
    padding: 1.5rem;
  }
}

/* --- SEÇÃO DE VITRINE DE FERRAMENTAS (INDEX) --- */

/* --- SEÇÃO DE VITRINE DE FERRAMENTAS (CARROSSEL) --- */

.tools-section {
  padding: 5rem 0;
  background-color: #f4f7fa;
  border-top: 1px solid #eef2f5;
  border-bottom: 1px solid #eef2f5;
  overflow: hidden; /* Evita rolagem horizontal indesejada na página */
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--gray-color);
  font-size: 1.1rem;
}

/* Container principal do slider (centraliza e alinha botões) */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* Janela de visualização (esconde o que está fora) */
.tools-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 900px; /* Largura do card visível */
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

/* O trilho que contém todos os slides lado a lado */
.tools-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Cada slide individual */
.tool-slide {
  min-width: 100%; /* Cada slide ocupa 100% da janela visível */
  box-sizing: border-box;
}

/* O Card em si (Visual + Detalhes) */
.tool-showcase-card {
  display: flex;
  background-color: var(--white-color);
  width: 100%;
  min-height: 450px; /* Aumentei um pouco a altura mínima fixa */
  align-items: stretch; /* Garante que as duas metades tenham a mesma altura */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

/* Estilos internos do card (iguais ao anterior) */
.tool-visual {
  background: linear-gradient(135deg, var(--primary-color), #2c5da0);
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.tool-visual i {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
}

.tool-details {
  width: 65%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  /* Mudamos de 'center' para 'flex-start' para controlar o espaçamento */
  justify-content: flex-start; 
  text-align: left;
}

.tool-details h3 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.tool-details p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tool-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tool-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.tool-features li i {
  color: #28a745;
  font-size: 1rem;
}

.tool-details .btn-primary {
  align-self: flex-start;
  padding: 12px 35px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* O PULO DO GATO: Isso empurra o botão para o final do card */
  margin-top: auto; 
}

/* Botões de Navegação (Setas) */
.slider-btn {
  background-color: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 1rem;
  transition: transform 0.2s, color 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  color: var(--cta-color);
  transform: scale(1.2);
}

/* Indicadores (Bolinhas) */
.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--primary-color);
}

/* Responsividade do Slider */
@media (max-width: 768px) {
  .tool-showcase-card {
    flex-direction: column;
  }

  .tool-visual {
    width: 100%;
    padding: 3rem 1rem;
  }

  .tool-details {
    width: 100%;
    padding: 2rem;
    text-align: center;
  }

  .tool-features {
    justify-content: center;
  }

  .tool-details .btn-primary {
    align-self: center;
  }

  /* Em mobile, botões de seta podem ficar sobrepostos ou menores */
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
  .prev-btn { left: 0; }
  .next-btn { right: 0; }
}

/* RESPONSIVIDADE PARA O CARD */
@media (max-width: 768px) {
  .tool-showcase-card {
    flex-direction: column;
  }

  .tool-visual {
    width: 100%;
    padding: 3rem 1rem;
  }

  .tool-details {
    width: 100%;
    padding: 2rem;
    text-align: center;
  }

  .tool-features {
    justify-content: center;
  }

  .tool-details .btn-primary {
    align-self: center;
  }
}

/* --- SEÇÃO INFORMATIVA DA FERRAMENTA (ABAIXO DA BUSCA) --- */

.tool-info-section {
  padding: 5rem 0;
  background-color: #f9fafb; /* Fundo levemente cinza */
  border-top: 1px solid #eee;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Duas colunas iguais */
  gap: 4rem;
  align-items: start;
}

.info-content h3, 
.info-benefits h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.info-content p {
  color: var(--dark-color);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  text-align: justify;
}

/* Lista de Vantagens */
.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  background: var(--white-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.benefits-list li:hover {
  transform: translateX(5px);
}

.benefits-list li i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 1.2rem;
  margin-top: 4px; /* Alinha com o título */
}

.benefits-list li strong {
  display: block;
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 0.3rem;
}

.benefits-list li span {
  font-size: 0.95rem;
  color: var(--gray-color);
  line-height: 1.5;
}

/* =============================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ============================================================= */

/* Esconde o botão mobile em telas grandes */
.mobile-menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* --- TABLETS E DISPOSITIVOS MÓVEIS (max-width: 992px) --- */
@media (max-width: 992px) {
  /* Ajuste do Header */
  .header .container {
    padding: 0 1.5rem;
  }

  /* Mostra o botão do menu */
  .mobile-menu-icon {
    display: block;
    z-index: 1002;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
  }

  /* Estilo do Menu Mobile */
  .nav-menu {
    position: absolute;
    /* top: 100% faz o menu colar exatamente embaixo do header, independente da altura */
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    flex-direction: column;
    z-index: 1001;
    
    /* MUDANÇA PRINCIPAL: Usar display none/flex é mais garantido */
    display: none; 
    padding: 0;
    border-top: 1px solid #eee;
  }

  /* Quando o JavaScript adiciona a classe .active, o menu aparece */
  .nav-menu.active {
    display: flex;
    padding-bottom: 2rem;
    animation: slideDown 0.3s ease forwards;
  }

  /* Pequena animação para suavizar a entrada */
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Estilo dos itens da lista */
  .nav-menu > ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-menu > ul > li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f9f9f9;
  }

  /* Links maiores para facilitar o toque */
  .nav-link {
    display: block;
    padding: 1.2rem 0;
    width: 100%;
    font-size: 1.1rem;
  }

  /* Ajuste dos Dropdowns (Submenus) no Mobile */
  .dropdown {
    flex-direction: column;
  }
  
  .dropdown-menu {
    position: static; /* Remove flutuação */
    display: none; /* Escondido até clicar */
    box-shadow: none;
    background-color: #f4f7fa; /* Fundo levemente diferente para destacar */
    width: 100%;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

 /* DROPDOWN MOBILE */
  
  /* Remove o hover no mobile (evita bugs de toque) */
  .dropdown:hover .dropdown-menu {
    display: none; 
  }

  /* Só mostra se tiver a classe .active adicionada pelo clique JS */
  .dropdown.active .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }
  
  /* Gira a setinha quando estiver ativo */
  .dropdown.active .nav-link i {
    transform: rotate(180deg);
  }
  
  .dropdown-menu a {
      padding: 1rem;
      text-align: center;
      border-bottom: 1px solid #eef2f5;
  }

  /* --- OUTROS AJUSTES DE LAYOUT MOBILE --- */
  
  /* Grades de 2 Colunas viram 1 */
  .services-grid, 
  .team-grid {
    grid-template-columns: 1fr; /* Uma coluna só */
    gap: 2rem;
  }

  /* Contato empilhado */
  .contact .container {
    flex-direction: column;
    height: auto;
  }

  .contact-info, 
  .contact-map {
    flex-basis: 100%;
    width: 100%;
  }

  .contact-map {
    min-height: 350px;
    margin-top: 2rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-contact-col .contact-item {
      justify-content: center;
  }
}

/* --- CELULARES PEQUENOS (max-width: 768px) --- */
@media (max-width: 768px) {
  .hero h1, 
  .page-hero h1 {
    font-size: 2rem;
  }

.hero {
    min-height: 25vh; /* Altura reduzida para mobile */
    background-size: contain; /* Mostra a imagem toda sem cortar */
    background-position: center;
    padding: 0;
    background-color: #e4e4e4; /* Fundo cinza para combinar com a imagem */
  }
  .section-title {
    font-size: 1.8rem;
  }

  /* Ajustes do Slider de Ferramentas */
  .tool-showcase-card {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .tool-visual {
    width: 100%;
    padding: 2rem 1rem;
  }

  .tool-details {
    width: 100%;
    padding: 2rem 1.5rem;
    align-items: center;
    text-align: center;
  }

  .tool-features {
    justify-content: center;
  }

  .tool-details .btn-primary {
    align-self: center;
    width: 100%;
    margin-top: 1rem;
  }

  /* Botões de seta do slider */
  .slider-btn {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .info-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
}

/* --- ANIMAÇÕES DE SCROLL (Estilo 5yn) --- */

/* Estado Inicial (Invisível e deslocado para baixo) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px); /* Empurrado 40px para baixo */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Estado Final (Visível e na posição original) */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Atraso para itens em sequência (ex: cards de serviço) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- SEÇÕES COM VÍDEO DE FUNDO (SOBRE & MISSÃO) --- */
.video-section {
  position: relative;
  overflow: hidden;
  color: #ffffff !important;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Cor de fundo (aparece apenas se o vídeo não carregar) */
  background-color: #2c3e50; 
  z-index: 1; /* Cria um novo contexto de empilhamento */
}

/* O Vídeo fica na camada 0 (Base) */
.video-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Mudamos de -2 para 0 para ficar acima do fundo */
}

/* A Película Escura fica na camada 1 (Acima do vídeo) */
.video-section .overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  z-index: 1; /* Mudamos de -1 para 1 */
}

/* O Texto e Conteúdo ficam na camada 2 (Acima de tudo) */
.video-section .container {
  position: relative;
  z-index: 2;
}

/* Ajustes visuais mantidos */
.video-section h2, 
.video-section p {
  color: #ffffff;
}

.video-section .section-title::after {
  background-color: var(--primary-color);
}

#sobre .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
}

#sobre .btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
  margin-top: 2rem;
}

#sobre .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--primary-color);
}

/* --- CORREÇÃO: TEXTO DOS CARDS DE FERRAMENTAS --- */
/* Como a seção é de vídeo, o texto padrão ficou branco. 
   Aqui forçamos ele a ficar escuro novamente DENTRO dos cards brancos. */

.tool-showcase-card .tool-details h3 {
  color: #1a1a1a !important; /* Título do card escuro */
}

.tool-showcase-card .tool-details p {
  color: #666666 !important; /* Texto descritivo cinza escuro */
  display: block !important;
  opacity: 1 !important;
}

.tool-showcase-card .tool-features li {
  color: #333333 !important; /* Itens da lista escuros */
}

/* Garante que o ícone de check continue azul */
.tool-showcase-card .tool-features li i {
  color: var(--primary-color) !important;
}

/* --- CORREÇÃO: TAMANHO DO LOGO --- */
.header .logo img {
  /* Ajuste este valor conforme necessário para ficar bom */
  width: 180px; 
  height: auto; /* Mantém a proporção */
  max-width: 100%; /* Garante que não estoure no mobile */
}

/* Ajuste opcional para telas menores (mobile) se 180px ficar muito grande lá */
@media (max-width: 768px) {
  .header .logo img {
    width: 140px;
  }
}