/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--c-base);
  border-top: 1px solid var(--c-line-d);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--c-line-d);
}

.footer__brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.footer__brand img { width: 40px; height: 40px; }
.footer__brand strong {
  font-size: var(--fs-body); font-weight: var(--w-bold);
  color: var(--c-surface); letter-spacing: -0.01em; line-height: 1.2;
}
.footer__tag {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(247,245,240,0.55);
  max-width: 320px;
}

.footer__col h4 {
  font-size: var(--fs-eyebrow); font-weight: var(--w-semi);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--c-energy);
  margin-bottom: var(--sp-5);
}
.footer__col li { margin-bottom: var(--sp-3); }
.footer__col a,
.footer__col span {
  font-size: var(--fs-small);
  color: rgba(247,245,240,0.62);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.footer__col a:hover { color: var(--c-energy); }

/* Social icons — under the company description.
   Must come after the .footer__col rules above: those also match these anchors
   at equal specificity, and would otherwise repaint the icon amber on hover —
   amber glyph on an amber circle, i.e. invisible. */
.footer__social {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-6);
  list-style: none; padding: 0;
}
.footer__social li { margin-bottom: 0; }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--c-line-d);
  border-radius: 50%;
  color: rgba(247,245,240,0.62);
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease),
              background-color 180ms var(--ease), transform 180ms var(--ease);
}
.footer__social a:hover {
  color: var(--c-base);
  background: var(--c-energy);
  border-color: var(--c-energy);
  transform: translateY(-2px);
}
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }

.footer__bottom {
  padding-top: var(--sp-6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
}
.footer__legal {
  font-size: var(--fs-caption);
  color: rgba(247,245,240,0.42);
  line-height: 1.6;
}
.footer__brand-link {
  color: var(--c-surface);
  font-weight: var(--w-semi);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__brand-link:hover { color: var(--c-energy); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer__links a {
  font-size: var(--fs-caption);
  color: rgba(247,245,240,0.62);
  text-decoration: none;
}
.footer__links a:hover { color: var(--c-energy); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  /* Clear the sticky CTA bar */
  .footer { padding-bottom: 96px; }
}
