/* =========================
   FOOTER
========================= */

/* Base footer */
.footer {
  background-color: var(--bg-body);
  padding: 6rem 0 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  
}

/* Grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  padding: 0 var(--padding-container) 4rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Footer columns */
.footer-col h4 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  font-family: var(--font-heading);
}

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 40px;
  height: auto;
}

/* Paragraphs */
.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  max-width: 420px;
  line-height: 1.5;
}

/* Links list */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
 
  
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary);
}

/* Footer dropdown inside links */
.footer-col .dropdown {
  position: relative;
}

.footer-col .dropdown-menu {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 0.8rem;
  min-width: 300px;
  z-index: 10;
}

.footer-col .dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.footer-col .dropdown-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col .dropdown-item:hover {
  color: var(--primary);
}

/* Show dropdown on hover for desktop */
@media (min-width: 1025px) {
  .footer-col .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Contact info */
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.contact-list i {
  color: var(--primary);
  font-size: 1rem;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}

.social-icons a:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-light);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem var(--padding-container);
  margin-top: 19px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 var(--padding-container) 3rem;
  }

  .footer-col .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.5rem 0;
  }

  .footer-col .dropdown.open .dropdown-menu {
    display: block;
  }

  .social-icons {
    gap: 0.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}
