/* Custom styles for Madelyn's Beauty Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F9E5E5;
}
::-webkit-scrollbar-thumb {
    background: #681826;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a1019;
}

/* Service card subtle lift on hover */
.service-card {
    position: relative;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #681826;
    transition: width 0.4s ease;
}
.service-card:hover::after {
    width: 60%;
}

/* Gallery image hover overlay */
.reveal-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(104, 24, 38, 0);
    transition: background 0.4s ease;
    z-index: 1;
}
.reveal-img:hover::before {
    background: rgba(104, 24, 38, 0.1);
}
.reveal-img {
    position: relative;
}

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

/* Button focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #681826;
    outline-offset: 2px;
}

/* Input focus animation */
input:focus,
textarea:focus {
    border-bottom-color: #681826 !important;
}

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

/* Print styles */
@media print {
    nav, footer, #contact-form, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
