/* ===============================
   NAVIGATION STYLES

   Complete navigation system including:
   - Sticky navbar
   - Burger menu button
   - Navigation menu overlay

   Usage: Include this single file for all navigation needs.
================================ */

/* ===============================
   STICKY NAVBAR
================================ */

.sticky-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 1.5rem 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: none;
}

.sticky-navbar.scrolled {
  background: rgba(249, 246, 208, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 1rem 4vw;
}

.sticky-navbar h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-white);
  font-weight: 700;
  margin: 0;
  font-family: "Playfair Display", serif;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 20px rgba(0,0,0,0.3);
}

.sticky-navbar.scrolled h1 {
  color: var(--color-green);
  text-shadow: none;
}

.sticky-navbar .nav-actions {
  position: absolute;
  right: 4vw;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===============================
   BURGER MENU BUTTON
================================ */

.burger-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.3s ease;
}

.burger-menu-btn span {
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.sticky-navbar .burger-menu-btn {
  color: var(--color-white);
}

.sticky-navbar.scrolled .burger-menu-btn {
  color: var(--color-green);
}

.burger-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===============================
   NAVIGATION MENU OVERLAY
================================ */

.nav-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: flex-end;
}

.nav-menu-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

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

.nav-menu-content {
  background: var(--color-yellow);
  width: 100%;
  max-width: 500px;
  height: 100%;
  padding: 4rem 2rem 2rem;
  overflow-y: auto;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  margin-left: auto;
}

@media(min-width: 900px) {
  .nav-menu-content {
    max-width: 400px;
    animation: slideInRight 0.3s ease;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.nav-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-green);
}

.nav-menu-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--color-green);
  margin: 0;
  font-weight: 700;
}

.nav-menu-close {
  background: transparent;
  border: 2px solid var(--color-green);
  color: var(--color-green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.nav-menu-close:hover {
  background: var(--color-green);
  color: var(--color-yellow);
}

/* Navigation menu list - improved structure from om-naturro */
.nav-menu-links,
.nav-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-menu-item {
  margin: 0;
}

.nav-menu-links a,
.nav-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-green);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-menu-links a:hover,
.nav-menu-link:hover {
  background: rgba(0, 64, 14, 0.1);
  border-color: var(--color-green);
  transform: translateX(5px);
}

.nav-menu-link.active {
  background: var(--color-green);
  color: var(--color-yellow);
  font-weight: 600;
}
