/* =================================================
   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 

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




/* =================================================
   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 — COMPORTAMENTO FINAL (SEM DUPLICAÇÕES)
================================================= */
@media (max-width: 768px) {

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

  /* TradingView fixo no topo */
  .tradingview-widget-container.main-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--tv-bar-height);
    z-index: 1000;
    overflow: hidden;
  }

  /* Header fixo logo abaixo do ticker */
  .header {
    position: fixed;
    top: var(--tv-bar-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 998;
  }

  /* Conteúdo começa abaixo de tudo */
  main {
    padding-top: calc(var(--tv-bar-height) + var(--header-height));
  }

  /* Botão idioma */
  .lang-btn-container {
    position: fixed;
    top: calc(var(--tv-bar-height) + 12px);
    right: 12px;
  }

  #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;

}

.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);
}

/* =========================
   HERO ANIMATIONS (produção)
========================= */
.fade-up{
  opacity: 0;
  transform: translateY(16px);
  animation: btFadeUp .8s ease-out forwards;
}

.fade-up-delay{
  opacity: 0;
  transform: translateY(16px);
  animation: btFadeUp .8s ease-out forwards;
  animation-delay: .2s;
}


@keyframes btFadeUp{
  to{ opacity: 1; transform: translateY(0); }
}

#hero-dynamic{
  display: inline-block;
  transition: opacity .3s ease;
}


/* =========================
   HERO — VISIBILIDADE GARANTIDA (PRODUÇÃO)
========================= */
.page-home h1,
.page-home p {
  opacity: 1 !important;
  transform: none !important;
}

/* =========================
   COMPENSAÇÃO FINAL — AJUSTE FINO
========================= */

/*
body.page-home main,
body:not(.page-home) main {
  padding-top: var(--header-total-height);
}*/
/* =========================
   AJUSTE FINO DO TOPO (Tailwind + header fixo)
   Mantém pt-[160px] no HTML
========================= */

/* Desktop: sobe um bocadinho */
main { padding-top: 50px !important; }

/* Mobile: sobe mais */
@media (max-width: 768px) {
  main { padding-top: 75px !important; }
}

/* ===== FIX MOBILE: empurra conteúdo para baixo do header+tradingview
   (não mexe no desktop) ===== */
@media (max-width: 768px){
  body:not(.page-home) main{
    padding-top: 110px !important;
  }
}
/* =========================
   AJUSTE FINO MOBILE — PÁGINAS INTERNAS
   ========================= */
@media (max-width: 768px) {

  body:not(.page-home) main {
    padding-top: 10px !important;
  }
/* =========================
   FIX FINAL — TRADINGVIEW MOBILE
========================= */
@media (max-width: 768px) {

  /* TradingView NÃO fixa no mobile */
  .tradingview-widget-container.main-bar {
    position: relative !important;
    top: 0 !important;
    z-index: 1 !important;
  }

  /* Header acima da TradingView */
  .header {
    position: relative !important;
    z-index: 10 !important;
  }
/* =========================
   AJUSTE FINO — HEADER MOBILE
========================= */
@media (max-width: 768px) {

  /* Header mais compacto */
  .header,
  .site-header {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  /* Container interno */
  .header .container,
  .site-header .container {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  /* Logo um pouco menor */
  .header .brand img {
    height: 34px;
  }

  /* Texto da marca */
  .header .brand-text strong {
    font-size: 1rem;
  }

  .header .brand-text span {
    font-size: 0.75rem;
  }

  /* Botão idioma mais leve */
  #langBtn {
    padding: 6px 12px !important;
    font-size: 13px !important;
  }
body{
  font-family: NotoSansSC, DejaVu Sans, Arial, sans-serif;
}
*{
  font-family: inherit;
}
/* ==== ZH / CJK FIX (Noto Sans SC) ==== */
@font-face {
  font-family: "NotoSansSC";
  src: url("/assets/fonts/noto-sc/NotoSansSC-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "NotoSansSC";
  src: url("/assets/fonts/noto-sc/NotoSansSC-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* ⚠️ ISTO TEM DE FICAR NO FIM DO CSS para ganhar prioridade */
body, * { font-family: NotoSansSC, DejaVu Sans, Arial, sans-serif !important; }
html {
  scroll-padding-top: 110px;
}
/* =================================================
   DROPDOWN SEGURO DO HEADER
================================================= */
.header .main-nav .nav-dropdown,
.site-header .main-nav .nav-dropdown {
  position: relative;
}

.header .main-nav .nav-dropdown > a,
.site-header .main-nav .nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header .main-nav .nav-caret,
.site-header .main-nav .nav-caret {
  font-size: 12px;
  line-height: 1;
}

.header .main-nav .nav-dropdown-menu,
.site-header .main-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  z-index: 9999;
}

.header .main-nav .nav-dropdown-menu li,
.site-header .main-nav .nav-dropdown-menu li {
  display: block;
  width: 100%;
  height: auto;
}

.header .main-nav .nav-dropdown-menu a,
.site-header .main-nav .nav-dropdown-menu a {
  display: block;
  min-height: auto;
  width: 100%;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}

.header .main-nav .nav-dropdown-menu a:hover,
.site-header .main-nav .nav-dropdown-menu a:hover {
  background: #f8fafc;
}

.header .main-nav .nav-dropdown:hover .nav-dropdown-menu,
.site-header .main-nav .nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.footer-brand-block {
  min-width: 0;
}

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

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

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

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

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-brand {
    flex-direction: row;
    align-items: flex-start;
  }
}
}

