/* Custom styles for Brighter Days Residential Care */

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

/* Scroll reveal base - content is always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Nav link active state */
.nav-link.active {
    color: #d95630;
    background-color: #fdf0ec;
}

/* Selection color */
::selection {
    background-color: #d95630;
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #ddb86b;
    border-radius: 4px;
}

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

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

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

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

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

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d95630;
    outline-offset: 2px;
}

/* Subtle gradient for hero overlay */
.hero-gradient {
    background: linear-gradient(135deg, rgba(15, 26, 46, 0.95) 0%, rgba(26, 39, 68, 0.85) 50%, rgba(15, 26, 46, 0.7) 100%);
}

/* Card hover lift */
.group:hover .group-hover\\:translate-y-\\[-4px] {
    transform: translateY(-4px);
}

/* Print styles */
@media print {
    #navbar, .scroll-reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
