/**
 * Mobile Menu CSS - Standalone file for all pages
 * Contains only the mobile menu styles without page-specific imports
 */

/* CSS Variables */
:root {
  --color-gold: #DECE8D;
  --color-gold-dark: #C4A855;
  --color-black: #333333;
  --color-white: #FFFFFF;
  --color-gray-light: #F5F5F5;
  --color-gray: #CCCCCC;
  --z-overlay: 300;
  --z-modal: 400;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.mobile-menu-overlay.is-active {
  display: block;
  opacity: 1;
}

/* Mobile menu drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background-color: #ffffff;
  background-image: url(../photos/backgrounds/navigation_bar_background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.is-open {
  transform: translateX(0);
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 2px solid #DECE8D;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  max-width: 180px;
  flex: 1;
  outline: none !important;
  border: none !important;
}

.mobile-menu-logo img {
  max-height: 50px;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  outline: none !important;
  border: none !important;
}

.mobile-menu-logo:focus,
.mobile-menu-logo:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #333333;
  border: 2px solid #DECE8D;
  border-radius: 4px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #DECE8D;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  font-weight: 700;
}

.mobile-menu-close:hover {
  background: #DECE8D;
  color: #333333;
  border-color: #333333;
}

.mobile-menu-close:focus-visible {
  outline: 2px solid #DECE8D;
  outline-offset: 2px;
}

/* Mobile menu navigation */
.mobile-menu-nav {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.mobile-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-nav li {
  margin: 0;
  padding: 0;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #333333;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  min-height: 44px;
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
  border-left: 3px solid transparent;
  background-color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
  background-color: rgba(222, 206, 141, 0.3);
  color: #333333;
  border-left-color: #DECE8D;
  transform: translateX(4px);
}

.mobile-menu-nav a:focus-visible {
  outline: 2px solid #DECE8D;
  outline-offset: 2px;
}

/* Touch-friendly improvements */
.mobile-menu-nav a:active {
  background-color: rgba(222, 206, 141, 0.5);
  border-left-color: #333333;
}

/* Mobile menu button (hamburger) */
.mobile-menu-button {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1001;
  background: #333333;
  padding: 10px;
  border: 2px solid #DECE8D;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-button span {
  background-color: #DECE8D !important;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-button:hover {
  background: #DECE8D;
  border-color: #333333;
}

.mobile-menu-button:hover span {
  background-color: #333333 !important;
}

.mobile-menu-button:active {
  background: #C4A855;
  border-color: #333333;
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Show hamburger button on mobile/tablet */
@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex !important;
  }
}

/* Desktop: Hide mobile menu */
@media (min-width: 769px) {
  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: none !important;
  }
  
  .mobile-menu-button {
    display: none !important;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
