function openKakao(event) {
    const kakaoUrl = document.body?.dataset.kakaoUrl || window.taxbaikKakaoUrl || 'https://pf.kakao.com/_xoxchTX';
    if (event) {
        event.preventDefault();
    }
    window.open(kakaoUrl, '_blank', 'noopener,noreferrer');
}

document.addEventListener('DOMContentLoaded', function() {
    const navbar = document.querySelector('.navbar');
    if (!navbar) {
        return;
    }

    const setShadow = () => {
        navbar.style.boxShadow = window.scrollY > 0
            ? '0 2px 8px rgba(0,0,0,0.1)'
            : '0 1px 3px rgba(0,0,0,0.1)';
    };

    setShadow();
    window.addEventListener('scroll', setShadow, { passive: true });
});
