/* =========================================================================
   COMPONENT: FOOTER
   Descripció: Peu de pàgina compartit. Grid de 4 columnes (brand, serveis,
               contacte, legal). Bottom bar amb copyright.
   Elements:   .footer__inner, .footer__brand, .footer__col, .footer__links,
               .footer__link, .footer__address, .footer__bottom, .footer__copy
   ========================================================================= */

.footer {
    background-color: var(--color-grey-dark, #1a1a1a);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* --- Grid principal --- */
.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* --- Columna Brand --- */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__logo img {
    height: 36px;
    width: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.footer__logo:hover img {
    opacity: 1;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer__phone {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.footer__phone:hover {
    opacity: 0.8;
}

/* --- Columnes de contingut --- */
.footer__col-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 0 1.25rem;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--color-white);
}

/* Variant botó (Gestionar cookies) — mateix aspecte que l'anchor */
.footer__link--btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* --- Adreça --- */
.footer__address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__address p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Bottom bar --- */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer__copy {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer__colegiados {
    margin: 0.5rem 0 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    line-height: 1.6;
}


/* --- Responsive --- */
@media (max-width: 960px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 540px) {
    .footer__inner {
        grid-template-columns: 1fr;
        padding: 3rem 1.25rem 2rem;
        gap: 2rem;
    }

    .footer__brand {
        grid-column: auto;
    }
}