/* ========================================
   VERTEXINSIGHT360 — Navigation
   ======================================== */

/* ---- Top Bar ---- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 8px 0;
  font-size: .8rem;
  text-align: center;
}
.topbar a { color: var(--sage-light); text-decoration: underline; }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(250,249,246,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--paper-3);
  height: var(--nav-h);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-xl);
}

.navbar-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
}
.navbar-logo-icon {
  width: 36px; height: 36px; background: var(--ink); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.navbar-logo-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; }
.navbar-logo-text { line-height: 1.1; }
.navbar-logo-text .main { color: var(--ink); font-size: 1rem; }
.navbar-logo-text .sub { color: var(--sage); font-size: .7rem; letter-spacing: .06em; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; }

.navbar-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.navbar-nav .nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: all .18s; position: relative;
}
.navbar-nav .nav-link:hover { color: var(--ink); background: var(--paper-2); }
.navbar-nav .nav-link.active { color: var(--ink); }
.navbar-nav .nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--sage); border-radius: 50%;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  border: 1px solid var(--paper-3); padding: var(--space-sm);
  min-width: 220px; opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-8px); transition: all .2s var(--ease);
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--ink-soft); transition: all .15s;
}
.nav-dropdown-item:hover { background: var(--paper-2); color: var(--ink); }
.nav-dropdown-icon { width: 28px; height: 28px; background: var(--paper-2); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .85rem; }

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--paper-2); font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: background .2s;
}
.lang-switcher:hover { background: var(--paper-3); }

.navbar-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }

/* Mobile */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  background: var(--paper-2); border-radius: var(--radius-sm); cursor: pointer;
}
.hamburger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: var(--white); z-index: 899; overflow-y: auto;
  padding: var(--space-xl);
}
.mobile-menu.open { display: block; }
.mobile-nav-link {
  display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 500;
  border-bottom: 1px solid var(--paper-2); color: var(--ink);
}

@media (max-width: 1024px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .lang-switcher { display: none; }
}
@media (max-width: 768px) {
  .navbar-actions .btn-outline { display: none; }
}

/* ---- Footer ---- */
.footer {
  background: var(--ink); color: rgba(255,255,255,.75);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl); margin-bottom: var(--space-2xl);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-lg); }
.footer-logo-icon { width: 36px; height: 36px; background: var(--sage); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-desc { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-xl); }
.footer-social-btn { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; font-size: .85rem; }
.footer-social-btn:hover { background: var(--sage); }
.footer-col-title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: var(--space-lg); }
.footer-link { display: block; font-size: .88rem; color: rgba(255,255,255,.65); padding: 4px 0; transition: color .2s; }
.footer-link:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-xl); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom p { font-size: .82rem; }
.footer-badges { display: flex; gap: var(--space-sm); }
.footer-badge { padding: 4px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-pill); font-size: .72rem; }
