/* Footer Styles - Improved */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/footer-pattern.svg') repeat;
  opacity: 0.05;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Footer Main Content */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

/* Footer Brand Section */
.footer-brand {
  max-width: 400px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 45px;
  width: auto;
  filter: brightness(1.1);
}

.footer-description {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 15px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  transition: color 0.3s ease;
  font-size: 14px;
}

.contact-item:hover {
  color: #ffffff;
}

.contact-item svg {
  color: #3b82f6;
  flex-shrink: 0;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #3b82f6;
}

/* Footer Navigation */
.footer-heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.3s ease;
  display: block;
  padding: 2px 0;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 6px;
  transform: translateX(3px);
}

/* Footer Social Section - Compact */
.footer-social {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

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

/* Newsletter Signup - Fixed Contrast & Compact */
.newsletter-signup {
  max-width: 350px;
  margin-left: auto;
}

.newsletter-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.newsletter-subtitle {
  color: #ffffff;
  opacity: 0.9;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  gap: 6px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-button {
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Footer Bottom - Compact */
.footer-bottom {
  padding-top: 0;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer {
    padding: 50px 0 25px;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    margin-bottom: 16px;
  }
  
  .footer-social {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
  }
  
  .newsletter-signup {
    margin-left: 0;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
  
  .footer-social {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 0;
    margin-bottom: 16px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-legal {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .legal-links {
    justify-content: center;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .newsletter-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 32px 0 16px;
  }
  
  .footer-content {
    padding: 0 16px;
  }
  
  .footer-main {
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-contact {
    align-items: center;
  }
  
  .legal-links {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-social {
    padding: 12px 0;
    margin-bottom: 12px;
  }
}