/**
 * [mtg_offer] shortcode — "Oferta" page (eyebrow + zebra + process cards).
 * Follows the binox theme design tokens:
 *   body font: hk (HK Grotesk), display font: oak_suns, red #e32e2e.
 */

.mtg-offer {
    --mo-red: #e32e2e;
    --mo-dark: #121212;
    --mo-gray: #555555;
    --mo-card-bg: #f4f4f4;
    --mo-radius: 10px;
    --mo-display: oak_suns, hk, sans-serif;
    --mo-body: hk, "Segoe UI", Arial, sans-serif;

    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
    box-sizing: border-box;
    font-family: var(--mo-body);
    color: var(--mo-dark);
}

.mtg-offer *,
.mtg-offer *::before,
.mtg-offer *::after {
    box-sizing: inherit;
}

/* ---------------------------------- header --------------------------------- */

.mtg-offer .mo-header {
    padding: 48px 0 40px;
}

.mtg-offer .mo-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mo-dark);
}

.mtg-offer .mo-eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 28px;
    height: 4px;
    background: var(--mo-red);
}

.mtg-offer .mo-title {
    margin: 18px 0 22px;
    font-family: var(--mo-display);
    font-weight: 700;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

/* inline accent tags in display headings (allowed: b, strong, i, em) */
.mtg-offer .mo-title b,
.mtg-offer .mo-title strong,
.mtg-offer .mo-title i,
.mtg-offer .mo-title em,
.mtg-offer .mo-section-title b,
.mtg-offer .mo-section-title strong,
.mtg-offer .mo-section-title i,
.mtg-offer .mo-section-title em {
    color: var(--mo-red);
}

.mtg-offer .mo-intro {
    max-width: 760px;
    margin: 0;
    color: var(--mo-gray);
    font-size: 20px;
    line-height: 1.65;
}

/* ---------------------------------- zebra ---------------------------------- */

.mtg-offer .mo-zebra {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/*
 * Flex (not grid) so .is-reversed swaps position via flex-direction
 * WITHOUT swapping the column sizes: media keeps its fixed 38% width.
 * Row height = max(content, default 440px); the media wrapper is sized by
 * the row, so the image only needs object-fit: cover (no max-height).
 */
.mtg-offer .mo-zebra-row {
    display: flex;
    align-items: stretch;
    min-height: 320px; /* default (project) row height, like the design */
    background: var(--mo-card-bg);
    border-radius: var(--mo-radius);
    overflow: hidden;
}

.mtg-offer .mo-zebra-row.is-reversed {
    flex-direction: row-reverse;
}

/* media wrapper: fixed width, image covers it (absolute fill) */
.mtg-offer .mo-zebra-media {
    flex: 0 0 38%;
    min-width: 0;
    position: relative;
}

.mtg-offer .mo-zebra-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mtg-offer .mo-zebra-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 44px 48px;
}

.mtg-offer .mo-zebra-title {
    margin: 0;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

.mtg-offer .mo-zebra-text {
    color: var(--mo-gray);
    font-size: 20px;
    line-height: 1.7;
}

.mtg-offer .mo-intro p,
.mtg-offer .mo-zebra-text p,
.mtg-offer .mo-card-desc p {
    margin: 0 0 10px;
}

.mtg-offer .mo-intro p:last-child,
.mtg-offer .mo-zebra-text p:last-child,
.mtg-offer .mo-card-desc p:last-child {
    margin-bottom: 0;
}

.mtg-offer .mo-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--mo-red);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.mtg-offer .mo-cta::after {
    content: "\2192";
    transition: transform 0.2s ease;
}

.mtg-offer .mo-cta:hover::after {
    transform: translateX(4px);
}

/* ---------------------------------- cards ---------------------------------- */

.mtg-offer .mo-cards {
    padding: 64px 0 40px;
}

.mtg-offer .mo-section-title {
    margin: 0 0 36px;
    font-family: var(--mo-display);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
}

.mtg-offer .mo-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.mtg-offer .mo-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 22px;
    background: var(--mo-card-bg);
    border-top: 3px solid var(--mo-red);
    border-radius: 8px;
}

.mtg-offer .mo-card-num {
    color: var(--mo-red);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.mtg-offer .mo-card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.mtg-offer .mo-card-desc {
    color: var(--mo-gray);
    font-size: 20px;
    line-height: 1.6;
    font-weight: 600px;
}

/* -------------------------------- responsive ------------------------------- */

@media (max-width: 1199px) {
    .mtg-offer .mo-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* tablet: zebra stays side-by-side, tighter paddings */
@media (max-width: 899px) {
    .mtg-offer .mo-header {
        padding: 32px 0 28px;
    }

    .mtg-offer .mo-zebra {
        gap: 24px;
    }

    .mtg-offer .mo-zebra-row {
        min-height: 0;
    }

    .mtg-offer .mo-zebra-content {
        padding: 32px 28px;
    }

    .mtg-offer .mo-cards {
        padding: 44px 0 24px;
    }
}

@media (max-width: 719px) {
    .mtg-offer .mo-zebra {
        gap: 20px;
    }

    .mtg-offer .mo-zebra-row,
    .mtg-offer .mo-zebra-row.is-reversed {
        flex-direction: column;
    }

    .mtg-offer .mo-zebra-media {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .mtg-offer .mo-zebra-content {
        padding: 24px 20px;
    }

    .mtg-offer .mo-cards-grid {
        grid-template-columns: 1fr;
    }
}
