/* Footer */

footer {
    display: flex;
    flex-direction: column;
    font-family: Paytone One, sans-serif;
    position: relative;
    margin-top: 8rem;
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 65px 8vw;
    color: #e2e0e5;
    background: radial-gradient(4px 4px at 50% 50%, var(--brand-coal) 50%, transparent 50%) top / 40px 40px repeat, radial-gradient(8px 8px at 50% 50%, rgba(255, 255, 255, .1) 50%, transparent 50%) top / 40px 40px repeat;
}

.footer .h5 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.footer .brand .h5 {
    display: flex;
    text-transform: uppercase;
    gap: 16px;
}

.footer>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer .brand {
    max-width: 200px;
    gap: 24px;
    line-height: 1.5;
}

.newsletter {
    position: relative;
}

.newsletter input {
    font-size: 16px;
    font-weight: 400;
    height: 53px;
    padding: 6px 6px 6px 16px;
    background: transparent;
    border: 1px solid #e2e0e5;
    color: #e2e0e5;
    outline: none;
    border-radius: 14px;
    font-size: 16px;
    width: 370px;
}

.newsletter button {
    position: absolute;
    padding: 16px 40px;
    height: 53px;
    border-radius: 10px;
    border: none;
    background-color: var(--brand-yellow);
    font-size: 18px;
    font-weight: 500;
    color: var(--brand-purple);
    right: 6px;
    top: 6px;
    transition: all 0.5s;
    font-family: Paytone One, sans-serif;
    justify-content: center;
    text-align: center;
}

.newsletter button:hover {
    cursor: pointer;
    background-color: transparent;
    border: 2px solid var(--brand-yellow);
    padding: 16px 40px;
}

.about .h5 {
    font-family: Paytone One, sans-serif;
    text-align: center;
    color: #fcba28;
}

.subjects .h5 {
    font-family: Paytone One, sans-serif;
    text-align: center;
    color: #fcba28;
}

.product .h5 {
    font-family: Paytone One, sans-serif;
    text-align: center;
    color: #fcba28;
}

.social {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.21);
    border-radius: 20% 20% 20% 20%;
}

.social a {
    transition: all 0.3s ease;
}

.social a:hover {
    transform: scale(1.1);
}

.copyright {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px 8vw;
    background-color: var(--brand-yellow);
}

.copyright a {
    color: #0a001a;
    margin: 0 1vw 0 1vw;
}

.copyright p {
    font-size: 14px;
    font-weight: 100;
}

p,
a {
    font-size: 16px;
    font-weight: 400;
}

a {
    color: #e2e0e5;
    text-decoration: none;
}

footer a {
    position: relative;
}

footer a:not(.social-icon)::before {
    background-color: #e2e0e5;
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    border-radius: 4px;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

footer a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

@media (max-width: 960px) {
    .footer {
        gap: 72px;
        display: grid;
        grid-template-rows: 3fr;
    }
    .footer .brand {
        max-width: 400px !important;
    }
    .subscribe {
        display: block;
        grid-column-start: 1;
        grid-column-end: 3;
    }
    .subscribe .newsletter {
        width: 100%;
        max-width: 370px;
    }
    .subscribe .newsletter input {
        width: calc(100% - 22px);
    }
    .copyright {
        padding: 32px 5vw;
    }
    .copyright p,
    .copyright a {
        font-size: 14px;
    }
    .footer {
        padding: 72px 8vw;
    }
}

@media screen and (max-width:768px) {
    .footer {
        gap: 72px;
        display: grid;
        margin-top: rem;
        grid-template-rows: 3fr;
        width: 700px;
    }
    .copyright {
        width: 750px;
    }
}

@media (max-width: 425px) {
    p,
    a {
        font-size: 14px;
    }
    .footer .h5 {
        font-size: 16px;
    }
    .footer {
        gap: 72px;
        display: grid;
        margin-top: 75rem;
        grid-template-rows: 3fr;
        width: 500px;
    }
    .copyright {
        padding: 32px 5vw;
    }
    .copyright p,
    .copyright a {
        font-size: 10px;
    }
    .copyright {
        width: 500px;
    }
}