/* ===========================================
   FOOTER - Site Footer & Links
   =========================================== */

.footer {
  position: relative;
  background: var(--pie-neutral-dark);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-2xl);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
}

/* ===== FOOTER MAIN ===== */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

/* Brand column */
.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: block;
  margin-bottom: var(--space-xl);
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-description {
  color: rgba(253, 254, 254, 0.6);
  font-size: var(--font-small);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* Social links */
.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: rgba(253, 254, 254, 0.7);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--pie-secondary);
  border-color: var(--pie-secondary);
  color: var(--pie-neutral-2);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* Link columns */
.footer-column {
  min-width: 140px;
}

.footer-column-title {
  font-size: var(--font-small);
  font-weight: var(--weight-bold);
  color: var(--pie-neutral-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-link {
  font-size: var(--font-small);
  color: rgba(253, 254, 254, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--pie-secondary);
}

/* Soon/Coming products - disabled style */
.footer-link-soon {
  opacity: 0.5;
  cursor: default;
}

.footer-link-soon:hover {
  color: rgba(253, 254, 254, 0.6);
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  font-size: var(--font-small);
  color: rgba(253, 254, 254, 0.5);
}

.footer-legal {
  display: flex;
  gap: var(--space-xl);
}

.footer-legal-link {
  font-size: var(--font-small);
  color: rgba(253, 254, 254, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--pie-neutral-2);
}

/* ===== NEWSLETTER (Optional) ===== */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.footer-newsletter-content h3 {
  font-size: var(--font-h4);
  margin-bottom: var(--space-sm);
}

.footer-newsletter-content p {
  color: rgba(253, 254, 254, 0.6);
  font-size: var(--font-small);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.footer-newsletter-input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--pie-neutral-2);
  font-size: var(--font-small);
  min-width: 240px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.footer-newsletter-input::placeholder {
  color: rgba(253, 254, 254, 0.4);
}

.footer-newsletter-input:focus {
  border-color: var(--pie-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding-top: var(--space-3xl);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: span 1;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

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

  .footer-newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .footer-newsletter-input {
    min-width: 100%;
  }
}
