/* Custom Styles for Ela Salon */

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

/* Base font adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation scroll state */
.nav-scrolled .nav-link,
.nav-scrolled #nav-logo {
    color: #111e0a !important;
}

.nav-scrolled #navbar {
    background: rgba(253, 252, 248, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
    color: rgba(17, 30, 10, 0.8) !important;
}

.nav-scrolled .nav-link:hover {
    color: #111e0a !important;
}

.nav-scrolled #mobile-menu-btn {
    color: #111e0a !important;
}

/* Mobile menu active state */
.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery item hover */
.gallery-item {
    cursor: pointer;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #548d38;
}

/* Selection color */
::selection {
    background: #c7dfba;
    color: #111e0a;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #548d38;
    outline-offset: 2px;
}

/* 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='%233d7028' 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 1rem center;
    padding-right: 2.5rem;
}

/* Decorative line animation */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #548d38;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.service-card {
    position: relative;
}

.service-card:hover::after {
    width: 60%;
}

/* Subtle pattern for cream background */
.bg-cream-50 {
    background-image: linear-gradient(to bottom, rgba(161, 199, 138, 0.03) 1px, transparent 1px);
    background-size: 100% 40px;
}

/* Gallery image overlay on hover */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 30, 10, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Mobile menu backdrop blur */
#mobile-menu {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
