/* Custom styles for Wondertea */
:root {
    --plum-950: #2b151f;
    --plum-900: #4d2b3b;
    --plum-800: #5e3346;
    --plum-700: #723e55;
    --plum-600: #8a4b65;
    --plum-500: #a15d78;
    --plum-200: #e8d2d8;
    --plum-100: #f3e9ed;
    --plum-50: #f9f5f7;
    --amber-500: #ffaa00;
    --amber-400: #ffbf33;
    --amber-200: #ffe999;
    --amber-100: #fff4cc;
    --amber-50: #fffbeb;
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--plum-100);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-500);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--amber-400);
    outline-offset: 2px;
}

/* Image lazy loading fade-in */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
