/* =================================== */
/*   ESTILOS GERAIS E DESKTOP (BASE)   */
/* =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Adicionado para rolagem suave */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #0b469e;
  /* Garante que o layout não "estoure" horizontalmente */
  overflow-x: hidden; /* Mantido para esconder barras de rolagem horizontais indesejadas */
}

/* =================================== */
/*   HEADER (NAVBAR) - AGORA EXATO CONFORME STYLE.CSS   */
/* =================================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10; /* CORRIGIDO: de 1000 para 10, conforme style.css */
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95); /* Levemente mais opaco para legibilidade */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  /* REMOVIDO: max-width: 1400px; e margin: 0 auto; para igualar style.css */
  transition: padding 0.3s ease; /* Adicionado para suavizar transições, conforme style.css */
}

.logo {
  height: 45px;
  margin-left: 100px;
  transition: margin 0.3s ease;
}

nav {
  display: flex;
  gap: 30px;
  /* REMOVIDO: flex-wrap: wrap; (e seu comentário) para igualar style.css */
}

nav a {
  color: #373435;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  /* REMOVIDO: display: inline-block; para igualar style.css */
}

nav a:hover {
  color: #153880;
}

nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #44a7ea, #153880);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}

nav a:hover::after{
  transform: scaleX(1);
}

nav a.active::after {
  transform: scaleX(1);
}

/* --- Estilos para o Seletor de Idioma --- */

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px; /* Ajuste o espaçamento do menu */
}

.current-language {
    display: flex;
    align-items: center;
    padding: 5px; /* MODIFICADO: Padding ajustado para conter apenas a bandeira */
    border: 0px solid #ccc;
    border-radius: 5px;
    background-color: transparent; /* MODIFICADO: Fundo agora é transparente por padrão */
    color: #373435;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    outline: none;
}

/* MODIFICADO: Adicionado estado de fundo para o header com scroll */

.current-language:hover {
    background-color: #f0f0f0e8;
    border-color: #999;
}

.current-language:focus {
    outline: 2px solid #a0a0a0;
    outline-offset: 1px;
}

.flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 0; /* MODIFICADO: Removida a margem que separava a bandeira do texto */
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* MODIFICADO: Esconde o texto (span) dentro do botão e das opções do dropdown */
.current-language span,
.language-option span {
    display: none;
}

/* URLs para as imagens das bandeiras (SVG para melhor qualidade e escalabilidade) */
.flag-br { background-image: url(../../assets/images/flags/brasil.png); }
.flag-gb { background-image: url(../../assets/images/flags/usa.png); }
.flag-es { background-image: url(../../assets/images/flags/espanha.png); }

.language-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 3px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-dropdown:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center; /* MODIFICADO: Centraliza a bandeira na opção */
    padding: 5.5px; /* MODIFICADO: Padding uniforme */
    cursor: pointer;
    color: #333;
    font-size: 14px;
    transition: background-color 0.15s ease;
    outline: none;
}


.language-option:hover {
    background-color: #f0f0f0;
}

.language-option:focus {
    background-color: #e0e0e0;
    outline: 1px solid #999;
    outline-offset: -1px;
}

.language-option .flag {
    margin-right: 0; /* MODIFICADO: Removida a margem */
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0,0,0,0.15);
}

/* Garante que o nav-container alinhe os itens corretamente */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =================================== */
/*   SEÇÕES DA PÁGINA (RESTANTE DO ABOUT.CSS ORIGINAL)   */
/* =================================== */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 50px;
  min-height: 100vh;
  background:
    linear-gradient(to right, white 40%, rgba(255, 255, 255, 0) 70%),
    url('../../assets/images/graos-expandido.png') no-repeat right center;
  background-size: auto 100%;
}

.left-content {
  max-width: 600px;
  z-index: 2;
  margin-left: 100px;
}

.left-content h1 {
  font-size: 2.5rem;
  line-height: 1.4;
  background-image: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  /* REMOVIDO: width: 600px; Isso quebrava o layout */
}

.left-content p {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 400;
}

