/* Custom styles for Rustic Shears Salon */

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

/* Clip diagonal for hero */
.clip-diagonal {
    clip-path: polygon(50% 0%, 100% 0, 100% 100%, 0% 100%);
}

/* Hero animations - above the fold, always visible */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
}

.hero-img-anim {
    opacity: 1;
    transform: translateY(0);
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(20, 184, 166, 0.1);
}

.nav-scrolled .nav-logo-text {
    color: #0a1628;
}

/* Mobile menu active state */
.mobile-menu-active #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Service card hover - underline animation */
.service-card {
    position: relative;
    overflow: hidden;
}

/* Custom select styling */
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='%2314b8a6' 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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    .service-card .group-hover\:w-full {
        width: 0 !important;
    }
    
    img:hover {
        transform: none;
    }
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.2);
    color: #0a1628;
}

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

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

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}
