/* Site footer */
.site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 4.5rem;
    background:
        linear-gradient(
            rgba(245, 249, 252, 0.30),
            rgba(245, 249, 252, 0.46)
        ),
        url('../images/footer-bg.webp') center 72% / cover no-repeat;
    border-top: 0;
}

/* Footer gradient accent */
.site-footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
}

/* Footer content layer */
.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 1;
}

/* Footer grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.25fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
}

/* Footer brand */
.footer-brand {
    max-width: 350px;
}

/* Footer logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.4rem;
    text-decoration: none;
}

/* Footer logo image */
.footer-logo img {
    display: block;
    width: auto;
    max-width: 260px;
    max-height: 100px;
    object-fit: contain;
}

/* Footer description */
.footer-description {
    max-width: 330px;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-size: 0.97rem;
    line-height: 1.75;
}

/* Footer headings */
.footer-heading {
    position: relative;
    margin-bottom: 1.4rem;
    padding-bottom: 0.7rem;
    color: var(--color-heading);
    font-size: 1.05rem;
    font-weight: 800;
}

/* Footer heading accent */
.footer-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
    border-radius: 999px;
}

/* Footer links */
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Footer link item */
.footer-links li {
    margin-bottom: 0.75rem;
}

/* Footer link */
.footer-links a {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition:
        color var(--transition),
        transform var(--transition);
}

/* Footer link hover */
.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* Footer link focus */
.footer-links a:focus-visible {
    color: var(--color-primary);
}

/* Footer contact information */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Footer contact links and items */
.footer-contact a,
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-heading);
    line-height: 1.55;
}

/* Footer contact link */
.footer-contact a {
    text-decoration: none;
    transition:
        color var(--transition),
        transform var(--transition);
}

/* Footer contact hover */
.footer-contact a:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

/* Footer contact icons */
.footer-contact i,
.footer-contact-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: -0.15rem;
    flex-shrink: 0;
    color: var(--color-white);
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(11, 95, 165, 0.16);
    font-size: 0.9rem;
}

/* Footer social links */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

/* Footer social button */
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(11, 95, 165, 0.15);
    border-radius: 50%;
    box-shadow: var(--shadow-small);
    text-decoration: none;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

/* Footer social hover */
.footer-socials a:hover {
    color: var(--color-white);
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    border-color: transparent;
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

/* Footer social focus */
.footer-socials a:focus-visible {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(11, 95, 165, 0.14);
}

/* Footer bottom text */
.footer-bottom p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Footer bottom link */
.footer-bottom a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

/* Footer bottom link hover */
.footer-bottom a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    overflow: hidden;
    color: var(--color-white);
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

/* Back to top accent */
.back-to-top::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    content: "";
    background: var(--color-accent);
}

/* Back to top hover */
.back-to-top:hover {
    box-shadow: 0 8px 24px rgba(11, 95, 165, 0.28);
    transform: translateY(-3px);
}

/* Back to top visible */
.back-to-top.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Footer disclaimer */
.footer-disclaimer {
    padding: 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(11, 95, 165, 0.15);
    text-align: center;
}

/* Footer disclaimer text */
.footer-disclaimer p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tablet footer */
@media (max-width: 1000px) {

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.75rem;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-description {
        max-width: 500px;
    }
}

/* Mobile footer */
@media (max-width: 600px) {

    .site-footer {
        padding-top: 3.5rem;
        text-align: center;
        background:
            linear-gradient(
                rgba(245, 249, 252, 0.38),
                rgba(245, 249, 252, 0.52)
            ),
            url('../images/footer-bg.webp') 72% center / cover no-repeat;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2.5rem;
        justify-items: center;
    }

    .footer-brand,
    .footer-column,
    .footer-description {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo img {
        max-width: 230px;
        max-height: 90px;
    }

    .footer-description {
        max-width: 330px;
        margin-right: auto;
        margin-left: auto;
    }

    .footer-heading::after {
        right: 0;
        left: 0;
        margin-inline: auto;
    }

    .footer-links {
        display: grid;
        justify-items: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-contact a,
    .footer-contact-item {
        min-height: 44px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-contact a:hover {
        transform: none;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 48px;
        height: 48px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .footer-links a,
    .footer-contact a,
    .footer-socials a,
    .back-to-top {
        transition: none;
    }

    .footer-links a:hover,
    .footer-contact a:hover,
    .footer-socials a:hover,
    .back-to-top:hover {
        transform: none;
    }
}

