/* ============================================
   Market Cafe & Deli — Custom Styles
   ============================================ */

/* Base & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFAF5;
    color: #162c16;
    line-height: 1.6;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 92, 45, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(95, 163, 95, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -80px;
}

.rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(45, 92, 45, 0.04);
    border-radius: 24px;
    top: 40%;
    left: 5%;
    transform: rotate(45deg);
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(95, 163, 95, 0.06);
    top: 60%;
    right: 8%;
    transform: rotate(-15deg);
}

/* ============================================
   Floating Card Animations
   ============================================ */
.float-card-1 {
    animation: float-slow 6s ease-in-out infinite;
}

.float-card-2 {
    animation: float-medium 5s ease-in-out infinite;
}

.float-card-3 {
    animation: float-slow 7s ease-in-out infinite;
}

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

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 92, 45, 0.08);
}

#navbar.scrolled {
    background: rgba(250, 250, 245, 0.95);
    box-shadow: 0 4px 20px rgba(22, 44, 22, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   Scroll Reveal Animations (below fold only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .about-img,
    .product-card,
    .feature-card,
    .cta-section,
    .location-info,
    .location-map {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .about-content {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.6s ease, transform 0.6s ease 0.1s;
    }

    .product-header,
    .features-header,
    .location-header {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    /* These get JS-driven reveal classes for below-fold */
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduced motion: no animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .float-card-1,
    .float-card-2,
    .float-card-3 {
        animation: none;
    }
}

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

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

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

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

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(45, 92, 45, 0.15);
    color: #162c16;
}

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

/* ============================================
   Image aspect ratios
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
    .float-card-3 {
        display: none;
    }
}
