/* =================================================================
   GRID · Site-wide floating page navigation (bottom-right pill)
   Single source of truth. Linked from every page that should host
   the site nav (v7/index.html, about, services, portfolio, contact,
   brand-identity). The root v6 cinematic homepage (root/index.html)
   does NOT link this file by design.
   -----------------------------------------------------------------
   This is SITE navigation (between pages). It is intentionally
   separated from the cinematic chapter dots (.chapters rail), which
   handles in-page scroll progress on the cinema-engine pages.

   pass-29 changes:
   - moved from top-right vertical column to bottom-right horizontal
     pill (a compact floating bar in the corner)
   - direction: rtl on the nav itself so items always lay out
     right-to-left regardless of the host page's direction
     (V7 / contact / etc. are RTL anyway, but brand-identity.html
      uses an LTR-ish stylesheet so this guarantees consistency)
   - kept visible on mobile, just smaller padding + font
   ================================================================= */

.v7-sidenav {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  padding: 5px;
  background: rgba(10, 10, 15, 0.62);
  border: 1px solid rgba(245, 247, 248, 0.10);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.60);
  /* Force RTL row order. First item in the DOM (בית) will sit at the
     visual right; last item (צור קשר) at the visual left. */
  direction: rtl;
  pointer-events: auto;
}

.v7-sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 2px;
}
.v7-sidenav li { margin: 0; }

.v7-sidenav a {
  display: block;
  padding: 7px 14px;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 248, 0.62);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  position: relative;
  transition: color 220ms ease, background-color 220ms ease;
}
.v7-sidenav a:hover,
.v7-sidenav a:focus-visible {
  color: #F5F7F8;
  background: rgba(245, 247, 248, 0.06);
  outline: none;
}

/* Active state — quiet brand-blue tint + tiny dot underneath. */
.v7-sidenav a[aria-current] {
  color: #F5F7F8;
  background: rgba(111, 168, 255, 0.14);
}
.v7-sidenav a[aria-current]::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6FA8FF;
  box-shadow: 0 0 8px rgba(111, 168, 255, 0.55);
}

/* Mobile (< 768px): keep the pill visible but shrink it so it stays
   out of the way of CTAs and never wraps onto two lines. */
@media (max-width: 767px) {
  .v7-sidenav {
    bottom: 12px;
    right: 12px;
    padding: 4px;
  }
  .v7-sidenav a {
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
}

/* Reduced motion: skip transitions, nav still works. */
@media (prefers-reduced-motion: reduce) {
  .v7-sidenav a { transition: none; }
}
