/* ============================================
   BASE — tokens, reset, nav, footer, botões
   Compartilhado por TODAS as páginas do site
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #FAF7F0;
  --bg-soft:  #F2EFE6;
  --bg-card:  #EDE7D8;
  --ink:      #17241D;
  --ink-2:    #4A4540;
  --ink-3:    #8A847C;
  --accent:   #1F3D2E;
  --accent-2: #2C5240;
  --gold:     #C9973F;
  --gold-light: #E3B968;
  --gold-dark:  #A87A2B;
  --eggblue:  #5B93A0;
  --eggblue-light: #8AB7C1;
  --eggblue-dark:  #3F6B76;
  --rule:     #E2DCC8;
  --rule-2:   #EDE8DA;

  /* ── RÉGUA ÚNICA DO SITE ──────────────────────────────
     Tudo que é conteúdo começa na mesma linha vertical: o
     título, o texto do artigo, os cards, o menu, o rodapé
     e o breadcrumb.

     --container é a largura máxima do conteúdo.
     --gutter é o recuo lateral das barras que ocupam a
     tela inteira (nav, breadcrumb). O max() garante que,
     quando a tela é estreita, sobra a margem de 5% do
     celular em vez de o texto colar na borda.          */
  --container: 1200px;
  --gutter: max(5%, calc((100% - 1200px) / 2));
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: clip; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,240,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--gutter);
  height: 72px;
  display: flex; align-items: center; justify-content: flex-start;
  transition: box-shadow .3s ease;
}
nav.scrolled { box-shadow: 0 4px 20px rgba(23,36,29,0.08); }

/* ── SELETOR DE IDIOMA ──
   Sigla do idioma, não bandeira: bandeira é país, e o público de
   espanhol aqui é sobretudo Argentina, Chile e Colômbia — nenhum
   deles se reconhece na bandeira da Espanha. */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 18px; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang-opt { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); padding: 4px 10px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.lang-opt:hover { color: var(--accent); }
.lang-opt.is-active { background: var(--accent); color: #fff; }

/* Faixa que sugere o outro idioma. Sugere e some — nunca redireciona
   sozinho, senão o Google (que rastreia dos EUA) só veria uma versão. */
#lang-hint { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: var(--bg-card); border-bottom: 1px solid var(--rule); padding: 9px 5%; font-size: 0.8rem; color: var(--ink-2); }
#lang-hint[hidden] { display: none; }
#lang-hint a { color: var(--accent); font-weight: 700; text-decoration: underline; }
#lang-hint button { background: none; border: 0; font-size: 1.1rem; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  flex-shrink: 0;
  display: flex; align-items: center;
  margin-right: auto;
}
.nav-logo img { display: block; height: 40px; width: auto; max-width: 100%; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-2);
  padding: 0 1rem; white-space: nowrap; transition: color 0.2s; display: block;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: -2px;
  height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-btn {
  background: #1f3d2e; color: #fff !important;
  padding: 0.38rem 0.9rem !important; border-radius: 999px; font-weight: 600 !important;
  font-size: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s, transform 0.2s; flex-shrink: 0; margin-left: 0.75rem; margin-right: 0.5rem;
}
.nav-btn:hover { background: #2a5240; transform: translateY(-1px); }

/* Mobile menu */
.menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--ink); flex-shrink: 0; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: var(--accent); color: var(--bg); padding: 0.5rem 5% 1.5rem;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.9rem 0; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 0.95rem; color: var(--bg); border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu a:last-child { border-bottom: none; color: var(--gold-light); }

/* ── BOTÕES ── */
.btn { padding: 0.85rem 1.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; transition: all 0.2s; display: inline-block; }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,151,63,0.35); }
.btn-ghost { border: 1.5px solid var(--rule); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── TÍTULOS DE SEÇÃO (reutilizados em várias páginas) ── */
.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.7rem;
}
h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800; line-height: 1.15; color: var(--ink); margin-bottom: 0.8rem; letter-spacing: -0.01em;
}
.section-intro { font-size: 0.97rem; color: var(--ink-2); max-width: 520px; line-height: 1.75; font-weight: 400; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.ver-mais {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  border-bottom: 1px solid var(--gold); padding-bottom: 1px; transition: opacity 0.2s; white-space: nowrap;
}
.ver-mais:hover { opacity: 0.65; }

.divider { border: none; border-top: 1px solid var(--rule); }
section { padding: 80px 5%; }
.section-wrap { max-width: var(--container); margin: 0 auto; }

/* Texto corrido (política de privacidade): a borda esquerda fica
   na régua do título; só o comprimento da linha é limitado, para
   não passar de ~75 caracteres. */
.section-wrap.policy > * { max-width: 820px; }

/* Scroll reveal (JS adds .in-view) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer { background: var(--accent); padding: 48px 5% 24px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 2rem;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 18px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-brand { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--gold-light); margin-bottom: 6px; }
.footer-sub { font-size: 0.78rem; color: rgba(250,247,240,0.55); max-width: 260px; line-height: 1.5; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 0.78rem; color: rgba(250,247,240,0.6); transition: color 0.15s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 0.65rem; color: rgba(250,247,240,0.35); text-align: center; max-width: 1200px; margin: 0 auto; }

/* ── FAIXA INTERMEDIÁRIA DO MENU (tablet e notebook) ──
   O menu inteiro — logotipo, seis links, seletor de idioma e botão
   Contato — mede cerca de 1135px no tamanho normal. Como a nav tem
   5% de recuo de cada lado, ele só cabe de verdade a partir de uns
   1340px de tela com folga. Abaixo disso o botão Contato saía do
   campo de visão. Aqui tudo encolhe para caber; abaixo de 1061px
   nem encolhido cabe, e entra o hambúrguer.
   Precisa vir DEPOIS das regras normais da nav: mesma
   especificidade, quem vem por último vence.                    */
@media (min-width: 1061px) and (max-width: 1339px) {
  .nav-logo { font-size: 0.92rem; }
  .nav-logo img { height: 32px !important; margin-right: 6px !important; }
  .nav-links a { padding: 0 0.55rem; font-size: 0.76rem; }
  .nav-links a::after { left: 0.55rem; right: 0.55rem; }
  .lang-switch { margin-left: 10px; padding: 2px; }
  .lang-opt { padding: 3px 7px; font-size: 0.62rem; letter-spacing: 0.03em; }
  .nav-btn { font-size: 0.76rem; padding: 0.4rem 0.85rem !important; margin-left: 0.5rem; margin-right: 0; }
}

/* Abaixo de 1061px nem encolhido o menu cabe: entra o hambúrguer.
   Só o menu muda aqui — o resto do layout continua mudando aos
   860px, como antes. */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-btn { display: none; }
  .menu-btn { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  nav { overflow: visible; }
}

@media (max-width: 860px) {
  .nav-logo { font-size: 0; }
  .nav-logo img { display: block; height: 36px; width: auto; margin-right: 0 !important; }
  .nav-logo span { display: none; }
  section { padding: 44px 5%; }
  footer { padding: 36px 5% 20px; }
  .section-header { margin-bottom: 1.5rem; }
  h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .footer-top { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
