/* Custom styles for Heritage Care Source */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #faf5f9;
}
::-webkit-scrollbar-thumb {
    background: #6B3F73;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c2d52;
}

/* Navigation active state */
.nav-link.active {
    color: #fbbf24 !important;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 63, 115, 0.1);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base styles - content always visible */
.reveal {
    /* Default state: visible for accessibility */
}

/* Scroll reveal with JS enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero gradient overlay fix */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(45, 19, 38, 0.92), rgba(107, 63, 115, 0.85), rgba(107, 63, 115, 0.6));
    z-index: 1;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

#hero > div:first-child {
    z-index: 0;
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.2s ease;
}

/* Card hover effects */
.group:hover .group-hover\:bg-plum-100 {
    transition: background-color 0.3s ease;
}

/* Print styles */
@media print {
    nav, #contactForm, button {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
