/* Custom Styles for JYOO Corporation */

:root {
    --brand-cream: #fdfcf9;
    --brand-olive: #5a5a40;
    --brand-gold: #c5a059;
    --brand-ink: #1a1a1a;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--brand-cream); }
::-webkit-scrollbar-thumb { background: var(--brand-gold); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-olive); }

/* ─── Section ─── */
#container-massage {
    position: relative;
    background-image: url('../img/learnmore.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 68vh;
    padding: 2.5rem 0 2.5rem;
    overflow: hidden;
    border: none;
}

#container-massage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.25));
    z-index: 0;
}

/* ─── Swiper Container ─── */
.productSwiper {
    width: 100%;
    overflow: hidden !important;
    position: relative;
    z-index: 1;
    padding: 20px 0 30px;
}

.swiper-wrapper {
    align-items: center;
}

/* ─── All slides: blurred and dimmed by default ─── */
.swiper-slide {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #fff;
    height: 240px;
    transition: filter 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
    filter: blur(2px) brightness(0.55);
    opacity: 0.75;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    pointer-events: none;
    user-select: none;
}

/* ─── Center/active slide — driven by JS is-center class ─── */
.swiper-slide.is-center {
    filter: none !important;
    opacity: 1 !important;
    box-shadow: 0 14px 36px rgba(0,0,0,0.28) !important;
    outline: 2px solid rgba(197,160,89,0.7);
    outline-offset: 3px;
}

/* ─── Images ─── */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* ─── Description Overlay ─── */
.description-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.swiper-slide.is-center .description-overlay {
    opacity: 1;
}

.description-overlay h3 {
    font-size: 0.92rem;
    margin-bottom: 3px;
    color: #f5e8cd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.description-overlay p {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

.description-overlay i { display: none; }

/* ─── Responsive ─── */
@media (max-width: 1024px) { .swiper-slide { height: 210px; } }
@media (max-width: 768px)  { .swiper-slide { height: 230px; } }
@media (max-width: 640px)  {
    .swiper-slide { height: 260px; }
    .swiper-button-next, .swiper-button-prev { display: none !important; }
}

/* ─── Navbar ─── */
nav.scrolled {
    background-color: rgba(253,252,249,0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.intro-bg {
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ─── Nav Buttons ─── */
.swiper-button-next,
.swiper-button-prev {
    color: #c5a059;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: #fff; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px; font-weight: bold; }
.swiper-pagination { display: none !important; }

#container-massage .text-center p { color: #121212; }
#container-massage .text-center h1 { color: #080808; }
