/* Custom styles for San Vicente Place */

:root {
    --plum-50: #F9F0FA;
    --plum-500: #4A235A;
    --plum-900: #160A20;
    --amber-300: #F5A623;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(74, 35, 90, 0.98) !important;
    box-shadow: 0 4px 20px rgba(22, 10, 32, 0.3) !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #F5A623;
    color: #160A20;
}

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

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

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
    
    a:hover {
        transform: none;
    }
}

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

/* Print styles */
@media print {
    header, #contact {
        background: white !important;
        color: black !important;
    }
    
    .bg-plum-500, .bg-plum-900, .bg-plum-950 {
        background: white !important;
        color: black !important;
    }
}
