/* Custom styles for Adam's Coffee Shop */

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

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

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

::-webkit-scrollbar-thumb {
    background: #A8C3B7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1A2A3A;
}

/* Reveal animation base state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for links */
a {
    transition: color 0.3s ease;
}

/* Image hover zoom effect */
img {
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #A8C3B7;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    img {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Navbar shadow on scroll */
#navbar.scrolled {
    box-shadow: 0 2px 20px rgba(26, 42, 58, 0.1);
}

/* Button hover lift effect */
button,
a {
    transition: all 0.3s ease;
}

button:hover,
a:hover {
    transform: translateY(-2px);
}

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

/* Form input focus states */
input:focus,
textarea:focus {
    background-color: #fff;
}

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