/* Custom styles for Jackie Da Rosa Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #a61236;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a112e;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #730f27;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Default state for reduced motion - always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-text {
    color: #1a1a2e !important;
}

.nav-scrolled .mobile-link {
    color: #1a1a2e !important;
}

/* Hero parallax subtle effect */
#hero {
    will-change: transform;
}

/* Card hover glow */
.group:hover .bg-burgundy-100 {
    box-shadow: 0 0 30px rgba(166, 18, 54, 0.2);
}

/* Map hover */
iframe:hover {
    filter: brightness(1.02);
    transition: filter 0.3s ease;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(166, 18, 54, 0.15);
}

/* Button press animation */
button:active,
a:active {
    transform: scale(0.98) !important;
}

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

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

/* Counter animation */
.counter {
    display: inline-block;
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Print styles */
@media print {
    nav, #contact, .cta-banner, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
