/* ============================================================
   menu-unified.css — Emovere Agency
   Single source of truth for the mobile menu styles.
   Loaded by all pages in all languages (ES, EN, CA).
   ============================================================ */
@media (max-width: 1024px) {
  /* ── Mobile menu container ── */
  .mobile-menu {
    padding: 24px 32px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  /* ── Mobile nav (links container) ── */
  .mobile-nav {
    flex: 1 !important;
    justify-content: center !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* ── Theme toggle: icon-only ── */
  .theme-toggle {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }
  .theme-toggle::before,
  .theme-toggle::after {
    display: none !important;
  }
  .theme-toggle-text {
    display: none !important;
  }
  .theme-toggle-icon {
    position: static !important;
    opacity: 1 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  :root[data-theme="dark"] .theme-toggle .sun,
  .dark .theme-toggle .sun {
    display: inline !important;
  }
  :root[data-theme="dark"] .theme-toggle .moon,
  .dark .theme-toggle .moon {
    display: none !important;
  }
  :root[data-theme="light"] .theme-toggle .moon,
  :root:not([data-theme="dark"]) .theme-toggle .moon {
    display: inline !important;
  }
  :root[data-theme="light"] .theme-toggle .sun,
  :root:not([data-theme="dark"]) .theme-toggle .sun {
    display: none !important;
  }

  /* ── Theme toggle wrapper: always visible in mobile nav ── */
  .theme-toggle-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  /* ── Nav links: base ── */
  .mobile-nav-link {
    font-size: clamp(22px, 7vw, 34px) !important;
    padding: 6px 0 !important;
    border-bottom: none !important;
    text-decoration: none !important;
    outline: none !important;
    transition: color 0s !important;
    transition-delay: 0s !important;
  }
  /* ── Active / hover: accent color + accent underline ── */
  .mobile-nav-link.active,
  .mobile-nav-link[aria-current="page"],
  .mobile-nav-link:hover,
  .mobile-menu.open .mobile-nav-link.active,
  .mobile-menu.open .mobile-nav-link[aria-current="page"] {
    color: var(--accent) !important;
    border-bottom: 1px solid var(--accent) !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: color 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  /* Keep last-child borderless even when active */
  .mobile-nav-link:last-child,
  .mobile-nav-link:last-child.active,
  .mobile-nav-link:last-child[aria-current="page"],
  .mobile-nav-link:last-child:hover {
    border-bottom: none !important;
  }
  /* ── CTA button ── */
  .mobile-menu-cta {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    flex-shrink: 0 !important;
  }
}
@media (max-width: 375px) {
  .mobile-nav-link {
    font-size: clamp(22px, 7vw, 34px) !important;
    padding: 6px 0 !important;
    border-bottom: none !important;
  }
}
