/* ============================================================================
   Mixed Media Module — mixed_media.css
   Flexible content blocks: text, image, video, bullets, button
   ============================================================================ */

.lp-mixed-media {
    padding: 4rem 0;
    background: var(--lp-bg, #fff);
    color: var(--lp-text, #1a1a2e);
}

.lp-mixed-media .lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Two-column layouts ────────────────────────────────────────────────────── */
.mm-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.lp-mixed-media--two-column-right .mm-columns {
    grid-template-columns: 1fr 1fr;
}

/* Gap modifiers */
.mm-gap-compact .mm-columns  { gap: 1.5rem; }
.mm-gap-normal  .mm-columns  { gap: 3rem; }
.mm-gap-wide    .mm-columns  { gap: 5rem; }

/* Vertical alignment */
.mm-valign-top    .mm-columns { align-items: flex-start; }
.mm-valign-center .mm-columns { align-items: center; }
.mm-valign-bottom .mm-columns { align-items: flex-end; }

/* ── Stacked layout ─────────────────────────────────────────────────────────── */
.mm-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Blocks ─────────────────────────────────────────────────────────────────── */
.mm-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* TEXT */
.mm-text-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    color: var(--lp-heading, #1a1a2e);
}

.mm-text-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lp-text, #374151);
}

.mm-text-body p    { margin: 0 0 0.75rem; }
.mm-text-body p:last-child { margin-bottom: 0; }
.mm-text-body a    { color: var(--lp-accent, #1a56db); text-decoration: underline; }
.mm-text-body strong, .mm-text-body b { font-weight: 700; }
.mm-text-body em, .mm-text-body i     { font-style: italic; }

/* IMAGE */
.mm-image-figure {
    margin: 0;
    width: 100%;
}

.mm-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.mm-image-caption {
    font-size: 0.8rem;
    color: var(--lp-text-muted, #6b7280);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* VIDEO */
.mm-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.mm-video-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* BULLETS */
.mm-bullets-heading {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--lp-heading, #1a1a2e);
}

.mm-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mm-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--lp-text, #374151);
}

.mm-bullet-icon {
    color: var(--lp-accent, #1a56db);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.mm-bullet-text { flex: 1; }

/* BUTTON */
.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    align-self: flex-start;
}

.mm-btn:hover    { opacity: 0.9; transform: translateY(-1px); }
.mm-btn:active   { transform: translateY(0); }

.lp-btn--primary {
    background: var(--lp-accent, #1a56db);
    color: #fff;
    border: 2px solid transparent;
}

.lp-btn--outline {
    background: transparent;
    color: var(--lp-accent, #1a56db);
    border: 2px solid var(--lp-accent, #1a56db);
}

.lp-btn--secondary {
    background: var(--lp-bg-alt, #f3f4f6);
    color: var(--lp-text, #1a1a2e);
    border: 2px solid transparent;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mm-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Restore natural document order on mobile */
    .lp-mixed-media--two-column-right .mm-col--primary {
        order: 1;
    }
    .lp-mixed-media--two-column-right .mm-col--secondary {
        order: -1;
    }

    .lp-mixed-media {
        padding: 2.5rem 0;
    }
}
