.site-footer {
  margin-top: var(--bisbat-space-8);
  background: linear-gradient(180deg, var(--bisbat-color-primary-light) 0%, var(--bisbat-color-accent-blue) 100%);
  color: var(--bisbat-color-white);
}

.site-footer > .container {
  max-width: none;
  padding: 0;
}

.site-footer-custom {
  color: var(--bisbat-color-blue-900);
}

.site-footer-custom__main {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(260px, 1fr) minmax(220px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-footer-custom__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer-custom__logo img {
  display: block;
  max-height: 84px;
  width: auto;
}

.site-footer-custom__site-name {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 600;
  line-height: var(--bisbat-leading-tightest);
  letter-spacing: -0.02em;
}

.site-footer-custom__site-name p,
.site-footer-custom__site-name div {
  margin: 0;
}

.site-footer-custom__address {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-footer-custom__address-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
}

.site-footer-custom__address-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer-custom__address-label {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 800;
}

.site-footer-custom__address-link,
.site-footer-custom__address-text {
  text-decoration: none;
  font-size: 1.02rem;
  line-height: var(--bisbat-leading-normal);
  font-weight: 500;
}

.site-footer-custom__address-link:hover {
  color: var(--bisbat-color-gray-400);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer-custom__partners {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer-custom__partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 0.55rem;
  border-radius: var(--bisbat-radius-xl);
  background: rgba(255, 255, 255, 0.30);
  text-decoration: none;
  transition: transform var(--bisbat-transition-base), background-color var(--bisbat-transition-base);
}

.site-footer-custom__partner:hover,
.site-footer-custom__partner:focus {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.site-footer-custom__partner img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.site-footer-custom__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer-custom__bottom-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-footer-custom__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer-custom__legal-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.97rem;
  line-height: var(--bisbat-leading-compressed);
}

.site-footer-custom__legal-item a {
  color: inherit;
  text-decoration: none;
}

.site-footer-custom__legal-item a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer-custom__legal-item + .site-footer-custom__legal-item::before {
  content: "";
  width: 1px;
  height: 0.95rem;
  margin-right: 1rem;
  background: rgba(255, 255, 255, 0.28);
}

/* Responsive */
@media (max-width: 1100px) {
  .site-footer-custom__main {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: start;
  }

  .site-footer-custom__partners {
    justify-content: flex-start;
  }

  .site-footer-custom__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 3rem;
  }

  .site-footer-custom__main {
    padding-top: 1.8rem;
    padding-bottom: 1.6rem;
  }

  .site-footer-custom__brand {
    align-items: center;
    gap: 0.8rem;
  }

  .site-footer-custom__logo img {
    max-height: 64px;
  }

  .site-footer-custom__site-name {
    font-size: 1.5rem;
  }

  .site-footer-custom__address-link,
  .site-footer-custom__address-text {
    font-size: 0.96rem;
  }

  .site-footer-custom__partners {
    gap: 0.75rem;
  }

  .site-footer-custom__partner {
    width: 74px;
    height: 74px;
    padding: 0.45rem;
  }

  .site-footer-custom__legal {
    gap: 0.75rem;
  }

  .site-footer-custom__legal-item {
    font-size: 0.92rem;
  }

  .site-footer-custom__legal-item + .site-footer-custom__legal-item::before {
    display: none;
  }
}

/* =========================
   Footer més compacte en mobile
   ========================= */
@media (max-width: 640px) {
  .site-footer {
    margin-top: 2rem;
  }

  .site-footer-custom__main {
    gap: 1rem;
    padding-top: 1.15rem;
    padding-bottom: 1rem;
  }

  .site-footer-custom__brand {
    gap: 0.7rem;
  }

  .site-footer-custom__logo img {
    max-height: 52px;
  }

  .site-footer-custom__site-name {
    font-size: 1.28rem;
  }

  .site-footer-custom__address {
    gap: 0.65rem;
  }

  .site-footer-custom__address-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  .site-footer-custom__address-label {
    font-size: 0.92rem;
    margin-bottom: 0.05rem;
  }

  .site-footer-custom__address-link,
  .site-footer-custom__address-text {
    font-size: 0.9rem;
    line-height: var(--bisbat-leading-compressed);
  }

  .site-footer-custom__partners {
    gap: 0.6rem;
  }

  .site-footer-custom__partner {
    width: 58px;
    height: 58px;
    padding: 0.38rem;
    border-radius: 13px;
  }

  .site-footer-custom__bottom-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.85rem;
  }

  .site-footer-custom__legal {
    gap: 0.45rem 0.75rem;
  }

  .site-footer-custom__legal-item {
    font-size: 0.84rem;
  }
}
