/* Custom styles for Starbucks 145 3rd Ave */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Progressive enhancement: animate only when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(17, 19, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(92, 98, 117, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5c6275;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 69, 0.3);
    color: #fff;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2a2e38 0%, #1e2129 100%);
}

/* Subtle text shadow for hero headlines */
.font-display {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff8a6c;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover lift effect for cards */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text utility */
.text-gradient-coral {
    background: linear-gradient(135deg, #ff8a6c 0%, #ff6b45 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(42, 46, 56, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(92, 98, 117, 0.2);
}

/* 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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .scroll-reveal {
        display: none !important;
    }
    
    body {
        background: white;
        color: #1e2129;
    }
    
    .font-display {
        text-shadow: none;
    }
}
