/* ==========================================
   CTA SECTION
   Legacy Protection Services
   Scale matched to all sections
========================================== */

.cta-section {
    position: relative;
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;  /* Same subtle grey as other sections */
    overflow: hidden;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(214, 154, 59, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;
    border-radius: 40px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(214, 154, 59, 0.2);
}

.cta-badge i {
    font-size: 0.65rem;
    color: var(--color-primary);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-black);
    margin-bottom: 0.75rem;
}

.cta-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cta-actions .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

.cta-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cta-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--color-text-light);
    white-space: nowrap;  /* Prevents text wrapping */
}

.cta-meta span i {
    color: var(--color-primary);
    font-size: 0.65rem;
}

/* ========== ENHANCED RESPONSIVENESS ========== */

/* Tablet landscape & smaller desktops */
@media (max-width: 1100px) {
    .cta-content {
        max-width: 600px;
    }
    
    .cta-text {
        font-size: 0.85rem;
        max-width: 500px;
    }
    
    .cta-meta span {
        font-size: 0.65rem;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .cta-content {
        max-width: 100%;
    }
    
    .cta-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    .cta-text {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* CTA META - HORIZONTAL SCROLL ON MOBILE */
    .cta-meta {
        flex-wrap: nowrap;  /* Prevents wrapping */
        overflow-x: auto;    /* Enables horizontal scrolling */
        justify-content: flex-start;  /* Aligns items to start */
        gap: 0.75rem;
        padding-bottom: 0.75rem;
        margin-top: 0.5rem;
        -webkit-overflow-scrolling: touch;  /* Smooth scrolling on iOS */
        scrollbar-width: thin;  /* Thin scrollbar for Firefox */
    }
    
    .cta-meta::-webkit-scrollbar {
        height: 4px;
    }
    
    .cta-meta::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    
    .cta-meta::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 10px;
    }
    
    .cta-meta span {
        flex-shrink: 0;  /* Prevents items from shrinking */
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        background: rgba(214, 154, 59, 0.05);
        border-radius: 30px;
    }
}

/* Mobile landscape */
@media (max-width: 640px) {
    .cta-section {
        padding: clamp(40px, 5vw, 60px) 0;
    }
    
    .cta-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
    }
    
    .cta-badge i {
        font-size: 0.6rem;
    }
    
    .cta-title {
        font-size: 1.2rem;
    }
    
    .cta-text {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-actions {
        gap: 0.6rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .cta-meta {
        gap: 0.6rem;
    }
    
    .cta-meta span {
        font-size: 0.65rem;
    }
    
    .cta-meta span i {
        font-size: 0.6rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .cta-section {
        padding: clamp(35px, 5vw, 50px) 0;
    }
    
    .cta-title {
        font-size: 1.15rem;
    }
    
    .cta-text {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .cta-badge {
        font-size: 0.6rem;
    }
    
    .cta-actions {
        max-width: 100%;
    }
    
    .cta-meta {
        gap: 0.5rem;
    }
    
    .cta-meta span {
        font-size: 0.6rem;
        padding: 0.2rem 0.45rem;
    }
    
    .cta-meta span i {
        font-size: 0.55rem;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .cta-content {
        max-width: 800px;
    }
}

/* Touch device optimization - no hover effects needed for CTA */