/* ─── SITE NAV ──────────────────────────────────────────────────────
   Shared nav styles — structure + light (default) theme. Used by every
   page. Markup lives in components/nav.html (injected by assets/js/nav.js).

   The ODH case study layers dark-theme colour overrides on top via
   assets/css/odh/_nav.css — that file holds ONLY the values that differ
   between light and dark. Edit structure/sizing HERE, once. */

.site-nav {
  font-family: 'Cal Sans', sans-serif;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

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

.nav-brand {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 400;
  color: #37352F;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: #000; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 9px;
  background: linear-gradient(145deg, #2c3036, #14171c);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.brand-badge svg { width: 24px; height: 24px; color: #00AEFF; }
.brand-soft { color: #9B9A97; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: #37352F;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: #000; background-color: rgba(0, 174, 255, 0.13); }
.nav-link[aria-current="page"] { color: #37352F; font-weight: 600; }

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: #37352F;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 9999px;
  transition: background-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background-color: #1a1915; transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #37352F;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 9999px;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nav-chip:hover { background-color: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.32); }
.nav-chip svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}
.nav-hamburger:hover { background-color: rgba(0, 0, 0, 0.05); }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: #37352F;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #fff;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.nav-mobile.is-open { max-height: 440px; }
.nav-mobile-inner {
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #37352F;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-mobile-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-mobile-link:hover { color: #000; background-color: rgba(0, 174, 255, 0.13); }
.nav-mobile-link[aria-current="page"] { color: #37352F; font-weight: 600; }
.nav-mobile-cta {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: #37352F;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 9999px;
  text-align: center;
  transition: background-color 0.15s ease;
}
.nav-mobile-cta:hover { background-color: #1a1915; }

/* Switch to the hamburger menu on mobile (≤ 750px — matches the ODH
   responsive tier system). Structural, theme-agnostic. */
@media (max-width: 750px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
}
