/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: rgba(10,5,20,0.97);
    backdrop-filter: blur(12px);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(147,51,234,0.25);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- 4-column grid: col 1 wider for visual balance ---- */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 0;
    padding-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(147,51,234,0.5);
    letter-spacing: 1px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 12px rgba(147,51,234,0.4);
    flex-shrink: 0;
}

.footer-tagline {
    color: rgba(255,255,255,0.58);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* The 3 inner columns sit inside .footer-columns which is now just a passthrough */
.footer-columns {
    display: contents; /* Let the 3 children be direct grid children */
}

.footer-column h4,
.footer-social-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.footer-column a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.footer-column a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-social-section {
    display: flex;
    flex-direction: column;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(147,51,234,0.18);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(147,51,234,0.3);
}
.social-icon:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(147,51,234,0.55);
    border-color: transparent;
}

/* ---- Info bar ---- */
.footer-info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(147,51,234,0.25);
    border-bottom: 1px solid rgba(147,51,234,0.25);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.875rem;
    white-space: nowrap;
}

.info-icon {
    color: var(--color-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: center;
    }
    .footer-columns {
        display: contents;
    }
    .footer-brand {
        align-items: center;
        padding-right: 0;
    }
    .footer-column,
    .footer-social-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-column ul {
        align-items: center;
    }
    .footer-column a:hover {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 0 1.25rem;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-brand {
        align-items: center;
        padding-right: 0;
    }
    .footer-column,
    .footer-social-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-column ul {
        align-items: center;
    }
    .footer-column a:hover {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-info-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 0;
    }
    .info-item {
        white-space: normal;
        text-align: center;
    }
}
