/* Custom styles for Diaita Cold Pressed Juice */

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

/* Scroll reveal base - always visible by default for progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated state applied via JS only */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default hidden state for animated elements (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #4A4A4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6B6B6B;
}

/* Selection color */
::selection {
    background: rgba(255, 90, 46, 0.3);
    color: #fff;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF5A2E;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open {
    max-height: 500px;
}
