/* ── Site nav (shared across landing pages) ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 48px;
  height: 60px;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-word {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.nav-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 1;
  min-width: 0;
}

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

.nav-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link-signin {
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--ink2);
  font-weight: 500;
}

.nav-link-signin:hover {
  color: var(--ink);
  border-color: var(--border2);
  background: var(--paper2);
}

.nav-cta {
  background: var(--amber);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.12s;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--amber-hover);
}

.nav-hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 16px 20px 24px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-link {
  font-size: 16px;
  color: var(--ink2);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-weight: 400;
  transition: color 0.12s;
}

.nav-mobile-link:last-of-type {
  border-bottom: none;
}

.nav-mobile-link:hover {
  color: var(--ink);
}

.nav-mobile-cta {
  display: block;
  margin-top: 16px;
  background: var(--amber);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 13px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-family: var(--font-sans);
  transition: background 0.12s;
}

.nav-mobile-cta:hover {
  background: var(--amber-hover);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--ink);
  background: var(--paper2);
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
}

.nav-top-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}

.nav-top-link:hover {
  color: var(--ink);
  background: var(--paper2);
}

.nav-mobile-toplink {
  font-weight: 500;
  color: var(--ink2);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 36px rgba(26, 23, 20, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--ink2);
  text-decoration: none;
  border-radius: 7px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: var(--paper2);
  color: var(--ink);
}

.nav-mobile-group {
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  padding: 10px 0 6px;
  font-family: var(--font-sans);
}

.nav-mobile-sublink {
  display: block;
  font-size: 15px;
  color: var(--ink2);
  text-decoration: none;
  padding: 8px 0 8px 12px;
  font-weight: 400;
  transition: color 0.12s;
}

.nav-mobile-sublink:hover {
  color: var(--ink);
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  margin-top: 4px;
}

.nav-mobile-signin {
  display: block;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--ink2);
  text-decoration: none;
  padding: 13px 16px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.nav-mobile-signin:hover {
  color: var(--ink);
  background: var(--paper2);
  border-color: var(--border2);
}

.nav-mobile-actions .nav-mobile-cta {
  margin-top: 0;
}

/* Tablet / narrow desktop: hamburger menu (desktop links need ~1000px+) */
@media (max-width: 1024px) {
  .site-nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}
