/* Custom styles for Refresqueria Blue Moon */

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

/* Base styles */
body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.navbar-scrolled .menu-line {
    background: #7B2D3B !important;
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

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

/* Selection color */
::selection {
    background: #F5D5D5;
    color: #7B2D3B;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #F9EBEE 0%, #F3D0D8 100%);
}

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

/* Hero parallax effect */
@supports (background-attachment: fixed) {
    #hero img {
        background-attachment: fixed;
    }
}

/* Card hover glow */
.group:hover .group-hover\:shadow-xl {
    box-shadow: 0 20px 60px -15px rgba(123, 45, 59, 0.15);
}

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

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(123, 45, 59, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
