/* Custom styles for Kyner & Co. Realty */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3e6b44;
}

/* Selection color */
::selection {
    background: #c7dfcc;
    color: #223926;
}

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

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

/* Fade in animations for scroll sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #528757;
    outline-offset: 2px;
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Ensure hero text is readable */
#hero h1,
#hero p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
