/* CTA Section Refonte - Pixel Perfect */

.refonte-cta-section {
    width: 100%;
    height: 560px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 64px 100px;
    position: relative;
    background: #4A1625;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 48px;
    box-sizing: border-box;
}

.cta-bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cta-bg-lines img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

/* Content */
.cta-content {
    position: relative;
    z-index: 3;
    /* Above circles */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    text-align: center;
    width: 100%;
    /* Removed margin-top to respect padding-top of container */
}

.cta-title {
    color: #FFFFFF;
    font-size: 48px;
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 48px;
    margin: 0;
    margin-bottom: 24px;
    /* Explicit gap between title and subtitle */
}

.cta-title .highlight {
    color: #E6FFA3;
}

.cta-subtitle {
    width: 100%;
    max-width: 904px;
    color: #FFFFFF;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin: 0 auto 24px auto;
    /* Centering the block and bottom margin */
}

/* Update cta-content gap to 0 since we control margins on elements now for precision */
.cta-content {
    gap: 0;
}

/* Button */
.btn-cta-primary {
    height: 44px;
    padding: 6px 20px 6px 6px;
    /* Avatars Left (6px), Text Right (20px) */
    background: #E6FFA3;
    border-radius: 100px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #003329 !important;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 22px;
    transition: transform 0.2s ease;
}

.btn-cta-primary:hover {
    transform: scale(1.05);
}

.btn-cta-primary .avatars-container img {
    height: 32px;
    /* Match standard icon size? Or keep 26? Standard is 32px. */
    width: auto;
    border-radius: 400px;
}

/* Decorative Circles */
.cta-circles-container {
    position: absolute;
    /* Calculated placement:
       Content Top = 64px
       Content Height = ~160px (48+24+24+24+40) = 160px.
       Total Content Bottom = 224px.
       Gap required = 48px.
       Start of circles = 224 + 48 = 272px.
    */
    top: 272px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 560px;
    height: 560px;
    z-index: 2;
    pointer-events: none;
}

/* Ensure circles are centered in the container */
.circle {
    position: absolute;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.circle.large {
    width: 560px;
    height: 560px;
    background: rgba(236, 103, 78, 0.50);
}

.circle.medium {
    width: 430px;
    height: 430px;
    background: rgba(236, 103, 78, 0.50);
}

.circle.small {
    width: 298px;
    height: 298px;
    background: #EC674E;
}

/* Remove secondary absolute positioning rule that was overriding the first one */

@media (max-width: 768px) {
    .refonte-cta-section {
        padding: 40px 20px;
        height: auto;
        min-height: 500px;
    }

    .cta-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .cta-circles-container {
        width: 100%;
        height: 100%;
        bottom: -30%;
        /* Reset top/left/transform for simple bottom alignment or relative */
        top: auto;
        left: 0;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        /* Align bottom */
    }

    .circle {
        width: 80vw;
        height: 80vw;
        /* Reset positioning relative to container center if we want simpler stacking */
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .circle.large {
        width: 100%;
        height: 100%;
    }

    /* Simplify sizing logic */
}

@media (max-width: 480px) {
    .refonte-cta-section {
        padding: 48px 16px;
        min-height: 400px;
    }

    .cta-title {
        font-size: 30px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .btn-cta-primary {
        width: 100%;
        /* Full width button */
    }
}