/* =================================== */
/*   ESTILOS GERAIS E DESKTOP (BASE)   */
/* =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #0b469e;
  overflow-x: hidden;
}

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;
}


/* =================================== */
/*   CONTEÚDO DOS TERMOS               */
/* =================================== */

/* Overlay */
.modal-termos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Oculto */
.modal-termos.hidden {
  display: none;
}

/* Caixa principal */
.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 30px;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Título */
.modal-content h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
}

/* Subtítulos */
.modal-body h3 {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* Texto */
.modal-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Lista */
.modal-body ul {
  padding-left: 18px;
  margin: 8px 0;
}

.modal-body li {
  margin-bottom: 6px;
  color: #555;
}

/* Separadores */
.modal-body hr {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 18px 0;
}

/* Links */
.modal-body a {
  color: #333;
  text-decoration: underline;
}

/* Botão fechar */
.close-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  border: none;
  background: none;
  cursor: pointer;
  color: #777;
}

.close-modal:hover {
  color: #000;
}

/* =================================== */
/*   CONTEÚDO DA PÁGINA DE CONTATOS    */
/* =================================== */

.title h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 120px;
  text-align: center;
  background-image: linear-gradient(to right, #44a7ea 45%, #153880 53%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.container-contatos {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  max-width: 980px;
  margin: 28px auto 0;
  padding: 40px 20px;
}

.card-form {
  flex: 1;
  max-width: 466px;
  background: linear-gradient(to right, #60b8ee 0%, #153880 100%);
  padding: 32px;
  border-radius: 10px 30px;
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.card-form h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  text-align: center;
}

.card-form input,
.card-form textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  margin-bottom: 18px;
  font-size: 14px;
  color: #fff;
  outline: none;
  width: 100%;
}

.card-form input::placeholder,
.card-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.linha-dupla {
  display: flex;
  gap: 20px;
}

.card-form textarea {
  resize: none;
  min-height: 120px;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 10px;
}

.checkbox-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-wrap input[type="checkbox"]:checked::after {
  content: "✔";
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 14px;
  color: #fff;
}

.checkbox-wrap label {
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-wrap a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

.btn-submit {
  padding: 15px 28px;
  border: 2px solid #fff;
  border-radius: 5px 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.963rem;
  font-weight: 600;
  background-color: transparent;
  transition: all 0.3s ease;
  width: 150px;
  height: 55px;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #fff;
  color: #1d57b3;
}

.card-info {
  flex: 1;
  max-width: 466px;
  background: #fff;
  padding: 32px;
  border-radius: 30px 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
}

.card-info h2 {
  background-image: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

.card-info p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
}

.card-info a {
  color: #1f5fab;
  text-decoration: none;
  font-weight: 600;
}

.card-info a:hover {
  text-decoration: underline;
}

.card-info hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #60b8ee 0%, #153880 100%);
  margin: 20px 0;
}

.card-info h5 {
  font-size: 20px;
  font-weight: 700;
  background-image: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  text-align: center;
  margin-top: 10px;
}

.card-info .departamento {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
}

.card-info .departamento a {
  font-size: 0.95rem;
  color: #444;
}

.container-localizacao {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.container-localizacao h2 {
  color: #1f5fab;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.localizacao-box {
  display: flex;
  gap: 0;
  overflow: hidden;
  align-items: stretch;
}

.info-box {
  flex: 1;
  background: linear-gradient(to right, #60b8ee 0%, #153880 100%);
  color: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-radius: 20px 10px 10px 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.65);
}

.info-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.info-box p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.info-box em {
  font-style: normal;
  font-weight: 600;
}

.info-box hr {
  border: none;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  margin: 40px 0;
}

.map-box {
  flex: 2;
  min-height: 450px; /* Altura mínima para o mapa */
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background: #fff;
  border-top: 2px solid #44a7ea;
  padding: 50px 20px 10px;
}

.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;
}

.footer-menu h4,
.footer-contato h4 {
  color: #44a7ea;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
}

.footer-menu ul li {
  margin-bottom: 6px;
}

.footer-menu ul li a, .footer-contato p, .footer-contato a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
}

.footer-redes {
  margin-top: 10px;
}

.footer-redes a {
  margin-right: 10px;
  display: inline-block;
}

.footer-redes img {
  width: 24px;
  transition: 0.3s;
}

.footer-redes a:hover img {
  transform: scale(1.1);
}

.footer hr {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 30px auto;
  max-width: 1200px;
}

.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  padding-bottom: 10px;
}

.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 ================= */
/* ======================================================= */

/* Telas de Tablet (até 992px) */
@media (max-width: 992px) {
  .nav-container {
    padding-left: 30px;
    padding-right: 20px;
  }

  .logo { /* Adicione esta regra para zerar a margem esquerda do logo */
    margin-left: 0;
  }

  .container-contatos, .localizacao-box {
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .card-form, .card-info, .info-box {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    margin: 0;
  }
}

/* Telas de Celular (até 768px) */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap; 
    justify-content: space-between; 
  }

  .logo {
    order: 1; 
    height: 40px; 
    width: auto; 
    /* Já terá margin-left: 0 do media query anterior, mas garante que não haja conflitos */
  }

  .user-icon {
    order: 2; 
  }

  nav {
    order: 3; 
    flex-basis: 100%; 
    justify-content: center;
    margin-top: 15px; 
    gap: 15px;
    flex-wrap: wrap; 
  }

  nav a {
    font-size: 15px; 
  }

  /* RESTANTE DOS AJUSTES PARA CELULAR */
  .title h1 {
    font-size: 2rem;
    margin-top: 5em;
  }

  .card-form h1{
    font-size: 2rem;
  }

  .linha-dupla {
    flex-direction: column;
    gap: 0;
  }
  
  .btn-submit {
      margin: 10px auto 0;
  }
  
  .container-localizacao {
      padding: 40px 0; 
  }

  .info-box {
      border-radius: 15px; 
  }
}