.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav-scrolled { border-bottom: 1px solid var(--hairline); }

.nav-inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--xl);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--surface-dark); color: var(--on-dark);
  border-radius: var(--r-full);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.3px; color: var(--ink); }
.brand-accent { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: var(--xs); flex: 1; justify-content: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: 14px; line-height: 1; color: var(--muted);
  padding: 10px 14px; border-radius: var(--r-full);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.mega-hot { color: var(--ink); background: var(--surface-soft); }
.nav-link.active { color: var(--ink); background: var(--surface-soft); }
.nav-caret { font-size: 9px; transition: transform .2s ease; }
.nav-caret.up { transform: rotate(180deg); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-phone {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  transition: color .2s ease;
}
.nav-phone:hover { color: var(--ink); }
.nav-btn { height: 38px; padding: 0 20px; font-size: 14px; }

/* ---------- Mega menu ---------- */
.mega-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface-card);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 24px 48px rgba(32, 32, 32, 0.10);
}
.mega-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
  padding-top: 28px; padding-bottom: 28px;
}
.mega-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; align-content: start; }
.mega-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; border-radius: var(--r-md);
  transition: background .15s ease;
}
.mega-item:hover { background: var(--surface-soft); }
.mega-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-soft); padding-top: 3px; }
.mega-title { display: block; font-weight: 600; font-size: 15px; color: var(--ink); }
.mega-tag { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mega-aside {
  background: var(--surface-soft); border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.mega-aside-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted-soft);
}
.mega-aside-btn { height: 38px; padding: 0 20px; font-size: 14px; margin-top: 6px; }
.mega-aside .link-cta { margin-top: 2px; }

/* ---------- Hamburger & mobile ---------- */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; border-radius: var(--r-full); background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-sheet { overflow: hidden; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.mobile-links { display: flex; flex-direction: column; padding: 16px 0 28px; }
.mobile-link { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.3px; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.mobile-sub-label { color: var(--muted); padding: 18px 0 8px; }
.mobile-sublink { font-weight: 400; font-size: 16px; color: var(--body); padding: 8px 0; }

@media (max-width: 1200px) {
  .nav-phone { display: none; }
}
@media (max-width: 1024px) {
  .nav-menu { gap: 2px; }
}
@media (max-width: 900px) {
  .nav-menu, .nav-cta, .mega-panel { display: none; }
  .hamburger { display: flex; }
}
