/* ============================================
   HOMETOWN NUTRITION — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    min-height: 100vh;
}

/* ============================================
   BLOB DECORATIONS
   ============================================ */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 8s ease-in-out infinite;
}

.blob--green {
    background: #4a8352;
}

.blob--cream {
    background: #faf0d0;
}

.blob.mid {
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

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

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

.card--right {
    animation-delay: 1.3s;
}

.card--bottom {
    animation-delay: 2.6s;
}

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

.card--bottom {
    animation-name: floatBottom;
}

@keyframes floatBottom {
    0%, 100% { transform: translate(-50%, 0px); }
    50% { transform: translate(-50%, -8px); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Default state for reduced motion / no-JS: everything visible */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   NAVBAR SCROLL STATE
   ============================================ */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-blur-lg;
    box-shadow: 0 1px 0 rgba(40, 79, 50, 0.08), 0 4px 20px rgba(40, 79, 50, 0.06);
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@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;
    }
    
    .floating-card {
        animation: none !important;
    }
    
    .blob {
        animation: none !important;
    }
}

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