/* ============================================================
   GRULLA ESTUDIO — Footer
   ============================================================ */

.site-footer {
  background: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ---- Main area ---- */

.footer__main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--container-pad);
  display: grid;
  grid-template-columns: auto 1px 1fr auto auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.footer__brand-logo {
  width: clamp(150px, 16vw, 210px);
  display: block;
}

.footer__vdivider {
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
  min-height: 1px;
}

/* Navigation */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  width: fit-content;
  transition: color var(--ease-fast);
}

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

.footer__nav-link:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Social */
.footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
}

.footer__social-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  width: fit-content;
  transition: color var(--ease-fast);
}

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

.footer__social-link:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Grulla wordmark */
.footer__grulla-logo {
  width: clamp(72px, 8vw, 110px);
  display: block;
  align-self: center;
}

/* ---- Bottom bar ---- */

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: var(--sp-5) var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
}

.footer__location {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.50);
}

.footer__legal {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
  flex-wrap: wrap;
}

.footer__legal-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.65);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.52);
}

.footer__brochure-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1px;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}

.footer__brochure-link:hover {
  color: var(--color-lime);
  border-color: var(--color-lime);
}

/* ---- Responsive ---- */

@media (max-width: 1023px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--sp-8);
  }
  .footer__vdivider {
    display: none;
  }
  .footer__brand-logo {
    grid-column: 1 / -1;
    width: 150px;
  }
  .footer__grulla-logo {
    align-self: start;
    width: 80px;
  }
  .footer__nav {
    order: 1;
  }
  .footer__social {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .footer__brand-logo {
    grid-column: 1;
    width: 130px;
  }
  .footer__grulla-logo {
    width: 70px;
  }
  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__legal {
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
  }
}
