/*
 * TrustESD - CTA Section
 * Call-to-action section styles, background, content box, CTA logo
 */

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, rgba(15,23,42,0.90) 0%, rgba(30,41,59,0.88) 100%);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    clip-path: inset(0);
}

.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    filter: blur(6px) saturate(0.6) brightness(0.8);
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .cta-section {
        min-height: 60vh;
    }
    .cta-bg {
        position: fixed;
        height: 100vh;
        top: 0;
        filter: blur(10px) saturate(0.5) brightness(0.75);
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-section p {
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content-box {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .cta-content-box {
        padding: 1.5rem 1.25rem;
        margin: 0 0.5rem;
    }
}

/* CTA Logo (inside content box, like hero-logo) */
.cta-logo {
    max-height: 280px;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}

@media (max-width: 600px) {
    .cta-logo {
        max-height: 180px;
    }
}
