/* ==========================================================================
   Footer — styles for partials/footer.html.
   Depends on css/base.css (design tokens, .container) being loaded first.
   ========================================================================== */
.site-footer {
  background: var(--color-navy-950);
  color: var(--color-muted-light);
}

.footer-top {
  /* every column (brand included) keeps its own content width and the spare
     width is split evenly between them, so the gap between any two neighbouring
     sections is identical no matter how many sections there are; column-gap is
     the minimum gap when space runs short */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  column-gap: 48px;
  padding-block: 72px;
}

.footer-top > * {
  /* shrinkable so long labels wrap instead of overflowing */
  flex: 0 1 auto;
}

.footer-brand {
  min-width: 200px;
}

.footer-title {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-heading {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact ul {
  gap: 18px;
  text-transform: none;
  letter-spacing: normal;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-contact li > span:not(.footer-icon) {
  /* first text line is vertically centred on the 32px icon; extra lines
     (second email/phone) flow beneath it */
  line-height: 1.5;
  padding-block-start: calc((32px - 1.5em) / 2);
}

.footer-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-cyan);
}

.footer-icon img {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.footer-badges {
  display: flex;
  gap: 24px;
  opacity: 0.6;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    padding-block: 48px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-contact li a {
  color: inherit;
  text-decoration: none;
}

.footer-contact li a:hover {
  text-decoration: underline;
}
