/* ============================================
   TREEZ AFRICA SYSTEMS — Header / Navbar
   Structural console bar — hairline border,
   monospace nav, no glass/pill chrome.
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 13, 17, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              border-color 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 13, 17, 0.92);
  border-bottom-color: var(--line-strong);
}

.header.header-hidden {
  transform: translateY(-100%);
}

/* ---- Inner layout ---- */
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 76px;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.logo-icon-nav {
  width: auto;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}

.footer .logo-icon-nav {
  height: 48px;
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-0);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.logo-text span {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-2);
}

.logo-text span::before {
  content: '// ';
  color: var(--status-green);
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-1);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--amber);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--amber);
}

/* ---- CTA Button in Nav ---- */
.nav-cta {
  margin-left: 8px;
  padding: 9px 18px !important;
  font-size: 0.8rem !important;
  background: var(--amber);
  color: var(--ink) !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: #FFC24D;
  transform: translateY(-1px);
}

.nav-cta i,
.nav-cta span,
.nav-cta svg {
  position: relative;
  z-index: 1;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
  z-index: 1001;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-0);
  border-radius: 1px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--amber);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--amber);
}

/* ---- Mobile Nav Overlay ---- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 17, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-link {
  font-size: 1.3rem;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-1);
}

.mobile-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-0);
}

.mobile-nav .nav-link.active {
  color: var(--amber);
}

.mobile-nav.active .nav-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.active .nav-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav.active .nav-link:nth-child(2) { transition-delay: 0.13s; }
.mobile-nav.active .nav-link:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav.active .nav-link:nth-child(4) { transition-delay: 0.23s; }
.mobile-nav.active .nav-link:nth-child(5) { transition-delay: 0.28s; }
.mobile-nav.active .nav-link:nth-child(6) { transition-delay: 0.33s; }
.mobile-nav.active .nav-link:nth-child(7) { transition-delay: 0.38s; }

.mobile-nav .btn {
  margin-top: 16px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.42s;
}

.mobile-nav.active .btn {
  transform: translateY(0);
  opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .nav-cta {
    padding: 8px 14px !important;
  }
}

@media (max-width: 1024px) {
  .header .container {
    height: 68px;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 600px) {
  .header .container {
    height: 62px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .logo-text span {
    font-size: 0.5rem;
  }

  .mobile-nav .nav-link {
    font-size: 1.15rem;
    padding: 12px 24px;
  }
}
