/* 
    Elma Beauty Bar - Custom Styles
    Palette: Plum (#3b0764, #4c1d95) & Amber (#d97706, #b45309)
    Fonts: Cormorant Garamond (Serif), Lato (Sans)
*/

:root {
    --plum-900: #2e1065;
    --plum-800: #4c1d95;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-800: #1c1917;
}

body {
    font-family: 'Lato', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--stone-100);
}
::-webkit-scrollbar-thumb {
    background: var(--plum-800);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--amber-600);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Utility Classes */
.scroll-reveal {
    opacity: 1; /* Default visible for accessibility/no-JS */
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* These are applied via JS when element is out of viewport */
.js-enabled .scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

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