/* ── Site navbar (floating pill) ─────────────────────────────
   Shared by pages that use the top pill navigation.
   Layout modelled on a shadcn/ui "Navbar" component: white pill,
   gradient logo, inline links, black pill CTA, animated mobile overlay. */

.navwrap {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 1.5rem 1rem 0.5rem;
  pointer-events: none;
}

.navpill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 56rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 12px 32px rgba(7, 27, 24, 0.12),
    0 2px 6px rgba(7, 27, 24, 0.06);
}

.navlogo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.navlogo__mark {
  display: block;
  width: 2rem;
  height: 2rem;
  flex: none;
}

.navlogo__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Between the tablet and desktop breakpoints the pill still shows all links,
   so tighten the spacing and let the wordmark truncate instead of vanishing. */
@media (max-width: 1023px) {
  .navpill {
    gap: 0.75rem;
  }
  .navlinks {
    gap: 1rem;
  }
  .navlogo__name {
    font-size: 0.95rem;
  }
}

/* Below ~880px the full wordmark no longer fits beside four links and the CTA,
   so the pill keeps just the mark (the overlay carries the branding on mobile). */
@media (max-width: 879px) {
  .navlogo__name {
    display: none;
  }
}

.navlinks {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 0.25rem;
}

.navlinks a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2d2a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: var(--teal);
}

.navactions {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

/* Black pill CTA, matching the reference component */
.navcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #0b1a18;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.navcta:hover {
  transform: translateY(-1px);
  background: #16302c;
}

/* Hamburger (mobile only) */
.navtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.navtoggle:hover {
  background: var(--foam);
}

.navtoggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Full-screen mobile overlay */
.navoverlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2.5rem;
  background: #fff;
  opacity: 0;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s ease;
}

.navoverlay.is-open {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.navoverlay__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.navoverlay__close:hover {
  background: var(--foam);
}

.navoverlay__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 4rem;
}

.navoverlay__links a {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.navoverlay__links a:hover {
  color: var(--teal);
}

.navoverlay__cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  background: #0b1a18;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.navoverlay__hint {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .navlinks,
  .navactions {
    display: flex;
  }
  .navtoggle {
    display: none;
  }
  .navoverlay {
    display: none;
  }
}
