/* Global One · base compartilhada (home e Guia One).
   Ideia: a sacola da marca. Preto fosco por fora, marinho por dentro, e o azul do "1" do G1 para ação.
   Títulos em Jost (o desenho geométrico da logo); texto em Inter. Navegação e rodapé são sempre escuros. */
:root {
  --g-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --g-font-display: "Jost", "Inter", system-ui, sans-serif;
  --g-preto: #000000;
  --g-superficie: #121214;    /* cartões sobre o preto */
  --g-branco: #f5f5f7;        /* texto sobre o preto: 19:1 */
  --g-texto-2: #9b9ba1;       /* apoio: 7,6:1 sobre o preto; 6,7:1 sobre a superfície */
  --g-texto-3: #c7c7cc;
  --g-linha: rgba(255, 255, 255, .12);
  --g-azul: #3274cf;          /* o "1" do G1: botões (texto branco 4,6:1) */
  --g-azul-hover: #2a63b8;
  --g-azul-claro: #6ea2ee;    /* links sobre escuro: 8:1 */
  --g-marinho: #0f2d6b;       /* o lado de dentro da sacola */
  --g-bordo: #6b2533;
  --g-nav-h: 52px;
  --g-largura: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--g-font); color: var(--g-branco); background: var(--g-preto);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--g-azul-claro); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--g-azul); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: .875rem; text-decoration: none; }
.pular:focus { left: 8px; }

/* marca G1 (símbolo em linha, usado com <use href="#g1">): G na cor do texto, "1" em --g1-um */
.g1 { display: block; color: var(--g-branco); --g1-um: var(--g-azul); }

/* ---------- navegação ---------- */
.nav-global { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--g-branco); }
.nav-global__in { max-width: var(--g-largura); height: var(--g-nav-h); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 24px; }
.nav-global__logo { flex: none; display: flex; align-items: center; gap: 12px; height: var(--g-nav-h); color: inherit; }
.nav-global__logo .g1 { width: 26px; height: 26px; }
.nav-global__logo img { width: 116px; height: auto; display: block; }
.nav-global__links { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 6px; }
.nav-global__links a { display: flex; align-items: center; height: var(--g-nav-h); padding: 0 12px; position: relative;
  font-size: .8125rem; color: rgba(245, 245, 247, .72); text-decoration: none; transition: color .2s; }
.nav-global__links a:hover, .nav-global__links a[aria-current] { color: #fff; }
/* página atual: um traço inclinado como o "1" do G1 */
.nav-global__links a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 14px; height: 2px;
  background: var(--g-azul-claro); transform: translateX(-50%) rotate(-28deg); }
/* tema claro: sobre página branca a translucidez deixaria a barra cinza; fica quase preta */
:root[data-theme="light"] .nav-global { background: rgba(0, 0, 0, .92); }

/* Guia One em destaque no menu: pílula azul com o G1 */
.nav-global__links { align-items: center; }
.nav-global__item-guia { margin-left: 10px; }
.nav-global__links a.nav-global__guia { height: 34px; gap: 8px; padding: 0 15px 0 11px; border-radius: 999px; color: #fff; font-weight: 500;
  background: rgba(50, 116, 207, .2); box-shadow: inset 0 0 0 1px rgba(110, 162, 238, .5); transition: background-color .2s, box-shadow .2s; }
.nav-global__links a.nav-global__guia:hover { background: rgba(50, 116, 207, .36); }
.nav-global__links a.nav-global__guia[aria-current] { background: rgba(50, 116, 207, .42); box-shadow: inset 0 0 0 1px var(--g-azul-claro); }
.nav-global__links a.nav-global__guia[aria-current]::after { bottom: -8px; }
.nav-global__guia .g1 { width: 18px; height: 18px; }

.nav-global__acoes { flex: none; display: flex; align-items: center; gap: 4px; }
.nav-global__icone { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgba(245, 245, 247, .8);
  transition: color .2s, background-color .2s; }
