/* Navbar redesign — override de header.scss compilado em site.min.css */

.header {
  box-shadow: none !important;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0) 100%
  ) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease !important;
}

.header .navbar {
  box-shadow: none !important;
}

.header.fix {
  background: #1F1F21 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}

/* Logo — remove caixa e destaca sobre foto */
.header .navbar-brand {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header .navbar-brand img {
  filter:
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.7))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Links com halo escuro (outline suave) para destaque sem fundo */
.header .header__link {
  position: relative;
  padding: 0 20px;
  font-weight: 500;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 0 4px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.9);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.header .header__link::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  height: 2px;
  background: #B51C15;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.header .header__link:hover::before {
  transform: scaleX(1);
}

/* Portal do Cliente — botão outlined com fill no hover */
.header .navbar-nav .nav-item:last-child {
  margin-left: 16px;
  display: flex;
  align-items: center;
}

.header .navbar-nav .nav-item:last-child .header__link {
  height: 44px;
  padding: 0 22px;
  border: 1.5px solid #B51C15;
  border-radius: 6px;
  background: transparent;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header .navbar-nav .nav-item:last-child .header__link::before {
  display: none !important;
}

.header .navbar-nav .nav-item:last-child .header__link img {
  transition: filter 0.25s ease;
}

.header .navbar-nav .nav-item:last-child .header__link:hover {
  background: #B51C15;
  color: #fff;
  box-shadow: 0 0 14px rgba(181, 28, 21, 0.5);
}

.header .navbar-nav .nav-item:last-child .header__link:hover img {
  filter: brightness(0) invert(1);
}

/* Enterprise card — badge de progresso de obra (em-construcao) */
.enterprise-card__progress {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 110px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.enterprise-card__progress-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.enterprise-card__progress-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: "cera-pro-black", sans-serif;
  line-height: 1;
}

.enterprise-card__progress-bar {
  display: block;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.enterprise-card__progress-fill {
  display: block;
  height: 100%;
  background: #B51C15;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Mobile */
@media (max-width: 991.98px) {
  .header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)) !important;
  }
  .header .header__link::before { display: none !important; }
  .header .navbar-nav .nav-item:last-child {
    margin-left: 0;
  }
  .header .navbar-nav .nav-item:last-child .header__link {
    border: none;
    height: 80px;
    padding: 0 28px;
    border-radius: 0;
    background: transparent;
  }
}