.button-group {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.btn {
  padding: 15px;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
  width: 146px;
  height: 54px;
}

.btn.primary {
  background-image: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  color: white;
  border: none;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
}

.btn.primary:hover {
  background: #44a7ea;
  transform-origin: left;
  transition: transform 2s ease-out; /* Animação para o hover */
}

.btn.outlined {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 146px;
  height: 54px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  background-image: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn.outlined span {
  position: relative;
  z-index: 2;
}

.btn.outlined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px;
  background: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  pointer-events: none;
  z-index: 1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask-repeat: no-repeat;
}

.btn.outlined:hover {
  background: #2b6cb2;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: white;
  color: transparent;
}


.btn.outlined:hover::before {
  opacity: 0; /* mantém a borda invisível */
}

.btn.outlined::after {
  content: "";
  position: absolute;
  inset: 0px;
  background: linear-gradient(45deg, #44a7ea, #153880);
  border-radius: 9px;
  transition: 0.5s;
  opacity: 0;
  filter: blur(35px);
  z-index: 0;
}

.btn.outlined:hover::after {
  opacity: 0; /* opcional: brilho pode ser desativado */
}

.right-logo img {
  max-width: 600px;
  height: auto;
  z-index: 2;
  margin-right: 380px; /* Revertido para o valor original */
}

.solucoes {
  background: linear-gradient(to left, #1d57b3, #44a7ea);
  color: #fff;
  text-align: center;
  padding: 80px 20px 0; /* Ajustado padding bottom */
}

.solucoes-container {
  max-width: 1000px;
  margin: 0 auto;
}

.solucoes h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.solucoes p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.solucoes-botoes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn.white {
  border: 2px solid #fff;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  color: #fff;
  background-color: transparent;
}

.btn.white:hover {
  background-color: #fff;
  color: #1d57b3;
}

.solucoes-imagem img {
  max-width: 100%;
  height: auto;
  /* A imagem dos sacos não precisa de padding-top, ela fica melhor "sentada" no fundo */
}

/* Seção Logística Inteligente */
.logistica {
  width: 100%;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.logistica-container {
  display: flex;
  max-width: 1400px; /* Aumentado para mais espaço */
  width: 100%;
  height: 500px; /* Revertido para a altura fixa original para desktop */
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  flex-wrap: wrap;
  margin-left: -190px; /* Revertido para o margin-left original para desktop */
}

.logistica-imagem {
  flex: 1.2; /* Revertido para o flex original de desktop */
  min-width: 600px; /* Revertido para o min-width original de desktop */
  display: flex;
  justify-content: flex-start;
}

.logistica-imagem img {
  width: 135%; /* Revertido para o width original de desktop */
  max-width: none;
  height: auto;
  display: block;
}

.logistica-conteudo {
  flex: 1; /* Revertido para o flex original de desktop */
  min-width: 300px; /* Revertido para o min-width original de desktop */
  padding-left: 60px;
  text-align: right;
}

.logistica-conteudo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background-image: linear-gradient(to right, #44a7ea 30%, #153880 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logistica-conteudo p {
  color: #000;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-logistica {
  padding: 15px 30px;
  border: none;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 5px;
  background: linear-gradient(to right, #44a7ea, #153880);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  max-height: 146px;
  min-width: 54px;
}

.btn-logistica:hover {
  background: #44a7ea;
  transform-origin: left;
  transition: transform 2s ease-out; /* Animação para o hover */
}

.footer {
  background: #fff;
  border-top: 2px solid #44a7ea;
  padding: 50px 20px 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo img {
  height: 60px; /* Reduzido para melhor alinhamento */
}

.footer-menu h2,
.footer-contato h2 {
  color: #44a7ea;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-menu ul {
  list-style: none;
}

.footer-menu ul li {
  margin-bottom: 8px;
}

.footer-menu ul li a, .footer-contato p, .footer-contato a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.footer-redes {
  margin-top: 15px;
}

.footer-redes a {
  margin-right: 15px;
}

.footer-redes img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: 0.3s;
}

.footer-redes a:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.footer hr {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 40px auto;
  max-width: 1200px;
}

.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

.footer-bottom spam a{
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  padding-bottom: 10px; /* Adicionado: padding-bottom para igualar o arquivo de referência */
}

/* ======================================================= */
/* ============= SEÇÃO DE RESPONSIVIDADE - AGORA EXATA CONFORME STYLE.CSS ================= */
/* ======================================================= */

/* Telas de tablets e desktops pequenos (até 1200px) */
@media (max-width: 1200px) {
  .nav-container {
    padding: 15px 30px;
  }
  .logo {
    margin-left: 0;
  }
  .user-icon {
    margin-right: 0;
  }
  /* Conteúdo da página (mantido do about.css original) */
  .hero {
    background-size: cover; /* Garante que a imagem cubra o fundo */
  }
  .left-content {
    margin-left: 0;
  }
  .right-logo {
    display: none; /* Em telas menores, a imagem de fundo já cumpre o papel */
    margin-right: 0; /* Garante que qualquer margin-right não cause scroll */
  }
  .logistica-container {
    padding: 0 30px;
    margin-left: 0; /* Remove o margin-left negativo em telas menores */
    height: auto; /* Permite que a altura se ajuste ao conteúdo */
  }
  .logistica-imagem {
    min-width: unset; /* Permite que a imagem encolha */
    flex-basis: auto; /* Permite que a base seja ajustada automaticamente */
  }
  .logistica-conteudo {
    min-width: unset; /* Permite que o conteúdo encolha */
    flex-basis: auto; /* Permite que a base seja ajustada automaticamente */
  }
}

/* Telas de tablets (até 992px) */
@media (max-width: 992px) {
  /* REMOVIDO: Regras .nav-container padding-left/right, pois herda do 1200px, conforme style.css */

  /* Conteúdo da página (mantido do about.css original) */
  h1, .solucoes h1, .logistica-conteudo h1 {
    font-size: 2rem; /* Reduz o tamanho dos títulos principais */
  }

  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 150px 30px 60px; /* Aumenta o padding-top para o header fixo */
    min-height: auto;
  }

  .left-content {
    max-width: 100%;
  }

  .button-group {
    justify-content: center;
  }

  .solucoes-imagem img {
    max-width: 390px;
    justify-items: center;
    height: auto;
    margin-left: -20px;
  }

  /* Seção Logística - Aplica a ordem "Texto, Botão, Imagem" aqui */
  .logistica-container {
    flex-direction: column; /* Coloca os itens em coluna */
    text-align: center;
    padding: 0 20px; /* Ajusta o padding horizontal */
    align-items: center; /* Centraliza os itens na coluna */
  }

  .logistica-conteudo {
    text-align: center;
    order: 1; /* Faz o conteúdo (texto e botão) aparecer primeiro */
    padding-left: 0; /* Remove padding específico de desktop */
    padding: 20px 0; /* Adiciona padding vertical */
    width: 100%; /* Ocupa a largura total disponível */
  }

  .logistica-imagem {
    order: 2; /* Faz a imagem aparecer depois do conteúdo */
    width: 100%; /* Garante que o container da imagem ocupe a largura total */
    justify-content: center; /* Centraliza a imagem */
    margin-top: 30px; /* Adiciona espaçamento entre o conteúdo e a imagem */
  }

  .logistica-imagem img {
    width: 390px; /* A imagem preenche a largura do seu container */
    max-width: 600px; /* Limita o tamanho máximo para que não fique excessivamente grande, mantendo a proporção */
    height: auto; /* Mantém a proporção */
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .footer-logo img {
    margin: 0;
  }
}

/* Telas de celulares (até 768px) */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap; /* Permite que o container principal quebre linha */
    justify-content: space-between; /* Mantem logo e user nas pontas */
    /* REMOVIDO: padding aqui, pois ele herda de media queries maiores, conforme style.css */
  }

  .logo {
    order: 1; /* CORRIGIDO: de 0 para 1, conforme style.css */
    height: 40px; /* ADICIONADO, conforme style.css */
    width: auto; /* ADICIONADO, conforme style.css */
  }

  .user-icon {
    order: 2; /* Mantido em 2, conforme style.css */
  }

  nav {
    order: 3; /* CORRIGIDO: de 1 para 3, conforme style.css */
    flex-basis: 100%; /* ADICIONADO: substitui width: 100%;, conforme style.css */
    justify-content: center;
    margin-top: 15px; /* ADICIONADO: substitui padding-top: 15px;, conforme style.css */
    gap: 15px;
    flex-wrap: wrap; /* ADICIONADO, conforme style.css */
  }

  nav a {
    font-size: 15px; /* ADICIONADO, conforme style.css */
  }

  /* Conteúdo da página (mantido do about.css original) */
  .button-group {
    flex-direction: column; /* Empilha os botões */
    align-items: center;
  }

  .solucoes, .logistica {
    padding: 60px 20px;
  }

  .logistica-imagem img {
    max-width: 100%; /* Garante que a imagem se ajuste totalmente à largura da tela */
  }

  .solucoes-botoes {
    flex-direction: column;
    align-items: center;
  }
}