/**
 * Module: block-reviews-cta
 * Purpose: Стили блока «Bewertung abgeben» — CTA-карточка с кнопками на внешние платформы.
 * Inputs: design-tokens.css, base.css
 * Outputs: BEM-классы .vc-reviews-cta, утилита .vc-reviews-title-accent
 * Notes: Используется на template-reviews.php и template-thank-you.php.
 *        Подключается отдельно через functions.php для всех шаблонов с этим блоком.
 *        Figma node: 1009:11796.
 */

/* ==========================================================================
   1. ACCENT UTILITY — синий акцент в заголовках блока
   ========================================================================== */

.vc-reviews-title-accent {
    color: var(--vc-color-primary);   /* #215CA2 */
}

/* ==========================================================================
   2. SECTION
   ========================================================================== */

.vc-reviews-cta {
    background: var(--vc-color-bg-secondary);   /* #f4f7fa */
    padding-top: var(--vc-space-20);            /* 80px */
    padding-bottom: var(--vc-space-20);         /* 80px */
}

/* ==========================================================================
   3. CARD
   ========================================================================== */

/* White card, full-width inside container */
.vc-reviews-cta__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--vc-space-8);
    background: var(--vc-color-bg-primary);
    border-radius: 16px;
    padding: 24px;
}

/* ==========================================================================
   4. TEXT BLOCK
   ========================================================================== */

.vc-reviews-cta__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 535px;
}

.vc-reviews-cta__title {
    margin: 0;
    font-size: var(--vc-font-size-h2);          /* 32px bold */
    font-weight: var(--vc-font-weight-bold);
    line-height: var(--vc-line-height-normal);
    color: var(--vc-color-text-primary);
}

.vc-reviews-cta__desc {
    margin: 0;
    font-size: var(--vc-font-size-body);        /* 16px */
    font-weight: var(--vc-font-weight-medium);
    line-height: var(--vc-line-height-normal);
    color: var(--vc-color-text-muted);
}

/* ==========================================================================
   5. ACTIONS
   ========================================================================== */

.vc-reviews-cta__actions {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-shrink: 0;
}

/* Base button style */
.vc-reviews-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    border-radius: var(--vc-radius-full);
    font-size: var(--vc-btn-font-size);         /* 14px */
    font-weight: var(--vc-font-weight-medium);
    font-family: var(--vc-font-family);
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%;
    transition: opacity var(--vc-transition-fast), background var(--vc-transition-fast);
}

/* Secondary: light blue background */
.vc-reviews-cta .vc-reviews-cta__btn--soft {
    background: var(--vc-color-primary-light);
    color: var(--vc-color-primary);
    border: none;
}

.vc-reviews-cta .vc-reviews-cta__btn--soft:hover {
    background: rgba(33, 92, 162, 0.16);
    color: var(--vc-color-primary);
}

/* Primary: gradient blue, shadow */
.vc-reviews-cta .vc-reviews-cta__btn--primary {
    background: linear-gradient(111deg, rgb(52, 124, 208) 0%, rgb(33, 92, 162) 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 50px 0 rgba(33, 92, 162, 0.25);
}

.vc-reviews-cta .vc-reviews-cta__btn--primary:hover,
.vc-reviews-cta .vc-reviews-cta__btn--primary:visited {
    color: #ffffff;
    opacity: 0.9;
}

/* ==========================================================================
   6. RESPONSIVE — Tablet (≤ 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .vc-reviews-cta__card {
        flex-wrap: wrap;
        gap: var(--vc-space-6);
        overflow: hidden;
    }

    .vc-reviews-cta__text {
        max-width: 100%;
    }

    .vc-reviews-cta__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .vc-reviews-cta__title {
        font-size: 26px;
    }
}

/* ==========================================================================
   7. RESPONSIVE — Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .vc-reviews-cta {
        padding-bottom: var(--vc-space-12);
    }

    .vc-reviews-cta__card {
        flex-direction: column;
        align-items: flex-start;
    }

    .vc-reviews-cta__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: var(--vc-space-3);
    }

    .vc-reviews-cta__btn {
        justify-content: center;
        width: 100%;
    }

    .vc-reviews-cta__title {
        font-size: 22px;
    }
}
