/* global React, Sparkle, BeautyMark, Icon */
const { useState, useEffect } = React;
function Nav() {
const [scrolled, setScrolled] = useState(false);
const [open, setOpen] = useState(false);
useEffect(() => {
const onScroll = () => setScrolled(window.scrollY > 8);
onScroll();
window.addEventListener('scroll', onScroll, { passive: true });
return () => window.removeEventListener('scroll', onScroll);
}, []);
const links = [
{ id: 'servicos', label: 'Serviços' },
{ id: 'sobre', label: 'Sobre' },
{ id: 'galeria', label: 'Galeria' },
{ id: 'depoimentos', label: 'Depoimentos' },
{ id: 'contato', label: 'Contato' },
];
const go = (id) => {
setOpen(false);
const el = document.getElementById(id);
if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' });
};
return (
<>
{/* Mobile drawer */}
setOpen(false)} style={{
position: 'absolute', inset: 0, background: 'rgba(43,27,18,0.45)',
backdropFilter: 'blur(4px)',
}}/>
>
);
}
function WhatsAppIconLocal() {
return (
);
}
const navStyles = {
inner: {
maxWidth: 1280, margin: '0 auto',
height: 156,
display: 'flex', alignItems: 'center', justifyContent: 'space-between',
padding: '0 var(--page-pad)', gap: 24,
},
brand: { display: 'flex', alignItems: 'center', cursor: 'pointer', textDecoration: 'none' },
logo: { height: 128, width: 'auto' },
links: { display: 'flex', alignItems: 'center', gap: 36 },
link: {
fontFamily: 'var(--font-sans)', fontSize: 13, fontWeight: 500,
letterSpacing: '0.22em', textTransform: 'uppercase',
color: 'var(--rb-espresso)', textDecoration: 'none', cursor: 'pointer',
transition: 'color 220ms var(--ease-refined)',
},
cta: { display: 'flex', alignItems: 'center', gap: 12 },
menuBtn: {
width: 44, height: 44, borderRadius: 999,
background: 'transparent', border: '1px solid var(--rb-champagne)',
display: 'flex', alignItems: 'center', justifyContent: 'center',
cursor: 'pointer', color: 'var(--rb-espresso)',
},
mobileLink: {
display: 'flex', justifyContent: 'space-between', alignItems: 'center',
padding: '16px 12px', borderRadius: 10,
fontFamily: 'var(--font-display)', fontSize: 22, color: 'var(--rb-espresso)',
textDecoration: 'none', cursor: 'pointer',
},
socialDot: {
width: 40, height: 40, borderRadius: 999,
border: '1px solid var(--rb-champagne)',
display: 'inline-flex', alignItems: 'center', justifyContent: 'center',
color: 'var(--rb-espresso)', cursor: 'pointer',
},
};
Object.assign(window, { Nav });