/* =========================
   FOOTER BASE
========================= */
footer {
  color: #fff;
  background-color: #171b17;
  font-size: 14px;
  padding: 3rem 2rem 1.5rem 2rem;
  font-family: var(--font-primary);
  overflow: hidden;
}

/* =========================
   CONTAINER
========================= */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
  align-items: flex-start;
}

/* =========================
   FOOTER SECTIONS
========================= */
.footer-section {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-section.about h2 {
  font-family: var(--font-logo);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  font-family: var(--font-logo);
}

.logo i {
  color: #a8e063;
  font-size: 1.8rem;
}

.footer-section.about p {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: white;
}

/* Social Icons */
.footer-section.about .socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-section.about .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(76, 175, 80, 0.15);
  color: white;
  border-radius: 8px;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.footer-section.about .socials a:hover {
  transform: scale(1.2);
  background-color: rgba(67, 160, 72, 0.25);
}

/* Quick Links / Services / Contact */
.footer-section.links,
.footer-section.services,
.footer-section.contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-section h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

/* Links */
.footer-section.links ul,
.footer-section.services ul,
.footer-section.contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section.links ul li a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
  margin-bottom: 0.6rem;
}

.footer-section.links ul li a:hover {
  color: #58b35b;
  transform: translateX(6px);
}

.footer-section.services ul li {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.9rem;
  transition: 0.3s;
}

.footer-section.services ul li i {
  color: #4caf50;
}

.footer-section.services ul li:hover {
  color: #4caf50;
  transform: translateX(6px);
}

/* Contact */
.footer-section.contact ul li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  column-gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.footer-section.contact ul li .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(76, 175, 80, 0.15);
  border-radius: 6px;
  font-size: 1rem;
  color: #4caf50;
}

.footer-section.contact ul li div h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
}

.footer-section.contact ul li div p {
  margin: 0.2rem 0 0 0;
  font-size: 0.95rem;
  color: #ccc;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  gap: 1rem;
}

/* Policies */
.footer-policies a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.3rem;
  transition: 0.3s;
}

.footer-policies a:hover {
  color: #4caf50;
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet – 2x2 grid & spacing */
@media (max-width: 900px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 600px;
    margin: 0 auto;
    gap: 1.8rem;
  }

  .footer-section.about {
    grid-column: span 2;
    text-align: center;
    align-items: center;
  }

  .footer-section.about .socials {
    justify-content: center;
  }

  .footer-section.links,
  .footer-section.services,
  .footer-section.contact {
    text-align: left; /* or center if you want */
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/* Small screens – Balanced 2x2 footer */
@media (max-width: 540px) {
  footer {
    padding: 2.2rem 1.2rem 1.2rem;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    width: 100%;
  }

  /* Brand takes full width */
  .footer-section.about {
    grid-column: span 2;
    align-items: center;
    text-align: center;
  }

  .logo {
    justify-content: center;
  }

  .footer-section.about p {
    max-width: 320px;
    margin: auto;
  }

  .footer-section.about .socials {
    justify-content: center;
  }

  /* Other sections */
  .footer-section {
    align-items: flex-start;
  }

  .footer-section h3 {
    margin-top: 2rem;
    font-size: 1.05rem;
  }

  .footer-section.links ul li a,
  .footer-section.services ul li,
  .footer-section.contact ul li {
    font-size: 0.7rem;
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
    font-size: 0.6rem;
  }

  .footer-policies a {
    margin: 0.2rem 0.4rem;
  }
}
