/* =========================================
   VARIÁVEIS GLOBAIS (Paleta SChemical Oficial)
   ========================================= */
:root {
  /* Cores da Marca Baseadas na Logo */
  --primary-color: #03989e; /* Turquesa/Ciano (Tecnologia/Química/Inovação) */
  --primary-hover: #027d82; /* Turquesa escurecido para hover */

  --secondary-color: #0f2c59; /* Azul Marinho Profundo (Confiança/Rigor Científico) */
  --secondary-hover: #0a1f40; /* Azul mais escuro */

  --gray-logo: #5a6268; /* Cinza da Logo (Credibilidade/Sobriedade) */
  --gray-light: #e9ecef; /* Cinza muito claro para divisões sutil */

  /* Textos e Fundos */
  --text-color: #2d3134; /* Cinza chumbo escuro (conforto visual) */
  --text-light: var(--gray-logo); /* Texto secundário em cinza */
  --bg-light: #f8f9fa; /* Fundo off-white (limpeza) */
  --bg-white: #ffffff;
  --border-color: #d1d5db;

  --transition: all 0.3s ease;
}

/* =========================================
   RESETS E CONFIGURAÇÕES BÁSICAS
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: initial;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-white);
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Utilitários de Texto */
.text-primary {
  color: var(--primary-color);
}
.text-white {
  color: var(--bg-white) !important;
}
/* Destaque turquesa claro para fundos escuros */
.text-highlight {
  color: #81e6e9;
}

.section-title {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 6px rgba(3, 152, 158, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(3, 152, 158, 0.3);
}

.btn-secondary-light {
  background-color: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}
.btn-secondary-light:hover {
  background-color: var(--bg-white);
  color: var(--primary-color);
  border-color: var(--bg-white);
}

/* =========================================
   CABEÇALHO
   ========================================= */
header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo img {
  max-height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  color: var(--gray-logo);
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--primary-color);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 4px 0;
  transition: var(--transition);
}

/* =========================================
   HERO SECTION COM VÍDEO
   ========================================= */
.hero {
  position: relative;
  margin-top: 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--bg-white);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 44, 89, 0.85);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--bg-white);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 300;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* =========================================
   PARCEIROS (ATUALIZADO PARA GRID 4x2 E MAIOR)
   ========================================= */
.partners {
  background-color: var(--bg-white);
  padding: 5rem 0; /* Aumentado o padding vertical */
  border-bottom: 1px solid var(--gray-light);
  text-align: center;
}
.partners p {
  color: var(--gray-logo);
  margin-bottom: 3rem; /* Mais espaço antes dos logos */
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
}

/* Container dos logos usando CSS Grid */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fixa 4 colunas */
  gap: 4rem; /* Espaçamento generoso entre os logos */
  justify-items: center; /* Centraliza horizontalmente na célula */
  align-items: center; /* Centraliza verticalmente na célula */
}

/* Logos MAIORES e centralizados */
.partner-logos img {
  max-height: 70px; /* Aumentado significativamente (era 45px) */
  max-width: 200px; /* Aumentado significativamente (era 140px) */
  height: auto;
  width: auto;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%) contrast(120%);
  object-fit: contain; /* Garante que o logo caiba sem distorcer */
}

.partner-logos img:hover {
  opacity: 1;
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.08); /* Efeito de zoom levemente maior */
}

/* =========================================
   SOLUÇÕES (Cards)
   ========================================= */
.services {
  padding: 5rem 0;
  background-color: var(--bg-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-white);
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(15, 44, 89, 0.08);
  border-bottom: 4px solid var(--primary-color);
}
.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* =========================================
   DIFERENCIAIS
   ========================================= */
.features {
  padding: 5rem 0;
  background-color: var(--bg-white);
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-list li {
  background: var(--bg-light);
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  color: var(--gray-logo);
}
.feature-list li strong {
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.3rem;
}

/* =========================================
   QUEM SOMOS (FUNDO PARALLAX)
   ========================================= */
.about {
  position: relative;
  padding: 6rem 0;
  background-image: url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--bg-white);
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 152, 158, 0.92);
  z-index: 1;
}

.relative-z {
  position: relative;
  z-index: 2;
}
.text-center {
  text-align: center;
}
.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
}

/* =========================================
   CONTATO
   ========================================= */
.contact {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 5rem 0;
}
.contact .section-title {
  color: var(--bg-white);
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.contact-info p {
  margin-bottom: 2rem;
  opacity: 0.8;
  font-weight: 300;
}
.emails p {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #81e6e9;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  border-radius: 6px;
  border: none;
  font-family: inherit;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background-color: #08172b;
  color: var(--gray-logo);
  padding: 2rem 0;
  font-size: 0.9rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links a {
  margin-left: 1.5rem;
  color: var(--gray-logo);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary-color);
}

/* =========================================
   RESPONSIVIDADE (ATUALIZADO PARA MOBILE)
   ========================================= */
@media (max-width: 768px) {
  .header-container {
    height: 80px;
  }
  .logo img {
    max-height: 40px;
  }
  header .btn {
    display: none;
  } /* Esconde o botão do header no mobile */
  .menu-toggle {
    display: flex;
  }

  /* ESTADO PADRÃO DO MENU MOBILE (ESCONDIDO) */
  .nav-links {
    display: none; /* Escondido por padrão */
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
  }

  /* ESTADO ABERTO DO MENU MOBILE (CLASSE INJETADA PELO JS) */
  .nav-links.active {
    display: flex;
  }

  /* Estética dos links no mobile */
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--gray-light);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }

  .hero {
    min-height: 70vh;
    margin-top: 70px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
  }

  /* Ajuste do Grid de Parceiros para Mobile */
  .partner-logos {
    grid-template-columns: repeat(2, 1fr); /* Muda para 2 colunas no mobile */
    gap: 3rem; /* Reduz ligeiramente o gap */
  }
  /* Logos ligeiramente menores no mobile para caber em 2 colunas */
  .partner-logos img {
    max-height: 50px;
    max-width: 150px;
  }

  .about {
    background-attachment: scroll;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-links a {
    margin: 0 0.5rem;
  }
}

/* =========================================
   COOKIE BANNER (LGPD)
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: -100%; /* Escondido por padrão para animação */
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
  gap: 1.5rem;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-banner p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .cookie-banner .btn {
    width: 100%;
  }
}

/* =========================================
   Language Switcher (Multi-idioma)
   ========================================= */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-right: 1.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--text-light, #ccc);
  color: var(--text-color, #333);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: var(--primary-color, #0072b1);
  color: #fff;
  border-color: var(--primary-color, #0072b1);
}

.lang-btn.active {
  background: var(--primary-color, #0072b1);
  color: #fff;
  border-color: var(--primary-color, #0072b1);
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-right: 0;
    justify-content: center;
  }
}
