/* LF Oliveira — site institucional (modelo)
   Paleta e fonte do Manual de Identidade Visual. */
:root {
  --navy: #002946;
  --azul: #4E7C9F;
  --cinza: #444242;
  --branco: #FFFFFF;
  --fundo-cinza: #F2F5F8;
  --linha: #DCE4EB;
  --navy-90: #0A3557;
  --sombra: 0 10px 30px rgba(0, 41, 70, .10);
  --raio: 14px;
  --fonte: "Assistant", Calibri, "Segoe UI", Arial, sans-serif;
  --topo-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo-h); }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 18px;
  line-height: 1.6;
  color: var(--cinza);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.02em; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.01em; max-width: 22ch; }
h3 { font-weight: 700; font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 var(--fonte);
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primario { background: var(--navy); color: var(--branco); }
.btn-primario:hover { background: var(--azul); }
.btn-claro { background: var(--branco); color: var(--navy); }
.btn-claro:hover { background: #E6EEF4; }
.btn-contorno { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-contorno-claro { border-color: rgba(255,255,255,.6); color: var(--branco); background: transparent; }
.btn-contorno-claro:hover { border-color: var(--branco); background: rgba(255,255,255,.08); }
.btn-pequeno { padding: .7em 1.2em; font-size: .95rem; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topo-h);
  transition: background .25s ease, box-shadow .25s ease;
}
.topo-linha { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topo-logo { position: relative; display: block; width: 240px; height: 59px; flex: none; }
.topo-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.logo-escuro { opacity: 0; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--branco); text-decoration: none; font-weight: 600; font-size: 1rem; position: relative; }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: currentColor; transform: scaleX(0); transition: transform .2s;
}
.menu a:not(.btn):hover::after, .menu a.ativo::after { transform: scaleX(1); }

.topo.rolado { background: var(--branco); box-shadow: 0 2px 16px rgba(0,41,70,.08); }
.topo.rolado .logo-claro { opacity: 0; }
.topo.rolado .logo-escuro { opacity: 1; }
.topo.rolado .menu a:not(.btn) { color: var(--navy); }
.topo.rolado .menu .btn-claro { background: var(--navy); color: var(--branco); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--branco); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.topo.rolado .menu-btn span, .topo.aberto .menu-btn span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 20%, #0B3D63 0%, var(--navy) 60%);
  color: #DCE7F0;
  padding: calc(var(--topo-h) + 72px) 0 56px;
}
.hero .ondas { position: absolute; inset: auto 0 0 0; width: 100%; height: 75%; pointer-events: none; }
.hero-grade { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--branco); }
.hero h1 em { font-style: normal; color: #9CC0DC; }
.hero-texto p { font-size: 1.2rem; font-weight: 300; max-width: 52ch; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-marca { justify-self: center; width: min(340px, 100%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.hero-marca svg { width: 100%; height: auto; display: block; }
.selo {
  display: inline-block; margin-bottom: 20px;
  font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--branco); padding: .45em 1em; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
}
.numeros {
  position: relative; margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
}
.numeros > div { padding: 24px 16px 0 0; }
.numeros strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--branco); line-height: 1; }
.numeros strong span { font-size: .5em; color: #9CC0DC; margin-left: 2px; }
.numeros > div > span { font-size: 1rem; }

/* ---------- Seções ---------- */
.secao { padding: 104px 0; position: relative; }
.secao-cinza { background: var(--fundo-cinza); }
.secao-navy { background: var(--navy); color: #DCE7F0; overflow: hidden; }
.secao-navy h2, .secao-navy h3 { color: var(--branco); }
.sobretitulo {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul);
}
.sobretitulo::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.sobretitulo-claro { color: #9CC0DC; }
.duas-colunas { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.duas-colunas-centro { align-items: center; }
.cabeca-secao { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.cabeca-secao h2 { margin: 0; }
.nota { margin-top: 20px; font-size: .9rem; color: #77808A; }

/* Valores */
.valores { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.valor { padding: 28px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--branco); transition: box-shadow .2s, transform .2s; }
.valor:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.valor p { margin: 0; font-size: 1rem; }
.valor-icone { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #E8F0F6; margin-bottom: 16px; }
.valor-icone svg { width: 24px; height: 24px; fill: var(--navy); }

/* Linha do tempo */
.linha-tempo { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.linha-tempo::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--azul), var(--navy)); }
.linha-tempo li { position: relative; padding-top: 40px; }
.linha-tempo li::before { content: ""; position: absolute; top: 2px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--branco); border: 4px solid var(--navy); }
.ano { display: block; font-weight: 800; font-size: 1.6rem; color: var(--azul); line-height: 1; margin-bottom: 8px; }
.linha-tempo p { font-size: 1rem; margin: 0; }

/* Marcas */
.filtro-marcas { display: flex; gap: 6px; padding: 5px; background: var(--fundo-cinza); border-radius: 999px; flex-wrap: wrap; }
.filtro-marcas button {
  font: 600 .95rem var(--fonte); color: var(--cinza);
  border: 0; background: transparent; padding: .55em 1.1em; border-radius: 999px; cursor: pointer;
}
.filtro-marcas button[aria-selected="true"] { background: var(--navy); color: var(--branco); }
.marcas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
@media (max-width: 1100px) { .marcas { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 760px) { .marcas { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.marcas li {
  aspect-ratio: 1; border-radius: var(--raio); background: var(--cor, #eee);
  display: grid; place-items: center; padding: 14%;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
}
.marcas li:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.marcas li { min-width: 0; min-height: 0; overflow: hidden; }
.marcas li img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.marcas li[hidden] { display: none; }

/* Cartões (seu negócio) */
.ondas-topo { position: absolute; top: 0; left: 0; width: 100%; height: 200px; pointer-events: none; }
.cartoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; position: relative; }
.cartao {
  background: var(--navy-90); border: 1px solid rgba(255,255,255,.08); border-radius: var(--raio);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: background .2s, transform .2s;
}
.cartao:hover { background: #0F4170; transform: translateY(-3px); }
.cartao p { font-size: 1rem; flex: 1; }
.cartao-num { font-size: .9rem; font-weight: 800; color: #9CC0DC; letter-spacing: .1em; margin-bottom: 18px; }
.link-seta { color: var(--branco); font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-seta::after { content: "→"; transition: transform .2s; }
.link-seta:hover::after { transform: translateX(4px); }

/* Área atendida */
.lista-municipios { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lista-municipios li { padding: .4em .95em; border-radius: 999px; background: #E8F0F6; color: var(--navy); font-weight: 600; font-size: .95rem; }
.mapa { border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4/3; background: var(--fundo-cinza); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Trabalhe conosco */
.faixa-cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.faixa-cta p { max-width: 60ch; margin: 0; }

/* Consumo responsável */
.consumo { background: var(--azul); color: var(--branco); padding: 18px 0; text-align: center; font-size: 1rem; }
.consumo p { margin: 0; }

/* Contato */
.contatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 40px; }
.contato {
  display: flex; gap: 14px; align-items: flex-start; padding: 24px;
  border: 1px solid var(--linha); border-radius: var(--raio); text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
  font-weight: 600; color: var(--navy); font-size: 1rem; line-height: 1.4;
}
a.contato:hover { border-color: var(--azul); box-shadow: var(--sombra); }
.contato small { display: block; font-weight: 400; color: #77808A; font-size: .85rem; margin-bottom: 4px; }
.contato-icone { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); }
.contato-icone svg { width: 20px; height: 20px; fill: var(--branco); }

/* Rodapé */
.rodape { position: relative; background: var(--navy); color: #B9CCDC; padding: 88px 0 28px; overflow: hidden; font-size: 1rem; }
.rodape .ondas { position: absolute; top: 0; left: 0; width: 100%; height: 160px; pointer-events: none; }
.rodape-grade { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; }
.rodape-logo { width: 220px; height: auto; margin-bottom: 16px; }
.rodape h4 { color: var(--branco); font-size: 1rem; margin-bottom: 14px; }
.rodape nav a { display: block; text-decoration: none; padding: 3px 0; }
.rodape nav a:hover { color: var(--branco); }
.rodape-social {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.rodape-social svg { width: 20px; height: 20px; fill: currentColor; }
.rodape-social:hover { color: var(--branco); border-color: var(--branco); }
.rodape-base {
  position: relative; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem;
}

/* Confirmação de idade */
.idade { position: fixed; inset: 0; z-index: 100; background: rgba(0, 41, 70, .92); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(6px); }
.idade[hidden] { display: none; }
.idade-caixa { background: var(--branco); border-radius: 20px; padding: 40px 32px; max-width: 440px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.idade-caixa img { margin: 0 auto 24px; width: 200px; height: auto; }
.idade-caixa h2 { font-size: 1.7rem; margin-inline: auto; }
.idade-botoes { display: flex; gap: 12px; justify-content: center; margin: 24px 0 16px; flex-wrap: wrap; }
.idade-caixa small { color: #77808A; }
.idade-recado { font-size: 1rem; color: var(--navy); }

/* Revelar ao rolar */
.revelar { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.revelar.visivel { opacity: 1; transform: none; }

/* Modo revisão (?revisar=1): destaca o que precisa de confirmação antes de publicar */
.revisao [data-confirmar] { outline: 2px dashed #E8A33D; outline-offset: 3px; background: rgba(232, 163, 61, .12); }
.aviso-revisao { position: fixed; bottom: 16px; left: 16px; z-index: 90; background: #E8A33D; color: #2B1A00; font-weight: 700; padding: 10px 16px; border-radius: 10px; font-size: .9rem; box-shadow: var(--sombra); }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .cartoes, .contatos { grid-template-columns: repeat(2, 1fr); }
  .contatos > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
  .rodape-grade > div:first-child { grid-column: 1 / -1; }
}
/* Menu vira hambúrguer antes do resto do layout: logo + selo Embaixadores ocupam a largura do menu */
@media (max-width: 1300px) {
  .menu-btn { display: block; }
  .menu {
    position: fixed; top: var(--topo-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--branco); padding: 8px 16px 24px; box-shadow: 0 12px 24px rgba(0,41,70,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  .menu a:not(.btn) { color: var(--navy) !important; padding: 14px 4px; border-bottom: 1px solid var(--linha); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 16px; background: var(--navy); color: var(--branco); }
  .topo.aberto { background: var(--branco); }
  .topo.aberto .logo-claro { opacity: 0; }
  .topo.aberto .logo-escuro { opacity: 1; }
  .topo.aberto .menu { transform: none; opacity: 1; visibility: visible; }
  .topo.aberto .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topo.aberto .menu-btn span:nth-child(2) { opacity: 0; }
  .topo.aberto .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { padding-top: calc(var(--topo-h) + 40px); }
  .hero-grade, .duas-colunas { grid-template-columns: 1fr; gap: 40px; }
  .hero-marca { display: none; }
  .numeros { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .numeros > div { padding-bottom: 16px; }
  .secao { padding: 72px 0; }
  .linha-tempo { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .linha-tempo::before { display: none; }
}
@media (max-width: 560px) {
  .valores, .cartoes, .contatos, .rodape-grade, .linha-tempo { grid-template-columns: 1fr; }
  .marcas { grid-template-columns: repeat(3, 1fr); }
  .faixa-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .revelar { opacity: 1; transform: none; }
}

/* Mapa do RS (gerado por ferramentas/gera-mapa.py) */
.mapa-rs { margin: 0; }
.mapa-rs svg { display: block; width: 100%; height: auto; border-radius: var(--raio); box-shadow: var(--sombra); }
.mapa-rs .m-cid, .mapa-rs .m-sede { transition: fill .15s ease; cursor: default; }
.mapa-rs .m-cid:hover { fill: #2F5F84; }
.mapa-rs .m-sede:hover { fill: #0A3557; }
.mapa-rs .m-viz path:hover { fill: #D3DCE4; }
.mapa-legenda { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: .95rem; }
.mapa-legenda span { display: inline-flex; align-items: center; gap: 8px; }
.mapa-legenda i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.leg-sede { background: var(--navy); }
.leg-cid { background: var(--azul); }
#contato .mapa { margin-top: 24px; aspect-ratio: auto; height: 360px; }
@media (max-width: 560px) { .mapa-rs .m-rot { display: none; } }

/* Título do portfólio muda com o filtro */
#titulo-marcas { transition: opacity .18s ease, transform .6s ease; min-height: 2.3em; }
#titulo-marcas.trocando { opacity: 0 !important; }

/* Hero com a fachada ao fundo: a foto ocupa a direita e some em degradê para o navy (máscara,
   para não ficar borda onde a imagem começa em tela larga); o texto fica sobre navy sólido. */
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: min(100%, 82vw); pointer-events: none;
  background: url("../assets/fachada.jpg") 60% 40% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.85) 62%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.85) 62%, #000 100%);
  opacity: .9;
}
.hero::after {   /* tinge a foto de navy e escurece o pé, onde ficam os números */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--navy) 0%, rgba(0,41,70,.35) 30%, rgba(0,41,70,.2) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero .hero-marca { visibility: hidden; }
@media (max-width: 900px) {
  .hero::before {
    width: 100%; background-position: 45% top;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 45%, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 45%, transparent 85%);
    opacity: .55;
  }
}
@media (max-width: 600px) { :root { --topo-h: 76px; } .topo-logo { width: 200px; height: 49px; } }

/* Selo Embaixadores Ambev ao lado do logo — separado por um fio (regra da marca: distância entre os dois) */
.topo-selo {
  position: relative; display: block; flex: none; width: 200px; height: 56px;
  margin-right: auto; padding-left: 22px; box-sizing: content-box;
  border-left: 1px solid rgba(255,255,255,.35); transition: border-color .25s;
}
.topo-selo img { position: absolute; top: 0; left: 22px; width: 200px; height: 56px; object-fit: contain; transition: opacity .25s; }
.topo.rolado .topo-selo, .topo.aberto .topo-selo { border-left-color: rgba(0,41,70,.2); }
.topo.aberto .topo-selo .logo-claro { opacity: 0; }
.topo.aberto .topo-selo .logo-escuro { opacity: 1; }
@media (max-width: 600px) {
  .topo-selo { width: 118px; height: 33px; padding-left: 12px; }
  .topo-selo img { left: 12px; width: 118px; height: 33px; }
  .topo-logo { width: 165px; height: 40px; }
}
.menu a { white-space: nowrap; }
@media (min-width: 1301px) { .menu { gap: 18px; } .menu a:not(.btn) { font-size: .96rem; } }
@media (max-width: 600px) {
  .topo-linha { gap: 12px; }
  .topo-logo { width: 150px; height: 37px; }
  .topo-selo { width: 104px; height: 29px; padding-left: 10px; }
  .topo-selo img { left: 10px; width: 104px; height: 29px; }
}

/* Sonho e princípios */
.cultura-intro { max-width: 640px; margin: -8px 0 40px; }
.cultura-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; max-width: 960px; }
.cultura-card { margin: 0; }
.cultura-card a { display: block; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); transition: transform .2s, box-shadow .2s; }
.cultura-card a:hover, .cultura-card a:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 41, 70, .18); }
.cultura-card img { display: block; width: 100%; height: auto; }
.cultura-card figcaption { margin-top: 12px; font-weight: 700; color: var(--navy); text-align: center; }
@media (max-width: 720px) { .cultura-grade { grid-template-columns: 1fr; gap: 24px; } }
#cultura .container { text-align: center; }
#cultura .cultura-intro { margin-left: auto; margin-right: auto; }
#cultura .cultura-grade { margin: 0 auto; }
/* colunas proporcionais à largura/altura de cada arte → mesma altura renderizada */
#cultura .cultura-grade { grid-template-columns: 733fr 769fr; }
@media (max-width: 720px) { #cultura .cultura-grade { grid-template-columns: 1fr; } }
