/* Custom styles for Heavenly Hair Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF8F2;
}
::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a5c38;
}

/* Selection */
::selection {
    background: #1B4332;
    color: #FDFCF8;
}

/* Navbar transitions */
.nav-link-color {
    position: relative;
}
.nav-link-color::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A843;
    transition: width 0.3s ease;
}
.nav-link-color:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #D4A843;
    transition: height 0.5s ease;
}
.service-card:hover::before {
    height: 100%;
}

/* Gallery items */
.gallery-item {
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 67, 50, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-hidden {
        opacity: 1;
        transform: translateY(0);
    }
    .gallery-item img {
        transition: none;
    }
    .service-card::before {
        transition: none;
    }
}

/* Mobile menu open state */
.mobile-menu-open #mobile-menu {
    opacity: 1 !important;
    pointer-events: all !important;
}
.mobile-menu-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
.hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.hamburger-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Navbar dark state */
.navbar-dark .nav-text-color {
    color: #FDFCF8 !important;
}
.navbar-dark .nav-icon-color {
    color: #D4A843 !important;
}
.navbar-dark .nav-link-color {
    color: #FDFCF8 !important;
}
.navbar-light .nav-text-color,
.navbar-light .nav-icon-color,
.navbar-light .nav-link-color {
    color: #1B4332 !important;
}

/* 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='%231B4332' 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;
}

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