/* Custom styles for Ludlow Appraisal Company */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9e9185;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6e142c;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(161, 21, 48, 0.08);
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
}

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

/* Process step connector */
.process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #fce7eb, transparent);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

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

/* Subtle entrance animations for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Print styles */
@media print {
    nav, #back-to-top, .cta-banner {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}
