/**
 * Financing Section V2
 * Maroon financing band with all-in stats, CTAs, and a cream funding-paths card.
 * Card hangs below the maroon band via a clipped ::before background.
 */

.financing-section-v2.bg-maroon {
    background-color: transparent;
    overflow: visible;
    position: relative;
}

.financing-section-v2.bg-maroon + .bg-white {
    padding-top: 0;
    margin-top: 0;
}

.financing-section-v2::before {
    background-color: var(--color-primary-dark);
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

.financing-section-v2__media {
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

.financing-section-v2__image {
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 0.10;
    width: 100%;
}

.financing-section-v2 .container {
    position: relative;
    z-index: 1;
}

.financing-section-v2__layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.financing-section-v2__content {
    display: flex;
    flex-direction: column;
}

.financing-section-v2__content .sub-heading {
    margin-bottom: 10px;
}

.financing-section-v2__content h2 {
    margin-bottom: 15px;
}

.financing-section-v2__heading-accent {
    font-style: italic;
}

.financing-section-v2__text {
    margin: 0;
    max-width: 520px;
    padding-bottom: 20px;
    border-bottom: solid 1px #fff;
}

.financing-section-v2__stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.financing-section-v2__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.financing-section-v2__stat-label {
    color: var(--color-text-inverse);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.financing-section-v2__stat-value {
    color: var(--color-text-inverse);
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    margin: 0;
}

.financing-section-v2__stat-subtext,
.financing-section-v2__stat-value span {
    color: var(--color-text-inverse);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.85;
    font-weight: 400;
}

.financing-section-v2__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.financing-section-v2__actions .btn-primary {
    background-color: var(--color-surface-cream);
    border-color: var(--color-surface-cream);
    color: var(--color-primary);
}

.financing-section-v2__actions .btn-primary::after {
    content: "\e904";
    font-family: 'paragon-flight';
    font-size: 14px;
    line-height: 1;
    margin-left: 4px;
}

.financing-section-v2__download-icon {
    flex-shrink: 0;
}

.financing-section-v2__card {
    background-color: var(--color-surface-cream);
    border-radius: 20px 20px 80px 20px;
    box-shadow: var(--shadow-card);
    color: var(--color-heading);
    padding: 30px 24px;
    position: relative;
    z-index: 2;
}

.financing-section-v2__card-heading,
.financing-section-v2__card p {
    color: var(--color-heading);
}

.financing-section-v2__card-heading {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.financing-section-v2__paths {
    list-style: none;
    margin: 0;
    padding: 0;
}

.financing-section-v2__path {
    border-top: 1px solid var(--border-color-default);
    padding: 16px 0;
}

.financing-section-v2__path:last-child {
    padding-bottom: 0;
}

.financing-section-v2__path-detail {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}

.financing-section-v2__path-logo {
    flex-shrink: 0;
    line-height: 0;
}

.financing-section-v2__path-logo-img {
    display: block;
    height: 60px;
    object-fit: contain;
    width: 60px;
}

.financing-section-v2__card .financing-section-v2__path-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin: 0 0 4px;
}

.financing-section-v2__path-description {
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.5;
    min-width: 0;
}

.financing-section-v2__path-description a {
    color: var(--color-text) !important;
}

.financing-section-v2__path-description > :first-child {
    margin-top: 0;
}

.financing-section-v2__path-description > :last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .financing-section-v2::before,
    .financing-section-v2__media {
        bottom: 0;
    }

    .financing-section-v2__stats {
        flex-direction: row;
        gap: 0;
    }

    .financing-section-v2__stat {
        flex: 1 1 0;
        padding-right: 28px;
    }

    .financing-section-v2__stat + .financing-section-v2__stat {
        border-left: 1px solid rgba(255, 255, 255, 0.35);
        padding-left: 28px;
        padding-right: 0;
    }

    .financing-section-v2__stat-value {
        font-size: 53px;
    }

    .financing-section-v2__actions {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 15px;
    }

    .financing-section-v2__actions .btn + .btn {
        margin-left: 0;
        margin-top: 0;
    }

    .financing-section-v2__card {
        border-radius: 24px 24px 100px 24px;
        padding: 36px 32px;
    }

    .financing-section-v2__card .financing-section-v2__path-title {
        font-size: 20px;
    }
}

@media (min-width: 1200px) {
    .financing-section-v2::before,
    .financing-section-v2__media {
        bottom: 160px;
    }

    .financing-section-v2__layout {
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: row;
        gap: 50px;
    }

    .financing-section-v2__content {
        flex: 1 1 0;
        max-width: 560px;
        padding-bottom: 40px;
    }

    .financing-section-v2__card {
        flex: 0 0 535px;
        max-width: 535px;
        padding: 40px 36px;
    }

    .financing-section-v2__stat-value {
        font-size: 60px;
    }

    .financing-section-v2__actions {
        margin-top: 36px;
    }

    .financing-section-v2__actions .btn-primary:hover {
        background-color: var(--color-primary-dark);
        border-color: var(--color-primary-dark);
        color: var(--color-text-inverse);        
        border: solid 1px var(--color-text-inverse);
    }
}
