/* ============================================
   Natural Nectars — Custom Styles
   ============================================ */

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

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

/* --- Selection Color --- */
::selection {
    background: #E8635B;
    color: white;
}

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

.navbar-scrolled .font-serif {
    color: #1A1D20 !important;
}

.navbar-scrolled a:not(.inline-flex) {
    color: #3D4249 !important;
}

.navbar-scrolled a:not(.inline-flex):hover {
    color: #E8635B !important;
}

/* --- Hero Image Grid Animation --- */
.hero-image-grid .rounded-2xl {
    opacity: 1;
}

/* --- Product Card Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* --- Scroll Reveal Base States (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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid #E8635B;
    outline-offset: 2px;
}

/* --- Select Dropdown Arrow --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* --- Button Ripple Effect --- */
button, a {
    position: relative;
    overflow: hidden;
}

/* --- Image Placeholder Fallback --- */
img {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
}

/* --- Print Styles --- */
@media print {
    nav, #contact, footer, .animate-pulse {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
