/* Custom Styles for Cowgirl Kitchen */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: #0f172a;
    background-color: #ffffff;
}

/* Typography Overrides */
h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* When JS is active, we add these classes to trigger animation from hidden state */
.js-enabled .reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.js-enabled .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.js-enabled .reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

.js-enabled .reveal-up.active,
.js-enabled .reveal-left.active,
.js-enabled .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Navbar Scroll State */
.nav-scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

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

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

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.25rem;
    }
    
    h1 {
        font-size: 2.75rem;
    }
}
