// Single canonical nav — green background, multi-page links + Client Login const NAV_SERVICES = [ { slug: "bespoke-wealth-architecture", label: "Bespoke Wealth Architecture" }, { slug: "treasury-management", label: "Treasury Management" }, { slug: "nri-services", label: "NRI Services" }, { slug: "alternative-investment-vehicles", label: "Alternative Investment Vehicles" }, { slug: "external-asset-tracking", label: "External Asset Tracking" }, { slug: "nomination-estate-audits", label: "Nomination & Estate Readiness" }, ]; const CLIENT_PORTAL = "https://maxwealthinvestments.my-portfolio.co.in"; // Base URL prefix — pages inside subfolders (e.g. /services/) override this const __BASE = (window.__BASE__ === undefined) ? "" : window.__BASE__; const Nav = ({ current = "home" }) => { const [scrolled, setScrolled] = useState(false); const [open, setOpen] = useState(false); const [svcOpen, setSvcOpen] = useState(false); const svcCloseTimer = useRef(null); useEffect(() => { const on = () => setScrolled(window.scrollY > 24); on(); window.addEventListener("scroll", on, { passive: true }); return () => window.removeEventListener("scroll", on); }, []); const items = [ { key: "about", l: "About", h: `${__BASE}about.html` }, { key: "services", l: "Services", h: `${__BASE}index.html#services`, hasDropdown: true }, { key: "career", l: "Career", h: `${__BASE}careers.html` }, { key: "contact", l: "Contact", h: `${__BASE}contact.html` }, ]; const onSvcEnter = () => { clearTimeout(svcCloseTimer.current); setSvcOpen(true); }; const onSvcLeave = () => { svcCloseTimer.current = setTimeout(() => setSvcOpen(false), 150); }; return ( <> {/* Top utility strip — address only */}
B-412, Bestech Business Tower, Sector 68, Mohali, Punjab
AMFI REGISTERED · CFP (FPSB)
{/* Main header — green */}
{ e.currentTarget.style.background = "var(--gold-500)"; e.currentTarget.style.color = "var(--green-900)"; }} onMouseLeave={e => { e.currentTarget.style.background = "transparent"; e.currentTarget.style.color = "var(--gold-400)"; }}> Client Login e.currentTarget.style.background = "var(--gold-400)"} onMouseLeave={e => e.currentTarget.style.background = "var(--gold-500)"}> Book a consult
{/* Mobile sheet */} {open && (
setOpen(false)} style={{ padding: "16px 0", borderBottom: "1px solid rgba(250,246,236,0.12)", fontFamily: "Poppins", fontWeight: 600, fontSize: 26, color: "var(--cream)" }}>About setOpen(false)} style={{ padding: "16px 0", borderBottom: "1px solid rgba(250,246,236,0.12)", fontFamily: "Poppins", fontWeight: 600, fontSize: 26, color: "var(--cream)" }}>Services
{NAV_SERVICES.map(s => ( setOpen(false)} style={{ padding: "10px 0", fontSize: 15, color: "rgba(250,246,236,0.7)" }}>— {s.label} ))}
setOpen(false)} style={{ padding: "16px 0", borderBottom: "1px solid rgba(250,246,236,0.12)", fontFamily: "Poppins", fontWeight: 600, fontSize: 26, color: "var(--cream)" }}>Career setOpen(false)} style={{ padding: "16px 0", borderBottom: "1px solid rgba(250,246,236,0.12)", fontFamily: "Poppins", fontWeight: 600, fontSize: 26, color: "var(--cream)" }}>Contact setOpen(false)} className="btn" style={{ marginTop: 18, justifyContent: "center", border: "1px solid var(--gold-500)", color: "var(--gold-400)" }}>Client Login ↗ setOpen(false)} className="btn" style={{ marginTop: 4, justifyContent: "center", background: "var(--gold-500)", color: "var(--green-900)" }}>Book a consult
)}
); }; window.Nav = Nav; window.NAV_SERVICES = NAV_SERVICES; window.__BASE = __BASE; window.CLIENT_PORTAL = CLIENT_PORTAL;