@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #58ca27;
  /* Nova cor solicitada */
  --secondary-color: #45a41f;
  /* Versão mais escura para o hover */
  --text-color-light: #f0f0f0;
  --bg-dark: #1a1a1a;
  --border-radius: 8px;
}

.highlight {
  color: var(--highlight-color);
  /* Usando a nova cor escura para destaque */
  font-weight: 600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header e Navbar */

.header {
  background-color: var(--primary-color);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Efeito de Vidro Fosco (Glassmorphism) para o menu rolado */

.header.scrolled {
  background-color: rgba(48, 115, 21, 0.9);
  /* Aumentado para 0.9 (mais escuro) */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* Cor dos ícones sociais quando o menu é rolado (regra mais forte) */

.header.scrolled .social-icons a {
  color: #cdcccc !important;
  /* A cor fica cinza claro */
}

/* Cor dos ícones sociais ao passar o mouse quando o menu é rolado */

.header.scrolled .social-icons a:hover {
  color: #ffffff !important;
  /* A cor fica branca pura para dar um destaque extra */
}

.header.scrolled .logo,
.header.scrolled .nav-links a,
.header.scrolled .social-icons a {
  color: #fff;
  /* Garante que os textos e ícones continuem brancos */
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
}

/* Estilo para a imagem da logo */

.logo img {
  height: 40px;
  /* Altere este valor para controlar o tamanho da sua logo */
  width: auto;
  /* Mantém a proporção da imagem */
  display: block;
  /* Remove espaços extras abaixo da imagem */
  transition: transform 0.3s ease;
  /* Animação ao passar o mouse */
}

.logo img:hover {
  transform: scale(1.05);
  /* Efeito de zoom no hover */
}

.logo i {
  margin-right: 10px;
  font-size: 1.5rem;
}

/* Links de Navegação - Animação Moderna */

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 5px;
  /* Espaço para a linha de baixo */
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

/* Mudar a cor do traço do menu quando o header estiver rolado */

.header.scrolled .nav-links a::after {
  background-color: #7f7f7f;
  /* Cor escura para o traço */
}

/* Animação de traço no hover para todos os links */

.nav-links a:hover::after {
  width: 100%;
}

.header.scrolled .nav-links a {
  color: #e0e0e0;
}

/* Estilo para o link ativo (com o traço e sem mudar a cor do texto) */

.nav-links a.active::after {
  width: 100%;
  /* A cor do texto não é alterada aqui */
}

/* Estilo para a cor do texto no hover, mas APENAS quando não é o link ativo */

.nav-links a:not(.active):hover {
  color: #7f7f7f;
}

.header:not(.scrolled) .social-icons a:hover {
  color: #dad7d7;
  /* Cor do ícone: Cinza muito claro */
}

/* Ícones Sociais - Animação de Círculo */

.social-icons a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  font-size: 1.2rem;
  /* Mantém o tamanho do ícone */
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  /* Removido: display: flex, align-items, justify-content, width, height */
}

.social-icons a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  width: 40px;
  /* Tamanho do círculo */
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.social-icons a:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.social-icons a:hover {
  transform: translateY(-3px);
  color: #fff;
}

/* Menu Hambúrguer */

.hamburger {
  display: none;
  /* Escondido por padrão */
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

/* Animação do Hambúrguer para "X" */

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Estilos Responsivos */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Esconde o menu de links */
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .nav-links.active {
    display: flex;
    /* Mostra o menu quando ativo */
  }

  .nav-links a {
    margin: 10px 0;
  }

  .social-icons {
    display: none;
  }

  .hamburger {
    display: flex;
    /* Mostra o menu hambúrguer */
  }
}

/* Seção Hero com Efeito Parallax */

.hero-section {
  /* Imagem de Fundo (ajuste o URL) */
  background-image: url("img/fundo.png");
  background-position: top 11% center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  /* Este é o truque para o efeito Parallax */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  color: #fff;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.262);
  /* Sobreposição escura */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-left: 5%;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Novo Botão de Contato com Animação */

.btn-whatsapp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    #3a8024 40%,
    #3f8e2c 60%,
    var(--primary-color) 100%
  );
  background-size: 200% 100%;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-family: sans-serif;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 1.5s ease, color 0.3s ease,
    box-shadow 0.3s ease, transform 0.2s ease;
  user-select: none;
  animation: slideBGreverse 4s linear infinite;
  box-shadow: 0 4px 8px rgba(58, 128, 36, 0.4);
}

.btn-whatsapp:hover {
  background-position: 0% 0;
  color: #dfffd8;
  box-shadow: 0 6px 15px rgba(41, 90, 27, 0.7);
  transform: scale(1.05);
}

.btn-whatsapp svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes slideBGreverse {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: 0% 0;
  }
}

