/* ============================================================
   NAV INFERIOR — barra fixa (estilo app), usada em todas as páginas
   ============================================================ */

body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  background: rgba(255, 251, 245, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid #EDE0CC;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 20px -14px rgba(42, 36, 32, 0.55);
}

.tabbar .tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 2px 10px;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(42, 36, 32, 0.55);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

.tabbar .tab-ico {
  font-size: 1.15rem;
  line-height: 1;
  filter: grayscale(0.4);
  opacity: 0.7;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.tabbar .tab:hover { color: rgba(42, 36, 32, 0.8); }

.tabbar .tab.current { color: #B8461E; }
.tabbar .tab.current .tab-ico { filter: none; opacity: 1; }
.tabbar .tab.current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #D9531E;
}

@media (min-width: 768px) {
  body { padding-bottom: 108px; }
  .tabbar {
    max-width: 520px;
    margin: 0 auto;
    bottom: 18px;
    border: 1px solid #EDE0CC;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 12px 32px -14px rgba(42, 36, 32, 0.5);
  }
  .tabbar .tab { font-size: 0.72rem; padding: 10px 4px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .tabbar .tab, .tabbar .tab-ico { transition: none; }
}
