/* ============================================================
   ARCTIC FORCE — NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 170, 255, 0.08);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(7, 11, 22, 0.97);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  height: 68px;
  border-bottom-color: rgba(0, 170, 255, 0.12);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---- Logo ---- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  color: var(--color-ice-blue);
  filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.5));
  flex-shrink: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  color: var(--color-white);
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ice-blue);
  margin-top: 2px;
}

/* ---- Nav Links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 13px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-ice-blue);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 55%;
}

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

/* ---- Nav Actions ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  transition: var(--transition);
}

.nav-phone i {
  color: var(--color-ice-blue);
  font-size: 0.8rem;
}

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

.nav-actions .btn {
  padding: 10px 20px;
  font-size: 0.78rem;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

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

@keyframes mobileSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Mobile Nav ---- */
@media (max-width: 1100px) {
  .nav-links,
  .nav-phone { display: none; }

  .hamburger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - var(--navbar-height));
    background: rgba(7, 11, 22, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 170, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    padding: 8px 0 16px;
    animation: mobileSlide 0.22s ease forwards;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2000;
    border-top: 1px solid rgba(0,170,255,0.12);
  }

  .nav-links.mobile-open .nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 24px;
    width: 100%;
    color: rgba(255,255,255,0.72);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
    display: block;
  }

  .nav-links.mobile-open .nav-link::after { display: none; }

  .nav-links.mobile-open .nav-link:hover {
    color: var(--color-white);
    background: rgba(0,170,255,0.06);
  }

  .nav-links.mobile-open .nav-link.active {
    color: var(--color-ice-blue);
    background: rgba(0,170,255,0.08);
    border-left: 3px solid var(--color-ice-blue);
    padding-left: 21px;
  }

  .mobile-extras {
    padding: 14px 24px 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 600;
  }
  .mobile-phone-link i { color: var(--color-ice-blue); }

  .mobile-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
  }
}

@media (max-width: 640px) {
  .nav-container { padding: 0 20px; }
  .nav-actions .btn { display: none; }
}
