/* ===== FOOTER - WHITE BACKGROUND, HORIZONTAL LAYOUT, MASTRIQ GREEN ACCENTS ===== */
.footer {
  background: #ffffff;
  color: #1a1a1a;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #eaeaea;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HORIZONTAL TOP SECTION (brand, links, cta side by side) ===== */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Left Brand */
.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #4a4a4a;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  color: #4a4a4a;
  transition: all 0.25s;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-social a:hover {
  background: #76b900;
  color: #ffffff;
  transform: translateY(-3px);
}

/* Center Links – Four groups in a row */
.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-group {
  min-width: 110px;
}

.footer-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.footer-group h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: #76b900;
  border-radius: 2px;
}

.footer-group a {
  display: block;
  font-size: 0.8rem;
  color: #6b6b6b;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.footer-group a:hover {
  color: #76b900;
  transform: translateX(4px);
}

/* Compact CTA card – right column */
.footer-cta {
  flex: 0.8;
  min-width: 220px;
  background: #f9fafb;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  transition: 0.3s;
}

.footer-cta:hover {
  border-color: #76b900;
  box-shadow: 0 5px 12px rgba(118, 185, 0, 0.08);
}

.footer-cta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.footer-cta p {
  font-size: 0.75rem;
  color: #6b6b6b;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #76b900;
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.25s;
}

.footer-btn i {
  font-size: 0.7rem;
}

.footer-btn:hover {
  background: #5a8c00;  /* darker shade of #76b900 */
  transform: translateY(-2px);
  gap: 0.6rem;
}

.footer-contact {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #6b6b6b;
}

.footer-contact i {
  width: 22px;
  color: #76b900;
}

/* ===== BOTTOM SECTION ===== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eaeaea;
  font-size: 0.7rem;
  color: #6b6b6b;
}

.footer-bottom-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #6b6b6b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #76b900;
}

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

.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
}

.footer-badges i {
  color: #76b900;
}

/* ===== RESPONSIVE ===== */
/* Tablet: allow wrapping but keep horizontal as much as possible */
@media (max-width: 1024px) {
  .footer-top {
    gap: 1.5rem;
  }
  .footer-links {
    flex: 1.5;
  }
  .footer-cta {
    flex: 0.9;
  }
}

/* When screen becomes too narrow, stack vertically */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
  }
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
  .footer-cta {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 1.5rem;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .footer-group {
    min-width: calc(50% - 1rem);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2rem 0 1rem;
  }
  .footer-brand h3 {
    font-size: 1.4rem;
  }
  .footer-group {
    min-width: 100%;
    text-align: center;
  }
  .footer-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-group a {
    text-align: center;
  }
  .footer-group a:hover {
    transform: none;
  }
  .footer-cta {
    text-align: center;
  }
  .footer-contact {
    align-items: center;
  }
}