/* ============================================================
   Chalkwell Auctions — site navigation
   Shared by every page: _base.html (with chalkwell.css) and the
   standalone probate.html, so it must not depend on chalkwell.css.
   ============================================================ */

/* --- NAV --------------------------------------------------- */
nav.site-nav {
  font-family: 'DM Sans', sans-serif;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--ink-20);
  height: 80px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  height: 58px;
  width: auto;
  display: block;
}

.nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-bid {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 2px;
  letter-spacing: 0.1em !important;
  font-size: 11px !important;
  transition: background 0.2s !important;
}

.nav-bid:hover { background: var(--gold-dark) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-inner { padding: 0 32px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--ink-20);
    box-shadow: 0 12px 24px rgba(26,23,20,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.is-open { max-height: 520px; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ink-20);
  }

  .nav-links .nav-bid {
    margin: 16px 24px;
    text-align: center;
    border-bottom: none;
  }
}
