/* ==========================================================================
   Szen Yu Wellness Beauty - Spa Experience & Scroll Aesthetics
   ========================================================================== */

/* 1. Ritual Journey Top Progress Indicator */
#ritualProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, #9A7B4F, #B4A182, #e5d5be, #9A7B4F);
    background-size: 200% 100%;
    animation: goldShimmer 3s ease infinite;
    z-index: 100001;
    transition: width 0.15s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px rgba(180, 161, 130, 0.5);
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Floating Zen Botanical Petals Canvas */
#zenPetalsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    opacity: 0.65;
}

/* Coordinated Floating Actions (WhatsApp & Lotus Return) */
.whatsapp-float {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background-color: #25D366 !important;
    color: #FFF !important;
    text-align: center !important;
    font-size: 28px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    z-index: 9991 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45) !important;
    color: #FFF !important;
}

.lotus-return-btn {
    position: fixed;
    bottom: 96px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(72, 60, 50, 0.15);
    border: 1px solid rgba(180, 161, 130, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.4s ease;
}

.lotus-return-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lotus-return-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 25px rgba(154, 123, 79, 0.3);
    border-color: #B4A182;
}

.lotus-svg-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
}

.lotus-ring-bg {
    fill: none;
    stroke: rgba(180, 161, 130, 0.2);
    stroke-width: 3;
}

.lotus-ring-fill {
    fill: none;
    stroke: #9A7B4F;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 144.5;
    stroke-dashoffset: 144.5;
    transition: stroke-dashoffset 0.15s ease-out;
}

.lotus-icon {
    color: #9A7B4F;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.lotus-return-btn:hover .lotus-icon {
    transform: translateY(-2px);
    color: #53402e;
}

/* 4. Five Senses - 100% Authentic Seamless Background (Matching Live Site) */
.sense-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    transition: transform 0.4s ease;
}

.sense-item i {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease, filter 0.4s ease;
}

.sense-item.aura-active i,
.sense-item:hover i {
    transform: translateY(-5px) scale(1.1);
    color: #9A7B4F !important;
    filter: drop-shadow(0 4px 10px rgba(154, 123, 79, 0.3));
}

.sense-item.aura-active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 5. Essential Oil Sunlit Sheen Effect */
.product-img-wrapper, .service-image-link, .img-wrapper, .split-image-box, .service-img-wrap {
    position: relative;
    overflow: hidden;
}

