/* Custom styles for MAGO Real Estate */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(112, 40, 24, 0.08);
}

/* Hero animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

/* Selection color */
::selection {
    background: #f3a07e;
    color: #702818;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Neighborhood cards hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(224, 92, 43, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card,
    .group-hover\:scale-110,
    a,
    button {
        transition: none;
    }

    .floating-card {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2rem;
    }

    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.15;
    }
}

/* Ensure all content is visible by default for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}
