/* ============================================================================
 * NAV — fixed top bar with scroll-aware glass background, plus mobile menu
 * ==========================================================================*/

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: backdrop-filter 220ms ease;
}
/* Once scrolled, keep only a soft blur so nav text stays readable over content —
   no color shift, so the bar still reads as part of the page bg. */
.nav.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--teal), #06796F);
  display: grid; place-items: center;
  color: #04241F; font-weight: 800; font-size: 13px;
  box-shadow: 0 0 0 1px rgba(0,180,166,0.25), 0 6px 16px -6px rgba(0,180,166,0.6);
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--text-dim); font-weight: 500;
  position: relative; padding: 6px 2px;
  transition: color 160ms;
}
.nav-links a:hover  { color: var(--text); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #04241F;
  font-weight: 600; font-size: 13.5px;
  padding: 9px 14px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 160ms, box-shadow 160ms;
  color: red;
}
.nav-cta:hover {
  box-shadow: 0 0 0 4px rgba(0,180,166,0.15), 0 10px 24px -10px rgba(0,180,166,0.7);
  transform: translateY(-1px);
}

/* mobile menu trigger — hidden by default, shown via responsive rule in layout.css */
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 40px; height: 40px; border-radius: var(--radius);
  cursor: pointer;
  align-items: center; justify-content: center;
}

.mobile-menu {
  position: fixed; inset: 68px 0 auto 0; z-index: 40;
  /* background: rgba(11, 18, 34, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border); */
  transform: translateY(-110%);
  transition: transform 280ms cubic-bezier(.4, .0, .2, 1);
  padding: 14px 28px 22px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 14px 4px;
  color: var(--text-dim); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a.active     { color: var(--teal); }
