
/*  BOTÃO MOBILE  */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #007BFF;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #ffffff !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3) !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    
    padding: 100px 0 20px 0 !important;
    margin: 0 !important;
    
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .nav-menu.active {
    right: 0 !important;
  }

  .nav-menu li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    list-style: none !important;
  }

  .nav-menu li:last-child {
    border-bottom: none !important;
  }

  .nav-link {
    display: block !important;
    width: 100% !important;
    padding: 1.2rem 1.5rem !important;
    text-align: left !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
  }

  .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: #007BFF !important;
    padding-left: 2rem !important;
  }

  .nav-link.active {
    background-color: rgba(0, 123, 255, 0.15) !important;
    color: #007BFF !important;
    border-left: 4px solid #007BFF !important;
  }

  .nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
  }

  .nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 280px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    animation: fadeIn 0.3s ease;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }

  .nav-menu {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: row !important;
    padding: 0 !important;
  }

  .nav-link {
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    right: -100%;
  }
  to {
    right: 0;
  }
}

.mobile-menu-btn:focus {
  outline: 2px solid #007BFF;
  outline-offset: 2px;
}

.nav-link:focus {
  outline: 2px solid #007BFF;
  outline-offset: -2px;
}

body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

@media (max-width: 768px) {
  .orcamento-contador {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}