/* .ap-footer — two-tier footer: light tinted link grid + solid bottom bar. */

.ap-footer__top {
  background: color-mix(in srgb, var(--ap-primary) 8%, var(--ap-surface));
  padding-block: var(--ap-space-xl);
}

.ap-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ap-space-xl) var(--ap-space-lg);
}

@media (min-width: 768px) {
  .ap-footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ap-footer__col h2 {
  font-size: var(--ap-fs-body);
  font-weight: 700;
  margin-bottom: var(--ap-space-md);
  color: var(--ap-text);
}

.ap-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-sm);
}

.ap-footer__col a {
  color: var(--ap-text-muted);
  font-size: var(--ap-fs-sm);
  transition: color var(--ap-transition);
}

.ap-footer__col a:hover {
  color: var(--ap-primary);
}

.ap-footer__newsletter {
  margin-top: var(--ap-space-xl);
  padding-top: var(--ap-space-xl);
  border-top: 1px solid var(--ap-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-lg);
  align-items: center;
  justify-content: space-between;
}

.ap-footer__newsletter h2 {
  font-size: var(--ap-fs-body);
  font-weight: 700;
  margin-bottom: var(--ap-space-xs);
}

.ap-footer__bottom {
  background: var(--ap-primary-active);
  color: var(--ap-text-inverse);
  padding-block: var(--ap-space-md);
}

.ap-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ap-space-md);
}

.ap-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-sm);
  font-weight: 700;
  color: var(--ap-text-inverse);
}

.ap-footer__brand img {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--ap-text-inverse);
  padding: 2px;
}

.ap-footer__copyright {
  font-size: var(--ap-fs-sm);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  flex: 1;
}

.ap-footer__social {
  display: flex;
  gap: var(--ap-space-sm);
}

.ap-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ap-text-inverse);
  transition: background var(--ap-transition), border-color var(--ap-transition);
}

.ap-footer__social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--ap-text-inverse);
}

@media (max-width: 767px) {
  .ap-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
