/*==================================================
# FOOTER UNIVERSAL
==================================================*/

.site-footer {
    position: relative;
    width: 100%;
    background-color: var(--mgr-white);
    padding-block: 40px 80px;
    box-sizing: border-box;

}

.site-footer__inner {
    width: min(1400px, calc(100% - 80px));
    margin-inline: auto;
}

/*--------------------------------------------------
# TARGETA FOSCA DEL FOOTER
--------------------------------------------------*/

.site-footer__card {
    position: relative;
    padding: 60px 60px 40px 60px;
    background-color: var(--mgr-dark);
    color: var(--mgr-light);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .12);
    box-sizing: border-box;
}

/*==================================================
# TOP / CTA
==================================================*/

.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 50px;
}

.site-footer__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    background-color: rgba(91, 132, 166, .2);
    border: 1px solid var(--mgr-brand);
    border-radius: 999px;
    color: var(--mgr-brand);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 18px;
}

.site-footer__title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mgr-light);
    max-width: 600px;
}

.site-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background-color: var(--mgr-brand);
    border: 1px solid var(--mgr-brand);
    border-radius: 999px;
    color: var(--mgr-light);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .3s ease, color .3s ease, transform .25s ease;
}

.site-footer__btn:hover {
    background-color: transparent;
    color: var(--mgr-brand);
    transform: translateY(-2px);
}

/*--------------------------------------------------
# DIVISOR
--------------------------------------------------*/

.site-footer__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(91, 132, 166, .4),
        rgba(91, 132, 166, .1),
        transparent
    );
    margin-bottom: 50px;
}

/*==================================================
# MIDDLE / CONTINGUT
==================================================*/

.site-footer__middle {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 60px;
    padding-bottom: 50px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--mgr-light);
    text-decoration: none;
    letter-spacing: -.02em;
    margin-bottom: 15px;
}

.site-footer__tagline {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .7);
    max-width: 360px;
}

.site-footer__label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--mgr-brand);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/*--------------------------------------------------
# MENU NAVEGACIÓ
--------------------------------------------------*/

.site-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__menu a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    font-size: .95rem;
    transition: color .25s ease;
}

.site-footer__menu a:hover {
    color: var(--mgr-brand);
}

/*--------------------------------------------------
# XARXES SOCIALS (TAGS)
--------------------------------------------------*/

.site-footer__social-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__social-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, .05);
    border: 1px solid rgba(91, 132, 166, .3);
    border-radius: 999px;
    color: var(--mgr-light);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.site-footer__social-item:hover {
    background-color: var(--mgr-brand);
    border-color: var(--mgr-brand);
    color: var(--mgr-light);
    transform: translateY(-2px);
}

/*==================================================
# BOTTOM / COPYRIGHT
==================================================*/

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

.site-footer__copyright {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    gap: 20px;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .25s ease;
}

.site-footer__legal a:hover {
    color: var(--mgr-light);
}

/*==================================================
# RESPONSIVE (MÒBIL CENTRAT)
==================================================*/

@media (max-width: 1024px) {
    .site-footer__inner {
        width: min(100% - 60px, 1400px);
    }

    .site-footer__card {
        padding: 40px 35px 30px 35px;
    }

    .site-footer__middle {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .site-footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-block: 20px 40px;
    }

    .site-footer__inner {
        width: calc(100% - 30px);
    }

    .site-footer__card {
        padding: 35px 20px 30px 20px;
        border-radius: 20px;
        text-align: center; /* Centrem el text global en mòbil */
    }

    /* TOP / CTA CENTRAT */
    .site-footer__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding-bottom: 35px;
    }

    .site-footer__title {
        font-size: 1.6rem;
    }

    .site-footer__btn {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }

    .site-footer__divider {
        margin-bottom: 35px;
    }

    /* MIDDLE CENTRAT */
    .site-footer__middle {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 35px;
    }

    .site-footer__brand {
        grid-column: span 1;
        align-items: center;
    }

    .site-footer__tagline {
        max-width: 100%;
    }

    .site-footer__social-tags {
        justify-content: center; /* Centrem els botons de les xarxes */
    }

    /* BOTTOM / COPYRIGHT CENTRAT */
    .site-footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .site-footer__legal {
        justify-content: center;
    }
}