/* Mobile menu: a hamburger button and drop-down panel, shared by every page.
   The panel is built by mobile-menu.js from each page's existing .nav-links,
   so the menu links only ever need editing in one place per page. */

.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  nav .nav-links { display: none !important; }

  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; padding: 12px;
    background: transparent; border: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle span {
    display: block; width: 24px; height: 2px; background: #F7EDD8;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 2px solid #D4761E; outline-offset: 2px; }

  .mobile-menu {
    display: block; position: fixed; left: 0; right: 0; z-index: 1000;
    background: #2A1508; border-bottom: 2px solid #C4581A;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.3s ease, visibility 0s linear 0.3s;
  }
  .mobile-menu.open {
    max-height: calc(100vh - 80px); overflow-y: auto; visibility: visible;
    transition: max-height 0.3s ease, visibility 0s;
  }
  .mobile-menu ul { list-style: none; margin: 0; padding: 8px 0 16px; }
  .mobile-menu a {
    display: block; padding: 16px 24px;
    font-family: "Cinzel", serif; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
    color: #E8D4A8; text-decoration: none;
    border-top: 1px solid rgba(196, 88, 26, 0.18);
  }
  .mobile-menu li:first-child a { border-top: none; }
  .mobile-menu a.active, .mobile-menu a:hover, .mobile-menu a:focus { color: #D4761E; }
}
