/* ════════════════════════════════════════════════════════════════
   ██ FOOTER — Professional & Attractive Design ██
   ════════════════════════════════════════════════════════════════ */

footer {
  background: linear-gradient(180deg, #0F0F0F 0%, #1A1A1A 100%);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(0, 179, 76, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 82, 204, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(232, 0, 26, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Brand Column */
.footer-brand {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #006400 0%, #00B34C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 179, 76, 0.2);
  position: relative;
  overflow: hidden;
}

.footer-logo-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo-text strong {
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.footer-logo-text small {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin: 0;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.fsocial-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fsocial-link:hover {
  background: rgba(0, 179, 76, 0.2);
  color: #00B34C;
  border-color: rgba(0, 179, 76, 0.3);
  transform: translateY(-3px) scale(1.12);
}

.fsocial-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

/* Footer Columns */
.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 179, 76, 0.3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
  color: #00B34C;
  padding-left: 10px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.footer-bottom-left {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-bottom-links a:hover {
  color: #00B34C;
}

/* Kenya Flag Stripe */
.kenya-stripe {
  display: flex;
  width: 100%;
  height: 4px;
  z-index: 2;
  position: relative;
}

.kenya-stripe span:nth-child(1) {
  flex: 1;
  background: #0F0F0F;
}

.kenya-stripe span:nth-child(2) {
  flex: 2;
  background: linear-gradient(90deg, #CC0000 0%, #E8001A 100%);
}

.kenya-stripe span:nth-child(3) {
  flex: 1;
  background: #0F0F0F;
}

.kenya-stripe span:nth-child(4) {
  flex: 2;
  background: linear-gradient(90deg, #00B34C 0%, #00D464 100%);
}

.kenya-stripe span:nth-child(5) {
  flex: 1;
  background: #0F0F0F;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
}

.lightbox .lb-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox .lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox .lb-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox .lb-prev {
  left: 20px;
}

.lightbox .lb-next {
  right: 20px;
}

.lightbox .lb-download {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox .lb-download:hover {
  background: var(--color-green);
  border-color: var(--color-green-light);
  transform: scale(1.1);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #0F0F0F;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #00B34C;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  font-size: 0.9rem;
  font-weight: 500;
}

.toast.success {
  border-left-color: #00B34C;
  background: rgba(0, 179, 76, 0.1);
  color: #4DD0A8;
}

.toast.error {
  border-left-color: #E8001A;
  background: rgba(232, 0, 26, 0.1);
  color: #FF4D4D;
}

.toast.warning {
  border-left-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
  color: #FFE64D;
}

.toast.info {
  border-left-color: #0052CC;
  background: rgba(0, 82, 204, 0.1);
  color: #5A8FFF;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-left,
  .footer-bottom-links {
    width: 100%;
  }

  .lightbox .lb-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}
