/* Custom styles for Funeral Homes Landing Page */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for Webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    /* Gold */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b5952f;
}

/* Utility for text balance */
.text-balance {
    text-wrap: balance;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Ensure full height for mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #4b164c;
    /* Plum */
    outline-offset: 2px;
}