/* Custom styles for Divine Sweets and Gifts */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
    }
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 250, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(47, 79, 54, 0.08);
}

.navbar-scrolled .font-serif,
.navbar-scrolled .text-forest-800 {
    color: #1f3424 !important;
}

.navbar-scrolled .text-forest-600 {
    color: #3a6344 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF6;
}
::-webkit-scrollbar-thumb {
    background: #9cc5a5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fa078;
}

/* Selection color */
::selection {
    background: #c6dfcc;
    color: #1f3424;
}

/* Image aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4/3;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #4d8058;
    outline-offset: 2px;
}
