/* Custom Styles for Barrington Salon */

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

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

::-webkit-scrollbar-track {
    background: #1E1E1E;
}

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

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

/* Navigation Transition */
.nav-scrolled {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* Button Hover Effects */
.bg-coral-500 {
    position: relative;
    overflow: hidden;
}

.bg-coral-500::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;
}

.bg-coral-500:hover::before {
    left: 100%;
}

/* Image Hover Effects */
.aspect-\[4\/5\] {
    position: relative;
    overflow: hidden;
}

.aspect-\[4\/5\]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aspect-\[4\/5\]:hover::after {
    opacity: 1;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-anim {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .aspect-\[4\/5\] img {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .bg-coral-500 {
        background: #E85D5D !important;
    }
    
    .text-coral-400 {
        color: #FF7F5F !important;
    }
}

/* Print Styles */
@media print {
    .bg-coral-500,
    .bg-charcoal-900,
    .bg-charcoal-800 {
        background: white !important;
        color: black !important;
    }
    
    nav,
    footer {
        display: none;
    }
}
