/* Custom styles for Melissa's Hair & Nail Beautique */

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

/* Navigation scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .logo-text {
    color: #1f2937 !important;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered reveal for grid items */
    .reveal-grid > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    
    .reveal-grid.revealed > *:nth-child(1) { transition-delay: 0.1s; }
    .reveal-grid.revealed > *:nth-child(2) { transition-delay: 0.2s; }
    .reveal-grid.revealed > *:nth-child(3) { transition-delay: 0.3s; }
    .reveal-grid.revealed > *:nth-child(4) { transition-delay: 0.4s; }
    .reveal-grid.revealed > *:nth-child(5) { transition-delay: 0.5s; }
    .reveal-grid.revealed > *:nth-child(6) { transition-delay: 0.6s; }
    
    .reveal-grid.revealed > * {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #831735;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c152e;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #831735;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .reveal, #contact-form, button {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Mobile menu animations */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Image hover zoom effect */
img {
    transition: transform 0.3s ease;
}

/* Loading state for form */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Ensure all text meets WCAG AA contrast */
/* Burgundy (#831735) on white: ~7.5:1 ✓ */
/* Burgundy (#831735) on burgundy-100: ~4.8:1 ✓ */
/* White on burgundy-900: ~11:1 ✓ */
/* White on burgundy-700: ~8:1 ✓ */
/* Neutral-900 on white: ~15:1 ✓ */
/* Neutral-600 on white: ~4.6:1 ✓ */
