/**
 * LM Homepage Styles
 * Hero carousel (Ken Burns), intro parallax, color showcase,
 * flip cards, product showcase, responsive breakpoints
 *
 * @package LustMich
 */

/* =============================================
   Main Container
   ============================================= */
.lm-home {
    overflow-x: hidden;
    font-family: "Noto Sans", sans-serif;
}

/* =============================================
   Section 1: Hero Carousel
   ============================================= */
.lm-hero {
    position: relative;
    height: 640px;
    overflow: hidden;
}

.lm-hero__carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides stacked, opacity-faded */
.lm-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.lm-hero__slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* Background image with Ken Burns */
.lm-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Ken Burns zoom-in: 1.0 → 1.15 */
.lm-hero__slide.is-active[data-ken="zoom-in"] .lm-hero__bg {
    animation: lm-ken-zoom-in 8s ease-out forwards;
}

/* Ken Burns zoom-out: 1.15 → 1.0 */
.lm-hero__slide.is-active[data-ken="zoom-out"] .lm-hero__bg {
    animation: lm-ken-zoom-out 8s ease-out forwards;
}

@keyframes lm-ken-zoom-in {
    0%   { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes lm-ken-zoom-out {
    0%   { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Dark overlay for text readability */
.lm-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Slide content (centered text) */
.lm-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.lm-hero__heading {
    font-size: 4.5rem;
    color: #fff;
    margin: 0 0 10px;
    text-transform: none;
}

.lm-hero__desc {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Shop button on last slide */
.lm-hero__cta {
    margin-top: 24px;
    display: inline-block;
    color: #fff;
    border-color: #fff;
}
.lm-hero__cta:hover {
    background: #A28573;
    border-color: #A28573;
    color: #fff;
}

/* Navigation dots */
.lm-hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.lm-hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.lm-hero__dot.is-active,
.lm-hero__dot:hover {
    background: #fff;
    border-color: #fff;
}

/* =============================================
   Section 2: Intro Text (Scroll Parallax)
   ============================================= */
.lm-intro {
    padding: 100px 0 80px;
    overflow: hidden;
}

.lm-intro__container {
    max-width: 87%;
    margin: 0 auto;
    text-align: center;
}

.lm-intro__title {
    font-size: 2.5rem;
    color: #201712;
    margin: 0 0 12px;
}

.lm-intro__subtitle {
    font-size: 1.4rem;
    color: #201712;
    margin: 0 0 30px;
}

/* Divider: line — text — line */
.lm-intro__divider,
.lm-quality__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto 30px;
    max-width: 500px;
}

.lm-intro__divider::before,
.lm-intro__divider::after,
.lm-quality__divider::before,
.lm-quality__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E6E6E6;
}

.lm-intro__divider-text,
.lm-quality__divider-text {

    font-size: 0.85rem;
    font-weight: 300;
    color: #696969;
    white-space: nowrap;
    letter-spacing: 1px;
}

.lm-intro__text {
    font-size: 1.5rem;
    color: #696969;
    line-height: 2;
    max-width: 700px;
    margin: 0 auto 30px;
}

.lm-intro__link {
    display: inline-block;
}

/* =============================================
   Shared: Generic Fade Carousel
   ============================================= */
.lm-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.lm-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.lm-carousel__slide.is-active {
    opacity: 1;
}

.lm-carousel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================
   Section 3: Color Showcase (Dark)
   ============================================= */
.lm-colors {
    background: #000;
    padding: 80px 0;
}

.lm-colors__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lm-colors__carousel {
    max-width: 66%;
}

.lm-colors__carousel .lm-carousel {
    height: 400px;
}


.lm-colors__desc {
    font-size: 1.5rem;
    color: #fff;
    line-height: 34px;
    margin: 0 0 30px;
}

.lm-colors__cta {
    display: inline-block;
    color: #fff;
    border-color: #fff;
}
.lm-colors__cta:hover {
    background: #A28573;
    border-color: #A28573;
    color: #fff;
}

/* =============================================
   Section 4: Quality Features Intro
   ============================================= */
.lm-quality {
    padding: 100px 0 60px;
    overflow: hidden;
}

.lm-quality__container {
    max-width: 87%;
    margin: 0 auto;
    text-align: center;
}

.lm-quality__title {
    color: #201712;
}

.lm-colors__heading {
    color: #fff;
}

.lm-quality__title, .lm-colors__heading {
    font-size: 2.5rem;
    margin: 0 0 12px;
}



.lm-quality__divider {
    margin-top: 20px;
}

.lm-quality__text {
    font-size: 1.5rem;
    color: #696969;
    line-height: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* =============================================
   Section 5: Flip Cards
   ============================================= */
.lm-features {
    padding: 40px 0 100px;
}

.lm-features__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Card container */
.lm-features__card {
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
}

/* Inner wrapper that rotates */
.lm-features__card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

/* Desktop: flip on hover */
@media (hover: hover) {
    .lm-features__card:hover .lm-features__card-inner {
        transform: rotateY(180deg);
    }
}

/* Touch / JS: flip on tap (toggled by initFlipCards) */
.lm-features__card.is-flipped .lm-features__card-inner {
    transform: rotateY(180deg);
}

/* Front and back faces */
.lm-features__card-front,
.lm-features__card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid #E6E6E6;
    border-radius:20px;
}

/* Front face */
.lm-features__card-front {
    background: rgba(255, 255, 255, 0.96);
}

.lm-features__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.lm-features__label {

    font-size: 1.5rem;
    font-weight: 300;
    color: #201712;
    text-align: center;
}

/* Back face (rotated so it faces camera when card is flipped) */
.lm-features__card-back {
    transform: rotateY(180deg);
    background: var(--card-back-bg, #f0f0f0);
    text-align: center;
    padding: 8px;
}

.lm-features__card-title {

    font-size: 1.4rem;
    font-weight: 400;
    color: #000;
    margin: 0 0 12px;
}

.lm-features__card-desc {

    font-size: 0.85rem;
    font-weight: 300;
    color: #333;
    line-height: 1.4rem;
    margin: 0;
}

/* =============================================
   Section 6: Product Showcase (Dark)
   ============================================= */
.lm-showcase {
    background: #000;
    padding: 80px 0;
}

.lm-showcase__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.lm-showcase__left .lm-carousel,
.lm-showcase__right .lm-carousel {
    height: 400px;
}

.lm-showcase__center {
    text-align: center;
    padding: 0 20px;
}

.lm-showcase__heading {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 20px;
}

.lm-showcase__divider {
    width: 81%;
    height: 1px;
    background: #fff;
    margin: 0 auto 20px;
}

.lm-showcase__desc {
    font-size: 1.5rem;
    color: #fff;
    line-height: 2;
    margin: 0;
}

/* =============================================
   Responsive: Tablet (<=1024px)
   ============================================= */
@media (max-width: 1024px) {
    .lm-hero {
        height: 480px;
    }
    .lm-hero__heading {
        font-size: 3rem;
    }
    .lm-hero__desc {
        font-size: 1.2rem;
    }
    .lm-intro__title,
    .lm-quality__title {
        font-size: 2rem;
    }
    .lm-features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .lm-showcase__container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .lm-showcase__left,
    .lm-showcase__right {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .lm-showcase__left .lm-carousel,
    .lm-showcase__right .lm-carousel {
        height: 350px;
    }
}

/* =============================================
   Responsive: Mobile (<=768px)
   ============================================= */
@media (max-width: 768px) {
    .lm-hero {
        height: 400px;
    }
    .lm-hero__heading {
        font-size: 2.2rem;
    }
    .lm-hero__desc {
        font-size: 1rem;
    }
    .lm-intro__title,
    .lm-quality__title {
        font-size: 1.6rem;
    }
    .lm-intro__subtitle {
        font-size: 1.1rem;
    }
    .lm-intro__text,
    .lm-quality__text,
    .lm-colors__desc,
    .lm-showcase__desc {
        font-size: 1.1rem;
    }

    .lm-intro__link {
        margin-bottom:38px;
    }

    .lm-colors__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .lm-colors__carousel {
        max-width: 100%;
    }
    .lm-colors__carousel .lm-carousel {
        height: 300px;
    }
    .lm-colors__text {
        text-align: center;
    }
    .lm-features__grid {
        grid-template-columns: 1fr 1fr;
        max-width: 500px;
    }
    .lm-features__card {
        height: 240px;
    }
    .lm-showcase__heading {
        font-size: 1.8rem;
    }
}

/* =============================================
   Responsive: Small Mobile (<=480px)
   ============================================= */
@media (max-width: 480px) {
    .lm-hero {
        height: 340px;
    }
    .lm-hero__heading {
        font-size: 1.8rem;
    }
    .lm-hero__desc {
        font-size: 0.9rem;
    }
    .lm-intro,
    .lm-quality {
        padding: 60px 0 40px;
    }
    .lm-colors,
    .lm-showcase {
        padding: 50px 0;
    }
    .lm-features__grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}
