/* ═══════════════════════════════════════════════════════════════
   IGO LOANS — PREMIUM NAVIGATION v2.0
   ═══════════════════════════════════════════════════════════════ */

/* ── NAVBAR BASE ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height, 90px);
  z-index: 3000;
  background: rgba(7, 25, 22, 0.24);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar.scrolled {
  height: var(--nav-height-scrolled, 72px);
  background: rgba(7, 25, 22, 0.96);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ── NAVBAR CONTAINER ────────────────────────────────────────── */
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ── LOGO ────────────────────────────────────────────────────── */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img-box {
  background: rgba(251, 191, 36, 0.1);
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.logo-img-box:hover {
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.32);
}

.logo-img-box img {
  height: 46px;
  border-radius: 8px;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.3px;
  transition: color 0.3s;
}

.logo-text .tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  transition: color 0.3s;
}

/* When scrolled — preserve high contrast */
.navbar.scrolled .logo-text .brand { color: #fff; }
.navbar.scrolled .logo-text .tagline { color: var(--gold); }
[data-theme="dark"] .navbar.scrolled .logo-text .brand { color: #f1f5f9; }

/* ── NAV LINKS ───────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(251, 191, 36, 0.15);
}

/* ── NAV LINKS ───────────────────────────────────────────────── */
.nav-links a.active {
  color: #fff !important;
  background: rgba(251, 191, 36, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

/* When scrolled */
.navbar.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.92);
}

.navbar.scrolled .nav-links a:hover {
  color: #fff;
  background: rgba(251, 191, 36, 0.16);
}

.navbar.scrolled .nav-links a.active {
  color: #fff;
  background: rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .navbar.scrolled .nav-links a { color: #94a3b8; }
[data-theme="dark"] .navbar.scrolled .nav-links a:hover { color: #f1f5f9; }

/* ── NAV CTA GROUP ───────────────────────────────────────────── */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* CTA Button */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.nav-btn-primary {
  background: linear-gradient(135deg, var(--primary), #34d399);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.28);
}

.nav-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.4);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.navbar.scrolled .theme-toggle {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.navbar.scrolled .theme-toggle:hover {
  background: rgba(251, 191, 36, 0.16);
  color: #fff;
  border-color: rgba(251, 191, 36, 0.28);
}

[data-theme="dark"] .navbar.scrolled .theme-toggle {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s;
}

.navbar.scrolled .mobile-toggle {
  color: #475569;
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}

.mobile-toggle:hover { background: rgba(5, 150, 105, 0.12); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .navbar-container { padding: 0 24px; }
  .nav-cta-group .nav-btn-primary { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 2999;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(15, 23, 42, 0.97);
    border-bottom-color: rgba(255,255,255,0.06);
  }

  .navbar.scrolled .nav-links {
    top: 72px;
  }

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

  .nav-links a {
    width: 100%;
    color: #475569 !important;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(5, 150, 105, 0.08) !important;
    color: #059669 !important;
  }

  /* Mobile CTA at bottom of menu */
  .nav-links::after {
    content: 'Apply for a Loan →';
    display: block;
    margin-top: 12px;
    padding: 15px 18px;
    background: #059669;
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
  }

  .mobile-toggle { display: flex; }
}

@media (max-width: 640px) {
  .logo-text { display: none; }
  .navbar-container { padding: 0 16px; }
}

/* ── SCROLL-REVEAL UTILITIES ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Noise texture inherited from style.css */

/* ── LIFECYCLE / ROADMAP CARD HOVERS ─────────────────────────── */
.lifecycle-card { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lifecycle-card:hover { transform: translateY(-14px); }
.lifecycle-link i { transition: transform 0.3s; }
.lifecycle-link:hover i { transform: translateX(5px); }

/* ── GLASS UTILITY ───────────────────────────────────────────── */
.glass-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

[data-theme="dark"] .glass-box {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.06);
}
