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

/* ========== Footer styles =========== */
.footer {
  background: #016630;
  color: #ecf0f1;
  padding: 1rem 1rem;
}

.footer-container {
  width: 90%;
  margin: auto;
  max-width: 1250px;
}

.footer-title {
  text-align: center;
  font-size: 25px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-column {
  flex: 1 1 30%;
  padding: 1rem;
  min-width: 0; /* Allow content to shrink */
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 1px solid;
  border-color: #ffffff33;
  padding-bottom: 10px;
}

/* ==================================== */
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-address i {
  margin-top: 0.2rem;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.footer-address span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

/* Map styles */
.map-container {
  border-radius: 8px;
  overflow: hidden;
}

.google-map {
  width: 100%;
  border-radius: 8px;
  max-width: 100%;
}

.contact-info-mobile {
    margin-top: 25px;
}

.contact-info-email p,
.contact-info-mobile p {
  margin: 0.3rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.services-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.service-list {
  flex: 1 1 45%;
  min-width: 0; /* Allow content to shrink */
}

.service-list p {
  margin: 0.4rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-list a {
  color: #ecf0f1;
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-list a:hover {
  color: #a2fcbd;
}

.service-list i {
  margin-right: 10px;
  flex-shrink: 0; /* Prevent icons from shrinking */
}

.social-icons {
  display: flex;
  justify-content: left;
  margin-top: 50px;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  color: var(--text-light);
  transition: all 0.3s ease;
  margin-bottom: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  flex-shrink: 0; /* Prevent icons from shrinking */
}

/* Social media icon hover colors */
.social-icon.facebook:hover {
  background-color: var(--facebook-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.social-icon.twitter:hover {
  background-color: var(--twitter-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.social-icon.pinterest:hover {
  background-color: var(--pinterest-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.social-icon.youtube:hover {
  background-color: var(--youtube-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.social-icon.instagram:hover {
  background: var(--instagram-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.social-icon.linkedin:hover {
  background-color: var(--linkedin-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .footer-column {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
  }
  
  .services-grid {
    flex-direction: column;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .footer-container {
    width: 95%;
    padding: 0 0.5rem;
  }
  
  .footer-column {
    flex: 1 1 100%;
    padding: 0.5rem;
  }
  
  .footer-address {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .social-icons {
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
  }
  
  .google-map {
    height: 150px;
  }
  
  .footer-title {
    font-size: 20px;
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  .footer-title {
    font-size: 18px;
  }
  
  .footer-heading {
    font-size: 1rem;
  }
  
  .service-list {
    flex: 1 1 100%;
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .social-icon {
    width: 30px;
    height: 30px;
  }
  
  .footer-container {
    width: 98%;
  }
}
