/* Crecido — footer moderno (compartilhado por todas as páginas) */
.cr-footer {
    --cr-navy: #003658;
    --cr-navy-deep: #002740;
    --cr-blue: #21B5EA;
    --cr-orange: #FF9500;
    --cr-orange-cta: #B45309;
    --cr-orange-cta-hover: #92400e;
    --cr-text: rgba(255, 255, 255, 0.82);
    --cr-heading: #ffffff;
    position: relative;
    background:
        radial-gradient(ellipse 70% 60% at 15% 0%, rgba(33, 181, 234, 0.16), transparent 55%),
        linear-gradient(180deg, var(--cr-navy) 0%, var(--cr-navy-deep) 100%);
    color: var(--cr-text);
    font-family: Raleway, "Segoe UI", system-ui, -apple-system, sans-serif;
    padding: 3.5rem 0 0;
}

/* Garante contraste: custom.css define p { color: #003658 } */
.cr-footer p,
.cr-footer span,
.cr-footer li,
.cr-footer .cr-footer-tagline,
.cr-footer .cr-footer-cta-copy p,
.cr-footer .cr-footer-copy {
    color: var(--cr-text);
}

.cr-footer a {
    color: var(--cr-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cr-footer a:hover,
.cr-footer a:focus-visible {
    color: #fff;
}

.cr-footer a:focus-visible {
    outline: 2px solid var(--cr-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* CTA opcional no topo do footer */
.cr-footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 3rem;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(33, 181, 234, 0.18), rgba(255, 149, 0, 0.12)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cr-footer-cta-copy h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    margin: 0 0 0.25rem;
}

.cr-footer-cta-copy p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.cr-footer-cta .cr-footer-btn {
    flex-shrink: 0;
}

.cr-footer-btn {
    display: inline-block;
    background: var(--cr-orange-cta);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cr-footer-btn:hover,
.cr-footer-btn:focus-visible {
    background: var(--cr-orange-cta-hover);
    transform: translateY(-2px);
    color: #fff !important;
}

/* Grid principal */
.cr-footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.cr-footer-brand-logo {
    display: block;
    width: 168px;
    height: auto;
    margin-bottom: 1.1rem;
}

.cr-footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 22rem;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.82);
}

.cr-footer-social {
    display: flex;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cr-footer-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff !important;
    font-size: 1.25rem;
}

.cr-footer-social a .bi,
.cr-footer-social a i {
    color: #fff !important;
}

.cr-footer-social a:hover,
.cr-footer-social a:focus-visible {
    background: var(--cr-blue);
    border-color: var(--cr-blue);
    color: var(--cr-navy) !important;
    transform: translateY(-2px);
}

.cr-footer-social a:hover .bi,
.cr-footer-social a:hover i,
.cr-footer-social a:focus-visible .bi,
.cr-footer-social a:focus-visible i {
    color: var(--cr-navy) !important;
}

.cr-footer-col-title {
    color: var(--cr-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.cr-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cr-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}

.cr-footer-links a:hover,
.cr-footer-links a:focus-visible {
    color: #fff;
}

/* Barra inferior */
.cr-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

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

.cr-footer-copy {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.cr-footer-copy a {
    color: #fff;
    font-weight: 600;
}

.cr-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.88rem;
}

.cr-footer-legal a {
    color: rgba(255, 255, 255, 0.78);
}

.cr-footer-legal a:hover,
.cr-footer-legal a:focus-visible {
    color: #fff;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .cr-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .cr-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .cr-footer {
        padding-top: 2.75rem;
    }

    .cr-footer-main {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .cr-footer-cta {
        padding: 1.5rem;
        text-align: center;
        justify-content: center;
    }

    .cr-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .cr-footer-legal {
        justify-content: center;
    }
}
