/* Custom Styles for SG Nail SPA */

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

/* Base Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #fdfbf7;
}

::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #042f23;
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: none;
}

/* Form Input Transitions */
input,
textarea {
    transition: all 0.3s ease;
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image Loading Placeholder */
img {
    background-color: #f5f0e6;
}

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

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-emerald-900\/70 {
        color: #064e3b;
    }
    
    .text-cream-200\/60 {
        color: #f5f0e6;
    }
}

/* Print Styles */
@media print {
    nav,
    button,
    form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-emerald-950,
    .bg-emerald-900 {
        background: #000 !important;
        color: #fff !important;
    }
}
