.footer {
  background: #0d3d20;
  color: #ffffff;
  padding: 1rem;
  width: 100%;
  overflow-x: hidden;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  max-width: 1360px;
}

.footer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: #ffffff;
  min-width: 0;
}

.footer-divider {
  border: none;
  border-top: 1px solid #ffffff33;
  margin: 1rem 0;
  width: 100%;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.5fr;
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.social-icon {
  color: #ffffff;
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  flex-shrink: 0;
}

.social-icon.facebook:hover { background-color: darkblue; }
.social-icon.twitter:hover { background-color: black; }
.social-icon.pinterest:hover { background-color: #E60023; }
.social-icon.youtube:hover { background-color: #FF0000; }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.linkedin:hover { background-color: #0077B5; }

/* Location and Address */
.location-section {
  min-width: 0;
  width: 90%;
}

.location-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
  border-bottom: 2px solid #ffffff33;
  padding-bottom: 0.75rem;
  color: #ffffff;
}

.location-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.location-map {
  width: 100%;
  height: 140px;
  border: none;
  border-radius: 10px;
  display: block;
}

.location-address {
  margin-top: 0;
}

.address-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.address-link:hover { color: #a2fcbd; }

.address-details {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-style: normal;
  line-height: 1.5;
  width: 100%;
  font-size: 14px; 
}

.address-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  min-width: 0;
  flex: 1;
}

/* Contact Details Section */
.contact-section {
  min-width: 0;
  width: 90%;
}

.contact-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
  border-bottom: 2px solid #ffffff33;
  padding-bottom: 0.75rem;
  color: #ffffff;
}

.contact-content {
  display: flex;
  flex-direction: column;
}

.contact-group { margin-bottom: 0.5rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.contact-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon { font-size: 1.07rem; }

.contact-details {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
}

.contact-details p { 
  font-size: 14px; 
}

.contact-info {
  margin: 0.4rem 0;
  line-height: 1.4;
  word-wrap: break-word;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-link:hover { color: #a2fcbd; }

/* Our Services Section */
.services-section {
  min-width: 0;
  width: 100%;
}

.services-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
  border-bottom: 2px solid #ffffff33;
  padding-bottom: 0.75rem;
  color: #ffffff;
}

.services-content { height: 100%; }
.services-content p { 
  font-size: 14px; 
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  height: 100%;
}

.services-column {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.service-item {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.service-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  min-width: 0;
}

.service-link:hover { color: #a2fcbd; }

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  margin: 1rem 0 0 0;
  color: #ffffff;
  opacity: 0.9;
}

/* 1024px */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .location-section,
  .contact-section,
  .services-section {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* 768px */
@media (max-width: 768px) {
  .footer-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    justify-content: center;
  }

  .location-section,
  .contact-section,
  .services-section {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .location-map { height: 160px; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-item {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* 480px */
@media (max-width: 480px) {
  .footer { padding: 1rem 0.5rem; }

  .footer-container {
    width: 95%;
    padding: 0;
  }

  .footer-main {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .location-section,
  .contact-section,
  .services-section {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
    gap: 12px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .location-map { height: 150px; }
  .footer-title { font-size: 1.5rem; }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact-icon-wrapper {
    width: 35px;
    height: 35px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* 320px */
@media (max-width: 320px) {
  .footer-title { font-size: 1.25rem; }

  .location-heading,
  .contact-heading,
  .services-heading {
    font-size: 1.1rem;
  }

  .social-icons { gap: 8px; }

  .social-icon {
    width: 32px;
    height: 32px;
  }

  .footer-container {
    width: 98%;
    padding: 0 0.25rem;
  }

  .address-details {
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-icon { font-size: 1rem; }
  .service-icon { font-size: 1rem; }
  .footer-copy { font-size: 0.8rem; }
}