/* ===== Custom Styles for Milano Take-Out Pizza ===== */

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(253, 252, 248, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(42, 68, 30, 0.08);
}

#navbar.scrolled .font-serif {
    color: #1c2b14;
}

/* Mobile menu links */
.mobile-link {
    display: block;
    font-weight: 600;
    color: #2d441e;
    text-decoration: none;
}

/* Float animation for hero badge */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll reveal — progressive enhancement, only when JS runs and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Feature items hover */
.feature-item {
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

/* Card hover tilt effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom selection color */
::selection {
    background-color: #b8ccaa;
    color: #1c2b14;
}

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

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Subtle pattern overlay for cream sections */
.bg-cream-50::before,
.bg-cream-100::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: radial-gradient(circle at 25% 25%, #3a5826 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, #3a5826 1px, transparent 1px);
    background-size: 40px 40px;
}
