/* Custom styles for Raleigh Painting & Home Maintenance */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F6;
}
::-webkit-scrollbar-thumb {
    background: #f9c3cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f49aad;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 252, 250, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

nav.scrolled .font-serif,
nav.scrolled a:not(.bg-burgundy) {
    color: #2A1E1E !important;
}

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

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

/* Scroll reveal - progressive enhancement via JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        animation: fadeUp 0.6s ease-out forwards;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.scroll-reveal[data-delay="1"] { animation-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { animation-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { animation-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { animation-delay: 0.4s; }
.scroll-reveal[data-delay="5"] { animation-delay: 0.5s; }
.scroll-reveal[data-delay="6"] { animation-delay: 0.6s; }

/* Service card hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Hero image gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, rgba(123, 45, 59, 0.15) 0%, transparent 60%);
}

/* Selection color */
::selection {
    background: #f9c3cc;
    color: #3d131a;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile menu active state */
.mobile-link {
    transition: color 0.2s ease;
}
.mobile-link:hover {
    color: #7B2D3B;
}

/* Gallery image hover */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

.rounded-2xl img {
    transition: transform 0.5s ease;
}

.rounded-2xl:hover img {
    transform: scale(1.05);
}
