/* ============================================
   Mobile Menu Overlay
   Shared across all pages
   ============================================ */

/* Hidden on desktop */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(51, 51, 51, 0.6);
    backdrop-filter: blur(5.5px);
    -webkit-backdrop-filter: blur(5.5px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* --- Panel --- */
  .mobile-menu__panel {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #f5f5f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-10px);
    opacity: 0;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateY(0);
    opacity: 1;
    overflow: hidden;
  }

  /* --- Header inside panel --- */
  .mobile-menu__header {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    padding: 12px 20px 0 !important;
    flex-shrink: 0;
  }

  .mobile-menu__logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 20px;
  }

  .mobile-menu__logo-icon {
    height: 20px;
    width: auto;
  }

  .mobile-menu__logo-text {
    height: 15px;
    width: auto;
    margin-top: 2px;
  }

  .mobile-menu__bar {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    max-height: 67px;
    margin-right: 20px;
    padding: 20px 20px 20px 10px !important;
    background: #1c1c1c;
  }

  .mobile-menu__lang {
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #d0d0d0;
    white-space: nowrap;
  }

  .mobile-menu__close {
    width: 72px;
    height: 20px;
    border: none;
    border-top: 2px solid #d0d0d0;
    border-bottom: 2px solid #d0d0d0;
    background: none;
    cursor: pointer;
    padding: 0 !important;
    position: relative;
  }

  /* --- Nav links --- */
  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 24px !important;
    border-bottom: 0.3px solid #d0d0d0;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
    font-weight: 500;
    font-size: 36px;
    line-height: 1;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
  }

  .mobile-menu__link:hover,
  .mobile-menu__link:active {
    color: #003057;
  }

  /* --- Footer --- */
  .mobile-menu__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 16px 12px 32px !important;
    flex-shrink: 0;
  }

  .mobile-menu__footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19px;
  }

  .mobile-menu__footer-row:last-child {
    gap: 12px;
  }

  .mobile-menu__footer-text,
  .mobile-menu__footer-link {
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #003057;
    white-space: nowrap;
  }

  .mobile-menu__footer-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
  }

  .mobile-menu__footer-link:hover {
    opacity: 0.7;
  }

  /* ============================================
     Dark variant (for dark-background pages)
     Usage: add class "mobile-menu--dark" to .mobile-menu
     ============================================ */
  .mobile-menu--dark .mobile-menu__panel {
    background: #1c1c1c;
  }

  .mobile-menu--dark .mobile-menu__bar {
    background: #fafafc;
  }

  .mobile-menu--dark .mobile-menu__lang {
    color: #1c1c1c;
  }

  .mobile-menu--dark .mobile-menu__close {
    border-top-color: #1c1c1c;
    border-bottom-color: #1c1c1c;
  }

  .mobile-menu--dark .mobile-menu__footer-text,
  .mobile-menu--dark .mobile-menu__footer-link {
    color: #fff;
  }

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