/* Custom styles for Hammelton on Main */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #616161;
}

/* Selection color */
::selection {
    background: rgba(212, 165, 116, 0.3);
    color: #f5f5f5;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover */
.service-card {
    will-change: transform;
}

/* Listing card hover */
.listing-card {
    will-change: transform;
}

/* Testimonial card */
.testimonial-card {
    will-change: transform;
}

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .listing-card img,
    .service-card,
    .testimonial-card {
        transition: none;
    }
    .listing-card:hover img {
        transform: none;
    }
    .listing-card:hover,
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

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

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

/* Gold shimmer effect on hover for links */
a.text-gold-400:hover {
    background-image: linear-gradient(to right, #d4a574, #e8c9a0, #d4a574);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Subtle pulse for CTA buttons */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(232, 101, 74, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(232, 101, 74, 0);
    }
}

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