/* =========================================================
   EMPro Solutions — Navigation (WHITE THEME)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 10px 0;
  border-bottom-color: var(--border, #e4e9f0);
  box-shadow: 0 8px 24px -20px rgba(10, 37, 64, 0.25);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* -------- Brand -------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0a2540;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-mark .chev-1,
.brand-mark .chev-2 {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.brand-mark .chev-1 { stroke: #0066ff; animation-delay: 0.15s; }
.brand-mark .chev-2 { stroke: #0a2540; animation-delay: 0.35s; }
.brand-mark .brand-dot {
  fill: #ffb800;
  opacity: 0;
  transform-origin: 66px 18px;
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop {
  0%   { opacity: 0; transform: scale(0.2); }
  100% { opacity: 1; transform: scale(1); }
}
.brand:hover .brand-mark .chev-1 { animation: pulse 0.6s ease; }
.brand:hover .brand-mark .chev-2 { animation: pulse 0.6s ease 0.08s; }
@keyframes pulse { 50% { transform: translateY(-3px); } }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: #0a2540;
}
.brand-sub {
  font-size: 8px;
  letter-spacing: 0.5em;
  color: #64748b;
  margin-top: 3px;
  text-indent: 0.5em;
}

/* -------- Nav Links -------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: #33415a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover { color: #0a2540; background: rgba(0, 102, 255, 0.07); }
.nav-link.active { color: #0a2540; font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, #0066ff, #00c9a7);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 20px;
  border-radius: 100px;
  background: linear-gradient(135deg, #0066ff, #0047b3);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px -12px rgba(0, 102, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(0, 102, 255, 0.9);
}

/* -------- Mobile Toggle -------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #0a2540;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: #ffffff;
    border-left: 1px solid #e4e9f0;
    box-shadow: -20px 0 40px -20px rgba(10, 37, 64, 0.15);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 24px 40px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 16px; padding: 14px 16px; }
  .nav-cta { margin: 20px 0 0; text-align: center; padding: 14px 20px; }
}
