/* ============================================
   FOOTER STYLES - Naved Infratech
   ============================================ */

footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Footer Brand Section */
.footer-brand {
  max-width: 350px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  color: var(--primary);
  transition: all var(--transition-normal);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Footer Links Section */
.footer-section h4 {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: all var(--transition-normal);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Footer Contact Info */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-icon {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.contact-text {
  color: var(--text-gray);
  line-height: 1.6;
}

.contact-text a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.contact-text a:hover {
  color: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
}

.footer-bottom-content {
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-bottom-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* Newsletter Section (Optional) */
.footer-newsletter {
  margin-top: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.newsletter-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 3rem 0 1.5rem;
  }

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

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-bottom-links {
    gap: 1rem;
    font-size: 0.85rem;
  }
}
/* Footer Logo with Image */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Social Link SVG Icons */
.social-link svg {
    transition: all var(--transition-normal);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Responsive Footer Logo */
@media (max-width: 768px) {
    .footer-logo-image {
        height: 35px;
    }

    .footer-logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .footer-logo-image {
        height: 32px;
    }

    .footer-logo-text {
        font-size: 1.2rem;
    }
}

/* -------- CONTACT ITEM IMPROVEMENTS -------- */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* improved spacing */
}

.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact .contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact .contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 0; /* FIX: allows proper wrapping */
}

.footer-contact .contact-text a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;   /* FIX for long emails */
  overflow-wrap: break-word;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-contact .contact-text a:hover {
  color: var(--primary);
}

/* -------- RESPONSIVE IMPROVEMENTS -------- */

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact {
    align-items: center;
  }

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

  .footer-contact .contact-text {
    align-items: center;
  }
}

/* Small devices */
@media (max-width: 640px) {
  .footer-main {
    padding: 3rem 0 2rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-brand p {
    font-size: 0.9375rem;
  }

  .footer-contact .contact-text a {
    font-size: 0.875rem;
  }
}

/* Extra small */
@media (max-width: 480px) {
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-contact .contact-text a {
    font-size: 0.8125rem;
  }
}

/* Ultra small (email overflow fix) */
@media (max-width: 360px) {
  .footer-contact .contact-text a {
    font-size: 0.75rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}