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

.site-footer {
  color: var(--color-gray-900);
  padding-bottom: var(--space-4);
}

.footer__container {
  max-width: 99%;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  background-color: var(--color-red-500);
  border-radius: var(--base-radius);
}

.footer__headline {
  font-size: clamp(4.5rem, 10vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-right: -0.04em;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  color: var(--color-gray-900);
}

/* ─── MID STRIP ──────────────────────────────── */
.footer__mid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  animation: fadeUp 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.footer__tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--color-gray-900);
  /* max-width: 28ch; */
}

.footer__contact {
  text-align: left;
}

.footer__contact-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.4rem;
}

.footer__contact-email {
  font-size: 0.85rem;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}

/* ─── BOTTOM BAR ─────────────────────────────── */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 0.5px solid #2a2a2a;
  animation: fadeUp 0.9s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* copyright */
.footer__copy {
  font-size: 0.7rem;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

/* social nav */
.footer__social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.footer__social a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.footer__social a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-gray-900);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.footer__social a:hover {
  color: var(--color-gray-900);
}
.footer__social a:hover::after {
  transform: scaleX(1);
}

/* policy links */
.footer__policy {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__policy a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: color 0.25s;
}

.footer__top-arrow {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 1em;
  height: 1em;
  transition: all 0.4s ease-in-out;
}

.footer__top-arrow svg {
  fill: var(--color-gray-900);
  transition: transform 0.2s ease-in-out;
  transform: rotate(90deg);
}

/* ─── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ========================================
     TABLET  ≥ 768px
  ======================================== */
@media (min-width: 768px) {
  .footer__marker {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer__mid {
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .footer__contact {
    text-align: right;
  }

  .footer__contact-email {
    font-size: 0.9rem;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
  }

  .footer__social {
    gap: 1.5rem;
  }

  .footer__policy {
    gap: 1.25rem;
  }
}

/* ========================================
     DESKTOP  ≥ 992px
  ======================================== */
@media (min-width: 992px) {
  .site-footer::before {
    margin-bottom: 3rem;
  }

  .footer__marker {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .footer__tagline {
    font-size: 0.78rem;
  }

  .footer__contact-email {
    font-size: 0.95rem;
  }

  .footer__mid {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .footer__bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
  }

  .footer__social {
    gap: 2rem;
  }
}

/* ========================================
     LARGE DESKTOP  ≥ 1200px
  ======================================== */
@media (min-width: 1200px) {
  .footer__container {
    padding: var(--space-8) var(--space-16);
  }

  .footer__marker {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .footer__tagline {
    font-size: 0.85rem;
  }

  .footer__contact-email {
    font-size: 1rem;
  }

  .footer__mid {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .footer__bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
  }

  .footer__social {
    gap: 2.5rem;
  }

  .footer__policy {
    gap: 2rem;
  }
}
