/* Custom Styles for Courtyard Winery */

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

body {
    /* Ensure font rendering is smooth */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0A3642;
}

/* 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 Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 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;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Focus States for Accessibility */
button:focus, a:focus, input:focus, textarea:focus {
    outline: 2px solid #0F4C5C;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, #contactForm, .animate-bounce {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
