/*
  Footer premium tecnológico com vídeo de fundo.
*/

#footer {
  position: relative;
  min-height: 35vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border-top: 0;
}

#footer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, #000000 0%, #2dc2a6 50%, #000000 100%);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(45, 194, 166, 0.7),
    0 0 26px rgba(45, 194, 166, 0.42);
}

.footer-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgb(0 0 0 / 99%));
}

.footer-content {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 35vh;
  padding: clamp(1.6rem, 3.2vw, 2.8rem) 0;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  animation: footerReveal 0.8s ease both;
}

.footer-brand {
  margin: 0;
  color: #2cc3a8;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.05;
  text-shadow:
    0 0 12px rgba(55, 153, 132, 0.8),
    0 0 25px rgba(55, 153, 132, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.8);
}

.footer-brand::before,
.footer-brand::after {
  content: "";
  display: block;
  width: min(360px, 70vw);
  height: 2px;
  margin: 0.55rem auto;
  background: linear-gradient(90deg, transparent, rgba(55, 153, 132, 0.8), transparent);
  box-shadow: 0 0 14px rgba(55, 153, 132, 0.62);
}

.footer-slogan {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  max-width: 72ch;
}

.footer-contact {
  display: grid;
  gap: 0.35rem;
}

.footer-contact a {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-contact a:hover {
  color: #2cc3a8;
  text-shadow: 0 0 14px rgba(55, 153, 132, 0.8);
}

.footer-social {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-social a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(159, 255, 233, 0.72);
  background: linear-gradient(135deg, rgba(31, 214, 165, 0.2), rgba(55, 153, 132, 0.18));
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(55, 153, 132, 0.6);
  animation: floatIcon 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.72),
    0 0 16px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(55, 153, 132, 0.92);
  filter: brightness(1.06);
}

.footer-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-bottom {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.15rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.85rem, 0.95vw, 0.98rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.footer-brand-inline {
  color: #2cc3a8;
  text-shadow:
    0 0 10px rgba(55, 153, 132, 0.72),
    0 0 18px rgba(55, 153, 132, 0.56),
    0 2px 8px rgba(0, 0, 0, 0.8);
  transition: text-shadow 0.3s ease;
}

.footer-brand-inline:hover {
  text-shadow:
    0 0 14px rgba(55, 153, 132, 0.92),
    0 0 24px rgba(55, 153, 132, 0.76),
    0 2px 8px rgba(0, 0, 0, 0.88);
}

.footer-privacy-link {
  position: relative;
  color: rgba(236, 244, 248, 0.94);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-privacy-link:hover {
  color: #2cc3a8;
  text-shadow:
    0 0 10px rgba(55, 153, 132, 0.7),
    0 0 20px rgba(55, 153, 132, 0.5);
}

.footer-privacy-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2cc3a8, transparent);
  transition: width 0.3s ease;
}

.footer-privacy-link:hover::after {
  width: 100%;
}

@keyframes floatIcon {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

@keyframes footerReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .footer-content {
    padding: 1.6rem 0 1.8rem;
  }
}

@media (max-width: 640px) {
  .footer-content {
    width: min(1240px, calc(100% - 1rem));
    gap: 0.7rem;
  }

  .footer-social a {
    width: 54px;
    height: 54px;
  }

  .footer-social img {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-content,
  .footer-social a {
    animation: none !important;
  }
}
