/* ═══════════════════════════════════════════
   NAVBAR.CSS — Topbar, Navbar, Mobile Menu
   Project Shadman Platform
═══════════════════════════════════════════ */

/* ── Topbar ── */
.topbar {
  background: var(--g900);
  border-bottom: 1px solid rgba(201, 160, 40, 0.2);
  padding: 8px 0;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.topbar-pill .dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.topbar-pill.gold {
  color: var(--gold2);
  font-weight: 700;
}

.topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-right a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  transition: color 0.2s;
}

.topbar-right a:hover {
  color: var(--gold2);
}

/* ── Navbar ── */
nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.14);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-text .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--g700);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text .tag {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Navigation Links ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g600);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--g900);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(201, 160, 40, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 160, 40, 0.45);
}

/* ── Hamburger Button ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.ham-line {
  width: 26px;
  height: 2px;
  background: var(--g700);
  border-radius: 2px;
  transition: all 0.3s;
}

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

.hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ── Mobile Drawer ── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 100%);
  height: 100vh;
  background: var(--g800);
  z-index: 800;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.mobile-menu.open {
  right: 0;
}

.mob-link {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}

.mob-link:hover {
  color: var(--gold2);
}

.mob-cta {
  margin-top: 16px;
  background: var(--gold);
  color: var(--g900);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 799;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}