/* Custom styles for The Loft Salon and Spa */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(50, 22, 25, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(50, 22, 25, 0.3);
}

/* Service cards */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(113, 54, 61, 0.12);
}

/* Gallery images */
.gallery-grid img {
    transition: transform 0.7s ease;
}

/* Scroll reveal base — content is visible by default */
.service-reveal,
.about-reveal,
.gallery-reveal,
.testimonials-reveal,
.cta-reveal,
.contact-reveal {
    opacity: 1;
    transform: none;
}

/* Only animate on prefers-reduced-motion off */
@media (prefers-reduced-motion: no-preference) {
    .service-reveal,
    .about-reveal,
    .gallery-reveal,
    .testimonials-reveal,
    .cta-reveal,
    .contact-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .gallery-reveal {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .gallery-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }

    .service-reveal.animated,
    .about-reveal.animated,
    .testimonials-reveal.animated,
    .cta-reveal.animated,
    .contact-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a54d56;
}

/* Selection color */
::selection {
    background-color: #b55f67;
    color: #faf5f7;
}
