/* =========================================
   SMARTSEARCH AI — Navigation & Footer
   ========================================= */

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6%;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s, background 0.2s;
  position: relative;
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
}

.nav-links a.active:hover {
  background: rgba(10, 146, 255, 0.24) !important;
}

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  transition: background 0.2s, transform 0.15s !important;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--blue-mid) !important;
  transform: scale(1.02);
}

.nav-cta.active::after {
  display: none !important;
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 6%;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-default);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.footer-logo svg {
  width: 28px;
  height: 28px;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-nav a.active {
  color: var(--white);
  font-weight: 600;
}

.footer-nav a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  background: var(--blue);
  border-radius: 999px;
}

.footer-nav a.active {
  color: var(--white);
  font-weight: 600;
}

.footer-nav a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  background: var(--blue);
  border-radius: 999px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-badge svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    padding: 1rem 5%;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-default);
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
