/* Custom styles for Just Teasin' Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf8e8;
}

::-webkit-scrollbar-thumb {
    background: #d45a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8441e;
}

/* Selection color */
::selection {
    background: #f9e4d8;
    color: #4A3728;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fade-in animation for scroll reveal (progressive enhancement) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Geometric decorative elements */
.geo-square {
    position: absolute;
    background: currentColor;
    opacity: 0.1;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* Prevent layout shift on loaded images */
img {
    object-fit: cover;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(74, 55, 40, 0.08);
}

/* Service card hover - ensure text contrast */
.group:hover .group-hover\:text-white {
    color: #ffffff;
}

.group:hover .group-hover\:text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}
