/* ================================================================
   SITE NAV — shared, self-contained nav used on the imported
   pages (blogs, blog article, scheduler) so the navigation bar is
   uniform with index.html. Dark values, no external token deps.
   ================================================================ */

/* Give imported page heroes enough clearance for the taller site nav */
:root { --nav-h: 96px; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.scrolled {
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  background: rgba(7, 9, 12, 0.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}
.nav .logo { display: inline-flex; align-items: center; line-height: 0; }
.nav .logo img {
  height: 60px; width: auto; display: block;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav .logo:hover img { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  color: #d4cfc3;
}
.nav-links li { display: inline-flex; align-items: center; }
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: #d4cfc3;
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: #008CAB;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover,
.nav-links a.active { color: #f4f1ea; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Blog link gets an outbound arrow, like the "Get in touch" CTA */
.nav-blog { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.nav-blog svg { flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-blog:hover svg { transform: translate(2px, -2px); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  color: #f4f1ea;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-cta:hover { background: #f4f1ea; color: #07090c; border-color: #f4f1ea; }
.nav-cta svg { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-cta:hover svg { transform: translate(2px, -2px); }

.hamburger {
  display: none;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute; left: 9px;
  width: 16px; height: 1px;
  background: #f4f1ea;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 18px; width: 12px; }
.hamburger span:nth-child(3) { top: 23px; width: 16px; }
.hamburger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

.mobile-menu {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: #07090c;
  z-index: 99;
  padding: 90px 48px 24px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #f4f1ea;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a::after {
  content: '→';
  font-family: 'Fraunces', Georgia, serif;
  color: #55524a;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu a:hover::after,
.mobile-menu a.active::after { color: #008CAB; transform: translateX(4px); }
.mobile-menu a.external::after { content: '↗'; color: #008CAB; }

@media (max-width: 1280px) { .nav-inner { padding: 0 32px; } }
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: inline-block; }
}
@media (max-width: 1024px) { .nav { padding: 16px 0; } .nav .logo img { height: 48px; } }
