/* Custom styles for La Casa Bakery & Cafe */

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

/* Custom clip path for hero */
.clip-diagonal-right {
    clip-path: polygon(30% 0%, 100% 0, 100% 100%, 0% 100%);
}

/* Scroll indicator animation */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(17, 17, 17, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 79, 43, 0.1);
}

/* Mobile menu link hover */
.mobile-link:hover {
    padding-left: 0.5rem;
}

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

::-webkit-scrollbar-track {
    background: #1D1D1D;
}

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

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

/* Selection color */
::selection {
    background: rgba(255, 79, 43, 0.3);
    color: #F6F6F6;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #FF4F2B;
    outline-offset: 2px;
}

/* Image aspect ratio helpers */
img {
    max-width: 100%;
    height: auto;
}
