/* Custom Styles for Starbucks Tempe */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #102a43;
}

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

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

/* Gold accent underline */
.text-gold-600::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #eab53f, #d9921a);
    border-radius: 2px;
    margin-top: 8px;
}

/* Hover card glow */
.group:hover .group-hover\:shadow-xl {
    box-shadow: 0 20px 40px -12px rgba(16, 42, 67, 0.15);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 26, 46, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

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

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

/* Selection color */
::selection {
    background: rgba(234, 181, 63, 0.3);
    color: #102a43;
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-950, .bg-navy-900 {
        background: #f5f5f5 !important;
    }
    
    .text-white, .text-navy-200, .text-navy-300 {
        color: #333 !important;
    }
}
