/* =========================================
   Footer Component
   ========================================= */

.site-footer {
  background-color: #f0f0f0;
  border-top: 1px solid var(--color-border);
  width: 100%;
  margin-top: -1px;
  /* Merges the 1px footer top border with the 1px project bottom borders perfectly securely */
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.footer-col {
  padding: 2rem 2rem 4rem 2rem;
}

/* Draws the vertical wireframe line between the empty column and the links */
.footer-col--empty {
  border-right: 1px solid var(--color-border);
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  color: var(--color-text);
}

/* Creates the underline stroke across the headings */
.footer-heading::after {
  content: "";
  display: block;
  width: 8rem;
  height: 1px;
  background-color: var(--color-border);
  margin-top: 0.25rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.footer-bottom {
  text-align: center;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Locks text securely in the exact center of the block */
}

/* Massive scaling typography that fills the viewport horizontally */
.footer-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16vw;
  line-height: 0.85;
  color: #a0a0a0;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.05em;
  transform-origin: bottom;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    /* Two columns side by side on mobile */
  }

  .footer-col--empty {
    display: none;
    /* Hide empty wireframe block on small screens */
  }

  .footer-brand {
    transform: scaleY(2);
  }

  .footer-bottom {
    padding: 3rem 0 0 0;
  }
}