/* Custom styles for Salon 601 */

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

/* Selection color */
::selection {
    background-color: #3a6236;
    color: #fdfcf8;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Back to top button */
#back-to-top.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#back-to-top {
    transform: translateY(16px);
    transition: all 0.3s ease;
}

/* Geometric shapes animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotation, 0deg)); }
}

/* Subtle pulse for decorative dots */
@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Service card hover tilt effect */
.group:hover .w-14 {
    transform: scale(1.1) rotate(-3deg);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #3a6236, #6a9c64);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #3a6236;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3,
    .reveal-delay-4 {
        transition-delay: 0s;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
        50% { transform: translateY(-6px) rotate(var(--rotation, 0deg)); }
    }
    @keyframes pulse-dot {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 0.6; }
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb88a;
}
