/* ══════════════════════════════════════════════════════════════════
   GITAM COMPONENT: Quick Navigation Floating Dock
   ══════════════════════════════════════════════════════════════════ */

#gitam_quick_nav {
  position: relative;
  z-index: 200;
}

#page-nav {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  padding: 8px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  width: 94vw;
  max-width: var(--container-max);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    bottom 0.35s ease;
}

#page-nav.pnav-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#page-nav.pnav-card-active {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(8px) !important;
}

/* Lifts the dock clear of the footer's copyright bar once scrolled into it */
#page-nav.pnav-footer-active {
  bottom: 70px !important;
}

/* Quick Nav label — compass icon + "Quick nav" text */
.pnav-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 0 12px 0 10px;
  margin-right: 4px;
  align-self: stretch;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-body);
  font-size: var(--fs-11);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--g);
  white-space: nowrap;
}

.pnav-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Scrollable section pills area */
.pnav-pills {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.pnav-pills::-webkit-scrollbar {
  display: none;
}

/* Divider between pills and CTA */
.pnav-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin: 4px 8px;
  align-self: stretch;
}

.pnav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--fs-13-5);
  font-weight: var(--fw-medium);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}

.pnav-btn:hover {
  background: rgba(var(--g-rgb), 0.09);
  color: var(--g);
}

.pnav-btn.active {
  background: var(--g);
  color: var(--white);
  font-weight: var(--fw-semibold);
  box-shadow: 0 2px 10px rgba(var(--g-rgb), 0.3);
}

.pnav-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-circle);
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
}

.pnav-btn.active .pnav-dot {
  opacity: 1;
}

/* CTA inside the dock */
.pnav-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--g);
  font-family: var(--font-body);
  font-size: var(--fs-13-5);
  font-weight: var(--fw-bold);
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.2px;
  box-shadow: 0 3px 12px rgba(var(--g-rgb), 0.35);
  transition:
    background 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
  text-decoration: none;
}

.pnav-apply:hover {
  background: var(--gd);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(var(--g-rgb), 0.4);
  color: var(--white);
}

.pnav-apply svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Call button inside dock */
.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 10px;
  text-decoration: none;
}

.nav-call span {
  font-size: var(--fs-13-5);
  color: var(--muted);
}

.call-cfab-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cfab-action-call {
  background: var(--g);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(var(--g-rgb), 0.4);
}

.call-cfab-action-btn svg {
  width: 17px;
  height: 17px;
}

/* Desktop right spacing clearance */
@media (min-width: 1025px) {
  #page-nav {
    left: 16px;
    right: 260px;
    width: auto;
    max-width: none;
    transform: translateY(8px);
  }

  #page-nav.pnav-visible {
    transform: translateY(0);
  }

  #page-nav.pnav-card-active {
    transform: translateY(8px) !important;
  }
}

/* Hide desktop pill once mobile bottom nav takes over */
@media (max-width: 1024px) {
  #page-nav {
    display: none !important;
  }
}
