/* ===========================================
   Hamburger / Responsive Navigation
   Desktop >= 1240px | Mobile < 1240px
   Brand gold: #d3b369
   =========================================== */

/* ---- Hamburger Toggle Button ---- */
.hamburger-btn {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid rgba(211, 179, 105, 0.55);
  border-radius: 6px;
  cursor: pointer;
  padding: 9px;
  z-index: 1002;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hamburger-btn:hover {
  border-color: #d3b369;
  background: rgba(211, 179, 105, 0.1);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #d3b369;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  transform-origin: center;
}

/* Animated X when open */
.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Mobile Navigation Overlay ---- */
.mobile-nav-overlay {
  display: none;
  /* shown via JS is-open + media query */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgb(255 255 255);
  z-index: 999999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Close Button */
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(211, 179, 105, 0.4);
  border-radius: 50%;
  cursor: pointer;
  color: #d3b369;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(211, 179, 105, 0.15);
  border-color: #d3b369;
}

/* Inner wrapper: center content */
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 70px 30px 40px;
  box-sizing: border-box;
}

/* Logo inside mobile nav */
.mobile-nav-logo {
  margin-bottom: 36px;
}

.mobile-nav-logo img {
  max-height: 55px;
  width: auto;
}

/* Nav list */
.mobile-nav-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(211, 179, 105, 0.18);
}

.mobile-nav-links li:first-child {
  border-top: 1px solid rgba(211, 179, 105, 0.18);
}

.mobile-nav-overlay.is-open .mobile-nav-close {
  border-color: #d2b165;
  color: #d2b165 !important;
}

.mobile-nav-links li a {
  display: block;
  padding: 16px 20px;
  color: #3b3b3b !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: color 0.25s ease, padding-left 0.25s ease, letter-spacing 0.25s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li.current-page-item>a {
  color: #d3b369 !important;
  padding-left: 30px;
  letter-spacing: 3px;
}

/* Copyright in mobile menu */
.mobile-nav-copy {
  margin-top: 36px;
  color: #d2b165;
  font-size: 12px;
  text-align: center;
  letter-spacing: 1px;
}

/* =========================================
   DESKTOP (>= 1240px): Normal horizontal nav
   ========================================= */
@media only screen and (min-width: 1240px) {
  .hamburger-btn {
    display: none !important;
  }

  .mobile-nav-overlay {
    display: none !important;
  }

  #Top_bar .menu_wrapper {
    display: block !important;
  }
}

/* =========================================
   MOBILE / TABLET (< 1240px): Hamburger
   ========================================= */
@media only screen and (max-width: 1239px) {

  /* Kill fixed min-width */
  body {
    min-width: 0 !important;
    overflow-x: hidden;
  }

  #Wrapper {
    overflow-x: hidden;
  }

  /* Hide desktop horizontal menu */
  #Top_bar .menu_wrapper {
    display: none !important;
  }

  /* Hide right-side bar (search, cart, WPML) */
  #Top_bar .top_bar_right {
    display: none !important;
  }

  /* Full-width top bar */
  #Top_bar .top_bar_left {
    width: 100% !important;
    position: relative;
  }

  /* Keep top bar white & visible */
  #Top_bar {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  #Top_bar.is-sticky {
    background: rgba(255, 255, 255, 0.99) !important;
  }

  /* Show hamburger */
  .hamburger-btn {
    display: flex !important;
  }

  /* Make overlay show when class is added */
  .mobile-nav-overlay {
    display: block;
  }

  /* Logo spacing on mobile */
  #Top_bar .logo {
    margin: 0 55px 0 15px;
  }

  #Top_bar #logo {
    height: 60px;
    line-height: 60px;
    padding: 10px 0;
  }

  #Top_bar #logo img {
    max-height: 40px;
  }
}

/* Extra small screens */
@media only screen and (max-width: 600px) {
  .mobile-nav-links li a {
    font-size: 13px;
    padding: 14px 20px;
    letter-spacing: 2px;
  }

  .mobile-nav-logo img {
    max-height: 44px;
  }
}