/* Standardized Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(139, 110, 80, 0.15);
  position: fixed;
  top: 0;
  left: 0; 
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.navbar.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(139, 110, 80, 0.2);
}

.navbar-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #8d6e50;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-logo span {
  color: #c79a65;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin: 0;
  padding: 0;
}

.navbar-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  padding: 5px 0;
  display: block;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #ab8663;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.navbar-nav a:hover {
  color: #ab8663;
}

.navbar-nav a:hover::after {
  width: 100%;
}

.navbar-nav a.active {
  color: #ab8663;
  font-weight: 600;
}

.navbar-nav a.active::after {
  width: 100%;
}

/* Hamburger menu */
#hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #8d6e50;
  z-index: 1001;
  transition: color 0.3s ease;
}

#hamburger-menu:hover {
  color: #c79a65;
}

/* Force consistent styling across all pages */
body {
  margin-top: 70px; /* Add space for fixed navbar */
  padding: 0;
}

/* Media Query for Mobile Navigation */
@media (max-width: 900px) {
  .navbar {
    padding: 12px 15px;
  }
  
  #hamburger-menu {
    display: block !important; /* Override any inline styles */
  }
  
  .navbar-nav {
    display: flex;
    position: fixed;
    top: 60px;
    right: 0;
    width: 75%;
    height: calc(100vh - 60px);
    background-color: white;
    flex-direction: column;
    padding: 25px 20px;
    z-index: 99;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(100%);
    overflow-y: auto;
    margin: 0;
    border-top-left-radius: 20px;
    gap: 0; /* Reset gap for mobile */
  }
  
  .navbar-nav.active {
    transform: translateX(0);
  }
  
  .navbar-nav a {
    display: block;
    margin: 12px 0;
    padding: 12px 15px;
    font-size: 16px;
    text-align: left;
    border-bottom: 1px solid #f0e6dd;
    transition: all 0.3s ease;
  }
  
  .navbar-nav a:hover {
    background-color: #f9f5f0;
    border-radius: 8px;
  }
  
  .navbar-nav a:last-child {
    border-bottom: none;
  }
  
  .navbar-nav a::after {
    display: none;
  }
}