/* Custom styles for Salon D'Donnas */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcf3;
}
::-webkit-scrollbar-thumb {
    background: #841434;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6e1432;
}

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

/* Gallery hover */
.gallery-item {
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(132, 20, 52, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Navbar scroll effect */
header.scrolled {
    box-shadow: 0 4px 20px rgba(132, 20, 52, 0.1);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button active state */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(132, 20, 52, 0.1);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Testimonial card tilt */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .gallery-item,
    .testimonial-card,
    a,
    button {
        transition: none;
    }
    .service-card::after {
        transition: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #841434;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern overlay for cream backgrounds */
.bg-cream-50 {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(253, 231, 235, 0.3) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(244, 163, 184, 0.15) 0%, transparent 50%);
}
