/* ============================================
   Shelby Painting Co. — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #800020;
    color: #F5E6E8;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F6F0;
}
::-webkit-scrollbar-thumb {
    background: #800020;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #580016;
}

/* --- Navbar Transition --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(249, 246, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

/* --- Service Card --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* --- Gallery Item --- */
.gallery-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    box-shadow: 0 20px 60px rgba(128, 0, 32, 0.15);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only apply animations when user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-on-scroll.delay-1 { transition-delay: 0.1s; }
    .reveal-on-scroll.delay-2 { transition-delay: 0.2s; }
    .reveal-on-scroll.delay-3 { transition-delay: 0.3s; }
    .reveal-on-scroll.delay-4 { transition-delay: 0.4s; }
    .reveal-on-scroll.delay-5 { transition-delay: 0.5s; }
    .reveal-on-scroll.delay-6 { transition-delay: 0.6s; }
}

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

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

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Button Hover Effects --- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* --- Form Focus Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Print Styles --- */
@media print {
    #navbar, #back-to-top, .service-card:hover, .gallery-item:hover {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}
