/* =================================================
   RESET BÁSICO (SEGURO COM TAILWIND)
================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* =================================================
   VARIÁVEIS GLOBAIS
================================================= */
:root {
  --tv-bar-height: 38px;
  --tv-bars: 1;
  --header-height: 72px;

  --header-total-height: calc(
    (var(--tv-bar-height) * var(--tv-bars)) +
    var(--header-height)
  );

  --primary: #0F4C5C;
  --primary-dark: #0b3d47;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #ffffff;

  --radius: 16px;
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.06);
  --transition: 0.25s ease;
}

/* =================================================
   BASE
================================================= */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =================================================
   TRADINGVIEW — DESKTOP (COMPORTAMENTO ATUAL)
================================================= */
.tradingview-widget-container.main-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--tv-bar-height);
  z-index: 1000;
  overflow: hidden;
}

.tradingview-widget-container.commodities-bar {
  position: fixed;
  top: var(--tv-bar-height);
  left: 0;
  width: 100%;
  height: var(--tv-bar-height);
  z-index: 999;
  overflow: hidden;
}

/* =================================================
   HEADER — DESKTOP
================================================= */
.header {
  position: fixed;
  top: calc(var(--tv-bar-height) * var(--tv-bars));
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 998;
}

.header .nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND */
.header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header .brand img {
  height: 42px;
}

.header .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header .brand-text strong {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
}

.header .brand-text span {
  font-size: 0.85rem;
  color: #666;
}

/* MENU */
.header nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.header nav li {
  display: flex;
  align-items: center;
}

.header nav a {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* =================================================
   COMPENSAÇÃO DO TOPO FIXO (DESKTOP)
================================================= */
/* HOME — mantém compensação completa */
body.page-home main {
  padding-top: var(--header-total-height);
}

/* PÁGINAS INTERNAS — reduz o espaço */
body:not(.page-home) main {
  padding-top: 40px;
}



/* =================================================
   CONTAINER
================================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =================================================
   HERO
================================================= */
.page-home .hero {
  background: #f5f7f8;
  padding: 120px 0 140px;
}

.hero-inner {
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =================================================
   BOTÕES
================================================= */
.button {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid #ccc;
}

/* =================================================
   IMPACTO VISUAL
================================================= */
.impact-photo {
  padding: 80px 0 60px;
  background: #f6f8f9;
}

.impact-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.impact-container img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border-radius: 20px;
}

/* =================================================
   LANGUAGE SWITCHER — DESKTOP
================================================= */
.lang-btn-container {
  position: fixed;
  top: calc(var(--tv-bar-height) * var(--tv-bars) + 18px);
  right: 20px;
  z-index: 1001;
}

#langBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 13px 20px;
  min-width: 110px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
}




/* =================================================
   FOOTER
================================================= */
.footer {
  border-top: 1px solid #eee;
  background: #fff;
}

/* =================================================
   MOBILE — ESTRATÉGIA ÚNICA E LIMPA
================================================= */
@media (max-width: 768px) {

  /* Esconde commodities */
  .commodities-bar {
    display: none !important;
  }

  /* TradingView simples */
  .tradingview-widget-container.main-bar {
    position: relative;
    height: 44px;
  }

  /* Header não fixo */
  .header {
    position: relative;
    top: 0;
    height: auto;
  }

  /* Conteúdo logo abaixo */
  main {
    padding-top: 44px;
  }

  /* Botão idioma */
  .lang-btn-container {
    position: absolute;
    top: 12px;
    right: 14px;
  }

  #langBtn {
    padding: 8px 14px;
    font-size: 14px;
  }

}/* =================================================
   FOOTER — RESTAURADO (DESKTOP + MOBILE)
================================================= */
.footer {
  border-top: 1px solid #eee;
  background: #ffffff;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  height: 36px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-location {
  border-top: 1px solid #eee;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Mobile footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}/* =================================================
   PRODUTOS — FIX DEFINITIVO DAS IMAGENS
================================================= */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.product-card img {
  display: block;
  width: 100%;
  max-width: 200px;   /* 👈 CONTROLO REAL */
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
  .product-card img {
    max-width: 160px;
  }
}/* =================================================
   PRODUTOS — GRID CORRETO (DESKTOP + MOBILE)
================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 3 colunas */
  gap: 40px;
  margin-top: 48px;
}

/* Cards */
.product-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

/* Imagens */
.product-card img {
  width: 100%;
  max-width: 260px;   /* 👈 tamanho visual correto */
  height: auto;
  margin: 0 auto 24px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .product-card img {
    max-width: 220px;
  }
}/* =================================================
   TÍTULOS DE SEÇÃO — PADRÃO BRAZILTRAD
================================================= */
.section-title {
  font-size: 2.25rem;              /* igual às outras seções */
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

/* Linha decorativa abaixo do título */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* Espaçamento do bloco Produtos */
#products {
  padding: 120px 0 100px;
}
/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
  }

  .main-nav {
    display: none;
  }

  body.menu-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
}

/* DESKTOP */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
/* =================================================
   MENU MOBILE — LIMPO, ÚNICO, SEM CONFLITOS
================================================= */

/* DESKTOP */
.menu-toggle {
  display: none;
}

.main-nav {
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {

  /* Botão hambúrguer */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    z-index: 2000;
  }

  /* Menu fechado */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #eee;
    z-index: 1999;
  }

  /* Menu aberto via JS */
  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .main-nav li {
    padding: 8px 0;
  }
}/* RESET HEADER NOVO */
.site-header {
  margin-top: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.hero,
.hero-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* ================================
   CORREÇÃO HEADER NOVO — GLOBAL
   ================================ */

.header,
.site-header {
  margin-top: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* barra branca menos alta */
.header .container,
.site-header .container {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* remove espaço fantasma do hero antigo */
.hero,
.hero-section,
section.hero,
.main-hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
}body {
  outline: 5px solid red !important;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp .7s ease forwards;
}

.fade-up-delay {
  opacity: 0;
  animation: fadeUp .7s ease forwards;
  animation-delay: .25s;
}

.fade-up-delay2 {
  opacity: 0;
  animation: fadeUp .7s ease forwards;
  animation-delay: .45s;
}
.process-card {
  opacity: 0;
  transform: translateY(12px);
  transition: all .4s ease;
}

.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.process-card {
  opacity: 0;
  transform: translateY(18px);
  transition: all .45s ease;
}

.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.process-card {
  opacity: 0;
  transform: translateY(18px);
  transition: all .45s ease;
}

.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}






