/* Custom Styles for Hair By The Sisters LLC */

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

/* Base styles */
body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1f2127 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #7a7d88 !important;
}

.navbar-scrolled a:not(.bg-coral-500) {
    color: #4a4d56 !important;
}

/* Floating card animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Default hidden state for reveal (JS will add revealed class) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #ff7464;
    color: white;
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

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

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Back to top button */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

.group:hover .group-hover\:text-charcoal-300 {
    color: #a1a3ab;
}

/* Ensure contrast on dark backgrounds */
.bg-charcoal-900 .text-white {
    color: #ffffff;
}

.bg-charcoal-900 .text-charcoal-300 {
    color: #a1a3ab;
}

/* Print styles */
@media print {
    nav, #backToTop, .floating-card {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
