/* ============================================
   Luchie Rentals — Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
}

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

/* Selection */
::selection {
    background-color: rgba(184, 83, 58, 0.2);
    color: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9EFE3;
}
::-webkit-scrollbar-thumb {
    background: #D19F52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8533A;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(253, 249, 245, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(253, 249, 245, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ============================================
   Hero Image
   ============================================ */
.hero-image {
    will-change: transform;
}

/* ============================================
   Floating Card
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

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

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    transition: border-color 0.5s ease, transform 0.5s ease;
}

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

/* ============================================
   Scroll Animations
   Only apply when user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

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

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

/* ============================================
   Image Hover Zoom
   ============================================ */
.listing-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .listing-img {
    transform: scale(1.05);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #contact, footer, .floating-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
