/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Scroll Reveal - Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .product-card, .testimonial-card, .service-item {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .product-card.revealed, .testimonial-card.revealed, .service-item.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat Cards Animation */
@media (prefers-reduced-motion: no-preference) {
    .stat-card {
        opacity: 0;
        transform: translateY(20px);
        animation: floatIn 0.6s ease forwards;
    }
    .card-1 { animation-delay: 0.3s; }
    .card-2 { animation-delay: 0.5s; }
    .card-3 { animation-delay: 0.7s; }
    .card-4 { animation-delay: 0.9s; }
    
    @keyframes floatIn {
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .font-serif { color: #111827 !important; }
.navbar-scrolled .text-plum-700 { color: #7c1d37 !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #d4476a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #961f3d; }

/* Selection */
::selection { background: #fce8ec; color: #6a1c33; }
</script>
