/**
 * Navigation Styles
 * Sales Fundas Theme by Infineural Technologies
 */

/* =========================================================
   FIXED NAV
   ========================================================= */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--t-base), box-shadow var(--t-base);
  padding: 0;
}

/* Nav is always solid on inner pages; transparent on homepage until scroll */
#site-nav.nav-solid,
#site-nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

/* Logo */
.nav-logo {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }
.nav-logo img {
  height: 44px;
  width: auto;
}

/* Primary menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}

.nav-links > li > a,
.nav-links > li > a.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.nav-links > li > a:hover {
  color: var(--white);
}

.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links > li > a[aria-current="page"] {
  color: var(--gold);
}

/* Dropdown */
.nav-links .dropdown {
  position: relative;
}
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  min-width: 240px;
  padding: 8px;
  padding-top: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  z-index: 10;
  margin-top: 8px;
}

/* Transparent bridge covers the gap so hover isn't lost when moving to the dropdown */
.nav-links .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown:focus-within .dropdown-menu {
  display: block;
}
.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  border-radius: 6px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-links .dropdown-menu a:hover {
  background: rgba(255,255,255,.06);
  color: var(--gold);
}

.dropdown-arrow { font-size: 10px; }

/* CTA button in nav */
.nav-cta { flex-shrink: 0; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  overflow-y: auto;
  padding: 32px;
}
.nav-mobile-overlay .mobile-links {
  list-style: none;
}
.nav-mobile-overlay .mobile-links li {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-mobile-overlay .mobile-links a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--t-fast);
}
.nav-mobile-overlay .mobile-links a:hover {
  color: var(--gold);
}
.nav-mobile-overlay .mobile-cta {
  margin-top: 32px;
}

/* Mobile overlay open state */
#nav-mobile-overlay {
  display: none;
}
#nav-mobile-overlay.open {
  display: block;
}

/* Hamburger animation when open */
#nav-mobile-overlay.open ~ * .nav-hamburger span:nth-child(1),
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   STICKY BAR
   ========================================================= */
.sticky-bar {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--gold);
  z-index: 998;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(calc(-100% - 72px));
  transition: transform .35s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar p {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .sticky-bar { display: none; }
}

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