/* Custom Styles for Yo Good Yogurt */

/* Base Typography Adjustments */
body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

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

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Utility Classes */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1; /* Default visible for accessibility */
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

/* Active State for Reveals (toggled by JS) */
.revealed.reveal-up { opacity: 1; transform: translateY(0); }
.revealed.reveal-left { opacity: 1; transform: translateX(0); }
.revealed.reveal-right { opacity: 1; transform: translateX(0); }

/* Navbar Transition State */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-scrolled .text-white, 
.nav-scrolled .font-serif,
.nav-scrolled .uppercase {
    color: #432435 !important; /* plum-900 */
}

.nav-scrolled .border-amber-400 {
    border-color: #d97706 !important;
    color: #d97706 !important;
}

.nav-scrolled .hover\:text-amber-400:hover {
    color: #d97706 !important;
}

.nav-scrolled .border-white\/30 {
    border-color: rgba(67, 36, 53, 0.3) !important;
    color: #432435 !important;
}

.nav-scrolled .hover\:bg-white:hover {
    background-color: white !important;
    color: #432435 !important;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #7d4064;
    border-radius: 5px;
}

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