/* Custom styles for JCS Properties */

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

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(123, 45, 139, 0.1);
}

.nav-scrolled .nav-link {
    color: #4a1b52 !important;
}

.nav-scrolled .logo-text {
    color: #4a1b52 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5e2265;
}

/* Selection color */
::selection {
    background: #7B2D8B;
    color: #fff;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #f4a828 !important;
    box-shadow: 0 0 0 3px rgba(244, 168, 40, 0.2) !important;
}

/* Button hover glow */
.bg-amber-500:hover {
    box-shadow: 0 8px 25px rgba(244, 168, 40, 0.35);
}

.bg-plum-700:hover {
    box-shadow: 0 8px 25px rgba(123, 45, 139, 0.35);
}

/* Hero parallax-like subtle effect */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Property card image zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle pattern overlay for sections */
.bg-plum-950::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(123, 45, 139, 0.3) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(244, 168, 40, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
</style>
