/* Custom styles for Five Star Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #a11736;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #841632;
}

/* Selection color */
::selection {
    background: #a11736;
    color: #fefdfb;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.98);
    box-shadow: 0 1px 20px rgba(161, 23, 54, 0.06);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gallery image hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

/* Input focus */
input:focus,
textarea:focus {
    outline: none;
}

/* Reduce 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 menu link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #a11736;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Hero decorative lines animation */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-20.left-10,
    .absolute.top-20.right-10 {
        animation: growLine 1s ease forwards;
    }
    .absolute.bottom-32.left-10,
    .absolute.bottom-32.right-10 {
        animation: growLineH 1s ease forwards;
    }
}

@keyframes growLine {
    from { height: 0; opacity: 0; }
    to { height: 96px; opacity: 1; }
}

@keyframes growLineH {
    from { width: 0; opacity: 0; }
    to { width: 96px; opacity: 1; }
}

/* CTA section glow pulse */
@media (prefers-reduced-motion: no-preference) {
    .bg-burgundy-950 .blur-3xl {
        animation: pulse 4s ease-in-out infinite;
    }
    .bg-burgundy-950 .blur-3xl:nth-child(2) {
        animation-delay: 2s;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.18; }
}
