/* ============================================
   TREEZ AFRICA SYSTEMS — Footer
   ============================================ */

.footer {
  background: var(--bg-1);
  color: var(--text-1);
  position: relative;
  overflow: hidden;
  z-index: 1100;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.footer-top {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-brand p {
  color: var(--text-2);
  font-size: var(--fs-small);
  margin: 16px 0 24px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-socials a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.footer-col h4 {
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::before {
  content: '// ';
  color: var(--status-green);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--amber);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-2);
  font-size: var(--fs-small);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width var(--transition-base);
}

.footer-links a:hover {
  color: var(--text-0);
  transform: translateX(4px);
}

.footer-links a:hover::before {
  width: 12px;
}

.footer-newsletter p {
  font-size: var(--fs-small);
  color: var(--text-2);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  transition: border-color var(--transition-base);
}

.newsletter-form:focus-within {
  border-color: var(--amber);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-0);
  font-size: var(--fs-small);
  font-family: var(--font-mono);
}

.newsletter-form input::placeholder {
  color: var(--text-2);
}

.newsletter-form button {
  padding: 12px 18px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #FFC24D;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: var(--fs-small);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--status-green);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin: 0;
}

.footer-bottom a {
  color: var(--amber);
  transition: color var(--transition-base);
}

.footer-bottom a:hover {
  color: #FFC24D;
}

.footer-subsidiary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.footer-subsidiary svg {
  width: 14px;
  height: 14px;
  color: var(--amber);
}

.admin-access {
  color: rgba(255, 255, 255, 0.14);
  transition: color var(--transition-base);
  display: flex;
}

.admin-access svg {
  width: 16px;
  height: 16px;
}

.admin-access:hover, .admin-access:focus {
  color: var(--status-green);
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-bottom: 40px;
  }
}
