/* Custom styles for Veronica's Bakery */

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

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

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

.nav-scrolled a:not(.bg-terracotta) {
    color: #374151 !important;
}

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

.nav-scrolled .mobile-link:hover {
    color: #e55525 !important;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

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

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

/* Selection color */
::selection {
    background: #f8c4b3;
    color: #712616;
}

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

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

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

/* Image loading placeholder */
img {
    background-color: #f3e8d0;
}
