/* ============================================
   Grilled Meats & Treats — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #0d4f4f;
    color: #faf8f5;
}

/* --- Navbar --- */
#navbar {
    background-color: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(13, 79, 79, 0.08);
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* --- Menu Item Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.from-bottom {
    transform: translateY(40px);
}

.reveal.from-left {
    transform: translateX(-40px);
}

.reveal.from-right {
    transform: translateX(40px);
}

.reveal.scale-in {
    transform: scale(0.95);
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.hidden-reveal.from-left {
    transform: translateX(-40px);
}

.reveal.hidden-reveal.from-right {
    transform: translateX(40px);
}

.reveal.hidden-reveal.scale-in {
    transform: scale(0.95);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal,
    .reveal.from-bottom,
    .reveal.from-left,
    .reveal.from-right,
    .reveal.scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .transition-all,
    .transition-colors,
    .transition-transform {
        transition-duration: 0.01ms !important;
    }
}

/* --- Image Placeholder Fallback --- */
img {
    background: linear-gradient(135deg, #e2ded8 0%, #d4b89a 100%);
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0d4f4f;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8a7e70;
}

/* --- Form Success Message --- */
.form-success {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
    
    /* Stack floating card on mobile */
    .absolute.-bottom-6.-left-6 {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    /* Remove decorative frame on mobile */
    .absolute.-top-4.-right-4 {
        display: none;
    }
}

/* --- Tablet --- */
@media (min-width: 769px) and (max-width: 1023px) {
    .font-serif.text-6xl {
        font-size: 4rem;
    }
}
