/* Custom styles for CryStal Cleaning Service */

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

/* Custom animations */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Scroll reveal base styles - visible by default for accessibility */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

::-webkit-scrollbar-track {
    background: #0a170a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3d7a3d;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #faf9f6;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #162e16 0%, #1c3a1c 100%);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d078, #d4a843, #b8902e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}
