/* [2026-11-27] The marketing pages' shared header (public/partials/site-nav.html,
   behaviour in public/js/siteNav.js). One row at every width: brand left;
   right: "Start free" and the menu button. Every page link lives in the
   menu (product-owner decision 2026-11-29), with log in, language and
   day/night. */

.lp-nav {
  position: relative;
  z-index: 30; /* the open menu lies over the hero */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.lp-nav a.brand {
  display: inline-flex;
  align-items: center;
  color: var(--yubira-ink-olive);
  text-decoration: none;
  flex: none;
}
.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* "Start free" in the header: solid, compact — the gradient stays for the
   big CTAs in the page. */
.lp-nav .lp-btn-nav {
  background: var(--yubira-ink-olive);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease;
}
.lp-nav .lp-btn-nav:hover { background: var(--yubira-olive-hover); color: #fff; opacity: 1; }
/* A phone: brand, "Start free" and the menu button must share ~340px. */
@media (max-width: 480px) {
  .lp-nav { gap: 0.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .lp-nav-right { gap: 0.4rem; }
  .lp-nav .lp-btn-nav { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
  .lp-nav a.brand svg { width: 112px; height: auto; }
  .lp-burger { width: 2.5rem; height: 2.5rem; }
}

/* The menu button: a round pill, three lines that become an ×. */
.lp-burger {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--yubira-border);
  background: var(--bs-body-bg);
  color: var(--yubira-ink-olive);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lp-burger:hover { background: var(--yubira-surface); }
.lp-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* The menu: a frosted card under the header, right-aligned; on a phone it
   spans the width between the page gutters. */
.lp-menu {
  position: absolute;
  top: calc(100% - 0.5rem);
  right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  width: min(340px, calc(100vw - 2rem));
  padding: 0.9rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--yubira-border) 70%, transparent);
  background: color-mix(in srgb, var(--bs-body-bg) 82%, transparent);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 18px 50px rgba(20, 18, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: lp-menu-in 0.18s ease-out;
}
.lp-menu[hidden] { display: none; }
[data-bs-theme="dark"] .lp-menu {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@keyframes lp-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-menu { animation: none; }
  .lp-burger span { transition: none; }
}
@media (max-width: 767.98px) {
  .lp-menu { left: 1.5rem; right: 1.5rem; width: auto; }
}

.lp-menu-group {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0;
}
.lp-menu-group + .lp-menu-group { border-top: 1px solid var(--yubira-border); }
.lp-menu-link {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--yubira-ink-olive);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 14px;
  transition: background 0.15s ease;
}
.lp-menu-link:hover { background: var(--yubira-surface); color: var(--yubira-ink-olive); }
.lp-menu-link[aria-current="page"] { color: var(--yubira-clay); }
.lp-menu-link-sm { font-family: inherit; font-size: 1rem; }

.lp-menu-settings {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.4rem 0.3rem;
}
.lp-menu-langs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--yubira-border);
}
.lp-menu-langs button {
  border: 0;
  background: transparent;
  color: var(--yubira-olive);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}
.lp-menu-langs button:hover { color: var(--yubira-ink-olive); }
.lp-menu-langs button[aria-pressed="true"] { background: var(--yubira-ink-olive); color: #fff; }
.lp-menu-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--yubira-border);
  background: transparent;
  color: var(--yubira-ink-olive);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}
.lp-menu-theme:hover { background: var(--yubira-surface); }
.lp-menu-theme .icon-dark { display: none; }
[data-bs-theme="dark"] .lp-menu-theme .icon-light { display: none; }
[data-bs-theme="dark"] .lp-menu-theme .icon-dark { display: inline; }
