/* ===================================
   LUSH BEAUTY BAR — Custom Styles
   =================================== */

/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #9a2440;
    color: #FDF8F5;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #d4a8b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a2440;
}

/* ── Hero Animations ── */
.hero-line {
    display: inline-block;
    animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.25s; }
.hero-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes heroSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-subtitle {
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}

@keyframes heroFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-fade {
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    opacity: 0;
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(125, 29, 53, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-burgundy-700 {
    color: #7D1D35 !important;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* ── Menu Button ── */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s ease;
}

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

.service-card:hover .service-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ── Testimonial Swiper ── */
.testimonial-swiper {
    padding-bottom: 3rem !important;
}

.testimonial-swiper .swiper-pagination-bullet {
    background: rgba(240, 168, 176, 0.5);
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    background: #f0a8b0;
    width: 28px;
    border-radius: 5px;
}

/* ── Gallery Images ── */
.rounded-2xl img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Input Focus ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Back to Top ── */
#backToTop.visible {
    opacity: 1;
    translate: 0;
    pointer-events: all;
}

#backToTop:not(.visible) {
    opacity: 0;
    translate: 0 1rem;
    pointer-events: none;
}

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
