/**
 * Customize Your Toy — Page styles
 * Follows same patterns as our-world.css
 *
 * @package LustMich
 */

/* =============================================
   Main Container
   ============================================= */

.lm-customize {
    overflow-x: hidden;
    font-family: "Noto Sans", sans-serif;
}

.lm-customize__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.lm-customize__container--narrow {
    max-width: 760px;
    text-align: center;
}

/* =============================================
   Scroll Reveal
   ============================================= */

.lm-customize__reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lm-customize__reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Section 1: Hero
   ============================================= */

.lm-customize__hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    background: #000;
}

.lm-customize__hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #201712 0%, #3a2820 40%, #201712 100%);
    background-size: cover;
    background-position: center;
    animation: lm-customize-ken 20s ease-in-out infinite alternate;
}

@keyframes lm-customize-ken {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.lm-customize__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
}

.lm-customize__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-customize__hero-heading {
    font-size: 4.5rem;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.lm-customize__hero-sub {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Scroll hint button */
.lm-customize__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: lm-customize-bounce 2s ease-in-out infinite;
    opacity: 0.8;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    padding: 0;
}

.lm-customize__scroll-hint:hover {
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

@keyframes lm-customize-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   Sections — shared
   ============================================= */

.lm-customize__section {
    position: relative;
    padding: 100px 0;
}

.lm-customize__section--light {
    background: #fff;
}

.lm-customize__section--dark {
    background: #000;
}

.lm-customize__section--accent {
    background: #A28573;
    text-align: center;
}

.lm-customize__section--overlap {
    margin-top: -40px;
    border-radius: 20px 20px 0 0;
    z-index: 2;
}

.lm-customize__section--cta {
    background: #a28573;
    text-align: center;
    padding: 80px 0;
}

/* =============================================
   Typography
   ============================================= */

.lm-customize__title {
    font-size: 2.5rem;
    color: #201712;
    margin: 0 0 16px;
    line-height: 1.3;
}

.lm-customize__title--light {
    color: #fff;
}

.lm-customize__text {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.9;
    margin: 0 0 16px;
}

.lm-customize__text--light {
    color: rgba(255, 255, 255, 0.9);
}

.lm-customize__text--muted {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

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

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

.lm-customize__divider--light::before,
.lm-customize__divider--light::after {
    background: rgba(255, 255, 255, 0.3);
}

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

.lm-customize__divider--light .lm-customize__divider-text {
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   Split Layout (image + text side by side)
   ============================================= */

.lm-customize__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lm-customize__split--reverse {
    direction: rtl;
}

.lm-customize__split--reverse > * {
    direction: ltr;
}

.lm-customize__split-media {
    overflow: hidden;
    border-radius: 12px;
}

.lm-customize__split-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* =============================================
   Image Placeholder (temporary)
   ============================================= */

.lm-customize__placeholder {
    background: linear-gradient(135deg, #f0ece8 0%, #e8e0d8 50%, #f0ece8 100%);
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #A28573;
}

.lm-customize__placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.lm-customize__placeholder span {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

.lm-customize__placeholder--wide {
    aspect-ratio: 16 / 5;
}

/* =============================================
   CTA Buttons
   ============================================= */

.lm-customize__cta.lm-button {
    margin-top: 8px;
}

.lm-customize__cta--light.lm-button {
    color: white;
    border-color: white;
}

.lm-customize__cta--light.lm-button:hover {
    background: white;
    color: #A28573;
    border-color: white;
}

.lm-customize__cta--outline.lm-button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.lm-customize__cta--outline.lm-button:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.lm-customize__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

/* =============================================
   Section 9: Colors — Paint Bin Swatch Grid
   ============================================= */

.lm-customize__colors-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.lm-customize__swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
}

.lm-customize__swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lm-customize__swatch-bin {
    position: relative;
    width: 90px;
    height: 90px;
}

/* Color fill sits behind the bin image */
.lm-customize__swatch-fill {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 76%;
    height: 76%;
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.3s ease;
}

.lm-customize__swatch:hover .lm-customize__swatch-fill {
    transform: scale(1.08);
}

/* Bin PNG sits on top — transparent center reveals color fill */
.lm-customize__swatch-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.lm-customize__swatch-name {
    font-size: 0.75rem;
    font-weight: 300;
    color: #696969;
    text-align: center;
    max-width: 90px;
}

.lm-customize__text--subtle {
    color: #999;
    font-size: 0.95rem;
}

/* =============================================
   Section 10: Softness Bars
   ============================================= */

.lm-customize__softness-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 28px 0;
}

.lm-customize__softness-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lm-customize__softness-bar {
    width: 80px;
    height: 8px;
    background: #E6E6E6;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.lm-customize__softness-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--fill, 50%);
    background: #A28573;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.lm-customize__softness-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lm-customize__softness-info strong {
    font-size: 0.95rem;
    font-weight: 400;
    color: #201712;
}

.lm-customize__softness-info span {
    font-size: 0.85rem;
    font-weight: 300;
    color: #696969;
}

/* =============================================
   Responsive: Tablet (<=1024px)
   ============================================= */

@media (max-width: 1024px) {
    .lm-customize__hero-heading {
        font-size: 3.5rem;
    }

    .lm-customize__title {
        font-size: 2rem;
    }

    .lm-customize__split {
        gap: 40px;
    }
}

/* =============================================
   Responsive: Mobile (<=768px)
   ============================================= */

@media (max-width: 768px) {
    .lm-customize__hero {
        min-height: 340px;
        max-height: 500px;
    }

    .lm-customize__hero-heading {
        font-size: 2.5rem;
    }

    .lm-customize__hero-sub {
        font-size: 1.1rem;
    }

    .lm-customize__section {
        padding: 70px 0;
    }

    .lm-customize__section--overlap {
        margin-top: -30px;
        border-radius: 16px 16px 0 0;
    }

    .lm-customize__title {
        font-size: 1.7rem;
    }

    .lm-customize__text {
        font-size: 1rem;
    }

    /* Split: stack vertically */
    .lm-customize__split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lm-customize__split--reverse {
        direction: ltr;
    }

    /* Color swatches */
    .lm-customize__swatch-bin {
        width: 75px;
        height: 75px;
    }

    .lm-customize__swatches {
        gap: 20px;
    }

    /* Softness bars */
    .lm-customize__softness-bar {
        width: 60px;
    }
}

/* =============================================
   Responsive: Small Mobile (<=480px)
   ============================================= */

@media (max-width: 480px) {
    .lm-customize__hero {
        min-height: 300px;
        max-height: 420px;
    }

    .lm-customize__hero-heading {
        font-size: 2rem;
    }

    .lm-customize__hero-sub {
        font-size: 0.95rem;
    }

    .lm-customize__section {
        padding: 50px 0;
    }

    .lm-customize__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lm-customize__cta-buttons .lm-button {
        width: 100%;
    }

    .lm-customize__swatch-bin {
        width: 60px;
        height: 60px;
    }

    .lm-customize__swatches {
        gap: 16px;
    }
}
