/* Icon helper — renders any Lucide icon via CSS mask from the lucide-static CDN.
   Usage: <Icon name="message-circle" size={24} className="text-accent" />
*/
function Icon({ name, size = 20, className = '', style = {} }) {
  const url = `https://unpkg.com/lucide-static@latest/icons/${name}.svg`;
  return (
    <span
      className={`lc ${className}`}
      style={{
        width: size,
        height: size,
        WebkitMaskImage: `url(${url})`,
        maskImage: `url(${url})`,
        ...style,
      }}
      aria-hidden="true"
    />
  );
}

window.Icon = Icon;

// Shared constants
window.WHATSAPP_URL = 'https://wa.me/5534988590827';
window.WHATSAPP_DISPLAY = '(34) 98859-0827';
window.LOGO = '../../assets/logo-transparent.png';
window.LOGO_WHITE = '../../assets/logo-white.png';
window.ASSETS = {
  frontal: '../../assets/maquina_frontal.jpg',
  lateral: '../../assets/maquina_lateral.jpg',
  perfuracoes: '../../assets/perfuracoes.jpg',
  urca1: '../../assets/foto-urca-1.jpeg',
  urca2: '../../assets/foto-urca-2.jpeg',
  centro: '../../assets/foto-centro-empresarial.jpeg',
};
