/* =========================================
   PAWKART - SHARED FOOTER
========================================= */

:root {
    --paw-blue: #3D45AA;
    --paw-red: #DA3D20;
    --paw-orange: #F8843F;
    --paw-yellow: #FFF19B;
    --paw-dark: #25264A;
    --paw-white: #FFFFFF;
}


/* =========================================
   FOOTER BASE
========================================= */

.main-footer {
    width: 100%;
    position: relative;
    overflow: hidden;

    background: #F3F3FF;
    color: var(--paw-dark);

    font-family: 'Nunito', sans-serif;
}

.footer-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 65px 5% 50px;

    display: grid;
    grid-template-columns: 1.4fr 0.85fr 1fr 1fr 1.3fr;
    gap: 35px;
    align-items: start;
}


/* =========================================
   BRAND COLUMN
========================================= */

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-logo img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-tagline {
    margin: 0 0 15px;

    color: var(--paw-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.footer-brand>p:last-of-type {
    margin: 0;

    color: #656681;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================
   SOCIAL MEDIA
========================================= */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.footer-socials a {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--paw-blue);
    color: var(--paw-white);

    font-size: 13px;
    font-weight: 900;
    text-decoration: none;

    transition: background 0.25s ease,
        transform 0.25s ease;
}

.footer-socials a:hover {
    background: var(--paw-red);
    transform: translateY(-4px);
}


/* =========================================
   FOOTER COLUMNS
========================================= */

.footer-column h3,
.footer-newsletter h3 {
    margin: 5px 0 22px;

    color: var(--paw-blue);
    font-size: 17px;
    font-weight: 900;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin: 0;
    padding: 0;
}

.footer-column a {
    display: inline-block;

    color: #656681;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;

    text-decoration: none;
    transition: color 0.25s ease,
        transform 0.25s ease;
}

.footer-column a:hover {
    color: var(--paw-red);
    transform: translateX(4px);
}


/* =========================================
   NEWSLETTER COLUMN
========================================= */

.footer-newsletter {
    padding: 22px;
    border-radius: 18px;

    background: var(--paw-yellow);
    box-shadow: 0 7px 22px rgba(61, 69, 170, 0.07);
}

.footer-newsletter h3 {
    margin: 0 0 12px;
    color: var(--paw-blue);
}

.footer-newsletter>p {
    margin: 0 0 18px;

    color: #55536A;
    font-size: 13px;
    line-height: 1.7;
}


/* Newsletter form */

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-newsletter-form input {
    width: 100%;
    min-width: 0;
    height: 43px;

    padding: 0 13px;

    border: 1px solid #E4D88C;
    border-radius: 9px;
    outline: none;

    background: var(--paw-white);
    color: var(--paw-dark);

    font-family: 'Nunito', sans-serif;
    font-size: 12px;
}

.footer-newsletter-form input:focus {
    border-color: var(--paw-blue);
    box-shadow: 0 0 0 3px rgba(61, 69, 170, 0.10);
}

.footer-newsletter-form button {
    width: 100%;
    min-height: 43px;

    border: none;
    border-radius: 9px;

    background: var(--paw-red);
    color: var(--paw-white);

    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
    transition: background 0.25s ease,
        transform 0.25s ease;
}

.footer-newsletter-form button:hover {
    background: var(--paw-blue);
    transform: translateY(-2px);
}


/* Contact information */

.footer-contact {
    margin: 16px 0 0 !important;

    color: #55536A;
    font-size: 12px;
    line-height: 1.6;
}

.footer-contact strong {
    color: var(--paw-blue);
}


/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
    width: 100%;
    padding: 22px 5%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;

    background: var(--paw-blue);
    color: var(--paw-white);
    text-align: center;
}


/* Payment methods */

.footer-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-payment span {
    padding: 7px 13px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;

    color: var(--paw-white);
    font-size: 11px;
    font-weight: 800;
}

.footer-payment span:first-child {
    border: none;
    color: var(--paw-yellow);
}


/* Copyright */

.footer-bottom>p {
    margin: 0;

    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    line-height: 1.7;
}


/* =========================================
   LARGE TABLETS
========================================= */

@media (max-width: 1200px) {

    .footer-container {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 40px 30px;
    }

    .footer-brand {
        max-width: 320px;
    }

    .footer-newsletter {
        grid-column: span 2;
        max-width: 450px;
    }

}


/* =========================================
   TABLETS
========================================= */

@media (max-width: 768px) {

    .footer-container {
        padding: 50px 5% 40px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 400px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-column h3,
    .footer-newsletter h3 {
        font-size: 16px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .footer-container {
        padding: 42px 6% 35px;
        grid-template-columns: 1fr 1fr;
        gap: 30px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo img {
        width: 155px;
    }

    .footer-column h3,
    .footer-newsletter h3 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-column ul {
        gap: 10px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        padding: 20px;
    }

    .footer-bottom {
        padding: 22px 5%;
    }

    .footer-payment {
        gap: 7px;
    }

    .footer-payment span {
        font-size: 10px;
        padding: 6px 9px;
    }

    .footer-bottom>p {
        font-size: 11px;
    }

}

/* =========================================
   FOOTER RESPONSIVE WIDTH CORRECTION
========================================= */

.main-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.footer-container {
    width: 100%;
    max-width: 1500px;
    min-width: 0;
    margin-inline: auto;

    grid-template-columns:
        minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
}

.footer-container>*,
.footer-brand,
.footer-column,
.footer-newsletter {
    min-width: 0;
    max-width: 100%;
}

.footer-brand>p,
.footer-column a,
.footer-newsletter p {
    overflow-wrap: anywhere;
}

.footer-newsletter-form {
    width: 100%;
    min-width: 0;
}

.footer-newsletter-form input,
.footer-newsletter-form button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.footer-bottom {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* TABLET */

@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand,
    .footer-newsletter {
        grid-column: 1 / -1;
        width: 100%;
    }

    .footer-newsletter {
        padding: 18px;
    }
}