/* Custom styles for Hair by Isaura */

/* Smooth scrolling offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #f8d7cc;
    color: #7f3022;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f7;
}
::-webkit-scrollbar-thumb {
    background: #dccfb8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c24a32;
}

/* Subtle pattern for hero background */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(194, 74, 50, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Service card image hover effect */
.service-card img {
    transition: transform 0.5s ease;
}
.service-card:hover img {
    transform: scale(1.03);
}

/* Testimonial card subtle border */
.bg-white.rounded-2xl {
    border: 1px solid rgba(220, 207, 184, 0.5);
}

/* Gallery image overlay on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(127, 48, 34, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.gallery-item:hover::after {
    opacity: 1;
}
.gallery-item {
    position: relative;
}

/* Nav active link indicator */
nav a.active {
    color: #c24a32 !important;
}

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