#servicos {
  padding-top: 0px;
}

.servicos {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  background-color: #1638264d;
  /* Permite rolagem horizontal em telas largas */
  justify-content: space-between;
  padding: 0;
  gap: 0;
  overflow-x: hidden;
}

/* Estilos dos cards */

.card {
  flex: 0 0 calc(100% / 7);
  /* 7 cards lado a lado */
  min-height: 340px;
  padding: 20px;
  text-align: center;
  color: white;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px auto;
  display: block;
  filter: invert(100%);
  /* Garante que ícones escuros fiquem claros nos cards escuros */
}

/* Estilos para o Card com fundo CLARO (ajuste de cor do ícone) */

.card[style*="#dddddd"] img,
.card[style*="#f6f6f6"] img,
.card[style*="#ffffff"] img {
  filter: none;
  /* Remove o filtro de inversão para ícones em cards claros */
}

/* --- BLOCO DO TÍTULO --- */

.card h3 {
  font-size: 1.1em;
  margin: 10px 0;
  letter-spacing: 1px;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- BLOCO DO TEXTO --- */

.card p {
  flex-grow: 1;
  font-size: 0.9em;
  line-height: 1.3em;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 100%;
}

/* Botão (Substituindo a cor fixa pela nossa variável) */
/* Botão do Card de Serviço: CORREÇÃO DEFINITIVA */

.card .btn {
  margin-top: auto;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  /* A ÚNICA FORMA SEGURA DE FORÇAR A LARGURA SEM QUEBRAR O FLEXBOX */
  display: inline-block;
  width: 90%;
  /* Define uma largura fixa, mas com margem */
  margin-left: 5%;
  /* Centraliza o botão dentro do card */
  margin-right: 5%;
  font-size: 0.9em;
}

.card .btn:hover {
  background-color: var(--primary-color);
  /* Usa nossa cor verde */
  color: var(--bg-dark);
  /* Cor do texto fica escura */
  box-shadow: 0 0 8px var(--primary-color), 0 0 15px var(--primary-color),
    0 0 20px var(--primary-color), 0 0 30px var(--secondary-color);
}

/* Barra de rolagem (mantida do seu código) */

.servicos::-webkit-scrollbar {
  height: 8px;
}

.servicos::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.servicos::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Mobile: 1 card por linha (mantida do seu código) */

@media (max-width: 1024px) {
  .servicos {
    flex-wrap: wrap;
    flex-direction: column;
    overflow-x: hidden;
    gap: 0;
    padding: 0;
  }

  .card {
    flex: 1 1 100%;
    width: 100%;
    min-height: auto;
    padding: 25px 15px;
    margin: 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
  }

  .card:first-child {
    border-top: none;
  }

  .card:last-child {
    border-bottom: none;
  }
}

main {
  padding: 0;
  /* Remove todo o preenchimento interno do corpo principal */
  /* Mantenha o background-color se houver, ou remova se for desnecessário */
  background-color: var(--bg-dark);
}

/* --- SEÇÃO QUEM SOMOS --- */

.about-section {
  padding: 80px 0;
  /* Espaçamento padrão para seções */
  background: linear-gradient(180deg, #0c1019 0%, #112018 100%);
  color: var(--text-color-light);
}

.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Título da Seção (Quem Somos) com Degradê */

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1px;
  letter-spacing: 2px;
  /* Estilo de Degradê Aplicado */
  background: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
  /* Recorte e Transparência */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallbacks */
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #a0a0a0;
  text-align: center;
  margin-bottom: 50px;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  margin-bottom: 40px;
}

.about-text {
  flex: 0 0 calc(50% - 25px);
  /* Ocupa o espaço restante */
  font-size: 1.3rem;
  line-height: 1.9;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  flex: 0 0 calc(50% - 25px);
  /* Ocupa o espaço restante */
  text-align: right;
  /* Alinha a imagem à direita */
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Estilo de Texto com Degradê (Futurista) */

.highlight {
  /* Define o degradê que será usado como fundo do texto */
  background: linear-gradient(90deg, #25d366 0%, #279d8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  -webkit-text-fill-color: transparent;
}

.about-cta {
  /* Fundo mais discreto e transparente, para se misturar */
  background: rgba(17, 32, 24, 0.172);
  /* Uma versão mais transparente da cor do degradê */
  border: 1px solid rgba(88, 202, 39, 0.2);
  /* Borda sutil verde para destacar o card */
  backdrop-filter: blur(5px);
  /* Efeito de vidro fosco (moderno) */
  text-align: center;
  margin-top: 60px;
  padding: 50px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6),
    /* Sombra mais intensa para "flutuar" */ 0 0 15px rgba(88, 202, 39, 0.06);
  /* Brilho sutil da cor primária */
  transition: all 0.3s ease;
  /* Transição para efeitos de hover */
}

/* Efeito de hover para o card inteiro */

.about-cta:hover {
  transform: translateY(-5px);
  /* Levanta o card */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(88, 202, 39, 0.2);
}

.about-cta p {
  font-size: 1.3rem;
  /* Mantido para leitura */
  line-height: 1.6;
  margin: 0 auto 30px auto;
  max-width: 800px;
  color: var(--text-color-light);
  /* Cor de texto padrão clara */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  /* Sombra sutil no texto */
}

/* Ajustes para o botão WhatsApp dentro da seção "Quem Somos" */

.about-whatsapp-btn {
  margin: 0 auto;
  display: inline-flex;
}

/* --- RESPONSIVIDADE PARA A SEÇÃO QUEM SOMOS --- */

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    /* Coloca imagem e texto em colunas */
    gap: 30px;
  }

  .about-image {
    text-align: center;
    /* Centraliza a imagem no mobile */
  }

  .section-title {
    font-size: 2.2rem;
  }

  .about-text,
  .about-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 0;
  }

  .about-section .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
}

/* --- ESTILO BÁSICO DO MODAL --- */
.modal {
    display: none;      /* ESSENCIAL: Esconde o modal por padrão */
    position: fixed;    /* Mantém o modal fixo na tela */
    z-index: 9999;      /* Garante que fique por cima de tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll; /* Permite rolagem vertical */
    overflow-x: hidden; /* Remove barras horizontais */
    background-color: rgba(0, 0, 0, 0.95); /* Fundo muito escuro para contraste */
    padding: 0; 
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--quem-somos-bottom); /* Fundo escuro do seu site */
    margin: 40px auto; /* Afasta do topo e centraliza */
    padding: 30px;
    border-radius: 10px;
    width: 80%; 
    max-width: 850px; /* Largura ideal para conteúdo detalhado */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.9);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Animação de entrada do modal */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 50px; opacity: 1} /* A animação leva ao margin-top de 50px */
}

/* Botão de fechar (X) */
/* --- BOTÃO DE FECHAR (VOLTAR) - DESIGN MINIMALISTA --- */
.close-btn {
    background: none;       /* Remove fundo */
    border: none;           /* Remove borda */
    color: #aaa;            /* Cor do texto e ícone */
    font-size: 1.5rem;      /* Tamanho da fonte */
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0;             /* Remove padding extra */

    /* POSICIONAMENTO FIXO (igual ao X) */
    position: absolute; 
    right: 20px;
    top: 20px;
    z-index: 10;
    
    /* Para alinhar a seta e o texto */
    display: flex; 
    align-items: center;
    gap: 10px; /* Espaço entre a seta e o texto */
}

.close-btn:hover {
    color: #f0f0f0;
    /* Adiciona um pequeno movimento para trás, reforçando o "Voltar" */
    transform: translateX(-5px); 
}

/* --- TÍTULO E LAYOUT GERAL --- */

.modal .section-title {
    text-align: left; /* Garante alinhamento à esquerda no modal */
    font-size: 2.2rem; 
    margin-top: 0;
    padding-right: 40px; /* Espaço para o botão de fechar */
}

/* CORPO DO CONTEÚDO (COLUNAS) */
.modal-body-content {
    padding-top: 20px;
}

.modal-section {
    display: flex;
    align-items: flex-start; 
    gap: 40px;
    margin-bottom: 40px;
    
    /* ESTILO DO CARD INTERNO: FUNDO MAIS CLARO */
    background-color: #1a1a1a; /* Cor mais clara que o fundo do modal (#112018) */
    padding: 30px; /* Preenchimento interno para dar 'ar' */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.897); /* Sombra suave */
}

.modal-section-alt {
    flex-direction: row-reverse; /* Coloca a imagem à esquerda, como no seu design */
}

.modal-section .modal-col {
    flex: 1;
}

.modal-col h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.modal-col p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

.modal-image img {
    max-width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 5px;
}

/* LISTA DE ÍCONES (O que fazemos) */
.modal-text-list .branding-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.modal-text-list .branding-list li {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #ccc;
    display: flex;
    align-items: flex-start;
}

.modal-text-list .branding-list li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
}

/* CTA DENTRO DO MODAL */
.modal-cta-wrapper {
    text-align: center;
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.195);
}

/* --- RESPONSIVIDADE DO MODAL --- */
@media (max-width: 992px) {
    .modal-content {
        width: 95%;
    }
    .modal-body-layout {
        flex-direction: column; 
        gap: 30px;
    }
    .modal-section, .modal-section-alt {
        flex-direction: column !important; /* Colunas viram linhas */
    }
    .modal-image {
        text-align: center;
    }
}