/* ═══════════════════════════════════════════════════════════
   FOOTER
   COMSAF
═══════════════════════════════════════════════════════════ */

/* ── Estrutura Geral ── */
.site-footer {
    background: var(--gradient-footer);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Decoração geométrica do footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67,160,71,0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Corpo Principal ── */
.footer-body {
    padding: var(--space-20) 0 var(--space-12);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: var(--space-10);
}

/* ── Colunas ── */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* ── Marca/Logo ── */
.footer-brand {
    padding-right: var(--space-6);
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity var(--duration-base) ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-about {
    font-size: var(--fs-sm);
    color: var(--text-light-muted);
    line-height: var(--lh-relaxed);
}

/* Redes Sociais */
.footer-social {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-base);
}

.footer-social-link:hover {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67,160,71,0.4);
}

/* ── Headings ── */
.footer-heading {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--green-500);
    border-radius: var(--radius-full);
}

/* ── Navegação do Footer ── */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-nav li a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--text-light-muted);
    transition: var(--transition-base);
    padding: var(--space-1) 0;
}

.footer-nav li a i {
    font-size: 9px;
    color: var(--green-500);
    transition: transform var(--duration-fast) var(--ease-spring);
}

.footer-nav li a:hover {
    color: var(--white);
    padding-left: var(--space-2);
}

.footer-nav li a:hover i {
    transform: translateX(3px);
}

/* ── Newsletter ── */
.footer-newsletter-col {
    gap: var(--space-4);
}

.footer-newsletter-text {
    font-size: var(--fs-sm);
    color: var(--text-light-muted);
    line-height: var(--lh-relaxed);
}

.newsletter-form {
    margin-top: var(--space-1);
}

.newsletter-field {
    display: flex;
    overflow: hidden;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    transition: border-color var(--duration-base) ease;
}

.newsletter-field:focus-within {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.newsletter-field input {
    flex: 1;
    padding: 10px 16px;
    font-size: var(--fs-sm);
    color: var(--white);
    background: transparent;
    min-width: 0;
}

.newsletter-field input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-field button {
    padding: 10px 16px;
    background: var(--green-700);
    color: var(--white);
    font-size: var(--fs-sm);
    flex-shrink: 0;
    transition: background var(--duration-fast) ease;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.newsletter-field button:hover {
    background: var(--green-600);
}

/* Contatos no footer */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--fs-sm);
    color: var(--text-light-muted);
    transition: color var(--duration-fast) ease;
}

.footer-contact-link i {
    width: 16px;
    color: var(--green-400);
    flex-shrink: 0;
}

.footer-contact-link:hover {
    color: var(--white);
}

/* ── Footer Bottom ── */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-5) 0;
    position: relative;
    z-index: 1;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-copy {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.45);
    line-height: 1;
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.45);
    transition: color var(--duration-fast) ease;
}

.footer-legal a:hover {
    color: var(--green-300);
}
