/* Custom styles for Allure Hair Studio */

:root {
    --burgundy-50: #fdf2f4;
    --burgundy-100: #fce7eb;
    --burgundy-200: #f9d0d9;
    --burgundy-500: #d94f6e;
    --burgundy-600: #c43652;
    --burgundy-700: #a52741;
    --burgundy-800: #872237;
    --burgundy-900: #701f31;
    --burgundy-950: #3d0a15;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d94f6e;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #701f31;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #d94f6e;
    outline-offset: 2px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scroll reveal base styles - content is visible by default */
.scroll-reveal {
    /* Default state: visible */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation class when JS adds it (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.animated.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Navbar background transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Form input focus animation */
input:focus, textarea:focus, select:focus {
    transform: translateY(-1px);
}

/* Card hover lift effect */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #a52741, #d94f6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(165, 39, 65, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Ensure all text is readable */
.text-burgundy-950 {
    color: #3d0a15;
}

.text-burgundy-900 {
    color: #701f31;
}

.text-burgundy-800 {
    color: #872237;
}

.text-burgundy-700 {
    color: #a52741;
}

.text-burgundy-600 {
    color: #c43652;
}

.text-burgundy-500 {
    color: #d94f6e;
}

/* High contrast for important text */
.font-semibold, .font-bold {
    color: #1f2937;
}

/* Ensure links are readable */
a {
    color: inherit;
    text-decoration: none;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    #navbar {
        position: relative;
        background: white !important;
    }
}
