/* Shared site header + nav (matches index.html); legal pages add in-nav tabs */

:root {
  --nh: 68px;
  --header-stack: var(--nh);
}

/* ── Main nav ── */
#nav {
  position: relative;
  z-index: 2;
  height: var(--nh);
  display: flex;
  align-items: center;
  padding: 0 48px;
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 23, 20, 0.18);
  box-shadow: 0 1px 0 rgba(28, 23, 20, 0.12), 0 12px 28px rgba(28, 23, 20, 0.06);
  transition: background 0.4s, box-shadow 0.4s, color 0.4s, border-color 0.4s;
}

#nav.sc {
  background: rgba(253, 250, 246, 0.97);
  box-shadow: 0 1px 0 rgba(28, 23, 20, 0.16), 0 16px 34px rgba(28, 23, 20, 0.1);
}

.ni {
  max-width: var(--mw);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) max-content;
  align-items: center;
  gap: 16px 24px;
}

.ni > .nl {
  grid-column: 1;
  justify-self: start;
}

.nl {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
  flex-shrink: 0;
}

.nl-base {
  color: currentColor;
  transition: color 0.3s;
}

.nl em {
  color: var(--clay);
  font-style: italic;
}

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: 0;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-s);
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-width: max-content;
}

.nc {
  background: var(--clay);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nc:hover {
  background: var(--clay-d);
  transform: translateY(-1px);
}

.nav-toggle {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(28, 23, 20, 0.06);
}

.nav-toggle:active {
  background: rgba(28, 23, 20, 0.1);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.nav-toggle > span {
  position: absolute;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background 0.25s;
}

.nav-toggle > span:nth-of-type(1) {
  transform: translateY(-7px);
}

.nav-toggle > span:nth-of-type(2) {
  transform: translateY(0);
}

.nav-toggle > span:nth-of-type(3) {
  transform: translateY(7px);
}

.nav-toggle.open > span:nth-of-type(1) {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle.open > span:nth-of-type(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open > span:nth-of-type(3) {
  transform: translateY(0) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  top: var(--nh);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0 24px;
  background: rgba(28, 23, 20, 0.14);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-sheet {
  width: min(100%, var(--mw));
  margin: 0 auto;
  background: linear-gradient(180deg, #f5eee5 0%, #f1e7db 100%);
  border-top: 1px solid rgba(28, 23, 20, 0.18);
  border-right: 1px solid rgba(28, 23, 20, 0.12);
  border-bottom: 1px solid rgba(28, 23, 20, 0.18);
  border-left: 1px solid rgba(28, 23, 20, 0.12);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 22px 40px rgba(28, 23, 20, 0.16), 0 6px 14px rgba(28, 23, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
  padding: 16px 20px 22px;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}

.nav-overlay .nav-link {
  position: relative;
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 5.8vw, 27px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 32px 16px 22px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-overlay .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: transparent;
}

.nav-overlay .nav-link:hover {
  color: var(--clay);
}

.nav-overlay .nav-link.active {
  color: var(--clay);
  background-color: rgba(193, 103, 74, 0.08);
}

.nav-overlay .nav-link.active::before {
  background: var(--clay);
}

.nav-mobile-legal {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 23, 20, 0.12);
}

.nav-mobile-legal-label {
  padding: 0 22px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-f);
}

.nav-mobile-legal .nav-link {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 22px;
}

.nav-mobile-footer {
  padding-top: 18px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  border-top: 1px solid rgba(28, 23, 20, 0.14);
}

.nav-overlay a.btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 15px;
  border: 1px solid rgba(193, 103, 74, 0.35);
  border-radius: 9999px;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(193, 103, 74, 0.25);
  background: var(--clay);
  color: #fff;
  text-decoration: none;
}

/* ── Legal pages: fixed header ── */
.site-header--legal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Responsive nav rules: load `/assets/nav-compact.css` after this file on legal pages. */
