/* ===== FOOTER STYLES ===== */

:root {
  --color-primary: #006233;
  --color-secondary: #004d28;
  --color-accent: #FCD116;
  --color-danger: #EF2B2D;
  --color-text: #111827;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --color-bg-light: #f8f9fa;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-wrapper {
  background: linear-gradient(135deg, #004d28 0%, #006233 100%);
  color: #fff;
  margin-top: 80px;
  border-top: 4px solid var(--color-accent);
}

.footer-content {
  padding: 60px 24px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* ===== FOOTER COLUMN ===== */

.footer-column {
  animation: fadeIn 0.6s ease;
}

.footer-column-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link-title {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link-title:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-column-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  color: #c0c0c0;
}

.footer-text strong {
  color: #fff;
  font-weight: 600;
}

.footer-credit {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== FOOTER LINKS ===== */

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-link:hover {
  color: var(--color-accent);
  padding-left: 8px;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
  opacity: 0;
}

.footer-link:hover::before {
  width: 4px;
  opacity: 1;
}

.footer-link-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: all 0.3s ease;
  font-family: inherit;
  text-align: left;
}

.footer-link-button:hover {
  color: var(--color-accent);
}

/* ===== FOOTER BOTTOM ===== */

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-divider {
  opacity: 0.5;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .footer-content {
    padding: 48px 16px 32px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-column-title {
    font-size: 0.95rem;
  }

  .footer-text,
  .footer-link {
    font-size: 0.85rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 40px 12px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-column-title {
    font-size: 0.9rem;
  }

  .footer-text,
  .footer-link,
  .footer-copyright,
  .footer-bottom-link {
    font-size: 0.8rem;
  }

  .footer-bottom {
    padding: 16px 12px;
  }

  .footer-bottom-container {
    gap: 12px;
  }

  .footer-bottom-links {
    gap: 8px;
  }
}

/* ===== UTILITY CLASSES ===== */

.footer-wrapper a {
  word-break: break-word;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .footer-column,
  .footer-link,
  .footer-link-button {
    animation: none;
    transition: none;
  }
}
