/*
 * Footer component
 * Eko DDD - Professional footer with 3-column layout
 */

.footer {
  background: linear-gradient(
    180deg,
    #ffffff,
    color-mix(in oklab, var(--brand-purple) 3%, #f7f8fb)
  );
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

@media (max-width: 600px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__title {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
  background: linear-gradient(
    90deg,
    var(--brand-purple),
    color-mix(in oklab, var(--brand-purple) 70%, var(--brand-green))
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.footer__text strong {
  color: var(--ink);
  font-weight: 600;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in oklab, var(--brand-purple) 8%, white);
  color: color-mix(in oklab, var(--brand-purple) 80%, black);
  border: 1px solid color-mix(in oklab, var(--brand-purple) 18%, white);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  margin-top: 0.3rem;
}

.footer__badge svg {
  flex-shrink: 0;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0.25rem 0;
}

.footer__links li a:hover {
  color: var(--brand-purple);
  transform: translateX(4px);
}

.footer__links li a svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer__links li a:hover svg {
  transform: translateX(3px);
}

.footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__contact li svg {
  flex-shrink: 0;
  color: var(--brand-purple);
}

.footer__contact li a {
  color: inherit;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer__contact li a:hover {
  color: var(--brand-purple);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.footer__copyright {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__legal {
  font-size: 0.85rem !important;
  color: color-mix(in oklab, var(--muted) 70%, white) !important;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  text-align: right;
}

@media (max-width: 700px) {
  .footer__tagline {
    text-align: left;
  }
}