.product-img-wrapper::before, .service-image-link::before, .img-wrapper::before, .split-image-box::before, .service-img-wrap::before {
    content: '';
    position: absolute;
    top: -120%;
    left: -120%;
    width: 120%;
    height: 300%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        rgba(242, 230, 214, 0.35) 50%,
        rgba(255, 255, 255, 0.05) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

.sheen-active::before {
    animation: oilSheenSweep 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes oilSheenSweep {
    0% {
        top: -120%;
        left: -120%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 150%;
        left: 150%;
        opacity: 0;
    }
}

/* 6. Floating "Find Your Skin Ritual" Consultation Pill */
.ritual-pill-trigger {
    position: fixed;
    bottom: 28px;
    left: 28px;
    background: linear-gradient(135deg, #322a2b, #483c32);
    color: #fff;
    padding: 12px 22px;
    border-radius: 40px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(50, 42, 43, 0.28);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 9995;
    border: 1px solid rgba(180, 161, 130, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.ritual-pill-trigger i.fa-sparkles {
    color: #d8c29d;
    font-size: 14px;
    animation: sparkleSpin 4s infinite linear;
}

@keyframes sparkleSpin {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 0.8; }
}

.ritual-pill-trigger:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 30px rgba(50, 42, 43, 0.4);
    border-color: #B4A182;
    background: linear-gradient(135deg, #241e1f, #3b3129);
}

/* 7. "Find Your Skin Ritual" Diagnostic Drawer / Modal */
.ritual-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 24, 25, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ritual-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ritual-modal-card {
    background: #FDFBF7;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 24px;
    padding: 38px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(180, 161, 130, 0.3);
    position: relative;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ritual-modal-overlay.open .ritual-modal-card {
    transform: scale(1) translateY(0);
}

.ritual-modal-close {
    position: absolute;
    top: 22px;
    right: 24px;
    background: none;
    border: none;
    font-size: 20px;
    color: #8a7a68;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ritual-modal-close:hover {
    color: #322a2b;
    background: rgba(180, 161, 130, 0.15);
    transform: rotate(90deg);
}

.ritual-modal-badge {
    display: inline-block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9A7B4F;
    font-weight: 700;
    margin-bottom: 8px;
}

.ritual-modal-card h3 {
    font-size: 28px;
    font-family: var(--font-heading, 'Playfair Display', serif);
    color: #322a2b;
    margin-bottom: 10px;
}

.ritual-modal-card p.subtitle {
    font-size: 14px;
    color: #6d6257;
    margin-bottom: 24px;
}

.ritual-goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 26px;
}

.ritual-goal-btn {
    background: #fff;
    border: 1.5px solid #e5dcce;
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ritual-goal-btn .goal-title {
    font-size: 14px;
    font-weight: 700;
    color: #322a2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ritual-goal-btn .goal-desc {
    font-size: 11.5px;
    color: #8a7c6f;
    line-height: 1.4;
}

.ritual-goal-btn:hover, .ritual-goal-btn.selected {
    border-color: #9A7B4F;
    background: #fbf7f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(154, 123, 79, 0.14);
}

.ritual-goal-btn.selected {
    border-width: 2px;
    background: #f7efe4;
}

.ritual-recommendation-box {
    background: #fff;
    border: 1px solid #ebdccb;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.recommendation-info h4 {
    font-size: 18px;
    font-family: var(--font-heading, 'Playfair Display', serif);
    color: #322a2b;
    margin-bottom: 4px;
}

.recommendation-info p {
    font-size: 12.5px;
    color: #6d6257;
    line-height: 1.4;
}

.recommendation-info .meta-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #9A7B4F;
    background: rgba(154, 123, 79, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.btn-book-ritual {
    background: #322a2b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-book-ritual:hover {
    background: #9A7B4F;
    transform: translateY(-2px);
    color: #fff;
}



/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    #zenPetalsCanvas { display: none !important; }
    #ritualProgressBar { animation: none !important; }
    .lotus-return-btn { transition: none !important; }
    .senses-card { transition: none !important; }
    .sheen-active::before { display: none !important; }
}
/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-float {
        bottom: 22px !important;
        right: 22px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 25px !important;
    }
    .lotus-return-btn {
        bottom: 82px !important;
        right: 24px !important;
        width: 46px !important;
        height: 46px !important;
    }
    .lotus-svg-ring {
        width: 46px !important;
        height: 46px !important;
    }
    .ritual-pill-trigger {
        bottom: 22px;
        left: 20px;
    }
    .ritual-modal-card {
        max-width: 520px;
        padding: 32px 30px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 18px !important;
        right: 18px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 25px !important;
    }
    .lotus-return-btn {
        bottom: 82px !important;
        right: 21px !important;
        width: 42px !important;
        height: 42px !important;
    }
    .lotus-svg-ring { 
        width: 42px !important; 
        height: 42px !important; 
    }
    .lotus-icon {
        font-size: 15px !important;
    }
    .ritual-pill-trigger {
        bottom: 18px;
        left: 16px;
        padding: 9px 13px;
        font-size: 11.5px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-sizing: border-box;
    }
    .ritual-modal-overlay {
        padding: 14px;
    }
    .ritual-modal-card {
        padding: 26px 18px;
        border-radius: 20px;
        max-height: 86vh;
    }
    .ritual-modal-card h3 {
        font-size: 1.5rem;
    }
    .ritual-goals-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .ritual-goal-btn {
        padding: 12px 14px;
    }
    .ritual-recommendation-box {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }
    .btn-book-ritual {
        width: 100%;
        justify-content: center;
    }
}

/* Small Phone Screens */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 14px !important;
        right: 14px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 23px !important;
    }
    .lotus-return-btn {
        bottom: 74px !important;
        right: 17px !important;
        width: 38px !important;
        height: 38px !important;
    }
    .lotus-svg-ring { 
        width: 38px !important; 
        height: 38px !important; 
    }
    .lotus-icon {
        font-size: 13px !important;
    }
    .ritual-pill-trigger {
        bottom: 14px;
        left: 12px;
        padding: 8px 11px;
        font-size: 11px;
        height: 36px;
    }
    .ritual-modal-card {
        padding: 20px 14px;
    }
}
