/* ============================================
   McMichael's Pizza — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #722F37;
    color: #FDF8F6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAFAF8;
}
::-webkit-scrollbar-thumb {
    background: #E8E0D8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 48px;
    }
}

@keyframes imageReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.hero-content {
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.hero-line {
    animation: fadeInLine 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

.hero-image-container {
    animation: imageReveal 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    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);
}

/* Staggered delays for menu items */
.menu-item:nth-child(1) { transition-delay: 0.05s; }
.menu-item:nth-child(2) { transition-delay: 0.1s; }
.menu-item:nth-child(3) { transition-delay: 0.15s; }
.menu-item:nth-child(4) { transition-delay: 0.2s; }
.menu-item:nth-child(5) { transition-delay: 0.25s; }
.menu-item:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(232, 224, 216, 0.5);
}

.nav-scrolled .menu-line {
    background: #2C2C2C;
}

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

.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Image hover effects */
.story-image img,
.visit-image img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-image:hover img,
.visit-image:hover img {
    transform: scale(1.02);
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #722F37 !important;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 80px;
    }
    
    #hero {
        min-height: 100vh;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}
