/* ABOUTME: Styles for the footer section.
   ABOUTME: Dark card that expands to full-bleed on scroll, with three-column info and large brand text. */

/* ===========================
   Footer Wrapper
   =========================== */

.footer {
  position: relative;
  z-index: 1;
  height: 100vh;
}

.footer__inner {
  background-color: var(--color-black);
  color: var(--color-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1em;
  clip-path: inset(1em round 2em);
  will-change: clip-path;
}

/* ===========================
   Top: Three Columns
   =========================== */

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2em;
  padding: 6em 0 2em;
}

.footer__company,
.footer__address {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.footer__address {
  margin-top: 0.3em;
}

/* Navigation links */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.footer__nav a {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-white);
  text-decoration: none;
}

/* Contact & social */
.footer__col a {
  color: var(--color-white);
  text-decoration: none;
}

.footer__col p {
  margin: 0;
}

.footer__contact {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.4;
}

.footer__phone {
  font-family: var(--font-secondary);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
}

.footer__contact a,
.footer__contact p {
  display: block;
}

.footer__contact p {
  margin-top: 0.2em;
}

.footer__social {
  margin-top: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.footer__social a {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.3;
}

/* ===========================
   Brand Text
   =========================== */

.footer__brand {
  margin-top: auto;
  font-family: var(--font-primary);
  font-size: clamp(7rem, 21.5vw, 21.5rem);
  font-weight: 400;
  line-height: 0.8;
  text-transform: uppercase;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 2em 1.5em 1em;
  }

  .footer__brand {
    font-size: clamp(3rem, 12vw, 6rem);
    padding: 0 0.3em;
    white-space: normal;
  }
}
