/* Custom styles for Colour & Shears Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f6;
}
::-webkit-scrollbar-thumb {
    background: #C4664A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b5553a;
}

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

/* Navbar transition */
.nav-text {
    color: #2a2a2a;
    transition: color 0.5s ease;
}

nav.scrolled .nav-text {
    color: #ffffff;
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

nav.scrolled .nav-link:hover {
    color: #f8a5ad;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger animation */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Reveal animations - 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);
    }
}

/* Service card hover */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C4664A, #f47b8c);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* Hero parallax subtle */
#hero {
    perspective: 1px;
}

/* Gallery hover overlay */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 42, 42, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gallery-item:hover::before {
    opacity: 1;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

/* Reduced motion */
@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;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}
