/*
Site Chrome - Maycon Amaro
Menu de topo, rodapé e botão flutuante de WhatsApp padronizados.
Usado pela Home (via maycon-home/header.php e footer.php) e por todas
as demais páginas do site (Blog, artigos e futuras páginas), exceto LPs.
Fonte única: edite maycon_render_site_header()/maycon_render_site_footer()
em maycon-home/site-chrome.php e as regras visuais aqui.
*/

:root {
  --mabr-bg-soft: #090b0e;
  --mabr-panel: #0d1014;
  --mabr-panel-hover: #131820;
  --mabr-panel-border: rgba(255, 255, 255, 0.09);
  --mabr-panel-border-glow: rgba(190, 220, 255, 0.28);
  --mabr-text: #f5f7fa;
  --mabr-text-muted: #949aa5;
  --mabr-text-subtle: #626975;
  --mabr-accent: #bedcff;
  --mabr-accent-green: #58e560;
  --mabr-radius: 18px;
  --mabr-radius-sm: 10px;
  --mabr-radius-pill: 999px;
  --mabr-max-width: 1200px;
  --mabr-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-header,
.mobile-menu-drawer,
.site-footer {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.site-header *,
.mobile-menu-drawer *,
.site-footer * {
  box-sizing: border-box;
}

.site-container {
  width: min(var(--mabr-max-width), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--mabr-max-width), calc(100% - 36px));
  height: 84px;
  padding: 0 16px 0 20px;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--mabr-panel-border);
  border-radius: 16px;
  background: rgba(5, 6, 7, 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(7, 9, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  display: block;
  width: 120px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mabr-text-muted);
  text-decoration: none;
  transition: color 0.2s var(--mabr-ease);
}

.header-nav a:hover {
  color: var(--mabr-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--mabr-radius-pill);
  background: rgba(88, 229, 96, 0.08);
  border: 1px solid rgba(88, 229, 96, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: var(--mabr-accent-green);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mabr-accent-green);
  box-shadow: 0 0 8px var(--mabr-accent-green);
}

.btn-header {
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--mabr-ease), background 0.2s;
}

.btn-header--whatsapp {
  background: #25d366;
  color: #ffffff;
  font-size: 10px;
}

.btn-header--whatsapp:hover {
  transform: translateY(-2px);
  background: #1ebe5b;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--mabr-panel-border);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background-color: var(--mabr-text);
}

/* Mobile Nav Drawer */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--mabr-max-width), calc(100% - 36px));
  z-index: 8999;
  border: 1px solid var(--mabr-panel-border);
  border-radius: var(--mabr-radius);
  padding: 24px;
  background: rgba(9, 11, 14, 0.96);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.mobile-menu-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-drawer a {
  padding: 12px 0;
  border-bottom: 1px solid var(--mabr-panel-border);
  font-size: 15px;
  font-weight: 500;
  color: var(--mabr-text-muted);
  text-decoration: none;
}

.mobile-menu-drawer a:last-child {
  border-bottom: none;
}

.mobile-nav-link--whatsapp {
  color: #25d366 !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .header-nav,
  .status-pill,
  .btn-header {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--mabr-panel-border);
  background: var(--mabr-bg-soft);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo-img {
  display: block;
  width: 150px;
  height: auto;
}

.footer-col--brand p {
  font-size: 14px;
  color: var(--mabr-text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mabr-text);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mabr-text-muted);
  text-decoration: none;
  transition: color 0.2s var(--mabr-ease);
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--mabr-panel-border);
  font-size: 12px;
  color: var(--mabr-text-subtle);
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Botão flutuante de WhatsApp (mobile) */
.mabr-wa-float {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  text-decoration: none;
}

.mabr-wa-float svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

@media (max-width: 768px) {
  .mabr-wa-float {
    display: flex;
  }
}

/*
Oculta o header/footer nativos do plugin do blog (mbe-editorial); o menu
de topo e o rodapé padronizados são injetados via hooks (site-chrome.php).
Escopado à classe "mbe-page" que o plugin já adiciona ao <body> na
listagem do blog e em cada artigo, para não afetar nenhuma outra página.
*/
.mbe-page .mbe-header,
.mbe-page .mbe-footer {
  display: none !important;
}
