.footer-brand {
  max-width: 360px;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 10px;
}

.tagline {
  color: #22c55e;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-about {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.footer-section {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 25px;
  font-size: 14px;
}

.footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 15px;
}

/* CONTACT ITEMS */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.contact-item i {
  color: #22c55e;
  font-size: 16px;
  flex-shrink: 0; /* Prevents icon shrinking */
}

.contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  word-break: break-word; /* Handles long links */
}

.contact-item:hover {
  transform: translateX(6px);
}

.contact-item:hover a {
  color: #22c55e;
}

/* LINKS */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #22c55e;
  padding-left: 5px;
}

/* SOCIAL ICONS */
.social-icons {
  gap: 8px !important; /* Override Bootstrap gap */
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #1e293b;
  border-radius: 50%;
  color: #fff;
  transition: 0.3s;
  flex-shrink: 0; /* Prevents shrinking */
}

.social-icons a:hover {
  background: #22c55e;
  transform: translateY(-4px) scale(1.05);
}

/* ADDRESS */
.address-text {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* MAP */
.map-box {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #1e293b;
  transition: 0.4s;
  position: relative; /* For better control */
}

.map-box iframe {
  width: 100%;
  height: 150px; /* Base height, adjusted in media queries */
  border: 0;
  display: block; /* Removes bottom gap */
}

.map-box:hover {
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.35);
  transform: translateY(-4px);
}

hr {
  border-color: #1e293b;
}

/* MEDIA QUERIES FOR RESPONSIVENESS */
@media (max-width: 1199px) {
  .footer-section {
    padding: 50px 0 20px;
  }
  .footer-brand {
    max-width: 300px;
  }
  .footer-logo {
    max-width: 140px;
  }
}

@media (max-width: 991px) { /* lg breakpoint */
  .footer-section {
    padding: 40px 0 15px;
  }
  .footer-brand-col {
    margin-bottom: 20px; /* Extra space below brand on smaller screens */
  }
  .footer-brand {
    max-width: 100%; /* Allow full width */
  }
  .map-box iframe {
    height: 120px; /* Slightly smaller map */
  }
  .social-icons a {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 767px) { /* md breakpoint */
  .footer-section {
    padding: 30px 0 10px;
  }
  .footer-title {
    margin-bottom: 10px;
  }
  .contact-item {
    margin-bottom: 8px;
  }
  .footer-links li {
    margin-bottom: 6px;
  }
  .map-box iframe {
    height: 100px; /* Smaller for tablets */
  }
  .social-icons {
    justify-content: center; /* Center icons */
  }
  .social-icons a {
    width: 32px;
    height: 32px;
  }
  /* Disable transforms on touch devices to prevent glitches */
  .contact-item:hover,
  .social-icons a:hover,
  .map-box:hover {
    transform: none;
  }
}

@media (max-width: 575px) { /* sm breakpoint */
  .footer-section {
    padding: 20px 0 5px;
    font-size: 13px;
  }
  .tagline {
    font-size: 12px;
  }
  .footer-about {
    font-size: 13px;
  }
  .address-text {
    font-size: 12px;
  }
  .map-box iframe {
    height: 80px; /* Very small for mobile */
  }
  .social-icons a {
    width: 30px;
    height: 30px;
  }
  .contact-item i {
    font-size: 14px;
  }
}