.nav-global__icone:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-global__icone svg { width: 19px; height: 19px; }
/* botão de tema (home): mostra o ícone da escolha atual */
.nav-global__tema { border: 0; background: transparent; cursor: pointer; padding: 0; }
.nav-global__tema .ico { width: 18px; height: 18px; display: none; }
:root[data-pref="light"] .nav-global__tema .ico--sol, :root[data-pref="dark"] .nav-global__tema .ico--lua,
:root:not([data-pref="light"]):not([data-pref="dark"]) .nav-global__tema .ico--auto { display: block; }
.nav-global__wa { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; margin-left: 6px;
  border-radius: 10px; background: var(--g-azul); color: #fff; font-size: .8125rem; font-weight: 500; text-decoration: none; transition: background-color .2s; }
.nav-global__wa:hover { background: var(--g-azul-hover); }
.nav-global__wa svg { width: 16px; height: 16px; }

/* botão do menu (celular): duas linhas que viram um X */
.nav-global__menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; color: var(--g-branco); padding: 0; margin-right: -10px; }
.nav-global__menu span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: currentColor; border-radius: 1px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.nav-global__menu span:first-child { top: 18px; }
.nav-global__menu span:last-child { top: 25px; }
.nav-global[data-aberto="true"] .nav-global__menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-global[data-aberto="true"] .nav-global__menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-global__in { padding: 0 20px; gap: 12px; }
  .nav-global__menu { display: block; }
  .nav-global__links { display: none; }
  .nav-global__acoes { margin-left: auto; }
  .nav-global__wa span { display: none; }
  .nav-global__wa { width: 40px; padding: 0; justify-content: center; margin-left: 0; }
  /* sem desfoque com o menu aberto: o backdrop-filter prenderia a lista fixa dentro da barra */
  .nav-global[data-aberto="true"] { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-global[data-aberto="true"] .nav-global__links {
    display: flex; flex-direction: column; gap: 0; position: fixed; top: var(--g-nav-h); left: 0; right: 0; bottom: 0; margin: 0;
    padding: 24px 28px 40px; background: #000; overflow-y: auto; overscroll-behavior: contain;
    animation: menu-entra .3s cubic-bezier(.4, 0, .2, 1);
  }
  .nav-global[data-aberto="true"] .nav-global__links a { height: auto; padding: 12px 0; font-family: var(--g-font-display);
    font-size: 2rem; font-weight: 500; color: var(--g-branco); border-bottom: 1px solid var(--g-linha); }
  .nav-global[data-aberto="true"] .nav-global__links a[aria-current]::after { left: auto; right: 4px; bottom: 50%; }
  /* no menu do celular o Guia One vem primeiro, em destaque */
  .nav-global[data-aberto="true"] .nav-global__links { align-items: stretch; }
  .nav-global__item-guia { order: -1; margin: 0 0 12px; align-self: flex-start; }
  .nav-global[data-aberto="true"] .nav-global__links a.nav-global__guia { height: 56px; padding: 0 22px 0 16px; gap: 12px; border-bottom: 0;
    font-size: 1.5rem; display: inline-flex; }
  .nav-global[data-aberto="true"] .nav-global__links a.nav-global__guia[aria-current]::after { display: none; }
  .nav-global__guia .g1 { width: 24px; height: 24px; }
  html.menu-aberto { overflow: hidden; }
}
@media (max-width: 420px) { .nav-global__logo img { width: 100px; } .nav-global__logo { gap: 9px; } }
@keyframes menu-entra { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- WhatsApp flutuante: só ícone, só no computador (no celular o botão fica na barra) ---------- */
.wa-flutuante { display: none; }
@media (min-width: 961px) {
  .wa-flutuante { position: fixed; right: 28px; bottom: 28px; z-index: 45; width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; background: var(--g-azul); color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .14);
    transition: background-color .2s, transform .2s cubic-bezier(.2, .7, .2, 1); }
  .wa-flutuante:hover { background: var(--g-azul-hover); transform: scale(1.06); }
  .wa-flutuante svg { width: 26px; height: 26px; }
}

/* ---------- botões e link com seta ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 12px; border: 1px solid var(--g-azul); background: var(--g-azul); color: #fff;
  font-family: inherit; font-size: .9375rem; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.botao:hover { background: var(--g-azul-hover); border-color: var(--g-azul-hover); }
.botao--contorno { background: transparent; color: var(--g-branco); border-color: rgba(255, 255, 255, .3); }
.botao--contorno:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.botao--branco { background: #fff; border-color: #fff; color: var(--g-marinho); }
.botao--branco:hover { background: #e3eaf8; border-color: #e3eaf8; }
.botao--p { min-height: 40px; padding: 0 16px; font-size: .8125rem; border-radius: 10px; }
.botao svg { width: 18px; height: 18px; flex: none; }

.link-mais { color: var(--g-azul-claro); text-decoration: none; cursor: pointer; white-space: nowrap; }
.link-mais::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .35em;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); vertical-align: .1em; }
.link-mais:hover { text-decoration: underline; }

@media (pointer: coarse) { .botao--p { min-height: 44px; } }

/* ---------- rodapé ---------- */
.rodape { background: var(--g-preto); color: var(--g-texto-2); font-size: .8125rem; line-height: 1.5; border-top: 1px solid var(--g-linha); }
.rodape__in { max-width: var(--g-largura); margin: 0 auto; padding: 56px 32px 28px; }
.rodape__topo { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.rodape__marca { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rodape__logo { display: flex; align-items: center; gap: 12px; }
.rodape__logo .g1 { width: 34px; height: 34px; }
.rodape__logo img { width: 132px; height: auto; display: block; }
.rodape__marca p { max-width: 24em; }
.rodape h2 { font-size: .8125rem; font-weight: 600; color: var(--g-branco); margin-bottom: 14px; }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li + li { margin-top: 8px; }
.rodape a { color: var(--g-texto-3); text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape__notas { border-top: 1px solid var(--g-linha); padding-top: 20px; font-size: .75rem; }
.rodape__notas p + p { margin-top: 6px; }
.rodape__base { border-top: 1px solid var(--g-linha); margin-top: 20px; padding-top: 18px; font-size: .75rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.rodape__credito { display: flex; align-items: center; gap: 8px; }
.rodape__credito a { display: inline-flex; align-items: center; min-height: 32px; }
.logo-wp { height: 16px; width: auto; display: block; }

@media (max-width: 860px) {
  .rodape__in { padding: 44px 20px 24px; }
  .rodape__topo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .rodape__marca { grid-column: 1 / -1; }
  .rodape li + li { margin-top: 0; }
  .rodape li a { display: inline-flex; align-items: center; min-height: 34px; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-global { -webkit-backdrop-filter: none; backdrop-filter: none; background: #000; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
