function Nav() { const [scrolled, setScrolled] = React.useState(false); const [menuOpen, setMenuOpen] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 20); onScroll(); window.addEventListener('scroll', onScroll, { passive: true }); return () => window.removeEventListener('scroll', onScroll); }, []); // Lock body scroll when mobile menu is open React.useEffect(() => { document.body.style.overflow = menuOpen ? 'hidden' : ''; return () => { document.body.style.overflow = ''; }; }, [menuOpen]); const links = [ { href: '#about', label: 'About' }, { href: '#products', label: 'Products' }, { href: '#industries', label: 'Industries' }, { href: '#quality', label: 'Quality' }, { href: '#insights', label: 'Insights' }, { href: '#contact', label: 'Contact' }, ]; return ( <>
{/* Brand — logo + company name text */} Sakshi Saurabh Enterprises
Sakshi Saurabh Enterprises · SSE
{/* Desktop nav */}
{/* Mobile hamburger */}
{/* Mobile drawer */}
{links.map((l, i) => ( setMenuOpen(false)} style={{ fontSize: 32, fontFamily: 'var(--font-display)', fontWeight: 500, letterSpacing: '-0.025em', color: 'var(--navy)', padding: '16px 0', borderBottom: '1px solid var(--line)', opacity: menuOpen ? 1 : 0, transform: menuOpen ? 'translateX(0)' : 'translateX(24px)', transition: `all 0.4s cubic-bezier(0.4, 0, 0.2, 1) ${i * 0.05 + 0.1}s`, }} > {l.label} ))}
{SSE_INFO.phone} · Silvassa, India
); } Object.assign(window, { Nav });