/* ============================================
   POTTSVILLE STREET DELI — Custom Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Hero Animated Shapes --- */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    left: 5%;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-circle-2 {
    top: 60%;
    left: 15%;
    width: 120px;
    height: 120px;
    background: #22c55e;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatShape 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    top: 25%;
    right: 45%;
    width: 60px;
    height: 60px;
    background: #e8722a;
    border-radius: 50%;
    opacity: 0.3;
    animation: floatShape 5s ease-in-out infinite;
}

.shape-rect-1 {
    bottom: 20%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: #166534;
    border-radius: 20px;
    opacity: 0.1;
    transform: rotate(45deg);
    animation: rotateShape 12s linear infinite;
}

.shape-rect-2 {
    top: 15%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: #d4a017;
    border-radius: 12px;
    opacity: 0.2;
    transform: rotate(30deg);
    animation: rotateShape 8s linear infinite reverse;
}

.shape-triangle {
    bottom: 30%;
    left: 40%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #15803d;
    opacity: 0.08;
    animation: floatShape 7s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Menu Cards --- */
.menu-card {
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

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

/* --- Gallery Items --- */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* --- Nav Active State --- */
.nav-link.active {
    color: #16a34a;
    background: #f0fdf4;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .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; }
}

/* --- Mobile Menu Animation --- */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 5rem;
}

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

/* --- Utility --- */
@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; }
}
