/* ==========================================================
   Lead Magnet Content + Image  (lmci)
   Layout: lead_magnet_content_image
   Breakpoint mirrors existing content-image: min-width 1280px
   ========================================================== */

body main .lmci {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

/* Background modifiers — reuse existing theme color tokens */
body main .lmci.-bg-beige { background-color: var(--c-beige); }
body main .lmci.-bg-white { background-color: var(--c-white); }

/* ----------------------------------------------------------
   Image column
   ---------------------------------------------------------- */
body main .lmci__image {
    position: relative;
    overflow: hidden;
    /* Stable intrinsic height on mobile so image never collapses */
    aspect-ratio: 3 / 2;
}

body main .lmci__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Dynamic focal point set via inline CSS custom property */
    object-position: var(--focal-point, 50% 50%);
}

/* ----------------------------------------------------------
   Content column
   ---------------------------------------------------------- */
body main .lmci__content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Eyebrow / highlight */
body main .lmci__eyebrow {
    font-family: var(--f-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-orange);
    margin: 0 0 12px;
}

/* Heading — Farnham Display Light Italic */
body main .lmci__heading {
    font-family: var(--f-secondary);
    font-weight: 300;
    font-style: italic;
    font-size: 1.875rem;
    line-height: 1.2;
    margin: 0 0 20px;
}

/* Body copy */
body main .lmci__body {
    margin: 0 0 28px;
}

/* Form embed wrapper */
body main .lmci__form {
    margin-top: 8px;
}

/* CTA — navy outline / navy-fill hover (secondary treatment) */
body main .lmci__cta {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 24px;
    font-family: var(--f-primary);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    color: var(--c-primary);
    background: transparent;
    border: 1.5px solid var(--c-primary);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

body main .lmci__cta:hover,
body main .lmci__cta:focus-visible {
    color: var(--c-beige);
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    outline: none;
}

/* ----------------------------------------------------------
   Desktop: 2-column grid at 1280px+ (matches content-image)
   ---------------------------------------------------------- */
@media (min-width: 1280px) {
    body main .lmci {
        grid-template-columns: 1fr 1fr;
    }

    body main .lmci__image {
        /* Let height be driven by the grid row, not a fixed aspect-ratio */
        aspect-ratio: auto;
    }

    body main .lmci__content {
        padding: 60px 56px;
    }

    body main .lmci__heading {
        font-size: 2.25rem;
    }

    /* Image right on desktop: push image column after content */
    body main .lmci.-position-right .lmci__image {
        order: 2;
    }
}

/* ----------------------------------------------------------
   Mobile: -mobile-bottom sends image below content
   ---------------------------------------------------------- */
@media (max-width: 1279px) {
    body main .lmci.-mobile-bottom .lmci__image {
        order: 2;
    }
}
