/* Custom styles for Sarah Guy Real Estate */

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

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(82, 35, 57, 0.08);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(82, 35, 57, 0.12);
}

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

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

/* Scroll reveal — default state is VISIBLE (progressive enhancement) */
/* JS adds the .hidden state, then removes it for animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal — animated state (applied by JS) */
.reveal.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Reduced motion — disable animations entirely */
@media (prefers-reduced-motion: reduce) {
    .reveal.animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #733049;
}

/* Selection color */
::selection {
    background: #e8d0dd;
    color: #4f2234;
}
