/* =========================================================
   VARIÁVEIS GLOBAIS
   ========================================================= */
:root {
  --verde: rgb(5, 113, 4);
  --vermelho: rgb(206, 16, 16);
}

/* =========================================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
}

body {
  color: #333;
}

/* =========================================================
   CONTAINER PADRÃO
   ========================================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================================================
   HEADER / MENU
   ========================================================= */
header {
  position: sticky;
  top: 32px; /* altura exata da topbar */
  z-index: 1000;
  background-color: #fff; /* impede transparência no mobile */
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 70px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

nav a:hover {
  color: var(--verde);
}

nav .btn {
  background: var(--vermelho);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
}

nav .btn:hover {
  background: #a50f0f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   BANNER / HERO
   ========================================================= */
.banner {
  height: 70vh;
  background: url("../img/banner.png") center/cover no-repeat;
}

.overlay {
  background: rgba(0, 0, 0, 0.55);
  height: 100%;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 0;
}

.overlay h1 {
  font-size: 2.5rem;
  animation: fadeUp 1s ease;
}

.overlay p {
  margin-top: 10px;
  animation: fadeUp 1.3s ease;
}

/* =========================================================
   SEÇÕES – ALTERNÂNCIA DE FUNDO AUTOMÁTICA
   ========================================================= */
.section {
  padding: 60px 0;
  animation: fadeIn 1s ease;
  background: #ffffff;
}

/* Seções pares com fundo cinza claro */
.section:nth-of-type(even) {
  background: #f5f5f5;
}

.section-title,
h2 {
  color: var(--verde);
  margin-bottom: 30px;
  text-align: left;
}

/* =========================================================
   GRID PADRÃO
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* =========================================================
   SEÇÃO EMPRESA
   ========================================================= */
.empresa-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.empresa-texto {
  max-width: 620px;
}

.empresa-nome {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.empresa-slogan {
  font-size: 1.1rem;
  color: var(--preto);
  margin-bottom: 20px;
  font-weight: 600;
}

.empresa-texto p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
  hyphens: auto;
}

.empresa-imagem {
  text-align: right;
}

.empresa-imagem img {
  max-width: 360px;
  width: 100%;
}

/* =========================================================
   CARD DA LOGO - QUEM SOMOS
   ========================================================= */
.logo-card {
  background: #fff;
  padding: 40px;
  border-radius: 14px;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-top: 6px solid var(--verde);

  transition: all 0.4s ease;
}

.logo-card img {
  max-width: 260px;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

/* EFEITO HOVER */
.logo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.22);
}

.logo-card:hover img {
  transform: scale(1.06);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .logo-card {
    padding: 30px;
    margin-top: 30px;
  }

  .logo-card img {
    max-width: 220px;
  }
}



/* =========================================================
   SEÇÃO PRODUTOS
   ========================================================= */
.produtos-descricao {
  max-width: 900px;
  margin-bottom: 40px;
}

.produtos-descricao p {
  color: #555;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 16px;
  hyphens: auto;
}

.produtos-descricao p:last-child {
  margin-bottom: 0;
}

/* Cards */
.cards {
  display: flex;
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-top: 4px solid var(--verde);
  border-radius: 6px;
}

.card img {
  width: 100%;
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background-color: #f5f5f5;
  border-radius: 4px;
}

/* =========================================================
   CERTIFICAÇÕES
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.cert-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.cert-card img {
  height: 100px;
  margin-bottom: 20px;
}

.cert-card h3 {
  margin-bottom: 15px;
}

.cert-card p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.cert-card.lwg {
  border-top: 6px solid var(--verde);
}

.cert-card.halal {
  border-top: 6px solid var(--verde);
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.cert-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--verde);
}

.cert-card.halal .cert-link {
  color: vvar(--verde);
}

/* =========================================================
   RESPONSABILIDADE
   ========================================================= */
.responsabilidade-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.responsabilidade-texto {
  max-width: 650px;
}

.responsabilidade-texto p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: justify;
  hyphens: auto;
}

.responsabilidade-imagem {
  text-align: right;
}

.responsabilidade-imagem img {
  max-width: 380px;
  width: 100%;
  border-radius: 6px;
}

/* =========================================================
   TRABALHE CONOSCO
   ========================================================= */
.trabalhe-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.trabalhe-texto {
  max-width: 650px;
}

.trabalhe-texto p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: justify;
  hyphens: auto;
}

.trabalhe-texto a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
}

.trabalhe-texto a:hover {
  text-decoration: underline;
}

.trabalhe-imagem {
  text-align: right;
}

