/* ============================================
   Mami Chef Artisan Bakery — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #aed0b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7fb882;
}

/* --- Navbar --- */
#navbar.scrolled {
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08), 0 4px 24px rgba(45, 90, 61, 0.06);
}

#navbar.scrolled .nav-link {
    color: #1e3d28;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* --- Floating Cards --- */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* --- Menu Cards --- */
.menu-card {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease, background 0.4s ease;
}

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

/* --- Process Cards --- */
.process-card {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
}

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

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

.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; }

/* --- Button Hover Glow --- */
a:hover {
    transition: all 0.2s ease;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7fb882;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* --- Selection --- */
::selection {
    background: #aed0b0;
    color: #0f1f15;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .floating-card {
        animation: none;
    }
}

/* --- Print --- */
@media print {
    #navbar, #order {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
