/* Simply Irresistible Nutrition — Custom Styles */
/* All critical styles are inlined in index.html for above-the-fold performance.
   This file handles progressive enhancement, scroll animations, and JS-driven features. */

/* Scroll Reveal — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Ensure content is visible even without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 100px;
}

/* Selection color */
::selection {
    background: rgba(5, 150, 105, 0.15);
    color: #064e3b;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Subtle page transition */
@media (prefers-reduced-motion: no-preference) {
    body {
        animation: pageIn 0.5s ease-out;
    }
}

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print styles */
@media print {
    nav, .mobile-menu, .float-card, .visit-map { display: none !important; }
    .hero { min-height: auto; padding: 2rem; }
    body { color: #000; background: #fff; }
}
