/* Navigation styles for M2AI Real Estate website */

/* Fixed navigation header */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(11, 11, 19, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  -webkit-transform: translateZ(0); /* Force hardware acceleration */
  transform: translateZ(0);
  will-change: transform; /* Optimize for animations */
}

/* Navigation menu - Responsive spacing */
.main-nav,
.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem); /* Responsive gap prevents crowding */
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  padding: 0 1rem; /* Prevent edge crowding */
}

/* Navigation links - Updated for professional real estate theme */
.nav-link-default,
.nav-link-current {
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.nav-link-default {
  color: #475569;
}

.nav-link-default:hover {
  color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}

.nav-link-current {
  color: #f97316;
  font-weight: 600;
  background: rgba(249, 115, 22, 0.1);
}

.nav-link-current::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #f97316;
  border-radius: 1px;
}

/* Adjust main content to account for fixed header */
.main-content {
  padding-top: 80px !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .main-nav,
  .header-nav {
    font-size: 0.95rem;
    gap: clamp(0.75rem, 3vw, 1.5rem);
  }

  .nav-link-default,
  .nav-link-current {
    padding: 8px 12px;
    min-height: 48px; /* Touch target minimum */
  }
}

@media (max-width: 600px) {
  .main-nav,
  .header-nav {
    gap: 1rem;
  }

  .nav-link-default,
  .nav-link-current {
    padding: 6px 10px;
  }
}
