/* =============================================================
   CTA SECTION — Shared
   Path: wwwroot/css/shared/cta-section.css
   Loaded globally via _Layout.cshtml
   Prefix: cta- (isolated, no global selector pollution)
   ============================================================= */


/* =============================================================
   1. SECTION WRAPPER
   ============================================================= */
.cta-section {
    padding: 4.5rem 0;
    background: transparent;   /* inherits page background — works in both modes */
}


/* =============================================================
   2. CARD
   ============================================================= */
.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 55%, #818cf8 100%);
    box-shadow: 0 24px 64px rgba(99, 102, 241, 0.35);
    text-align: center;
}

/* Subtle inner highlight ring */
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}


/* =============================================================
   3. DECORATIVE BLOBS
   ============================================================= */
.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.25;
}

.cta-blob--1 {
    width: 320px;
    height: 320px;
    background: #a5b4fc;
    top: -80px;
    left: -80px;
}

.cta-blob--2 {
    width: 260px;
    height: 260px;
    background: #c7d2fe;
    bottom: -60px;
    right: -60px;
}


/* =============================================================
   4. INNER CONTENT WRAPPER
   ============================================================= */
.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}


/* =============================================================
   5. ICON
   ============================================================= */
.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 1.875rem;
    color: #ffffff;
    margin-bottom: 1.375rem;
    backdrop-filter: blur(4px);
}


/* =============================================================
   6. HEADING & DESCRIPTION
   ============================================================= */
.cta-title {
    font-size: 2.125rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.875rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 2rem;
    line-height: 1.65;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-desc strong {
    color: #ffffff;
    font-weight: 600;
}


/* =============================================================
   7. BUTTONS
   ============================================================= */
.cta-buttons {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

/* Base button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
    white-space: nowrap;
}

.cta-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Primary — white fill */
.cta-btn--primary {
    background: #ffffff;
    color: #4338ca;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.cta-btn--primary:hover {
    background: #f0f0ff;
    color: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

/* Outline — transparent with white border */
.cta-btn--outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
}

.cta-btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}


/* =============================================================
   8. TRUST MICRO-STRIP
   ============================================================= */
.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.cta-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.cta-trust-item i {
    font-size: 0.875rem;
    opacity: 0.85;
}

.cta-trust-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
    line-height: 1;
}


/* =============================================================
   9. DARK MODE
   The gradient card looks the same in dark mode by design —
   only the section wrapper background needs adjustment.
   ============================================================= */
[data-theme="dark"] .cta-section {
    background: transparent;
}

/* Slightly deepen the gradient in dark context */
[data-theme="dark"] .cta-card {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 55%, #6366f1 100%);
    box-shadow: 0 24px 64px rgba(67, 56, 202, 0.45);
}


/* =============================================================
   10. RESPONSIVE
   ============================================================= */
@media (max-width: 767px) {
    .cta-section  { padding: 3rem 0; }

    .cta-card     {
        padding: 2.5rem 1.5rem;
        border-radius: 1.25rem;
    }

    .cta-title    { font-size: 1.625rem; }
    .cta-desc     { font-size: 1rem; }

    .cta-btn      {
        padding: 0.7rem 1.375rem;
        font-size: 0.9375rem;
    }

    .cta-trust-sep { display: none; }   /* stack items cleanly on small screens */

    .cta-trust    {
        gap: 0.5rem;
        flex-direction: row;
    }
}

@media (max-width: 400px) {
    .cta-buttons  { flex-direction: column; align-items: center; }
    .cta-btn      { width: 100%; justify-content: center; }
}
