/* Custom Styles for The Hamptons El Camino */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b965;
}

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease-out forwards;
}
.hero-title {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}
.hero-text {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}
.hero-cta {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}
.hero-stat {
    animation: slideUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

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

/* Scroll Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up {
    transform: translateY(40px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: none;
}

/* Service Card Hover */
.service-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
}

/* Listing Card Hover */
.listing-card {
    transition: transform 0.3s ease;
}
.listing-card:hover {
    transform: translateY(-4px);
}

/* Mobile Menu */
.mobile-link {
    transition: color 0.3s ease;
}
.mobile-link:hover {
    color: #c9a84c;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-subtitle,
    .hero-title,
    .hero-text,
    .hero-cta,
    .hero-stat {
        animation: none;
        opacity: 1;
    }
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: #c9a84c;
    color: #0a1628;
}
