const Navbar = ({ currentPage, navigate }) => { const [menuOpen, setMenuOpen] = React.useState(false); const [scrolled, setScrolled] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 30); window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); const links = [ { id: 'home', label: 'Home' }, { id: 'metodologia', label: 'Metodologia' }, { id: 'servicos', label: 'Serviços' }, { id: 'tecnologia', label: 'Tecnologia' }, { id: 'diagnostico', label: 'Diagnóstico Comercial' }, ]; const navStyle = { position: 'fixed', top: 0, left: 0, right: 0, zIndex: 1000, background: scrolled ? 'rgba(10,10,10,0.97)' : 'rgba(10,10,10,0.85)', backdropFilter: 'blur(12px)', borderBottom: '1px solid rgba(255,255,255,0.07)', transition: 'background 0.3s', }; const innerStyle = { maxWidth: 1280, margin: '0 auto', padding: '0 32px', height: 68, display: 'flex', alignItems: 'center', justifyContent: 'space-between', }; const logoStyle = { display: 'flex', alignItems: 'center', gap: 10, cursor: 'pointer', textDecoration: 'none', }; const logoTextStyle = { fontFamily: 'Montserrat, sans-serif', fontWeight: 800, fontSize: 19, color: '#FFFFFF', letterSpacing: '-0.3px', lineHeight: 1, }; const logoAccentStyle = { color: '#fc6466' }; const linkStyle = (active) => ({ fontFamily: 'Montserrat, sans-serif', fontWeight: active ? 600 : 500, fontSize: 13, color: active ? '#FFFFFF' : '#A6A6A6', cursor: 'pointer', letterSpacing: '0.3px', padding: '6px 2px', borderBottom: active ? '2px solid #fc6466' : '2px solid transparent', transition: 'color 0.2s, border-color 0.2s', textDecoration: 'none', whiteSpace: 'nowrap', }); const ctaStyle = { fontFamily: 'Montserrat, sans-serif', fontWeight: 700, fontSize: 13, background: '#fc6466', color: '#000', border: 'none', padding: '10px 20px', borderRadius: 6, cursor: 'pointer', letterSpacing: '0.3px', whiteSpace: 'nowrap', transition: 'background 0.2s, transform 0.1s', }; return ( ); }; Object.assign(window, { Navbar });