/* ===== FOOTER COMPONENT STYLES ===== */

.footer-component {
  background: #1f2937;
  color: white;
  padding: 2rem 1rem;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* Give more space to the first column to prevent address line breaks */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-company-info p {
  color: #d1d5db;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item strong {
  color: #d1d5db;
}

.footer-contact-item span {
  color: #9ca3af;
}

.footer-contact-item a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-all;
}

.footer-contact-item a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* RTL Support */
body[dir="rtl"] .footer-grid {
  direction: rtl;
}

body[dir="rtl"] .footer-contact-item {
  direction: rtl;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-component {
    padding: 2rem 1rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer-section h4 {
    font-size: 1.125rem;
  }
}
