/* ==========================================================================
   Footer Styles (Dark Green Theme)
   ========================================================================== */

.af-footer {
  /* Using the new deep green primary color */
  background-color: var(--primary-color);
  color: var(--text-light);
  /* White text */
  padding-top: var(--spacing-section);
  margin-top: auto;
}

/* Grid Layout for Footer Columns */
.af-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-section);
}

@media (min-width: 768px) {
  .af-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .af-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* Column Content */
.af-footer-col {
  display: flex;
  flex-direction: column;
}

.af-footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--spacing-md);
  max-width: 320px;
}

.af-footer-logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.af-footer-title {
  font-size: 1.125rem;
  color: var(--surface-color);
  /* White */
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.af-footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  /* Light Green underline */
}

.af-footer-text {
  color: #D1D5DB;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  font-size: 0.95rem;
}

/* Links List */
.af-footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: 0;
  margin: 0;
}

.af-footer-links a {
  color: #D1D5DB;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.af-footer-links a:hover {
  color: var(--secondary-color);
  /* Light Green hover */
  transform: translateX(4px);
  /* Slight nudge effect */
}

/* Contact Info Specifics */
.af-footer-contact .af-footer-text {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.af-footer-contact i {
  color: var(--secondary-color);
  /* Light Green icons */
  margin-top: 4px;
}

/* Bottom Bar */
.af-footer-bottom {
  /* Adds a darker overlay to the primary color for a clean bottom strip */
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--spacing-md) 0;
  text-align: center;
}

.af-copyright-text {
  margin: 0;
  font-size: 0.875rem;
  color: #9CA3AF;
}

@media (max-width: 767px) {
  .af-footer-brand {
    max-width: 240px;
  }

  .af-footer-logo {
    max-width: 220px;
  }
}