/* ============================================================
   Boostyou.ai — shared site navigation
   Loaded after each page's inline styles so it wins ties.
   Markup is generated by tools/stamp_nav.py — edit there, not
   in the individual pages.
   ============================================================ */

.nav {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 70px;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f1f5f9;
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-link img {
  height: 45px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

/* Each item fills the bar height so hover never drops out
   between the pill and the dropdown panel */
.nav-item {
  display: flex;
  align-items: center;
}

.nav-item-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-link {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 6px 15px -10px rgba(0, 0, 0, 0.7);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(59, 130, 246, 0.25);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.6);
}

.nav-link .caret {
  font-size: 0.7em;
  opacity: 0.7;
  transition: transform 0.2s;
}

.has-dropdown:hover .nav-link .caret,
.has-dropdown:focus-within .nav-link .caret {
  transform: rotate(180deg);
}

/* Current section */
.nav-link.active {
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
  color: #fff;
}

/* Promo pills keep their gradients */
.nav-link.new-pill {
  background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 15px 35px -12px rgba(249, 115, 22, 0.75);
}

.nav-link.new-pill:hover,
.nav-link.new-pill:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f472b6 0%, #fb923c 100%);
  color: #fff;
}

.nav-link.camelot-pill {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 15px 35px -12px rgba(139, 92, 246, 0.75);
}

.nav-link.camelot-pill:hover,
.nav-link.camelot-pill:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  color: #fff;
}

/* ------------------------------------------------------------
   Dropdown panels (desktop): full-width panel anchored to the
   nav bar, opened on hover or keyboard focus
   ------------------------------------------------------------ */

.nav-item.has-dropdown {
  position: static;
}

.dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 1001;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.dropdown-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 3rem;
}

.menu-group {
  min-width: 160px;
}

.menu-group-title {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  padding: 0 0.6rem;
}

.menu-group a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  transition: background 0.15s, color 0.15s;
}

.menu-group a:hover,
.menu-group a:focus-visible {
  background: rgba(59, 130, 246, 0.2);
  color: #f1f5f9;
}

.menu-group a[aria-current="page"] {
  color: #3b82f6;
  font-weight: 700;
}

.dropdown-cta {
  text-align: center;
  padding: 0 1.5rem 1.25rem;
}

.dropdown-cta a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.dropdown-cta a:hover {
  text-decoration: underline;
}

/* Mobile submenu toggle button — hidden on desktop */
.submenu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f1f5f9;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  transition: transform 0.2s;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #f1f5f9;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.5rem;
  align-self: center;
}

/* ------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------ */

.breadcrumbs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.breadcrumbs .crumb-sep {
  margin: 0 0.4rem;
  opacity: 0.6;
}

.breadcrumbs .crumb-current {
  color: #cbd5e1;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Mobile: hamburger + accordion submenus
   ------------------------------------------------------------ */

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    z-index: 999;
  }

  #navMenu.mobile-open {
    display: flex !important;
  }

  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item-row .nav-link {
    flex: 1;
    justify-content: center;
  }

  .nav-item > .nav-link {
    width: 100%;
    justify-content: center;
  }

  .nav-link .caret {
    display: none;
  }

  .submenu-toggle {
    display: block;
  }

  .nav-item.open > .nav-item-row .submenu-toggle {
    transform: rotate(180deg);
  }

  .dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.5);
    border: 0;
    border-radius: 0.75rem;
    box-shadow: none;
    margin-top: 0.4rem;
  }

  .nav-item.open > .dropdown {
    display: block;
  }

  /* On mobile, hover/focus must not force panels open */
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
  }

  .has-dropdown:not(.open):hover > .dropdown,
  .has-dropdown:not(.open):focus-within > .dropdown {
    display: none;
  }

  .dropdown-inner {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 1rem 0.75rem;
  }

  .menu-group a {
    padding: 0.5rem 0.75rem;
  }

  .breadcrumbs {
    padding: 0.75rem 1rem 0;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo-link img {
    height: 36px;
  }
}
