/* =====================================================
   navbar.css — iMax Technologies Inc.
   Shared navigation styles for home.php,
   products.php, and services.php
   ===================================================== */

/* ── Navbar wrapper ── */
#navbar {
  position: fixed;
  top: 0;              
  left: 0;
  right: 0;
  z-index: 1000;

  height: var(--nav-h);
  display: flex;
  align-items: center;

  background: #050d1a; 
  box-shadow: 0 1px 0 var(--border);

  transition: none;   
}


/* ── Inner flex row ── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 48px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 16px;
}

.nav-logo img {
  height: 160px;   /* controlled here — remove the inline style="height:180px" */
  width: auto;
  display: block;
}

/* ── Desktop nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width: 100%; }

/* Active page highlight */
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  width: 100%;
}

/* ── CTA button area ── */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger → X animation */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(5, 13, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--text-body);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 8px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
}

/* ── Responsive breakpoints ── */
@media (max-width: 900px) {
  .nav-inner { gap: 20px; }
  .nav-links  { gap: 20px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
}