/* =========================================================
   FALOM AI: phone menu (js/menu.js). A dark glass panel slides in from the right, the page behind
   dims and blurs, the links come in one after another, and "Request a demo" sits at the bottom.
   To go back to the simple list: remove the css/menu.css and js/menu.js lines from each page.
   ========================================================= */
.mnav, .mnav-scrim { display: none; }
@media (max-width: 640px) {
  /* The ☰ becomes two lines that turn into an ✕ */
  .menu-btn.mnav-btn {
    position: relative; z-index: 320; width: 40px; height: 40px; margin-right: -8px; font-size: 0; border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
  }
  .mnav-btn i { position: absolute; left: 11px; right: 11px; height: 1.8px; border-radius: 2px; background: currentColor;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), top 0.45s cubic-bezier(0.65, 0, 0.35, 1), background 0.3s; }
  .mnav-btn i:nth-child(1) { top: 15px; }
  .mnav-btn i:nth-child(2) { top: 23px; }
  .mnav-open .mnav-btn { color: #fff; }
  .mnav-open .mnav-btn i:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .mnav-open .mnav-btn i:nth-child(2) { top: 19px; transform: rotate(-45deg); }
  /* the old drop-down list is replaced */
  .nav-links, .nav-links.open { display: none !important; }

  /* The page behind dims and blurs */
  .mnav-scrim {
    display: block; position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  }
  .mnav-open .mnav-scrim { opacity: 1; visibility: visible; transition: opacity 0.5s ease; }

  /* The panel */
  .mnav {
    display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; z-index: 310;
    width: min(86vw, 380px); padding: calc(var(--nav-h, 52px) + 28px) 28px calc(28px + env(safe-area-inset-bottom));
    color: #fff; overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(ellipse 90% 40% at 100% 0%, rgba(var(--mnav-rgb, 30, 107, 255), 0.22), transparent 70%),
      radial-gradient(ellipse 80% 40% at 0% 100%, rgba(155, 92, 246, 0.14), transparent 70%),
      rgba(8, 9, 14, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    border-left: 1px solid rgba(255, 255, 255, 0.08); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
    transform: translateX(104%); visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.6s;
    will-change: transform;
  }
  .mnav-open .mnav { transform: none; visibility: visible; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .mnav.is-dragging { transition: none; }
  body.mnav-lock { overflow: hidden; }

  .mnav-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 14px; }
  .mnav-label::before { content: ""; width: 9px; height: 9px; background: rgb(var(--mnav-rgb, 30, 107, 255)); }
  .mnav-links { display: flex; flex-direction: column; }
  .mnav-links a {
    display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.9);
    -webkit-tap-highlight-color: transparent;
    opacity: 0; transform: translateX(24px);
    transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s;
  }
  .mnav-links a::after { content: "→"; margin-left: auto; font-size: 18px; font-weight: 400; opacity: 0.35; transition: transform 0.3s, opacity 0.3s; }
  .mnav-links a:active { color: #fff; }
  .mnav-links a:active::after { opacity: 1; transform: translateX(4px); }
  .mnav-links img { width: 30px; height: 30px; flex: none; }
  .mnav-open .mnav-links a { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i) * 0.05s); }

  .mnav-foot { margin-top: auto; padding-top: 32px; opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .mnav-open .mnav-foot { opacity: 1; transform: none; transition-delay: 0.38s; }
  .mnav-cta {
    display: flex; justify-content: center; align-items: center; gap: 8px; padding: 15px 20px; border-radius: 999px;
    font-size: 16px; font-weight: 600; color: #fff; background: linear-gradient(110deg, #19e3ff 0%, #1e6bff 50%, #9b5cf6 100%);
    box-shadow: 0 14px 40px rgba(30, 107, 255, 0.3);
  }
  .theme-restaulix .mnav-cta { background: linear-gradient(135deg, #ffe066, #ffc21a 55%, #e0a000); color: #1a1200; }
  .theme-legalix .mnav-cta { background: linear-gradient(135deg, #ffc21a, #ff7a00 55%, #e04800); }
  .theme-relix .mnav-cta { background: linear-gradient(135deg, #a58bff, #5b3df0); }
  .mnav-mail { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }
}
.theme-relix { --mnav-rgb: 124, 92, 255; }
.theme-legalix { --mnav-rgb: 255, 122, 0; }
.theme-restaulix { --mnav-rgb: 255, 194, 26; }
@media (prefers-reduced-motion: reduce) {
  .mnav, .mnav-links a, .mnav-foot, .mnav-scrim, .mnav-btn i { transition: none !important; }
}
@media (max-width: 640px) {
  /* the top bar (with the ✕) stays above the panel while it is open, in its dark style */
  .mnav-open .nav { z-index: 330; background: rgba(8, 9, 14, 0.6); color: #fff; border-bottom-color: rgba(255, 255, 255, 0.08); }
  .mnav-open .nav .logo span { color: rgba(255, 255, 255, 0.5); }
}
.mnav a:focus { outline: none; }
.mnav a:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 4px; border-radius: 8px; }

/* Phones: the EN | FR switch sits on the right, just before the ☰ */
@media (max-width: 640px) {
  .nav-actions { margin-left: auto; margin-right: 10px; }
}
/* Phones: a slightly more compact FALOM logo in the top bar, so it stays clear of the middle of the screen */
@media (max-width: 640px) {
  .nav-inner { padding-left: 18px; }
  .nav-inner .logo { font-size: 13px; letter-spacing: 0.1em; }
  .nav-inner .logo .logo-mark { width: 20px; height: 20px; }
  .nav-inner .logo span { margin-left: 4px; font-size: 10px; }
}
