/* ============================================================
   WaleyFX — nav.css
   Navigation bar styles
   ============================================================ */

nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease;
}
nav#main-nav.scrolled {
  background: rgba(5,5,5,0.96);
  padding: 14px 80px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 66px;
  width: auto;
}
.nav-logo-text {
  font-family: 'Bebas Neue', cursive;
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 9px 22px;
  font-weight: 700 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--black) !important; }
.nav-cta::after { display: none !important; }

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 600;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE NAV DRAWER ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--dark2);
  border-left: 1px solid rgba(201,168,76,0.15);
  z-index: 499;
  flex-direction: column;
  padding: 100px 40px 40px;
  gap: 8px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn-primary {
  margin-top: 24px;
  text-align: center;
  clip-path: none;
}

.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 498;
  backdrop-filter: blur(3px);
}
.nav-overlay.open { display: block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  nav#main-nav { padding: 18px 28px; }
  nav#main-nav.scrolled { padding: 12px 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}
