/* SECTION */
.gema-footer {
  position: relative;
  overflow: hidden;
  padding: 52px 0 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.09), transparent 32%),
    radial-gradient(circle at 12% 50%, rgba(211, 47, 47, 0.04), transparent 26%),
    linear-gradient(180deg, #020817 0%, #04122f 46%, #030d24 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
  box-sizing: border-box;
  max-width: 100%;
}

.gema-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.26;
  pointer-events: none;
}

.gema-footer::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 520px;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1140px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  align-items: center;
  gap: 28px;
  box-sizing: border-box;
  max-width: 100%;
}

/* LEFT */
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 18px rgba(212, 175, 55, 0.20))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  flex-shrink: 0;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.footer-left:hover .footer-logo {
  transform: translateY(-2px) scale(1.02);
  filter:
    drop-shadow(0 0 24px rgba(212, 175, 55, 0.24))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.footer-left h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  color: #d4af37;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-left p {
  font-family: var(--font-body);
  margin: 0;
  color: rgba(255, 245, 230, 0.82);
  font-size: 0.95rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* CENTER */
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-soundwave {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 34px;
}

.footer-soundwave span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d56a 0%, #c99a16 100%);
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.16),
    0 3px 10px rgba(0, 0, 0, 0.24);
  transform-origin: bottom center;
  animation: footerWave 2.6s ease-in-out infinite;
}

.footer-soundwave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.footer-soundwave span:nth-child(2) { height: 14px; animation-delay: 0.18s; }
.footer-soundwave span:nth-child(3) { height: 20px; animation-delay: 0.36s; }

@keyframes footerWave {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.88;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

/* RIGHT */
.footer-right {
  text-align: right;
}

.footer-right p {
  font-family: var(--font-body);
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  line-height: 1.5;
  font-weight: 600;
}

.footer-right span {
  display: inline-block;
  color: rgba(212, 175, 55, 0.82);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* QUOTE */
.footer-quote {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1140px);
  margin: 28px auto 0;
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 240, 215, 0.88);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
  border-top: 1px solid rgba(212, 175, 55, 0.10);
  overflow-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.footer-quote::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  animation: footerDividerGlow 4.2s ease-in-out infinite;
}

@keyframes footerDividerGlow {
  0%, 100% {
    opacity: 0.72;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.08);
  }
}

/* REVEAL */
.footer-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.footer-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-left.footer-reveal { transition-delay: 0.04s; }
.footer-center.footer-reveal { transition-delay: 0.14s; }
.footer-right.footer-reveal { transition-delay: 0.22s; }
.footer-quote.footer-reveal { transition-delay: 0.30s; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .gema-footer {
    padding: 38px 0 26px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
    order: 1;
  }

  .footer-center {
    order: 2;
  }

  .footer-right {
    text-align: center;
    order: 3;
  }

  .footer-quote {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .gema-footer {
    padding: 34px 0 22px;
  }

  .footer-container {
    gap: 18px;
  }

  .footer-left {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-logo {
    width: 48px;
    height: 48px;
  }

  .footer-left h3 {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .footer-left p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .footer-soundwave {
    min-height: 28px;
    gap: 5px;
  }

  .footer-soundwave span {
    width: 4px;
  }

  .footer-right p {
    font-size: 0.9rem;
  }

  .footer-right span {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .footer-quote {
    width: min(100% - 28px, 1140px);
    margin-top: 22px;
    padding-top: 18px;
    font-size: 0.92rem;
    line-height: 1.75;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  .footer-reveal,
  .footer-reveal.is-visible,
  .footer-logo,
  .footer-soundwave span,
  .footer-quote::before {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

