/* Shinpo Capital — primary site navigation
 * Visual pattern adapted from a shadcn-style dropdown nav, but plain CSS+JS
 * so it works inside the static HTML delivery (no React, no Tailwind). */

.shp-nav {
  /* Explicit resets defend against the bundled homepage's nav { ... } tag
   * selector, which would otherwise cascade properties (transform, border,
   * border-radius, width, padding, box-shadow, gap) into the injected nav. */
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  gap: 0;
  align-items: stretch;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: rgba(255, 255, 255, 0.96);
}
.shp-nav *, .shp-nav *::before, .shp-nav *::after { box-sizing: border-box; }

.shp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.shp-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  text-decoration: none;
  border: none;
  flex-shrink: 0;
}
.shp-nav-brand:hover { color: rgba(255, 255, 255, 0.96); border: none; }
.shp-nav-logo {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  /* Logo PNG ships as black-on-white; invert to render as white on the
   * dark nav background. Works whether the source has a white background
   * or alpha channel. */
  filter: invert(1);
}

.shp-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 auto 0 8px;
}

.shp-nav-item { position: relative; }

.shp-nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s;
}
.shp-nav-trigger:hover {
  color: rgba(255, 255, 255, 0.96);
  border: none;
}

.shp-nav-bg {
  position: absolute;
  inset: 0;
  background: rgba(173, 255, 47, 0.10);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.shp-nav-item:hover .shp-nav-bg,
.shp-nav-item.open .shp-nav-bg {
  opacity: 1;
}

.shp-nav-chev { transition: transform 0.3s; flex-shrink: 0; }
.shp-nav-item:hover .shp-nav-chev,
.shp-nav-item.open .shp-nav-chev { transform: rotate(180deg); }

.shp-nav-panel {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 100;
}
.shp-nav-item:hover .shp-nav-panel,
.shp-nav-item.open .shp-nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shp-nav-panel-inner {
  background: rgba(20, 20, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  gap: 36px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

.shp-nav-col { min-width: 240px; }
.shp-nav-col h3 {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 500;
}
.shp-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.shp-nav-col a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  border: none;
}
.shp-nav-col a:hover { border: none; }

.shp-nav-ic {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.96);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.shp-nav-col a:hover .shp-nav-ic {
  background: oklch(0.90 0.19 128);
  color: #0a0a0c;
  border-color: oklch(0.90 0.19 128);
}

.shp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}
.shp-nav-l {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
}
.shp-nav-d {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s;
  white-space: nowrap;
}
.shp-nav-col a:hover .shp-nav-d { color: rgba(255, 255, 255, 0.96); }

.shp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
  font-weight: 500;
}
.shp-nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.96);
}

.shp-nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.shp-nav-mobile-panel {
  display: none;
  background: rgba(10, 10, 12, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
}
.shp-nav-mobile-panel.open { display: block; }
.shp-nav-mobile-section { margin-bottom: 24px; }
.shp-nav-mobile-section:last-child { margin-bottom: 0; }
.shp-nav-mobile-section h4 {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 500;
}
.shp-nav-mobile-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.shp-nav-mobile-section a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.shp-nav-mobile-section a:hover { color: oklch(0.90 0.19 128); border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }

@media (max-width: 880px) {
  .shp-nav-list, .shp-nav-cta { display: none; }
  .shp-nav-mobile-toggle { display: inline-flex; }
}

/* The bundled homepage ships its own position:fixed <nav> with .nav-logo,
 * .nav-links, and .nav-cta classes (Services / Sitetraq / About / Process /
 * Contact). Hide it so only the injected .shp-nav appears. The bundle nav is
 * fixed-positioned, so removing it does not affect document flow. Hand-coded
 * pages have no other <nav>, so this rule is a safe no-op there. */
nav:has(.nav-logo),
nav:has(.nav-links),
nav:has(.nav-cta) {
  display: none !important;
}

