/* Custom styles for Iyalode Hair Studio */

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

/* Selection color */
::selection {
    background-color: rgba(245, 92, 26, 0.3);
    color: #f6f6f7;
}

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

::-webkit-scrollbar-track {
    background: #0c0c0e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem !important;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(5, 5, 6, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Subtle hover effects on service cards */
.group:hover .group-hover\:w-16 {
    width: 4rem;
}

/* Ensure serif headings have proper line height */
font-serif {
    line-height: 1.1;
}

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

/* High contrast focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f55c1a;
    outline-offset: 2px;
}

/* Ensure all text meets WCAG AA contrast */
.text-charcoal-100,
.text-charcoal-200,
.text-charcoal-300 {
    color: #e3e3e5;
}

/* Image loading placeholder */
img {
    background-color: #18181b;
}
