/**
 * Enterprise Section Styles
 *
 * Full-width dark section with two columns:
 * Left — image or video (737×395)
 * Right — content (title + text + CTA button)
 *
 * @package Mesa
 * @since 1.7.0
 */

/* ============================================
   Section
   ============================================ */
.mesa-enterprise {
    width: 100%;
    background: #08050C;
    direction: rtl;
    box-sizing: border-box;
    overflow: hidden;
}

/* ============================================
   Inner Container
   ============================================ */
.mesa-enterprise__inner {
    max-width: 1512px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-block: clamp(3rem, 7.6vw, 7.188rem);
    padding-inline-start: clamp(1.5rem, 11.84%, 11.25rem);
    padding-inline-end: 0;
    gap: clamp(2rem, 9.13vw, 8.625rem);
    box-sizing: border-box;
}

/* ============================================
   Content Column (Right in RTL)
   ============================================ */
.mesa-enterprise__content {
    flex: 0 1 clamp(18rem, 29.76vw, 28.125rem);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Title
   ============================================ */
.mesa-enterprise__title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-style: italic !important;
    font-size: clamp(2rem, 3.44vw, 3.25rem);
    line-height: 120%;
    letter-spacing: 0;
    text-align: right;
    color: #FFFFFF;
    margin: 0;
}

/* ============================================
   Text
   ============================================ */
.mesa-enterprise__text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.06vw, 1rem);
    line-height: 150%;
    letter-spacing: 0;
    text-align: right;
    color: #FFFFFF;
    margin: clamp(1.25rem, 2.51vw, 2.375rem) 0 0;
}

/* ============================================
   Button Row
   ============================================ */
.mesa-enterprise__btn-row {
    display: flex;
    justify-content: flex-start;
    margin-top: clamp(1.5rem, 3.04vw, 2.875rem);
}

/* ============================================
   CTA Button (parallelogram — same as other sections)
   ============================================ */
.mesa-enterprise__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(8.75rem, 11.9vw, 11.25rem);
    height: clamp(2.25rem, 2.91vw, 2.75rem);
    background-color: #CEFE65;
    color: #08050C;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(0.875rem, 1.19vw, 1.125rem);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 0;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    padding: 0 calc(15px + 20px);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mesa-enterprise__btn:hover {
    opacity: 0.9;
}

/* ============================================
   Media Column (Left in RTL)
   ============================================ */
.mesa-enterprise__image-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    margin-block: calc(-1 * clamp(3rem, 7.6vw, 7.188rem));
}

/* Lime background only for image, not video */
.mesa-enterprise__image-col--has-image {
    background-color: var(--mesa-lime, #CEFE65);
}

.mesa-enterprise__image,
.mesa-enterprise__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   Responsive: Mobile (<=768px)
   ============================================ */
@media screen and (max-width: 768px) {
    .mesa-enterprise__inner {
        flex-direction: column;
        padding-inline: 1rem;
        padding-inline-end: 1rem;
        padding-block: 0;
    }

    .mesa-enterprise__content {
        flex: none;
        padding-bottom: 9.13vw;
    }

    .mesa-enterprise__image-col {
        order: -1;
        max-width: 100%;
        width: 100%;
        margin-block: 0;
        margin-inline: -1rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        aspect-ratio: 737 / 395;
    }

    .mesa-enterprise__btn {
        clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
        padding: 0 calc(12px + 16px);
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .mesa-enterprise__btn {
        transition: none;
    }
}
