/* ============================================
   El Fusion Raspas & Snacks — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #14b8a6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #0d9488 !important;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-link {
    color: #475569 !important;
}

.navbar-scrolled .font-serif,
.navbar-scrolled .font-sans {
    color: #0f172a !important;
}

.navbar-scrolled .menu-line {
    background-color: #0f172a !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Hero --- */
#hero {
    position: relative;
}

/* --- Menu Cards --- */
.menu-card {
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 47, 46, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(4, 47, 46, 0.15);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Form --- */
input:focus,
textarea:focus {
    background-color: #fff !important;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}
