/* ==========================================
   Footer
========================================== */

.site-footer {
    position: relative;
    z-index: 2;

    padding: 7rem 0 2rem;

    /*
     * WAŻNE:
     * musi być visible, żeby gradient mógł
     * wejść na dół CTA
     */
    overflow: visible;

    background: transparent;
}


/* ==========================================
   Main footer background + soft fade
========================================== */

.site-footer::before {
    content: "";

    position: absolute;
    z-index: -1;

    /*
     * wychodzimy wysoko nad footer
     */
    top: -220px;
    left: 0;

    width: 100%;
    height: calc(100% + 220px);

    background: linear-gradient(
        to bottom,
        rgba(3, 11, 22, 0) 0px,
        rgba(3, 11, 22, .08) 45px,
        rgba(3, 11, 22, .22) 90px,
        rgba(3, 11, 22, .50) 145px,
        rgba(3, 11, 22, .78) 190px,
        #030b16 240px
    );

    pointer-events: none;
}


/* ==========================================
   Soft blue glow
========================================== */

.site-footer .footer-glow-blue {
    position: absolute;
    z-index: -1;

    top: -15%;
    left: -20%;

    width: 55%;
    height: 75%;

    background: radial-gradient(
        ellipse,
        rgba(77, 124, 255, .035),
        transparent 70%
    );

    filter: blur(30px);

    pointer-events: none;
}


/* ==========================================
   Soft orange glow
========================================== */

.site-footer .footer-glow-orange {
    position: absolute;
    z-index: -1;

    right: -20%;
    bottom: -40%;

    width: 55%;
    height: 75%;

    background: radial-gradient(
        ellipse,
        rgba(242, 140, 40, .02),
        transparent 70%
    );

    filter: blur(30px);

    pointer-events: none;
}


/* ==========================================
   Footer wrapper
========================================== */

.footer-wrapper {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.25fr .8fr .9fr;
    gap: 6rem;

    padding-bottom: 4rem;
}

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

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    display: block;

    width: 190px;
    height: auto;
}

.footer-brand-line {
    width: 100%;
    height: 1px;

    margin-bottom: 1.5rem;

    background: linear-gradient(
        90deg,
        rgba(77, 124, 255, .4),
        transparent
    );
}

.footer-description {
    margin: 0;

    color: var(--color-text-muted);

    font-size: .9rem;
    line-height: 1.7;
}

.footer-millie {
    display: flex;
    align-items: center;

    margin-top: 2rem;
}

.footer-millie img {
    display: block;

    width: 145px;
    height: auto;
}


/* ==========================================
   Footer Navigation
========================================== */

.footer-heading {
    margin: 0 0 1.5rem;

    color: var(--color-primary);

    font-size: .75rem;
    font-weight: 600;

    letter-spacing: .12em;
}

.footer-menu {
    display: flex;
    flex-direction: column;
}

.footer-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: .7rem 0;

    border-bottom: 1px solid rgba(255, 255, 255, .045);

    color: var(--color-text-muted);

    font-size: .9rem;
    text-decoration: none;

    transition:
        color .25s ease,
        padding .25s ease;
}

.footer-menu a:hover {
    padding-left: .4rem;
    color: #fff;
}

.footer-arrow {
    color: var(--color-accent);

    font-size: 1rem;

    transition: transform .25s ease;
}

.footer-menu a:hover .footer-arrow {
    transform: translateX(4px);
}

/* =========================================================
   MENU Z PANELU
========================================================= */

.footer-menu-list {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-menu-list li {
    display: block;
}

.footer-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
}

/* ==========================================
   Contact
========================================== */

.footer-contact-list {
    display: flex;
    flex-direction: column;

    gap: .9rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;

    gap: .9rem;

    color: var(--color-text-muted);

    font-size: .9rem;
    line-height: 1.4;

    text-decoration: none;
}

a.footer-contact-item {
    transition: color .25s ease;
}

a.footer-contact-item:hover {
    color: #fff;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border: 1px solid rgba(77, 124, 255, .3);
    border-radius: 50%;

    background: rgba(77, 124, 255, .025);
}

.footer-contact-icon img {
    width: 20px;
    height: 20px;

    object-fit: contain;
}


/* ==========================================
   Socials
========================================== */

.footer-socials {
    display: flex;

    gap: .75rem;

    margin-top: 2rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(77, 124, 255, .3);
    border-radius: 50%;

    background: rgba(255, 255, 255, .012);

    transition:
        border-color .25s ease,
        background .25s ease,
        transform .25s ease;
}

.footer-socials a:hover {
    border-color: var(--color-accent);

    background: rgba(242, 140, 40, .04);

    transform: translateY(-3px);
}

.footer-socials img {
    width: 19px;
    height: 19px;

    object-fit: contain;
}


/* ==========================================
   Bottom
========================================== */

.footer-bottom {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    padding-top: 1.5rem;

    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-legal {
    display: flex;
    flex-direction: column;

    gap: .35rem;

    color: rgba(255, 255, 255, .32);

    font-size: .7rem;
    line-height: 1.5;
}

.footer-languages {
    display: flex;
    align-items: center;

    gap: .5rem;

    color: rgba(255, 255, 255, .22);

    font-size: .75rem;
}

.footer-languages a {
    color: rgba(255, 255, 255, .38);

    text-decoration: none;

    transition: color .25s ease;
}

.footer-languages a:hover,
.footer-languages a.is-active {
    color: var(--color-primary);
}

.footer-languages a.is-active {
    font-weight: 600;
}


/* ==========================================
   Responsive — Tablet
========================================== */

@media (max-width: 1000px) {

    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 500px;
    }
}


/* ==========================================
   Responsive — Mobile
========================================== */

@media (max-width: 650px) {

    .site-footer {
        padding: 5rem 0 1.5rem;
    }


    /* Delikatne przejście z CTA */

    .site-footer::before {
        top: -70px;
        height: 70px;

        background: linear-gradient(
            to bottom,
            rgba(3, 11, 22, 0),
            rgba(3, 11, 22, .18) 45%,
            rgba(3, 11, 22, .65) 100%
        );
    }


    /* Footer columns */

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: auto;
    }


    /* Bottom */

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }


    /* Logo */

    .footer-logo img {
        width: 170px;
    }
}