/* ──────────────────────────────────────────────────────────────────────────
   WSV site navigation — the single source of truth.

   Every page on wordssoundsvisuals.com (apex site, tool pages, case studies,
   and the Astro blog at /blog/*) links this file and uses the identical
   markup, so the bar never changes shape, size, or contents between pages.

   Class names are deliberately prefixed `wsv-nav` so they collide with
   nothing in the per-page inline <style> blocks. Every value is hard-coded
   rather than pulled from a CSS variable, because the pages disagree about
   what their variables are called (--line vs --divider, --text vs --white).

   Behaviour matches the homepage: transparent over the hero, semi-solid on
   scroll, 76px tall shrinking to 62px. `scrolled` is the state class — the
   same one the older inline scripts already toggle, so those keep working.
   ────────────────────────────────────────────────────────────────────────── */

.wsv-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
  font-family: 'Barlow', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wsv-nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.wsv-nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  transition: height 0.25s;
}

.wsv-nav.scrolled .wsv-nav__inner { height: 62px; }

/* Logo + wordmark. Doubles as the home link. */
.wsv-nav__brand,
.wsv-nav__brand:hover,
.wsv-nav__brand:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.wsv-nav__brand img {
  height: 28px;
  width: auto;
  display: block;
  transition: height 0.25s;
}

.wsv-nav.scrolled .wsv-nav__brand img { height: 24px; }

/* Link row */
.wsv-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.wsv-nav__links a,
.wsv-nav__links a:visited {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s;
}

.wsv-nav__links a:hover { color: #fff; }

.wsv-nav__cta,
.wsv-nav__cta:visited,
.wsv-nav__cta:hover {
  background: #C4A84A;
  color: #000;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.wsv-nav__cta:hover {
  background: #D4B85A;
  transform: translateY(-1px);
}

/* Mobile menu */
.wsv-nav__menu {
  display: none;
  position: relative;
}

.wsv-nav__menu > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 0;
}

.wsv-nav__menu > summary::-webkit-details-marker { display: none; }

.wsv-nav__menu[open] .wsv-nav__panel {
  position: absolute;
  right: 0;
  top: 44px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 10px 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.wsv-nav__panel { display: none; }

.wsv-nav__panel a,
.wsv-nav__panel a:visited {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 11px 20px;
}

.wsv-nav__panel a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .wsv-nav__links { display: none; }
  .wsv-nav__menu { display: block; }
}

@media (max-width: 480px) {
  .wsv-nav__inner { padding: 0 16px; }
  .wsv-nav__brand,
  .wsv-nav__brand:hover,
  .wsv-nav__brand:visited { font-size: 11px; letter-spacing: 0.16em; gap: 9px; }
  .wsv-nav__brand img { height: 24px; }
}
