/* Jet Travel DMC – mobile menu (replaces Elementor's dropdown below 1025px) */

:root {
  --jm-red: #cf223b;
  --jm-ink: #1d2433;
  --jm-muted: #6b7080;
  --jm-line: #e7e2dc;
  --jm-paper: #fbf9f6;
  --jm-ease: cubic-bezier(.22, .61, .36, 1);
}

.jm-toggle,
.jm-panel { display: none; }

@media (max-width: 1024px) {
  /* hide Elementor's own toggle + dropdown */
  .elementor-widget-nav-menu .elementor-menu-toggle,
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container { display: none !important; }

  .jm-toggle,
  .jm-panel { display: block; }

  /* ---------- burger ---------- */
  .jm-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .jm-toggle span {
    position: absolute;
    left: 10px;
    height: 2px;
    background: var(--jm-ink);
    border-radius: 2px;
    transition: transform .35s var(--jm-ease), width .35s var(--jm-ease), top .35s var(--jm-ease);
  }
  .jm-toggle span:nth-child(1) { top: 16px; width: 24px; }
  .jm-toggle span:nth-child(2) { top: 26px; width: 16px; background: var(--jm-red); }
  .jm-toggle:hover span:nth-child(2) { width: 24px; }
  .jm-toggle:focus-visible { outline: 2px solid var(--jm-red); outline-offset: 2px; border-radius: 4px; }

  /* ---------- panel ---------- */
  .jm-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: var(--jm-paper);
    color: var(--jm-ink);
    font-family: "Futura normal", "Futura", "Century Gothic", sans-serif;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .55s var(--jm-ease), visibility 0s linear .55s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .jm-open .jm-panel {
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path .55s var(--jm-ease), visibility 0s;
  }

  .jm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    min-height: 72px;
  }
  .jm-bar img { height: 46px; width: auto; display: block; }

  .jm-close {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--jm-line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, transform .35s var(--jm-ease);
  }
  .jm-close::before,
  .jm-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--jm-ink);
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .jm-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .jm-close,
  .jm-close:hover,
  .jm-close:focus,
  .jm-close:active { background: #fff !important; color: var(--jm-ink) !important; box-shadow: none !important; padding: 0 !important; }
  .jm-toggle,
  .jm-toggle:hover,
  .jm-toggle:focus,
  .jm-toggle:active { background: transparent !important; box-shadow: none !important; }
  .jm-close:hover { border-color: var(--jm-red); transform: rotate(90deg); }
  .jm-close:focus { outline: none; }
  .jm-close:focus-visible { outline: 2px solid var(--jm-red); outline-offset: 2px; }

  /* ---------- links ---------- */
  .jm-nav { padding: 12px 20px 0; flex: 1 0 auto; }
  .jm-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: jm; }
  .jm-nav > ol > li {
    counter-increment: jm;
    border-bottom: 1px solid var(--jm-line);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s var(--jm-ease), transform .4s var(--jm-ease);
  }
  .jm-nav > ol > li:first-child { border-top: 1px solid var(--jm-line); }
  .jm-open .jm-nav > ol > li { opacity: 1; transform: none; }

  .jm-nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 17px 0;
    color: var(--jm-ink);
    text-decoration: none;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.01em;
  }
  .jm-nav > ol > li > a::before {
    content: counter(jm, decimal-leading-zero);
    flex: 0 0 22px;
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--jm-muted);
    transform: translateY(-3px);
  }
  .jm-nav a .jm-label {
    background: linear-gradient(var(--jm-red), var(--jm-red)) 0 100% / 0 1.5px no-repeat;
    transition: background-size .35s var(--jm-ease), color .2s;
  }
  .jm-nav a:hover .jm-label,
  .jm-nav a:focus-visible .jm-label { background-size: 100% 1.5px; }
  .jm-nav a:focus-visible { outline: none; }

  .jm-nav a[aria-current="page"] { color: var(--jm-red); }
  .jm-nav a[aria-current="page"]::before { color: var(--jm-red); }

  /* sub items (e.g. Blog under Why Jet Travel) */
  .jm-nav ul { list-style: none; margin: -6px 0 0; padding: 0 0 16px 38px; }
  .jm-nav ul a {
    padding: 6px 0;
    font-size: 17px;
    color: var(--jm-muted);
  }
  .jm-nav ul a::before {
    content: "";
    width: 12px;
    height: 1px;
    background: currentColor;
    align-self: center;
    flex: 0 0 12px;
  }
  .jm-nav ul a[aria-current="page"] { color: var(--jm-red); }

  /* ---------- footer ---------- */
  .jm-foot {
    padding: 32px 20px calc(28px + env(safe-area-inset-bottom));
    opacity: 0;
    transition: opacity .5s var(--jm-ease) .35s;
  }
  .jm-open .jm-foot { opacity: 1; }

  .jm-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--jm-red);
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: .02em;
    border-radius: 2px;
    transition: background-color .2s;
  }
  .jm-cta:hover { background: #b31b31; }
  .jm-cta svg { width: 18px; height: 18px; transition: transform .3s var(--jm-ease); }
  .jm-cta:hover svg { transform: translateX(4px); }

  .jm-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 26px;
    font-size: 14px;
    line-height: 1.5;
  }
  .jm-contact small {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--jm-muted);
  }
  .jm-contact > div:first-child { grid-column: 1 / -1; }
  .jm-contact a { color: var(--jm-ink); text-decoration: none; overflow-wrap: anywhere; }
  .jm-contact a:hover { color: var(--jm-red); }

  body.jm-lock { overflow: hidden; }
}

@media (max-width: 1024px) and (min-width: 600px) {
  .jm-nav, .jm-foot, .jm-bar { padding-left: 48px; padding-right: 48px; }
  .jm-nav a { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .jm-panel, .jm-nav > ol > li, .jm-foot, .jm-toggle span, .jm-close { transition: none !important; }
}
