/* ─── Footer ─────────────────────────────────────────────────────────────── */

.ps-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.ps-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-48) var(--gutter) var(--sp-48);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: var(--sp-48);
}

/* Logo + tagline col */
.ps-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.ps-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  text-decoration: none;
}

.ps-footer__logo-text {
  font-family: var(--fd);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ps-footer__logo-text .scout {
  color: var(--mint);
  margin-left: -0.08em;
}

.ps-footer__tagline {
  font-family: var(--fb);
  font-size: var(--fs-13);
  color: var(--muted);
  line-height: 1.6;
  max-width: 220px;
}

.ps-footer__socials {
  display: flex;
  gap: var(--sp-8);
}

.ps-footer__social-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-8);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.ps-footer__social-btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--border-subtle);
}

.ps-footer__social-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Link columns */
.ps-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.ps-footer__col-heading {
  font-family: var(--fb);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.ps-footer__link {
  font-family: var(--fb);
  font-size: var(--fs-13);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
  line-height: 1;
}

.ps-footer__link:hover {
  color: var(--text);
}

/* CTA column */
.ps-footer__cta-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.ps-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-family: var(--fb);
  font-size: var(--fs-13);
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--r-8);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.ps-footer__cta:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
}

.ps-footer__support {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

/* Bottom bar */
.ps-footer__bar {
  border-top: 1px solid var(--border-subtle);
}

.ps-footer__bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-20) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
}

.ps-footer__copy {
  font-family: var(--fb);
  font-size: var(--fs-13);
  color: var(--label);
}

.ps-footer__legal-links {
  display: flex;
  align-items: center;
  gap: var(--sp-20);
}

.ps-footer__legal-link {
  font-family: var(--fb);
  font-size: var(--fs-13);
  color: var(--label);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.ps-footer__legal-link:hover {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1023px) {
  .ps-footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-32);
  }

  .ps-footer__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--sp-24);
  }

  .ps-footer__cta-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .ps-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-24) var(--sp-32);
    padding-top: var(--sp-32);
    padding-bottom: var(--sp-32);
  }

  .ps-footer__brand {
    grid-column: 1 / -1;
    flex-direction: column;
  }

  .ps-footer__cta-col {
    grid-column: 1 / -1;
  }

  .ps-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-12);
  }

  .ps-footer__legal-links {
    flex-wrap: wrap;
    gap: var(--sp-12);
  }
}
