/* Custom styles for CAFE CON Leche' */

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

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

/* Selection color */
::selection {
    background-color: #F5A623;
    color: #1A0B17;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0B17;
}
::-webkit-scrollbar-thumb {
    background: #6B2D5B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8B2F73;
}

/* Scroll reveal base state — visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll reveal hidden state — only applied via JS when preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Reduced motion — disable transitions entirely */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.reveal-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(26, 11, 23, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Subtle image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero headline gradient text fallback */
.font-serif {
    text-rendering: optimizeLegibility;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

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

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

/* Gallery strip animation */
@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-scroll {
    animation: scroll-gallery 30s linear infinite;
}

.gallery-scroll:hover {
    animation-play-state: paused;
}
