/* Custom styles for Sipes Body Shop */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a2525;
}

/* Selection color */
::selection {
    background: #fceee9;
    color: #7f1f1f;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#navbar.scrolled {
    background: rgba(250, 247, 244, 0.95);
    box-shadow: 0 1px 0 rgba(127, 31, 31, 0.08);
}

#navbar:not(.scrolled) {
    background: transparent;
}

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

/* Mobile menu lines animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

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

/* Service card hover */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card:hover {
    background-color: rgba(252, 238, 233, 0.5);
}

/* Subtle underline animation for links */
a.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #9a2525;
    transition: width 0.3s ease;
}

a.nav-link {
    position: relative;
}

a.nav-link:hover::after {
    width: 100%;
}

/* Hero text animation - only for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

img[loading="lazy"] {
    opacity: 0;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .service-card {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
