/* ============================================================
   navigation.css
   Styles the sticky top navigation bar, the alwaysAI logo,
   navigation links, and the "Speak with an Expert" CTA button.
   ============================================================ */

/* --- Nav bar --- */
nav {
  background: transparent;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

nav.nav--scrolled {
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* --- Logo --- */
.nav-logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  display: block;
}

/* --- Nav links wrapper --- */
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* --- Individual nav link (white text, always visible on navy) --- */
.nav-link {
  background: none;
  border: none;
  color: var(--od);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: background 0.15s;
  opacity: 0.85;
}
.nav-link:hover  { background: rgba(255,255,255,0.12); opacity: 1; }
.nav-link.active { background: rgba(255,255,255,0.14); opacity: 1; }

/* --- CTA button (blue background, white text) --- */
.nav-btn-cta {
  background: var(--blue);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  margin-left: 12px;
  letter-spacing: 0.2px;
  transition: background 0.15s;
}
.nav-btn-cta:hover { background: var(--blue2); }

/* --- About dropdown wrapper --- */
.nav-dropdown {
  position: relative;
}

/* Gap bridge keeps the menu open while the mouse travels down to it */
.nav-dropdown::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--navy2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  min-width: 180px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 300;
}

.nav-dropdown:hover .nav-dropdown-menu { display: flex; }

.nav-dropdown-menu button {
  background: none;
  border: none;
  color: var(--od);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  transition: background 0.15s;
  width: 100%;
}
.nav-dropdown-menu button:hover {
  background: rgba(255,255,255,0.10);
  opacity: 1;
}

/* --- Mobile menu header (logo + close button — hidden on desktop) --- */
.mobile-nav-header { display: none; }

/* --- Hamburger menu button (visible only on mobile) --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Animate spans into an X when open */
.nav-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
