/* ==========================================================
   NEWSLETTER
========================================================== */

.footer-newsletter {
    position: relative;

    padding:
        clamp(70px, 9vw, 120px) 0;

    overflow: hidden;

    color: white;

    background:
        radial-gradient(circle at 90% 20%,
            rgba(37, 99, 235, .23),
            transparent 32%),
        var(--navy-850);
}

.footer-newsletter::after {
    content: "";

    position: absolute;

    right: -100px;
    bottom: -180px;

    width: 400px;
    height: 400px;

    border:
        1px solid rgba(255, 255, 255, .06);

    border-radius: 50%;
}

.newsletter-layout {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr) minmax(350px, .9fr);

    align-items: center;

    gap: clamp(50px, 8vw, 110px);
}

.newsletter-content h2 {
    max-width: 650px;

    margin-bottom: 22px;

    font-family: var(--font-display);

    font-size:
        clamp(2.3rem, 4vw, 4.2rem);

    line-height: 1.05;
    letter-spacing: -.035em;

    color: white;
}

.newsletter-content h2 em {
    font-weight: 600;

    color: var(--amber-500);
    
}

.newsletter-content p {
    max-width: 580px;

    margin: 0;

    color: #94a3b8;

    font-size: 1rem;
}


/* Form */

.newsletter-form-wrapper {
    padding:
        clamp(24px, 3vw, 35px);

    background:
        rgba(255, 255, 255, .06);

    border:
        1px solid rgba(255, 255, 255, .09);

    border-radius: var(--radius-md);

    backdrop-filter: blur(10px);
}

.newsletter-input-row {
    display: flex;

    padding: 6px;

    background: white;

    border-radius: 9px;
}

.newsletter-input-row input {
    min-width: 0;
    flex: 1;

    padding: 0 15px;

    color: var(--navy-900);
    background: transparent;

    border: 0;
    outline: 0;
}

.newsletter-input-row input::placeholder {
    color: #94a3b8;
}

.newsletter-input-row button {
    min-height: 48px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: white;
    background: var(--blue-600);

    border: 0;
    border-radius: 6px;

    font-size: .8rem;
    font-weight: 600;
}

.newsletter-input-row button svg {
    width: 17px;
}

.newsletter-privacy {
    margin:
        13px 0 0;

    font-size: .7rem;

    color: #64748b;
}

.newsletter-response {
    display: none;

    margin-top: 12px;

    font-size: .78rem;
}

.newsletter-response.is-visible {
    display: block;
}


/* ==========================================================
   MAIN FOOTER
========================================================== */

.footer-main {
    padding:
        75px 0 25px;

    color: #94a3b8;

    background: var(--navy-950);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.7fr) repeat(3, minmax(140px, .7fr));

    gap: clamp(35px, 5vw, 75px);

    padding-bottom: 65px;
}


/* Brand */

.footer-logo {
    display: inline-block;

    margin-bottom: 25px;
}

.footer-logo img {
    max-width: 180px;
    max-height: 58px;
}

.footer-positioning {
    max-width: 400px;

    margin-bottom: 25px;

    font-size: .86rem;
    line-height: 1.8;

    color: #94a3b8;
}

.footer-topics {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.footer-topics span {
    padding: 6px 9px;

    border:
        1px solid rgba(255, 255, 255, .09);

    border-radius: 5px;

    font-size: .65rem;
    letter-spacing: .03em;

    color: #64748b;
}


/* Columns */

.footer-column h3 {
    margin-bottom: 22px;

    font-size: .7rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .13em;

    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li+li {
    margin-top: 11px;
}

.footer-column a {
    font-size: .82rem;

    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-connect p {
    font-size: .8rem;
    line-height: 1.7;
}


/* Social */

.footer-socials {
    display: flex;

    gap: 8px;

    margin-top: 20px;
}

.footer-socials a {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, .1);

    border-radius: 6px;

    font-size: .68rem;
    font-weight: 700;

    color: #cbd5e1;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.footer-socials a:hover {
    color: white;
    background: var(--blue-600);

    border-color: var(--blue-600);
}


/* ==========================================================
   BOTTOM
========================================================== */

.footer-bottom {
    min-height: 65px;

    display: flex;
    align-items: center;

    gap: 35px;

    border-top:
        1px solid rgba(255, 255, 255, .08);
}

.footer-copyright {
    display: flex;
    gap: 6px;

    font-size: .7rem;
}

.footer-legal {
    display: flex;

    gap: 20px;

    margin-left: auto;
}

.footer-legal a {
    font-size: .7rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    font-size: .7rem;

    color: #cbd5e1;
}

.back-to-top svg {
    width: 16px;

    transition: transform var(--transition);
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .newsletter-layout {
        grid-template-columns: 1fr;
    }

    .newsletter-form-wrapper {
        max-width: 650px;
    }

    .footer-grid {
        grid-template-columns:
            1.4fr 1fr 1fr;
    }

    .footer-connect {
        grid-column: 2 / 4;
    }

}


@media (max-width: 650px) {

    .newsletter-input-row {
        display: block;

        padding: 7px;
    }

    .newsletter-input-row input {
        width: 100%;
        height: 50px;
    }

    .newsletter-input-row button {
        width: 100%;

        justify-content: center;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 45px 30px;
    }

    .footer-brand,
    .footer-connect {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 25px 0;

        flex-wrap: wrap;
    }

    .footer-copyright {
        width: 100%;

        flex-wrap: wrap;
    }

    .footer-legal {
        margin-left: 0;
    }

    .back-to-top {
        margin-left: auto;
    }

}