/* Custom styles for Cool Beans Coffee Stop */

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

/* Hero animations */
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-desc {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

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

/* Scroll indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Reveal animations (below fold only) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: all 0.8s ease-out;
}

/* For reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .hero-subtitle,
    .hero-title,
    .hero-desc,
    .hero-buttons,
    .scroll-indicator {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

nav.scrolled .nav-link {
    color: #3C2415 !important;
}

nav.scrolled .mobile-link {
    color: #3C2415 !important;
}

nav.scrolled .mobile-menu-btn {
    color: #3C2415 !important;
}

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

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

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

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

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

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

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

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