/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent FOUC on navbar */
body.no-scroll {
    overflow: hidden;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(252, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 92, 42, 0.08);
}

.nav-link {
    position: relative;
}

/* ===== FLOATING CARDS (Hero) ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-bread {
    animation-delay: 0s;
}

.card-grocery {
    animation-delay: -2s;
}

.card-neighborhood {
    animation-delay: -4s;
}

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

/* ===== PRODUCT CARDS ===== */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ===== REASON CARDS ===== */
.reason-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    #hero h1 {
        font-size: clamp(2.2rem, 7vw, 3.5rem);
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1a5c2a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: #a8d5b5;
    color: #0a2611;
}
