/* Custom styles for Apple'licious Pie Depot */

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

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

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

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

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

/* Animation for mobile menu */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 300px;
    opacity: 1;
}

/* Button hover effects */
button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #faf5e8 25%, #f4e8c8 50%, #faf5e8 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid #d65a32;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav,
    button,
    #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
