/* =====================================================
   NAVBAR COMPARTILHADO — Ferramentas GovCompras
   Identidade Ouro Institucional v3.0
   ===================================================== */

body { padding-top: 80px }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: #070D18;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: row
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(201, 168, 76, 0.25)
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none
}

.navbar-logo img {
  height: 36px;
  display: block
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none
}

.navbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 247, 240, 0.78);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
  text-decoration: none
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #C9A84C;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1)
}

.navbar-links a:hover { color: #FAF7F0 }
.navbar-links a:hover::after { width: 100% }

.header-CTA .navbar-links { gap: 16px }

.navbar-cta {
  padding: 10px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #DDB94E 0%, #F0CC6E 100%);
  color: #0D1928 !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 14px rgba(201, 168, 76, 0.45)
}

.navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(201, 168, 76, 0.55)
}

.navbar-cta::after { display: none !important }

.navbar-login {
  padding: 9px 20px;
  border-radius: 8px;
  background: transparent;
  color: rgba(250, 247, 240, 0.85) !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(201, 168, 76, 0.30);
  text-decoration: none
}

.navbar-login:hover {
  border-color: rgba(201, 168, 76, 0.60);
  color: #F0CC6E !important;
  background: rgba(201, 168, 76, 0.18)
}

.navbar-login::after { display: none !important }

.navbar-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none
}

.navbar-mobile-toggle span {
  width: 24px; height: 2px;
  background: #FAF7F0;
  border-radius: 2px;
  transition: all 0.3s
}

.navbar-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.navbar-mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0) }
.navbar-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

@media (max-width: 768px) {
  .header-menu .navbar-links { display: none }
  .header-CTA .navbar-links { gap: 8px }
  .header-CTA .navbar-login { padding: 7px 10px; font-size: 12px }
  .header-CTA .navbar-cta { padding: 7px 12px; font-size: 12px }
  .navbar-mobile-toggle { display: flex }
  .header-menu .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #070D18;
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15)
  }

  .navbar .container { padding: 0 16px }
  body { padding-top: 72px }
}

@media (max-width: 440px) {
  .navbar-logo img { height: 30px }
  .header-CTA .navbar-login { padding: 6px 8px; font-size: 11px }
  .header-CTA .navbar-cta   { padding: 6px 10px; font-size: 11px }
  .header-CTA .navbar-links { gap: 6px }
  .navbar .container { padding: 0 12px }
}