.trabalhe-imagem img {
  max-width: 380px;
  width: 100%;
  border-radius: 6px;
}

.trabalhe-imagem {
  display: flex;
  justify-content: center;
  align-items: center;
}

.trabalhe-imagem img {
  max-width: 320px;   /* controla a proporção em relação ao texto */
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.trabalhe-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* imagem menor, texto maior */
  gap: 50px;
  align-items: center;
}

.trabalhe-imagem {
  text-align: left;
}

.trabalhe-texto {
  max-width: 620px;
}

.trabalhe-texto p {
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .trabalhe-grid {
    grid-template-columns: 1fr;
  }

  .trabalhe-imagem {
    order: 2;
    text-align: center;
    margin-top: 30px;
  }

  .trabalhe-texto {
    order: 1;
    text-align: left;
  }
}

.trabalhe-texto .section-title {
  margin-bottom: 20px;
}


/* =========================================================
   CONTATO
   ========================================================= */
.contato-info p {
  margin-bottom: 14px;
  line-height: 1.6;
  color: #555;
}

.contato-info hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.contato-info a {
  color: var(--verde);
  text-decoration: none;
}

.contato-info a:hover {
  text-decoration: underline;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

form button {
  background: var(--vermelho);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background: #a50f0f;
  transform: translateY(-2px);
}

/* =========================================================
   LOCALIZAÇÃO
   ========================================================= */
.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.localizacao-texto p {
  color: #555;
  line-height: 1.7;
  max-width: 500px;
}

.localizacao-mapa iframe {
  border-radius: 6px;
}

/* CARD DO MAPA - LOCALIZAÇÃO */
.localizacao-card {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.localizacao-card iframe {
  width: 100%;
  height: 350px;
  border-radius: 6px;
}

/* HOVER */
.localizacao-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--verde);
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* =========================================================
   ANIMAÇÕES
   ========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 768px) {
  .grid,
  .cards,
  .empresa-grid,
  .responsabilidade-grid,
  .cert-grid,
  .localizacao-grid,
  .trabalhe-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .empresa-imagem,
  .responsabilidade-imagem,
  .trabalhe-imagem {
    text-align: center;
    margin-top: 30px;
  }

  .overlay {
    padding-left: 8%;
  }

  .localizacao-mapa iframe {
    height: 300px;
  }
}

/* =========================================================
   REALCE NO HEADER (HOVER)
   ========================================================= */
header {
  transition: all 0.3s ease;
}

header:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   REALCE NOS LINKS DO MENU
   ========================================================= */
nav a {
  position: relative;
  transition: color 0.3s ease;
}

/* Linha animada abaixo do link */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--verde);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--verde);
}

nav a:hover::after {
  width: 100%;
}

/* =========================================================
   REALCE DO BOTÃO CONTATO
   ========================================================= */
nav .btn {
  position: relative;
  transition: all 0.3s ease;
}

nav .btn:hover {
  background: #a50f0f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}








/* MENU */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* IDIOMAS DESKTOP */
.lang-switch button {
  margin-left: 8px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--verde);
  color: #fff;
  border-color: var(--verde);
}

/* DROPDOWN IDIOMA MOBILE */
.dropdown-lang {
  display: none;
  position: relative;
}

.btn-lang {
  background: var(--verde);
  color: #fff;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  top: 100%;
  right: 0;
  min-width: 160px;
  z-index: 100;
}

.dropdown-content button {
  width: 100%;
  padding: 10px;
  border: none;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.dropdown-content button:hover {
  background: #f5f5f5;
}

.dropdown-lang:hover .dropdown-content {
  display: block;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 260px;
    padding: 20px;
    display: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  }

  nav.open {
    display: flex;
  }

  .lang-switch {
    display: none;
  }

  .dropdown-lang {
    display: block;
    margin-top: 10px;
  }
}


/* =====================================================
   TOPBAR - SELETOR DE IDIOMA
===================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.topbar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 32px;
}

.lang-switch button {
  background: none;
  border: none;
  margin-left: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  color: #333;
}

.lang-switch button:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .topbar {
    background-color: #f5f5f5;
  }

  header {
    background-color: #fff;
  }
}


/* =====================================================
   IDIOMA NO MENU MOBILE
===================================================== */
.mobile-lang {
  display: none;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.mobile-lang button {
  margin: 0 6px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  /* Esconde idioma da topbar */
  .topbar .lang-switch {
    display: none;
  }

  /* Mostra idioma dentro do menu */
  #menu .mobile-lang {
    display: block;
  }
}