/* Custom styles for El Primo Birriería */

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

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

/* Hero entrance animations - below fold only, progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .hero-headline {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .hero-headline span:nth-child(1) { animation-delay: 0.1s; }
    .hero-headline span:nth-child(2) { animation-delay: 0.2s; }
    .hero-headline span:nth-child(3) { animation-delay: 0.3s; }

    .hero-eyebrow {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
        opacity: 0;
    }

    .hero-subtitle {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
        opacity: 0;
    }

    .hero-ctas {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
        opacity: 0;
    }

    .hero-stats {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal - progressive enhancement, content visible by default */
.reveal {
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(2, 10, 16, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #042f2e;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Selection color */
::selection {
    background: #14b8a6;
    color: #042f2e;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: menuSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Image loading placeholder */
img {
    background-color: #e7e5e4;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-headline span,
    .hero-eyebrow,
    .hero-subtitle,
    .hero-ctas,
    .hero-stats {
        animation: none !important;
        opacity: 1 !important;
    }
    img {
        transition: none !important;
    }
}
