/* =========================
   footer.css — DIMEN6 | PREMIUM
   Alinhado com base.css, header.css, services.css
   ========================= */

.main-footer {
    position: relative;
    background: rgba(3, 7, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 243, 255, 0.08);
    padding: 100px 0 160px; /* 160px de espaço para a magic-nav fixa */
    margin-top: 120px;
    overflow: hidden;
    z-index: 2;
}

/* ── Grade de scan decorativa (padrão do site) ── */
.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent, transparent 2px,
            rgba(0, 243, 255, 0.012) 2px,
            rgba(0, 243, 255, 0.012) 3px
        ),
        repeating-linear-gradient(
            90deg,
            transparent, transparent 2px,
            rgba(0, 243, 255, 0.012) 2px,
            rgba(0, 243, 255, 0.012) 3px
        );
    pointer-events: none;
    z-index: 0;
}

/* ── Brilho radial de canto ── */
.main-footer::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Brilho ciano direito ── */
.footer-glow-right {
    position: absolute;
    bottom: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Container relativo ── */
.main-footer .container {
    position: relative;
    z-index: 1;
}

/* ==================================================
   LINHA SUPERIOR — LOGO + TAGLINE + STATUS
   ================================================== */
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 380px;
}

.footer-logo-svg {
    height: 44px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.25));
    transition: filter 0.4s ease;
}

.footer-logo-svg:hover {
    filter: drop-shadow(0 0 16px rgba(0, 243, 255, 0.5));
}

.footer-tagline {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.92rem;
    margin-bottom: 24px;
    max-width: 300px;
}

/* Status pill */
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(46, 204, 113, 0.06);
    border: 1px solid rgba(46, 204, 113, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    color: #2ecc71;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
    animation: statusPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.4); }
}

/* Frase do lado direito do topo */
.footer-top-right {
    text-align: right;
    flex-shrink: 0;
}

.footer-top-right p {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-top-counter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: 2px;
    color: rgba(0, 243, 255, 0.08);
    user-select: none;
}

/* ==================================================
   GRID CENTRAL — LINKS + CONTATO + REDES
   ================================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

/* Título das colunas */
.footer-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 28px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 243, 255, 0.2), transparent);
}

/* ── Coluna Branding ── */
.branding .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.branding .footer-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.branding .footer-nav a::before {
    content: '→';
    color: var(--primary);
    font-size: 0.8rem;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.branding .footer-nav a:hover {
    color: var(--text-white);
    padding-left: 8px;
}

.branding .footer-nav a:hover::before {
    transform: translateX(0);
    opacity: 1;
}

/* ── Coluna Contato ── */
.contact-info ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.contact-info ul li:hover {
    background: rgba(0, 243, 255, 0.04);
    border-color: rgba(0, 243, 255, 0.12);
    transform: translateX(5px);
}

.contact-info ul li i {
    color: var(--primary);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(0, 243, 255, 0.4));
}

.contact-info ul li a,
.contact-info ul li span {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.contact-info ul li:hover a {
    color: var(--text-white);
}

/* ── Coluna Redes ── */
.social-col .social-links-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-links-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.35s ease;
    white-space: nowrap;
}

.social-links-footer a i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.social-links-footer a:hover {
    transform: translateY(-4px);
    color: var(--primary);
}

.social-links-footer a.instagram:hover {
    background: rgba(214, 41, 118, 0.08);
    border-color: rgba(214, 41, 118, 0.3);
    color: #e1306c;
    box-shadow: 0 8px 24px rgba(214, 41, 118, 0.15);
}

.social-links-footer a.github:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==================================================
   LINHA INFERIOR — COPYRIGHT
   ================================================== */
.footer-bottom {
    margin-top: 60px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

.copyright span {
    color: rgba(0, 243, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-bottom-links a:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.footer-bottom-sep {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* ==================================================
   RESPONSIVO
   ================================================== */
@media (max-width: 992px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    .footer-top-right {
        text-align: left;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .branding {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 70px 0 140px;
        margin-top: 80px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .branding {
        grid-column: span 1;
    }
    .footer-logo-svg {
        margin: 0 auto 20px;
    }
    .footer-tagline {
        margin: 0 auto 24px;
    }
    .footer-status {
        margin: 0 auto;
    }
    .footer-title {
        justify-content: center;
    }
    .footer-title::after { display: none; }
    .branding .footer-nav a {
        justify-content: center;
    }
    .contact-info ul li {
        justify-content: flex-start;
    }
    .social-col .social-links-footer {
        grid-template-columns: 1fr 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .footer-top-counter { font-size: 2.5rem; }
}