/*
 * First Lion Design System 1.1.1 — Homepage mobile navigation correction.
 * Scope: imported Elementor homepage marked .flh-page, max 767px only.
 * This file deliberately does NOT set display, opacity, visibility, transform,
 * z-index or pointer-events on the overlay: those belong to Homepage Experience.
 * No form, button action or JS logic is changed here.
 */
@media (max-width: 767px) {
  .flh-page .flh-nav-overlay {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: clamp(110px, 19svh, 150px) 24px 92px !important;
  }

  /* Elementor can apply desktop column widths/positions. Reset only inside menu. */
  .flh-page .flh-nav-overlay .flh-nav-copy {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-eyebrow {
    position: static !important;
    margin: 0 0 15px !important;
    max-width: 100% !important;
  }
  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-eyebrow .elementor-heading-title {
    font-size: clamp(10px, 2.9vw, 12px) !important;
    letter-spacing: .19em !important;
    line-height: 1.5 !important;
  }

  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-nav-item {
    position: static !important;
    inset: auto !important;
    box-sizing: border-box !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    text-align: left !important;
    transform: none !important;
  }
  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-nav-item .elementor-heading-title,
  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-nav-item .elementor-heading-title a {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(35px, 9.2vw, 47px) !important;
    font-weight: 400 !important;
    line-height: 1.06 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  /* CTAs follow navigation links, never float alongside them. */
  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-nav-cta {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    display: block !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
    order: 20 !important;
  }
  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-nav-cta .elementor-button {
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    letter-spacing: .095em !important;
  }
  .flh-page .flh-nav-overlay .flh-nav-visual {
    display: none !important;
  }
}

@media (max-width: 359px) {
  .flh-page .flh-nav-overlay { padding-left: 18px !important; padding-right: 18px !important; }
  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-nav-item .elementor-heading-title,
  .flh-page .flh-nav-overlay .flh-nav-copy > .flh-nav-item .elementor-heading-title a {
    font-size: 34px !important;
  }
}
