/* Footer */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 48px 0 20px;
    background: #050b12;
    color: #ffffff;
}

.footer-container {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 1.2fr 0.95fr;
    gap: 55px;
    align-items: start;
}

/* Brand */

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    min-height: 55px;
    margin-bottom: 12px;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: auto;
    max-width: 175px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.footer-logo-fallback {
    display: none;
    color: #ffffff;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-logo-fallback span {
    color: #2f80ed;
}

.footer-brand > p {
    max-width: 290px;
    margin: 5px 0 20px;
    color: #b9c4d1;
    font-size: 14px;
    line-height: 1.8;
}

/* Social Links */

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.footer-socials a:hover {
    border-color: #2f80ed;
    background: #2f80ed;
    transform: translateY(-3px);
}

/* Footer Columns */

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    margin: 8px 0 20px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-column h3::after {
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 10px;
    background: #2f80ed;
    content: "";
}

.footer-column > a:not(.footer-quote-button) {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 12px;
    color: #bdc7d4;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-column > a:not(.footer-quote-button):hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Contact Details */

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 15px;
    color: #bdc7d4;
    font-size: 14px;
    line-height: 1.65;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-contact a.footer-contact-item:hover {
    color: #ffffff;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    color: #2f80ed;
    font-size: 17px;
}

/* Quote Button */

.footer-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
    padding: 12px 16px;
    border: 1px solid #2f80ed;
    background: #2f80ed;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.footer-quote-button:hover {
    background: #1768d4;
    transform: translateY(-2px);
}

.footer-quote-button span {
    font-size: 19px;
    transition: transform 0.25s ease;
}

.footer-quote-button:hover span {
    transform: translateX(4px);
}

/* Copyright */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
    margin: 0;
    color: #aeb9c7;
    font-size: 12px;
    line-height: 1.7;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #aeb9c7;
    font-size: 12px;
}

.footer-bottom-links a {
    color: #aeb9c7;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-bottom-divider {
    color: #526071;
}

/* Tablet */

@media (max-width: 1050px) {
    .footer-container {
        width: calc(100% - 50px);
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 45px;
    }

    .footer-brand {
        max-width: 100%;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .site-footer {
        padding: 35px 0 18px;
    }

    .footer-container {
        width: calc(100% - 36px);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 27px;
    }

    .footer-logo img {
        width: 145px;
        height: 55px;
    }

    .footer-column h3 {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .footer-column > a:not(.footer-quote-button) {
        margin-bottom: 10px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 28px;
        padding-top: 16px;
    }

    .footer-bottom-links {
        gap: 8px;
        font-size: 11px;
    }
}