/* ==========================================================
   Slide-in menu — overlay + panel
   Drop into your project and link it after your base styles.
   Adjust colors/fonts/spacing to match your site.
   ========================================================== */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  z-index:400000;
}
.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(2px);
}

.menu-panel {
  position: fixed;
  top: 0;
  left: 0; /* anchors the panel to the right edge for RTL */
  height: 100%;
  width: min(420px, 92vw);
  background: #faf8f4;
  border-left: 2px solid #b5432e;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  z-index: 500000;
}
.menu-panel.is-open {
  transform: translateX(0);
}

.menu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}
.menu-panel-header .logo{width: 190px;}
.menu-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8a7f74;
}
.menu-close-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #1a1614;
  transition: transform 0.3s ease;
  display: flex;
}
.menu-close-btn:hover {
  transform: rotate(90deg);
}
.menu-close-btn svg {
  width: 40px;
  height: 40px;
}
.menu-close-btn svg * {
  color: #1A1A1A;
}

.menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
}
.menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* transition-delay for the stagger is set from JS (see menu.js) */
.menu-nav-item {
  border-bottom: 1px solid rgba(26, 22, 20, 0.1);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-panel.is-open .menu-nav-item {
  opacity: 1;
  transform: translateY(0);
}
.menu-nav:hover .menu-nav-link { opacity: .35; }
.menu-nav:hover .menu-nav-link:hover { opacity: 1;background-color: transparent; }
.menu-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 22px;
  color: #1a1614;
  text-decoration: none;
}
.hero-content {
  transition: transform .5s cubic-bezier(.16,1,.3,1), filter .5s ease;
}
 .hero-content.is-pushed {
    transform: scale(0.96);
    filter: blur(2px) brightness(0.65);
  }
.menu-nav-link *{font-size: 25px;}
.menu-nav-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
  color: #b5432e;
  display: flex;
}
.menu-nav-arrow svg {
  width: 25px;
  height: 25px;
  transform: rotate(180deg);
}
.menu-nav-link:hover .menu-nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

.menu-footer {
  padding: 0 28px 32px;
  font-size: 12px;
  color: #8a7f74 !important;
  line-height: 1.8;
}
.menu-footer *{
   color: #8a7f74 !important;
}
@media (max-width: 480px) {
  .menu-nav-link {
    font-size: 19px;
  }
}

/* optional: push/blur the page content behind the menu.
   add class="is-pushed" toggling to your page wrapper if you want this. */
.page-content {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.page-content.is-pushed {
  transform: scale(0.96);
  filter: blur(2px) brightness(0.65);
}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay,
  .menu-panel,
  .menu-nav-item,
  .menu-nav-arrow,
  .menu-close-btn,
  .page-content {
    transition-duration: 0.01ms !important;
  }
}
