/**
 * Global franchise — cb-franchise__invest (1:1 with camels.expert/franchise).
 */

#global-franchise {
    --cb-invest-accent: var(--navira-orange, #f65a03);
    --cb-invest-accent-hover: #d94d02;
    --cb-invest-surface: #ffffff;
    --cb-invest-black: var(--navira-blue, #212e44);
    --cb-invest-text: rgba(33, 46, 68, 0.72);
    --cb-invest-text-strong: #374357;
    --cb-invest-border-gray: rgba(33, 46, 68, 0.12);
    --cb-invest-primary-5: #f4f5f6;
    --cb-invest-surface-blue: #e8eef5;
    --cb-invest-blue-info: var(--navira-blue, #212e44);
}

#global-franchise #navira-global-franchise-eyebrow.navira-b2b-errors__title {
    margin: 0 0 16px;
}

#global-franchise .cb-franchise__invest {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: clamp(24px, 3vw, 30px);
    min-height: 480px;
}

#global-franchise .cb-franchise__invest-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#global-franchise .cb-franchise__invest-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

#global-franchise .cb-franchise__invest-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 55%, rgba(255, 255, 255, 0) 70%);
}

#global-franchise .cb-franchise__invest-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    min-height: 480px;
}

#global-franchise .cb-franchise__invest-data {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px 0 0 30px;
    padding: 40px 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#global-franchise .cb-franchise__invest-title {
    font-family: "Open Sans", var(--navira-font);
    font-weight: 700;
    font-size: var(--fs-description, 16px);
    color: var(--cb-invest-black);
    margin: 0;
    line-height: 1.35;
}

#global-franchise .cb-training__accent {
    color: var(--cb-invest-accent);
}

#global-franchise .cb-franchise__invest-divider {
    border: none;
    border-top: 1px solid var(--cb-invest-border-gray);
    margin: 0;
}

#global-franchise .cb-franchise__invest-cols {
    display: flex;
    gap: 45px;
}

#global-franchise .cb-franchise__invest-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#global-franchise .cb-franchise__invest-col:first-child {
    width: 285px;
    flex-shrink: 0;
    gap: 48px;
}

#global-franchise .cb-franchise__invest-col:last-child {
    flex: 1;
}

#global-franchise .cb-franchise__invest-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#global-franchise .cb-franchise__invest-label {
    font-family: "Open Sans", var(--navira-font);
    font-size: var(--fs-description-alt, 14px);
    font-weight: 500;
    color: var(--cb-invest-black);
}

#global-franchise .cb-franchise__invest-label.strong {
    font-weight: 700;
}

#global-franchise .cb-franchise__invest-value {
    font-family: "Open Sans", var(--navira-font);
    font-size: var(--fs-description);
    font-weight: 800;
    color: var(--cb-invest-black);
    line-height: 1;
}

#global-franchise .cb-franchise__invest-payback {
    background: var(--cb-invest-surface);
    border: 1px solid var(--cb-invest-border-gray);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#global-franchise .cb-franchise__invest-payback-title {
    font-family: "Open Sans", var(--navira-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--navira-blue);
    margin: 0;
}

#global-franchise .cb-franchise__invest-payback-text {
    font-family: "Open Sans", var(--navira-font);
    font-size: var(--fs-card-title, 16px);
    line-height: 1.5;
    color: var(--cb-invest-black);
    margin: 0;
}

#global-franchise .cb-franchise__invest-payback-divider {
    border: none;
    border-top: 1px solid var(--cb-invest-black);
    margin: 0;
}

#global-franchise .cb-partner__demo-note {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--cb-invest-black);
    color: var(--cb-invest-surface);
    border-radius: 14px;
    padding: 12px;
    margin: 0;
    width: 100%;
    font-size: var(--fs-card-title, 16px);
}

#global-franchise .cb-partner__demo-note i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--cb-invest-surface-blue);
    color: var(--cb-invest-accent);
    border-radius: 50%;
}

#global-franchise .cb-partner__demo-note span {
    font-family: "Open Sans", var(--navira-font);
    font-weight: 400;
    font-size: var(--fs-card-title, 16px);
    color: var(--cb-invest-surface);
    line-height: 1.45;
}

#global-franchise .cb-franchise__invest-rocket {
    flex-shrink: 0;
    width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 20px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 30px 30px 0;
}

#global-franchise .cb-franchise__invest-rocket-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-image: url("../images/global/franchise/bg-desert.webp");
    background-position: 79% 75%;
    aspect-ratio: 436 / 291;
    background-size: auto;
    margin: auto 0 0;
    border-radius: 20px;
}

#global-franchise .cb-partner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 10px 30px;
    border-radius: 8px;
    background: var(--cb-invest-accent);
    color: var(--cb-invest-surface);
    font-family: "Open Sans", var(--navira-font);
    font-weight: 700;
    font-size: var(--fs-button, 16px);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 3px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
}

#global-franchise .cb-partner__btn:hover,
#global-franchise .cb-partner__btn:focus-visible {
    border-color: var(--cb-invest-accent-hover);
    background: var(--cb-invest-surface);
    color: var(--cb-invest-accent-hover);
}

#global-franchise .cb-franchise__invest-cta {
    width: fit-content;
    margin: auto 0 0;
    background: var(--cb-invest-accent);
    color: var(--cb-invest-surface);
    border-color: var(--cb-invest-accent);
}

#global-franchise .cb-franchise__invest-cta-chevron {
    font-size: 12px;
}

.cb-franchise__invest-value span {
    color: var(--navira-orange);
}

@media (max-width: 1100px) {
    #global-franchise .cb-franchise__invest-inner {
        padding: 16px;
    }

    #global-franchise .cb-franchise__invest-data {
        padding: 30px;
    }

    #global-franchise .cb-franchise__invest-rocket {
        width: 300px;
    }
}

@media (max-width: 900px) {
    #global-franchise .cb-franchise__invest-inner {
        flex-direction: column;
        padding: 12px;
        min-height: auto;
    }

    #global-franchise .cb-franchise__invest-data {
        padding: 24px 20px;
        border-radius: 20px;
    }

    #global-franchise .cb-franchise__invest-cols {
        flex-direction: column;
        gap: 24px;
    }

    #global-franchise .cb-franchise__invest-col {
        display: contents;
    }

    #global-franchise .cb-franchise__invest-col:first-child {
        width: 100%;
        gap: 24px;
    }

    #global-franchise .cb-franchise__invest-item--launch-cost {
        order: 1;
    }

    #global-franchise .cb-franchise__invest-item--monthly-ops {
        order: 2;
    }

    #global-franchise .cb-franchise__invest-item--franchise-cost {
        order: 3;
    }

    #global-franchise .cb-franchise__invest-payback--mobile-last {
        order: 4;
    }

    #global-franchise .cb-franchise__invest-rocket {
        width: 100%;
        margin: 1rem auto 0;
        border-radius: 20px;
        padding: 16px 16px 20px;
    }

    #global-franchise .cb-franchise__invest-cta {
        width: fit-content;
    }

    #global-franchise .cb-partner__demo-note {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    #global-franchise .cb-franchise__invest {
        border-radius: 24px;
    }
}
