/* Custom styles for Tropical Smoothie Café */

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

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

/* Reveal animation — progressive enhancement, only when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.06);
}

/* Subtle line decorations */
.divider-line {
    background: linear-gradient(90deg, transparent, rgba(128, 0, 32, 0.15), transparent);
}

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

/* Selection color */
::selection {
    background-color: rgba(128, 0, 32, 0.12);
    color: #6c001a;
}

/* Image aspect ratio fallback */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .group:hover .group-hover\:scale-105,
    .group:hover .group-hover\:translate-x-1,
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    #mobile-toggle,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-burgundy-800,
    .bg-burgundy-900 {
        background: #333 !important;
        color: #fff !important;
    }
}

/* Mobile responsiveness adjustments */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
