/* Custom styles for Hair by Sarah Paige Abrams */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #a82150;
    color: white;
}

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

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

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

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

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(168, 33, 80, 0.08);
}

/* Mobile menu animation */
.mobile-menu-open #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #line2 {
    opacity: 0;
}

.mobile-menu-open #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #a82150 !important;
}

/* Gallery hover effects */
.group:hover img {
    transform: scale(1.05);
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
    
    * {
        transition: none !important;
    }
}

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

/* Fade-in animation for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure text is readable on all backgrounds */
.bg-plum-950 h1,
.bg-plum-950 h2,
.bg-plum-950 h3,
.bg-plum-950 p {
    color: #ffffff;
}

.bg-plum-950 .text-white\/70,
.bg-plum-950 .text-white\/60,
.bg-plum-950 .text-white\/50 {
    color: rgba(255, 255, 255, 0.7);
}
