/* ==========================================================================
   FOOTER STYLES
   Controls all footer layout, typography, and responsive behavior.
   ========================================================================== */

.main-footer {
    margin-top: 0;
    padding: 70px 0 30px;
    color: rgba(255, 255, 255, 0.78);
    background: #001126;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-nav-cols {
    display: contents;
}

/* Footer logo: mirrors header logo structure on dark background */
.footer-logo {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.8vw, 18px);
    flex: 0 0 auto;
    flex-shrink: 0;
    text-decoration: none;
}

.footer-logo .logo-icon {
    width: clamp(64px, 4.8vw, 100px);
    height: clamp(64px, 4.8vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.footer-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.footer-logo .logo-name {
    color: #ffffff;
    font-size: clamp(1.1rem, 1.15vw, 1.75rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.footer-logo .logo-tagline {
    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(0.65rem, 0.58vw, 0.9rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-brand-desc {
    margin-top: 22px;
    margin-bottom: 24px;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.78;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: transparent;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.footer-links,
.footer-contacts {
    list-style: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li + li,
.footer-contacts li + li {
    margin-top: 0;
}

.footer-links a,
.footer-contacts li,
.footer-contacts a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.55;
    transition: color 0.22s ease;
}

.footer-links a:hover,
.footer-contacts a:hover {
    color: #ffffff;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contacts .icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.54);
    font-size: 13px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal .divider {
    color: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   LARGE SCREEN ENHANCEMENTS (min-width)
   ========================================================================== */

/* 1440px */
@media (min-width: 1440px) {
    .footer-logo .logo-icon {
        width: 80px;
        height: 80px;
    }

    .footer-logo .logo-name {
        font-size: 1.3rem;
    }

    .footer-logo .logo-tagline {
        font-size: 0.72rem;
    }

    .footer-logo {
        gap: 12px;
    }
}

/* 1920px */
@media (min-width: 1920px) {
    .footer-logo .logo-icon {
        width: 96px;
        height: 96px;
    }

    .footer-logo .logo-name {
        font-size: 1.5rem;
    }

    .footer-logo .logo-tagline {
        font-size: 0.8rem;
    }

    .footer-logo {
        gap: 14px;
    }

    .footer-brand-desc {
        font-size: 15px;
        max-width: 420px;
    }
}

/* 2560px */
@media (min-width: 2560px) {
    .footer-logo .logo-icon {
        width: 116px;
        height: 116px;
    }

    .footer-logo .logo-name {
        font-size: 1.85rem;
    }

    .footer-logo .logo-tagline {
        font-size: 0.95rem;
        letter-spacing: 0.8px;
    }

    .footer-logo {
        gap: 18px;
    }

    .footer-brand-desc {
        font-size: 15px;
        max-width: 420px;
        margin-top: 28px;
        line-height: 1.8;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }

    .social-links {
        gap: 16px;
        margin-top: 34px;
    }

    .footer-title {
        font-size: 17px;
        margin-bottom: 28px;
    }

    .footer-links a,
    .footer-contacts li,
    .footer-contacts a {
        font-size: 15px;
    }

    .footer-links li + li,
    .footer-contacts li + li {
        margin-top: 0;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-contacts {
        gap: 20px;
    }

    .footer-bottom {
        font-size: 14px;
        padding-top: 34px;
    }

    .footer-legal {
        gap: 20px;
    }

    .main-footer {
        padding: 90px 0 40px;
    }
}

/* ==========================================================================
   RESPONSIVE (max-width)
   ========================================================================== */

/* 1200px */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .footer-nav-cols {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        grid-column: span 3;
    }

    .footer-brand-col,
    .footer-contact-col {
        grid-column: span 3;
    }
}

/* 1100px */
@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-nav-cols {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        grid-column: span 2;
    }

    .footer-brand-col,
    .footer-contact-col {
        grid-column: span 2;
    }
}

/* 640px */
@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-nav-cols {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 34px;
    }
}
