/* Footer Styles */
footer {
  background: #000;
  color: #fff;
  padding: 60px 0 0;
  position: relative;
  margin-top: 80px;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #ff5500);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  margin-bottom: 30px;
}

.footer-column h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  color: #fff;
  font-weight: 600;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, #ff5500);
  border-radius: 2px;
}

/* Logo Section */
.footer-logo {
  margin-bottom: 25px;
}

.footer-logo-img {
  max-width: 120px;
  height: auto;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.company-tagline {
  color: #b0b7c3;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Info */
.contact-info p {
  color: #b0b7c3;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.contact-item:hover {
  color: #ff5500;
  transform: translateX(5px);
}

.contact-item i {
  color: #ff5500;
  font-size: 1.1rem;
  width: 20px;
  margin-top: 2px;
}

.contact-item span {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Links Sections */
.footer-links,
.service-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.service-links li {
  margin-bottom: 12px;
}

.footer-links a,
.service-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b0b7c3;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  padding: 5px 0;
}

.footer-links a:hover,
.service-links a:hover {
  color: #ff5500;
  transform: translateX(5px);
}

.footer-links i {
  font-size: 0.8rem;
  color: #ff5500;
  transition: transform 0.3s ease;
}

.footer-links a:hover i {
  transform: rotate(90deg);
}

.service-links i {
  font-size: 1rem;
  color: #f7d486;
  width: 20px;
}

/* Newsletter */
.newsletter-text {
  color: #b0b7c3;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.newsletter-form {
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  display: flex;
  margin-bottom: 10px;
}

.input-group input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(242, 122, 125, 0.3);
}

.input-group input::placeholder {
  color: #8a94a6;
}

.input-group button {
  background: linear-gradient(135deg, #ff5500);
  border: none;
  border-radius: 0 8px 8px 0;
  color: #1a1a2e;
  width: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.input-group button:hover {
  background: linear-gradient(135deg, #ff5500);
  transform: scale(1.05);
}

.privacy-note {
  font-size: 0.85rem;
  color: #8a94a6;
  margin-top: 8px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  color: #fff;
}

.social-icon.facebook:hover { background: #1877f2; }
.social-icon.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.linkedin:hover { background: #0a66c2; }
.social-icon.twitter:hover { background: #000000; }
.social-icon.whatsapp:hover { background: #25d366; }
.social-icon.youtube:hover { background: #ff0000; }

/* Footer Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 40px 0;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copyright p {
  color: #8a94a6;
  font-size: 0.9rem;
  margin: 0;
}

.copyright i {
  margin-right: 5px;
  color: #ff5500;
}

.legal-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.legal-links a {
  color: #b0b7c3;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #ff5500;
}

.separator {
  color: #8a94a6;
  font-size: 0.85rem;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-text {
  color: #8a94a6;
  font-size: 0.9rem;
}

.payment-icons {
  display: flex;
  gap: 12px;
}

.payment-icons i {
  font-size: 1.3rem;
  color: #b0b7c3;
  transition: color 0.3s ease;
  cursor: pointer;
}

.payment-icons i:hover {
  color: #f7d486;
}

.fa-cc-mastercard:hover { color: #eb001b; }
.fa-cc-visa:hover { color: #1a1f71; }
.fa-mpesa:hover { color: #0ca945; }

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff5500);
  border: none;
  border-radius: 50%;
  color: #1a1a2e;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(242, 122, 125, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(242, 122, 125, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  footer {
    padding: 40px 0 0;
  }
  
  .footer-top {
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
  
  .payment-methods {
    flex-direction: column;
    gap: 10px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 15px;
  }
  
  .footer-column {
    margin-bottom: 25px;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .input-group input {
    border-radius: 8px;
    margin-bottom: 10px;
  }
  
  .input-group button {
    border-radius: 8px;
    width: 100%;
    padding: 12px;
  }
}

/* Animation for footer elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-column {
  animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }
