/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins:ital", sans-serif;
}

/* Corpo */
body {
  line-height: 1.6;
  background-color: #bbdefb;
  min-height: 100vh;
}

/* Cabeçalho */
#mainHeader {
  background-color: #004085e4;
  color: #f4f4f4;
  display: flex;
  justify-content: space-between;
  padding: 0 4em 0 0;
  align-items: center;
  flex-wrap: wrap;
}

#mainHeader p {
  margin-left: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  background-color: transparent !important;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0 50px 50px 0px;
  margin-left: 0;
}

#logo {
  width: 70px;
  transition: all 0.4s ease-in-out;
}

.logo p {
  color: #000;
  font-weight: 600;
  font-size: 0.8em;
}

/* ESTILOS DO MENU DESKTOP */
.nav-menu ul {
  list-style-type: none;
}

.nav-menu ul li {
  display: inline-block;
  padding: 0 3rem;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0px 2px 4px #000;
  transition: 0.5s all ease-in-out;
}

.nav-menu ul li:hover {
  transform: scale(1);
}

.nav-menu ul li a {
  color: #f4f4f4;
  text-decoration: none;
}

.nav-menu ul li a:hover {
  color: #000;
  font-weight: 700;
  text-shadow: none;
}

.menu-toggle {
  display: none;
  background-color: #f4f4f4;
  border: none;
  font-size: 1.5em;
}

.nav-menu a::after {
  content: " ";
  width: 0%;
  height: 40px;
  background-color: #f4f4f4;
  position: absolute;
  bottom: -10px;
  left: 10%;
  transition: 0.5s all ease-in-out;
  z-index: -1;
  border-radius: 10px;
  box-shadow: 2px 2px 8px #000;
  padding-top: 2px;
}

.nav-menu a:hover::after {
  width: 80%;
}

/* Seção Home e Seção Conteúdo Principal */
.hero {
  position: relative;
  text-align: center;
  padding: 5em 2em;
  overflow: hidden; /* Garante que o conteúdo extra da película seja contido */
  color: #f4f4f4;
}

/* Imagem de fundo separada */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("Trucks.jpg") no-repeat center center/cover;
  z-index: -1; /* Imagem de fundo na camada inferior */
}

/* Película sobre a imagem */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.767
  );
  /* Película preta com 50% de opacidade */
  z-index: 2; /* Película acima da imagem de fundo */
}

/* Elementos da seção hero (texto e botão) */
/* Certifica que o conteúdo tenha uma camada superior à película */
.btn {
  background-color: transparent;
  padding: 10px 40px;
  border-radius: 10px;
  border: 0;
  color: #f4f4f4;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0px 1px 6px 1px #fff;
  text-shadow: 0px 2px 4px #000;
  transition: 0.4s all ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background-color: #f4f4f4;
  transform: scale(1.03);
  box-shadow: 2px 3px 8px #000;
  text-shadow: none !important;
  color: #000;
}

.hero h2,
.hero p,
.hero .btn {
  position: relative;
  z-index: 3; /* Conteúdo acima da película */
}

.hero h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  z-index: 100;
}

.hero h2 span {
  color: #00bfff;
  font-size: 2.3rem;
  text-shadow: 0px 2px 4px #000;
}

.hero p strong {
  color: #00bfff;
  text-shadow: 0px 2px 4px #000;
  font-size: 1.5rem;
  font-weight: 800;
}

.hero p span {
  color: #f4f4f4;
}

.hero p {
  font-size: 1.6em;
  margin-bottom: 1em;
  text-shadow: 0px 2px 6px #000;
}

h2 span {
  color: #00bfff;
}

h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 800;
  text-shadow: 0px 2px 4px #000;
}

/* Seção About (Sobre Nós) */
.about {
  margin: 40px 8%;
  padding: 4em 2em;
  text-align: center;
  box-shadow: 0px 4px 14px #000;
  margin-bottom: 3em;
  border-radius: 15px;
  transition: 0.4s all ease-in-out;
  background-color: #f4f4f4;
}

.about:hover {
  transform: scale(1.02);
  box-shadow: 4px 4px 14px #000000cc;
  background-color: #004085ae;
}

.about p {
  color: #000;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0 4% 1.2rem 4%;
}

.about p:hover {
  color: #f4f4f4;
  text-shadow: 0px 2px 4px #000;
}

.about p span {
  color: #00bfff;
  text-shadow: 0px 2px 2px #000;
}

/* Seção Mission (Missão) */
.mission {
  margin: 40px 8%;
  padding: 4em 2em;
  text-align: center;
  box-shadow: 0px 4px 14px #000000cc;
  margin-bottom: 3em;
  border-radius: 15px;
  transition: 0.4s all ease-in-out;
  background-color: #f4f4f4;
}

.mission:hover {
  transform: scale(1.02);
  box-shadow: 4px 4px 14px #000000cc;
  background-color: #004085ae;
}

.mission p {
  color: #000;
  font-weight: 600;
  font-size: 1.2rem;
  padding-bottom: 1.2rem;
}

.mission p:hover {
  color: #f4f4f4;
  text-shadow: 0px 2px 4px #000;
}

/* Nova Seção Serviços (Atuação) */
.container {
  margin: 0 4%;
  border-radius: 15px;
  padding: 4%;
  align-items: center;
}

.card-wrapper {
  width: 100%;
  margin-top: 5rem;
}

.card-list {
  list-style: none;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.card-list .card-item .card-atuacoes {
  user-select: none;
  display: block;
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 3px solid transparent;
  box-shadow: 0px 4px 10px #000;
  transition: 0.4s ease;
}

.card-item:hover {
  transform: scale(1.05);
}

.card-list .card-item .card-atuacoes:hover {
  transform: scale(1.05);
  background-color: #00508577;
  color: #fff;
}

.card-list .card-atuacoes .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
} 

.card-list .card-atuacoes .badge {
  color: #00679e;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 18px;
  background: #f4f4f4;
  width: fit-content;
  border-radius: 10px;
  box-shadow: 0px 1px 4px #000000cc;
}


.card-list .card-atuacoes .card-title {
  font-size: 1.1rem;
  color: #000;
  font-weight: 600;
  text-align: center;
}

.card-list .card-atuacoes .card-title:hover {
  color: #fff;
}

.card-list .card-atuacoes .card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem;
  font-size: 1rem;
  font-weight: 550;
  padding: 4px 6px;
  color: #00bff0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  border: none;
  transition: 0.4s all ease-in-out;
  letter-spacing: 1.5px;
  text-decoration: none;
}

.card-list .card-atuacoes:hover .card-link:hover {
  background-color: transparent;
  border-radius: 10px;
  color: #fff;
  box-shadow: 2px 2px 8px #000;
}

/* Estilos para o modal */
.modal {
  display: none; /* Escondido por padrão */
  position: fixed;
  z-index: 100;
  left: -100%; /* Posiciona o modal fora da tela no início */
  top: 50%;
  transform: translateY(-50%); /* Centraliza o modal verticalmente */
  width: 80%; /* Ajuste da largura para 80% da tela */
  max-width: 1280px; /* Define uma largura máxima para o modal */
  height: auto; /* A altura se ajusta automaticamente ao conteúdo */
  max-height: 95vh; /* Limita a altura a 90% da altura da tela */
  background-color: #014a7a; /* Fundo branco, sem transparência */
  box-shadow: 0 5px 15px #000;
  border-radius: 10px; /* Cantos arredondados */
  overflow: hidden; /* Remove a barra de rolagem */
  transition: left 0.55s ease-in-out; /* Transição suave horizontal */
}

/* Estilos para o conteúdo do modal */
.modal-content {
  padding: 20px;
  text-align: center;
}

.modal .modal-content .modal-info {
  text-shadow: 0 1px 5px #000;
  color: #fff;
}

.modal .modal-content .modal-info span {
  color: #fff;
  font-weight: 750;
}

/* Quando o modal está ativo (aberto) */
.modal.show {
  left: 50%; /* Traz o modal para o centro da tela horizontalmente */
  transform: translate(-50%, -50%); /* Centraliza também horizontalmente */
}

/* Botão de fechar */
.close-btn {
  background-color: transparent; /* Fundo transparente inicialmente */
  color: black; /* Texto preto */
  border: none; /* Remove borda padrão */
  border-radius: 5px; /* Cantos arredondados */
  position: absolute;
  top: 15px; /* Distância do topo */
  right: 15px; /* Distância da direita */
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  padding: 15px; /* Padding igual em todos os lados, formando um quadrado */
  margin: 0; /* Margem zero para manter o botão quadrado */
  width: 25px; /* Largura fixa */
  height: 25px; /* Altura fixa */
  display: flex; /* Usando flexbox para centralizar o "x" */
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
}

.close-btn:hover,
.close-btn:focus {
  background-color: #da1e37; /* Muda para vermelho no hover */
  color: #F4F4F4; /* Muda o "x" para cor clara no hover */
  opacity: 0.9; /* Leve opacidade ao passar o mouse */
}

/* Título do modal */
.modal-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  font-size: 2.2em;
  color: #fff;
  font-weight: 800;
  text-shadow: 0px 2px 4px #000;
  
}

/* Informação dentro do modal */
.modal-info {
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  margin-left: 2rem;
  color: #f4f4f4;
}

/* Responsivo para telas menores */
@media screen and (max-width: 768px) {
  .modal {
      width: 90%; /* Ajuste para telas pequenas */
  }
}

/* Seção Contact (Fale Conosco) */
.contact {
  padding: 4em 2em;
  /* background-color: #bbdefb; */
  background-color: #f4f4f4;
  text-align: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  margin: 0.5em 0;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact button {
  background-color: #004085e4;
  color: #f4f4f4;
  padding: 1em;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: 550;
  cursor: pointer;
  transition: 0.4s all ease-in-out;
}

.contact button:hover {
  background-color: #00aeff;
  box-shadow: 2px 2px 8px #000;
  transform: translateY(5px);
}

.social-links ul {
  list-style-type: none;
}

.social-links ul li {
  font-size: 2.8rem;
  display: inline-block;
  margin: 30px;
}

.social-links ul li a {
  text-decoration: none;
}

.social-links ul li a svg {
  color: #0077b8;
  padding: 0.7rem;
  border-radius: 50%;
  transition: 0.3s all ease-in-out;
}

.social-links ul li a #email svg:hover  {
  color: #da1e37;
  transform: scale(1.08);
}

.social-links ul li a #whats svg:hover  {
  color: #1ebb58;
  transform: scale(1.08);
}

.social-links ul li a #insta svg:hover  {
  color: #5d3ecf;
  transform: scale(1.08);
}

.main-footer {
  background-color: #004085e4;
  color: #f4f4f4;
  text-align: center;
  padding: 1em 0;
}

/* Estilo do popup LGPD */
#lgpd-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 350px;
  background-color: #f4f3ee;
  color: #000;
  padding: 1.2rem;
  text-align: center;
  display: none; /* Inicialmente escondido */
  z-index: 1000;
  border-radius: 10px;
  box-shadow: 0 4px 10px #000000c4;
  animation: flutuante 3s ease-in-out infinite;
}

@keyframes flutuante {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#lgpd-popup p {
  margin: 0;
  font-size: 14px;
}

#lgpd-popup p a {
  color: #00aeff;
  font-weight: 550;
  text-decoration: underline;
}

#lgpd-popup p a:hover {
  color: #00679e;
}

#lgpd-accept {
  background-color: #00aeff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  color: #000;
  margin-top: 10px;
  font-weight: bold;
  border-radius: 5px;
}

#lgpd-accept:hover {
  box-shadow: 0 2px 6px #000;
  color: #fff;
  background-color: #0077b8;
}

/* Estilo dos ícones sociais */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon img {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-icon img:hover {
  transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-menu ul {
    flex-direction: column;
    display: none;
  }

  .nav-menu ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .service-container {
    flex-direction: column;
    align-items: center;
  }

  .hero h2 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }
}
