/* =========================================
   FOOTER
   Rodapé full-screen com blobs de seda
   animados, CTA principal e barra inferior.
   ========================================= */

.footer {
    background-color: var(--c-footer-bg);
    color: var(--c-footer-text);
    /* Sticky revela o footer conforme o conteúdo termina (efeito parallax reveal) */
    position: sticky;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    outline: none;
}

/* ── Blobs fluidos – efeito seda/silk ── */
.footer-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    mix-blend-mode: screen;
    will-change: transform;
    z-index: 1;
}

.footer-blob-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(241, 97, 34, 0.55) 0%, rgba(180, 40, 5, 0.2) 50%, transparent 70%);
    top: 60px;
    left: -100px;
    animation: blob-drift-1 14s ease-in-out infinite;
}

.footer-blob-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(200, 60, 10, 0.5) 0%, rgba(120, 20, 0, 0.15) 55%, transparent 70%);
    top: 100px;
    right: -180px;
    animation: blob-drift-2 18s ease-in-out infinite;
}

.footer-blob-3 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 140, 50, 0.35) 0%, rgba(241, 97, 34, 0.1) 55%, transparent 70%);
    bottom: -10%;
    left: 50%;
    animation: blob-drift-3 12s ease-in-out infinite;
}

.footer-blob-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 80, 0, 0.3) 0%, transparent 65%);
    top: 40%;
    left: 55%;
    animation: blob-drift-4 16s ease-in-out infinite;
}

.footer-blob-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(220, 100, 30, 0.4) 0%, transparent 65%);
    bottom: 400px;
    right: 50%;
    animation: blob-drift-5 10s ease-in-out infinite;
}

/* Overlay que escurece os blobs para manter legibilidade do texto */
.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 2, 2, 0.55);
    pointer-events: none;
    z-index: 0;
}

/* ── Keyframes dos blobs ── */
@keyframes blob-drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -60px) scale(1.08);
    }

    50% {
        transform: translate(140px, 40px) scale(0.95);
    }

    75% {
        transform: translate(40px, 100px) scale(1.05);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blob-drift-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    30% {
        transform: translate(-100px, 60px) scale(1.1);
    }

    60% {
        transform: translate(-60px, -80px) scale(0.92);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blob-drift-3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(80px, -50px) scale(1.12);
    }

    70% {
        transform: translate(-40px, 70px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blob-drift-4 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-90px, -70px) scale(1.15);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blob-drift-5 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, -100px) scale(1.2);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ── Área CTA principal ── */
.footer-cta {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 6rem 0 4rem;
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Badge "Sem cartão de crédito" com ponto pulsante */
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 2rem;
}

/* Ponto verde pulsante */
.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Título principal do footer */
.footer-heading {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.footer-heading em {
    font-style: italic;
    padding-right: 3px;
    background: linear-gradient(135deg, #F16122 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Botões do CTA */
.footer-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-footer-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
}

.btn-footer-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ── Ícones sociais ── */
.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.footer-social-icon:hover {
    background: rgba(241, 97, 34, 0.25);
    border-color: rgba(241, 97, 34, 0.5);
    color: #F16122;
    transform: translateY(-3px);
}

/* ── Barra inferior do footer ── */
.footer-bar {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
}

.footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bar-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bar-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bar-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* ── Ícones sociais legados (social-links / social-icon) ── */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* =========================================
   FOOTER — RESPONSIVO
   ========================================= */

/* ── Tablet (≤ 900px) ── */
@media screen and (max-width: 900px) {
    .footer-cta {
        padding: 4rem 0 3rem;
    }

    .footer-heading {
        font-size: clamp(2.2rem, 7vw, 3.6rem);
    }

    .footer-sub {
        font-size: 1.05rem;
    }

    /* Blobs maiores ficam menores para não vazar */
    .footer-blob-1 {
        width: 480px;
        height: 480px;
    }

    .footer-blob-2 {
        width: 380px;
        height: 380px;
    }
}

/* ── Mobile grande (≤ 640px) ── */
@media screen and (max-width: 640px) {
    .footer {
        min-height: auto;
    }

    .footer-cta {
        padding: 3.5rem 0 2.5rem;
    }

    .footer-heading {
        font-size: clamp(2rem, 9vw, 2.8rem);
        letter-spacing: -0.02em;
    }

    .footer-sub {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .footer-badge {
        font-size: 0.82rem;
        padding: 0.4rem 0.9rem;
    }

    .footer-cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .footer-cta-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .footer-social {
        gap: 0.75rem;
    }

    /* Barra inferior: coluna */
    .footer-bar-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-bar-links {
        justify-content: center;
        gap: 1rem;
    }

    .footer-bar-links a {
        font-size: 0.82rem;
    }

    /* Blobs reduzidos para mobile */
    .footer-blob-1 { width: 300px; height: 300px; left: -60px; }
    .footer-blob-2 { width: 260px; height: 260px; right: -80px; }
    .footer-blob-3 { width: 240px; height: 240px; }
    .footer-blob-4 { width: 180px; height: 180px; }
    .footer-blob-5 { width: 150px; height: 150px; }
}

/* ── Mobile pequeno (≤ 400px) ── */
@media screen and (max-width: 400px) {
    .footer-heading {
        font-size: clamp(1.7rem, 10vw, 2.4rem);
    }

    .footer-cta {
        padding: 2.5rem 0 2rem;
    }

    .footer-bar-links {
        gap: 0.75rem;
    }
}