/* Custom styles for Grimaldi Realty Group */

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

/* Navbar text color transitions */
.navbar-text {
    color: rgba(6, 78, 59, 0.7);
    transition: color 0.3s ease;
}

header.scrolled .navbar-text {
    color: rgba(6, 78, 59, 0.85);
}

/* Mobile link styles */
.mobile-link {
    color: rgb(6, 78, 59);
}

/* Scroll reveal base - always visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state on devices that support prefers-reduced-motion and have JS */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Selection color */
::selection {
    background-color: rgba(16, 185, 129, 0.2);
    color: #064e3b;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Animation for floating card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #059669, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern for sections */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(5, 150, 105, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}
