@import 'variables.css';

footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-glass-border);
  padding: 4.5rem 2rem 2.5rem;
  margin-top: 6rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  box-shadow: var(--shadow-glow-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-section h3 {
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-section p {
  font-size: var(--fs-small);
  color: var(--color-gray-2);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul li a {
  color: var(--color-gray-2);
  text-decoration: none;
  transition: all 250ms ease;
  font-size: var(--fs-small);
  padding-left: 0;
  position: relative;
}

.footer-section ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  transition: all 250ms ease;
}

.footer-section ul li a:hover {
  color: var(--color-white);
  padding-left: 10px;
}

.footer-section ul li a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-section strong {
  color: var(--color-primary);
  font-weight: 600;
}

.footer-section .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-section .footer-logo img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.3));
}

.footer-section .footer-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.footer-section .social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.footer-section .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  color: var(--color-gray-2);
  cursor: pointer;
  transition: all 250ms ease;
}

.footer-section .social-links a:hover {
  background: var(--gradient-main);
  border-color: transparent;
  color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.35);
}

/* Section alignment */
.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: var(--fs-small);
  color: var(--color-gray-3);
  margin: 0;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-gray-2);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: all 250ms ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #25D366, #20BA60);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 3s ease-in-out infinite;
  text-decoration: none;
  color: white;
  border: 2px solid #1ebd5d;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 6.5rem;
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gradient-main);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.45);
}

.back-to-top svg {
  width: 26px;
  height: 26px;
  fill: var(--color-white);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Responsive */
@media (max-width: 768px) {
  footer {
    padding: 3rem 1rem 1rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 55px;
    height: 55px;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* Section alignment */
.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
