/* Custom styles for Casa De Schnabel */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat cards float animation */
@media (prefers-reduced-motion: no-preference) {
    .stat-card {
        animation: float 6s ease-in-out infinite;
    }
    .stat-card:nth-child(2) {
        animation-delay: -1.5s;
    }
    .stat-card:nth-child(3) {
        animation-delay: -3s;
    }
    .stat-card:nth-child(4) {
        animation-delay: -4.5s;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 252, 245, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f5;
}
::-webkit-scrollbar-thumb {
    background: #d44f2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b83f25;
}

/* Selection color */
::selection {
    background: #f3b9a6;
    color: #7a2b1e;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #d44f2e;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fdf0eb 0%, #faf2d3 100%);
}
