/* Custom styles for Nicola's Ristorante */

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

/* Scroll reveal base - content is always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(164, 68, 58, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #f5c2b8;
    color: #742a28;
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Subtle gradient for hero text */
.hero-gradient-text {
    background: linear-gradient(135deg, #fdf0ed 0%, #f5c2b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 20px 60px -15px rgba(164, 68, 58, 0.15);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Form focus ring animation */
input:focus,
select:focus,
textarea:focus {
    animation: focusRing 0.3s ease;
}

@keyframes focusRing {
    from {
        box-shadow: 0 0 0 0 rgba(226, 116, 104, 0.4);
    }
    to {
        box-shadow: 0 0 0 4px rgba(226, 116, 104, 0.2);
    }
}
