/* ============================================================
   Lightfunnels Navbar — responsive layer (additive)
   navbar.css is the untouched import; everything mobile lives here.
   < 1024px: pill = logo + Get started + burger; a dropdown panel
   replaces the mega menus (built by navbar.responsive.js from the
   same links, so there's one source of truth).
   ============================================================ */

/* disabled links (no destination on lightfunnels.com yet) */
.lf-header .is-disabled,
.lf-mobile .is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* tighter pill (overrides navbar.css without touching the import) */
.lf-navbar { padding: 9px 10px 9px 20px; gap: 20px; }

/* burger — hidden on desktop */
.lf-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease;
}
.lf-burger:hover { background: rgba(255, 255, 255, 0.16); }
.lf-burger:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.lf-burger__icon {
  position: relative;
  width: 16px;
  height: 12px;
  display: block;
}
.lf-burger__icon::before,
.lf-burger__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.22s ease, top 0.22s ease, bottom 0.22s ease;
}
.lf-burger__icon::before { top: 0; }
.lf-burger__icon::after  { bottom: 0; }
.lf-burger[aria-expanded="true"] .lf-burger__icon::before { top: 5px; transform: rotate(45deg); }
.lf-burger[aria-expanded="true"] .lf-burger__icon::after  { bottom: 5px; transform: rotate(-45deg); }

/* mobile panel */
.lf-mobile {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 8px;
  border: 1px solid var(--menu-border);
  border-radius: 22px;
  background: var(--neutral-1000);
  box-shadow: var(--shadow-float);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.lf-mobile[hidden] { display: none; }
.lf-mobile.is-visible { opacity: 1; transform: translateY(0); }

.lf-mobile__link,
.lf-mobile__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s ease;
}
.lf-mobile__summary::-webkit-details-marker { display: none; }
.lf-mobile__link:hover,
.lf-mobile__summary:hover { background: rgba(255, 255, 255, 0.06); }

.lf-mobile__chevron {
  width: 10px;
  height: 10px;
  display: block;
  transition: transform 0.22s ease;
}
.lf-mobile__group[open] > .lf-mobile__summary { background: rgba(255, 255, 255, 0.06); }
.lf-mobile__group[open] > .lf-mobile__summary .lf-mobile__chevron { transform: rotate(180deg); }

.lf-mobile__sub {
  display: grid;
  gap: 2px;
  padding: 6px 6px 10px;
}
.lf-mobile__sublabel {
  padding: 10px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--neutral-400);
}
.lf-mobile__sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 22px;
  color: var(--neutral-300);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lf-mobile__sub a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lf-mobile__sub img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: block;
}

.lf-mobile__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 6px 6px;
  border-top: 1px solid var(--menu-hairline);
  margin-top: 6px;
}
.lf-mobile__actions .lf-btn { width: 100%; }

/* ---------- breakpoint ---------- */
@media (max-width: 1023px) {
  .lf-header {
    inset: 12px 0 auto;
    width: calc(100% - 24px);
  }
  .lf-navbar {
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 999px;
  }
  .lf-nav-links { display: none; }
  .lf-menu { display: none !important; }       /* mega menus are desktop-only */
  .lf-actions { margin-left: auto; gap: 8px; }
  .lf-actions .lf-btn--ghost { display: none; } /* Log In moves into the panel */
  .lf-btn--primary { padding: 10px 18px; font-size: 14px; line-height: 22px; }
  .lf-burger { display: inline-flex; }
}
@media (max-width: 400px) {
  .lf-navbar { padding-left: 14px; }
  .lf-btn--primary { padding: 9px 14px; font-size: 13px; }
}
@media (min-width: 1024px) {
  .lf-mobile { display: none !important; }
}
