/* Footer Styles */
.main-footer {
  background: white;
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-section h3 {
  color: #f63b3b;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.footer-section h4 {
  color: #fa6060;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-section p {
  color: #54595e;
  line-height: 1.8;
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #54595e;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
  font-size: 1rem;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f63b3b;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #f63b3b;
}

.footer-links a:hover::after {
  width: 100%;
}

.contact-info p {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #54595e;
  font-weight: 500;
}

.contact-info strong {
  font-size: 1rem;
  color: #fbbf24;
}

.contact-info i {
  color: #3b82f6;
  font-size: 1.2rem;
  width: 24px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.95;
}

/* Texchem external link area */
.texchem-link {
  margin-top: 2.75rem; /* move it a bit lower */
}

.texchem-link .texchem-label {
  /* Match "Contact Info" heading style */
  color: #fa6060;
  font-weight: 600;
  font-size: 1.15rem; /* slightly larger */
  letter-spacing: 0.5px;
  margin-top: 0.75rem;
  margin-bottom: 0.6rem;
}

.texchem-link img {
  height: 38px; /* logo size */
  width: auto;
  display: block;
}

/* Button styling for the external link */
.texchem-link a {
  display: inline-flex; /* allow small side padding */
  align-items: center;
  line-height: 0; /* remove inline gap */
  padding: 2px 8px; /* small background on left/right */
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.texchem-link a:hover {
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  margin: 0;
  font-size: 1rem;
}

/* Icon Fonts (using CSS pseudo-elements for demo) */
.icon-phone::before {
  content: "📞";
}

.icon-email::before {
  content: "✉️";
}

.icon-location::before {
  content: "📍";
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section h3 {
    font-size: 1.4rem;
  }

  .footer-section h4 {
    font-size: 1.2rem;
  }

  .contact-info p {
    justify-content: center;
  }

  .contact-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 2rem 0 1rem 0;
    margin-top: 0;
  }

  .footer-container {
    padding: 0 0.5rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.3rem;
  }

  .footer-section h4 {
    font-size: 1.1rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }
}
