/* Zealous Salon & Beauty — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1a;
}
::-webkit-scrollbar-thumb {
    background: #841d37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11d3c;
}

/* Selection color */
::selection {
    background: rgba(132, 29, 55, 0.6);
    color: #fce7eb;
}

/* Scroll reveal base — content is always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal hidden state — applied via JS only for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(132, 29, 55, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero parallax-like effect */
#hero {
    position: relative;
}

#hero img {
    will-change: transform;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-burgundy-800\/50 {
    box-shadow: 0 0 30px rgba(132, 29, 55, 0.15);
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

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

#mobile-menu.hiding {
    animation: slideUp 0.25s ease forwards;
}

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

/* Star badge pulse */
@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Gallery image hover overlay */
.group .opacity-0 {
    transition: opacity 0.3s ease;
}

/* Counter animation target */
.font-display.text-3xl {
    transition: all 0.3s ease;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #dc4466;
    outline-offset: 2px;
}

/* Loading state for form button */
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    #navbar, #contact-form, iframe {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
