/* Menu (nav bar) e rodapé PADRÃO do site Emisfera Agro.
   Origem: Home A (home-a-edicao.html). Carregado por TODAS as páginas, depois do CSS da própria página.
   Não depende de variáveis CSS da página (cores e fontes fixas). O HTML correspondente fica em
   _fontes/layout/nav.html e _fontes/layout/footer.html e é aplicado por: node _scripts/layout.mjs aplicar */

.menu, .menu *, .rodape, .rodape * { box-sizing: border-box; }
.menu ul, .rodape ul { margin: 0; padding: 0; list-style: none; }
.menu li, .rodape li { margin: 0; padding: 0; }
.menu, .rodape { font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; text-align: left; }

/* ─── MENU ─── */
.menu {
  background: #1E3D1F;
  padding: 0 40px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.menu-logo img { height: 85px; width: auto; max-width: none; display: block; }
.menu-links { display: flex; gap: 30px; align-items: center; list-style: none; justify-content: center; }
.menu-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
  white-space: nowrap;
}
.menu-links a:hover { color: white; }
.menu-cta { display: flex; justify-content: flex-end; }
.menu-cta .cta {
  background: #A67C00;
  color: white;
  padding: 12px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.menu-cta .cta:hover { background: #C9960A; }

/* ─── DROPDOWN ─── */
.has-dropdown { position: relative; align-self: stretch; display: flex; align-items: center; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.dropdown-chevron {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s; flex-shrink: 0; opacity: .7;
}
.has-dropdown:hover .dropdown-chevron { transform: rotate(180deg); }
.dropdown-menu {
  visibility: hidden; opacity: 0;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #162c16;
  border: 1px solid rgba(170,204,0,.22);
  border-radius: 12px;
  padding: 6px;
  min-width: 240px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  z-index: 200;
  transition: opacity .2s ease, visibility .2s, transform .2s ease;
}
.has-dropdown:hover .dropdown-menu { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 11px 16px;
  border-radius: 8px;
  color: rgba(255,255,255,.8) !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.dropdown-menu a:hover { background: rgba(170,204,0,.12); color: white !important; }

/* ─── RODAPÉ ─── */
.rodape { background: #1E3D1F; padding: 48px 40px 32px; margin: 0; }
.rodape-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rodape-logo { display: block; height: 100px; width: auto; max-width: none; margin-bottom: 0px; margin-top: -10px }
.rodape-desc { font-size: 14px; color: #ffffff; line-height: 1.6; margin: 0 0 24px; max-width: 300px; }
.rodape-selos { display: flex; gap: 16px; align-items: center; }
.rodape-selo-cubo { height: 100px; width: auto; max-width: none; display: block; }
.rodape-selo-ghg  { height: 120px; width: auto; max-width: none; display: block; }
.rodape-col-titulo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C9960A;
  margin-bottom: 20px;
}
.rodape-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rodape-links a { font-size: 14px; color: #ffffff; text-decoration: none; transition: color .2s; }
.rodape-links a:hover { color: #C9960A; }
.rodape-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #ffffff;
}

/* Telas medias: menu mais compacto para nao gerar rolagem horizontal */
@media (max-width: 1100px) {
  .menu { padding: 0 24px; }
  .menu-logo img { height: 64px; }
  .menu-links { gap: 18px; }
  .menu-links a { font-size: 15px; }
  .menu-cta .cta { padding: 10px 20px; font-size: 14px; }
}
/* Tablet e celular: sem lista de links (como ja era no celular) */
@media (max-width: 900px) {
  .menu { padding: 0 20px; grid-template-columns: auto 1fr auto; }
  .menu-links { display: none; }
  .menu-logo img { height: 40px; }
}
@media (max-width: 768px) {
  .menu { padding: 0 20px; grid-template-columns: auto 1fr auto; }
  .menu-links { display: none; }
  .menu-logo img { height: 40px; }
  .rodape-grid { grid-template-columns: 1fr; gap: 32px; }
  .rodape-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
