/* =============================================
   CTA (Call to Action) Banner Section
   - Premium, conversion-focused design
   - File: /frontend/css/cta-section.css
   ============================================= */

.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #E7F6EF 0%, #F9FCFB 100%);
    text-align: center;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden; /* Ensures pseudo-elements don't overflow */
    border-top: 1px solid #d1e7dd; /* Subtle separator */
    border-bottom: 1px solid #d1e7dd; /* Subtle separator */
}

/* Optional: Add a very subtle texture or pattern */
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/subtle-carbon.png'); /* Example texture */
    opacity: 0.03;
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative; /* To stay above the pseudo-element */
    z-index: 1;
    animation: fadeIn-up 1s ease-out forwards;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A2E22; /* Dark green */
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #4E6559; /* Medium gray-green */
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 32px auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    border: none;
    border-radius: 999px; /* Pill shape */
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #34A87E 0%, #28BFA0 100%);
    box-shadow: 0px 6px 16px rgba(52, 168, 126, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(52, 168, 126, 0.5);
    filter: brightness(1.1);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .cta-banner {
        padding: 48px 0;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .cta-button {
        width: 100%;
        padding: 16px 0;
        font-size: 1.1rem;
    }
}

/* --- Animation --- */
@keyframes fadeIn-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
