/* ==========================================================================
   BimmerManiacs — rodapé partilhado (todas as páginas)
   Seletores "footer.bm-rodape" para ganhar aos estilos antigos de cada página.
   ========================================================================== */
footer.bm-rodape {
  background: #05070a;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0;
  margin-top: 60px;
  color: #9aa0aa;
  font-family: inherit;
  text-align: left;
  position: relative;
}
footer.bm-rodape::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #0066b2 0 33.3%, #151f6d 33.3% 66.6%, #e2001a 66.6% 100%);
  opacity: .85;
}
footer.bm-rodape .rd-wrap {
  max-width: 1240px; margin: 0 auto; padding: 46px 24px 0;
  display: block; gap: 0;
}
footer.bm-rodape .rd-topo {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px;
  padding-bottom: 36px;
}

/* marca */
footer.bm-rodape .rd-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
footer.bm-rodape .rd-riscas { display: flex; gap: 2.5px; transform: skewX(-20deg); }
footer.bm-rodape .rd-riscas i { width: 5px; height: 20px; border-radius: 1px; display: block; }
footer.bm-rodape .rd-riscas i:nth-child(1) { background: #0066b2; }
footer.bm-rodape .rd-riscas i:nth-child(2) { background: #151f6d; }
footer.bm-rodape .rd-riscas i:nth-child(3) { background: #e2001a; }
footer.bm-rodape .rd-nome { font-size: 19px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
footer.bm-rodape .rd-nome span { color: #0066b2; }
footer.bm-rodape .rd-frase { margin: 14px 0 18px; max-width: 340px; font-size: 13.5px; line-height: 1.6; color: #9aa0aa; }
footer.bm-rodape .rd-redes { display: flex; gap: 8px; }
footer.bm-rodape .rd-redes a {
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #c9ced6;
  transition: color .2s, border-color .2s, background .2s;
}
footer.bm-rodape .rd-redes a:hover { color: #fff; border-color: rgba(30,144,255,0.6); background: rgba(30,144,255,0.12); }
footer.bm-rodape .rd-redes svg { width: 17px; height: 17px; }

/* colunas de links */
footer.bm-rodape .rd-col h4 {
  margin: 4px 0 14px; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #fff;
}
footer.bm-rodape .rd-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer.bm-rodape .rd-col a { color: #9aa0aa; text-decoration: none; font-size: 14px; transition: color .2s; }
footer.bm-rodape .rd-col a:hover { color: #fff; }
footer.bm-rodape .rd-col a.on { color: #4aa8ff; }
html.bm-sessao footer.bm-rodape .rd-so-visitante { display: none; }
html:not(.bm-sessao) footer.bm-rodape .rd-so-membro { display: none; }

/* barra de baixo: links legais (+ idioma e preferências de cookies, que outros scripts acrescentam) e copyright, ao centro */
footer.bm-rodape .rd-base {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
footer.bm-rodape .footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; }
footer.bm-rodape .footer-links a { font-size: 13px; color: #8b919b; text-decoration: none; }
footer.bm-rodape .footer-links a:hover { color: #fff; }
footer.bm-rodape .footer-links a.on { color: #4aa8ff; }
footer.bm-rodape .footer-links .rd-admin { opacity: .7; }
footer.bm-rodape .copyright { margin: 0; width: auto; text-align: center; font-size: 13px; color: #6f757e; }

/* tablet */
@media (max-width: 1000px) {
  footer.bm-rodape .rd-topo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
  footer.bm-rodape .rd-marca { grid-column: 1 / -1; }
  footer.bm-rodape .rd-frase { max-width: 520px; }
}
/* telemóvel */
@media (max-width: 640px) {
  footer.bm-rodape { margin-top: 40px; }
  footer.bm-rodape .rd-wrap { padding: 34px 18px 0; }
  footer.bm-rodape .rd-topo { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-bottom: 26px; }
  footer.bm-rodape .rd-col:last-child { grid-column: 1 / -1; }
  footer.bm-rodape .rd-col:last-child ul { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
  footer.bm-rodape .footer-links { gap: 8px 18px; }
}

/* proteção contra estilos genéricos das páginas */
footer.bm-rodape .rd-col { display: block; text-align: left; }
footer.bm-rodape .rd-col li { margin: 0; padding: 0; list-style: none; }
footer.bm-rodape .rd-col a, footer.bm-rodape .footer-links a { background: none; border: 0; padding: 0; font-weight: 500; }

/* seletor de idioma (acrescentado pelo bimmer-i18n.js) */
footer.bm-rodape .bm-lang-btn { font-size: 13px; color: #c9ced6; }


/* Convite para visitantes (no lugar de "O teu espaço") */
footer.bm-rodape .rd-convite p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: #9aa0aa; max-width: 230px; }
footer.bm-rodape .rd-convite .rd-btn {
  display: flex; align-items: center; justify-content: center; max-width: 200px; box-sizing: border-box;
  padding: 9px 14px; margin-bottom: 8px; border-radius: 8px; font-size: 13.5px; font-weight: 800; text-decoration: none;
  color: #e6e8ec; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.03);
}
footer.bm-rodape .rd-convite .rd-btn:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
footer.bm-rodape .rd-convite .rd-btn-pri { background: #1e90ff; border-color: #1e90ff; color: #fff; }
footer.bm-rodape .rd-convite .rd-btn-pri:hover { background: #3a9fff; border-color: #3a9fff; }
@media (max-width: 640px) {
  footer.bm-rodape .rd-convite p { max-width: none; }
  footer.bm-rodape .rd-convite .rd-btn { max-width: none; }
}

/* ==========================================================================
   Friso M a fechar o cabeçalho (faz par com o friso do rodapé)
   Mais fino e mais suave do que o do rodapé, porque o cabeçalho está sempre à vista.
   ========================================================================== */
header:not(main header):not(article header):not(section header):not(footer header) {
  border-bottom: 0 !important;
  background-image: linear-gradient(90deg, rgba(0,102,178,.8) 0 33.3%, rgba(31,45,140,.85) 33.3% 66.6%, rgba(206,18,38,.75) 66.6% 100%) !important;
  background-size: 100% 2px !important;
  background-repeat: no-repeat !important;
  background-position: 0 100% !important;
  transition: background-size .25s ease, box-shadow .25s ease;
}
/* Ao descer a página o friso some (fica só no topo, por cima da página); volta a linha discreta de antes */
html.bm-rolou header:not(main header):not(article header):not(section header):not(footer header) {
  background-size: 100% 0 !important;
  box-shadow: 0 1px 0 #111;
}

/* Rodapé simples e centrado: logótipo, frase e redes ao meio (sem colunas de links) */
footer.bm-rodape .rd-topo { display: flex !important; justify-content: center; padding-bottom: 30px; }
footer.bm-rodape .rd-marca { display: flex; flex-direction: column; align-items: center; text-align: center; }
footer.bm-rodape .rd-frase { margin: 14px auto 18px; max-width: 520px; text-align: center; }
footer.bm-rodape .rd-redes { justify-content: center; }
@media (max-width: 640px) { footer.bm-rodape .rd-topo { padding-bottom: 24px; } }
