/* Section: Footer (social media) */

.site-footer-midia {
  width: 100%;
  background: var(--beige);
  padding: 18px 0;
}

.site-footer-midia__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin: 0;
  padding: 0 var(--container-padding);
  list-style: none;
}

.site-footer-midia h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
}

.site-footer-midia img {
  max-width: 12px;
  display: block;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer-midia a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-base);
  font-size: var(--font-size-xxs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  white-space: nowrap;
}

.site-footer-midia a:hover img {
  transform: scale(1.06) rotate(10deg);
}

/* Section: Footer (simple, desktop) */

.site-footer-simple {
  width: 100%;
  padding-bottom: 0;
  text-align: center;
}

.footer-simple-inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Section: Footer navigation */

.footer-simple-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  list-style: none;
}

.footer-simple-nav a {
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-base);
  font-size: var(--font-size-xxs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  transition: opacity var(--transition-fast);
}

.footer-simple-nav a:hover {
  opacity: 0.6;
}

/* Section: Footer credits */

.footer-simple-credits {
  font-family: var(--font-base);
  font-size: var(--font-size-xs);
  line-height: 1.6;
  color: var(--dark);
  text-align: right;
}

.footer-simple-credits p {
  margin: 0;
}

.footer-simple-credits strong {
  font-weight: 700;
  color: var(--dark);
}

.footer-simple-credits a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

.footer-simple-credits a:hover {
  opacity: 0.6;
}

/* Section: Footer (mobile ≤ 768px) */

@media (max-width: 768px) {
  .site-footer-midia {
    padding: 14px 0;
  }

  .site-footer-midia__list {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 var(--container-padding);
    overflow: visible;
    scroll-snap-type: none;
  }

  .site-footer-midia__list > li {
    flex: 0 0 auto;
    margin-inline: 0;
    scroll-snap-align: unset;
    width: 100%;
    text-align: center;
  }

  .site-footer-midia a {
    justify-content: center;
    padding: 6px 0;
    font-size: var(--font-size-xxs);
  }

  .footer-simple-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 32px 24px;
  }

  .footer-simple-nav {
    width: 100%;
  }

  .footer-simple-nav ul {
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .footer-simple-nav a {
    padding: 8px 10px;
  }

  .footer-simple-credits {
    width: 100%;
    margin-bottom: 0;
    text-align: center;
    font-size: var(--font-size-xs);
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-midia img {
    transition: none;
  }

  .site-footer-midia a:hover img {
    transform: none;
  }
}
