/* =========================================================
   MODERN SAAS FOOTER
   ========================================================= */

.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* ---------------- BRAND SECTION ---------------- */
.footer-brand h3 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---------------- LINKS SECTIONS ---------------- */
.footer-links h4 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ---------------- CONTACT SECTION ---------------- */
.footer-contact h4 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-info {
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon {
  font-size: 18px;
  color: #64748b;
  flex-shrink: 0;
}

.contact-item span {
  font-size: 15px;
  color: #94a3b8;
}

/* Newsletter */
.newsletter h5 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #6b7280;
}

.newsletter-form input:focus {
  border-color: #6a5af9;
  box-shadow: 0 0 0 2px rgba(106, 90, 249, 0.2);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--gradient-main);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(106, 90, 249, 0.3);
}

/* ---------------- FOOTER BOTTOM ---------------- */
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 24px 0;
  background: #0f172a;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #94a3b8;
}

/* ---------------- RESPONSIVE DESIGN ---------------- */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    align-self: stretch;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer-brand h3 {
    font-size: 24px;
  }

  .footer-links h4 {
    font-size: 16px;
  }

  .footer-contact h4 {
    font-size: 16px;
  }

  .contact-item {
    gap: 10px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 12px;
  }
}
