/* ===========================
   NAVIGATION CSS
   Shared navigation for all pages
   =========================== */

/* === DESKTOP NAV === */
nav {
  background: var(--cream);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 0 0 40px;
  border-top: var(--gap) solid var(--dark);
  border-bottom: var(--gap) solid var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo a {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
}

.nav-right {
  margin-left: auto;
  display: flex;
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-left: var(--gap) solid var(--dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  opacity: 0.45;
  transition: opacity 0.15s;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link.active {
  opacity: 1;
}

.nav-cta {
  background: var(--yellow);
  opacity: 1 !important;
  font-weight: 800;
  color: var(--dark);
}

/* === HAMBURGER BUTTON (hidden on desktop) === */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
}

/* === BACK BAR (sub-pages only) === */
.back-bar {
  background: var(--cream);
  padding: 10px 40px;
  border-bottom: 1px solid rgba(14, 20, 32, 0.12);
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  opacity: 0.5;
  transition: opacity 0.15s;
}

.back-link:hover {
  opacity: 1;
}

.back-sep {
  width: 1px;
  height: 12px;
  background: rgba(14, 20, 32, 0.2);
}

.back-current {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.4;
}

/* === MOBILE NAV === */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-right {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    height: auto;
    border-bottom: 3px solid var(--dark);
    z-index: 99;
  }

  .nav-right.nav-open {
    display: flex;
  }

  .nav-link {
    border-left: none;
    border-bottom: 1px solid rgba(14, 20, 32, 0.1);
    padding: 0 24px;
    height: 48px;
    opacity: 0.65;
  }

  .nav-cta {
    border-bottom: none;
    text-align: center;
    justify-content: center;
  }

  .back-bar {
    padding: 8px 20px;
  }
}
