/* ==========================================================================
   Site Footer - 4-column layout with brand, links, legal, contact
   ========================================================================== */

.site-footer {
  background: var(--cpr-off-white);
  border-top: var(--cpr-border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
  max-width: var(--cpr-container-max);
  margin: 0 auto;
  padding: 0 var(--cpr-container-padding);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: var(--space-2xl);
}

/* ── Brand Column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo svg,
.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--cpr-slate);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--cpr-gray);
  line-height: 1.7;
  margin: 0;
}

.footer-trust-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-sm);
}

.footer-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--cpr-gray);
}

.footer-trust-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--cpr-mint);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cpr-white);
  border: var(--cpr-border-default);
  color: var(--cpr-gray);
  transition: all var(--cpr-transition);
}

.footer-social a:hover {
  background: var(--cpr-mint-bg);
  border-color: var(--cpr-mint);
  color: var(--cpr-slate);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ── Link Columns ── */
.footer-column h4 {
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  color: var(--cpr-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  font-size: 0.875rem;
  color: var(--cpr-gray);
  transition: color var(--cpr-transition);
}

.footer-column a:hover {
  color: var(--cpr-mint);
}

/* ── Contact Column ── */
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--cpr-mint);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span {
  font-size: 0.875rem;
  color: var(--cpr-gray);
  line-height: 1.5;
}

.footer-contact-item a {
  color: var(--cpr-gray);
}

.footer-contact-item a:hover {
  color: var(--cpr-mint);
}

/* ── Bottom Bar ── */
.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--cpr-gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--cpr-gray-light);
}

.footer-developer {
  font-size: 0.8125rem;
  color: var(--cpr-gray-light);
}

.footer-developer a {
  color: var(--cpr-gray);
  font-weight: var(--font-weight-medium);
}

.footer-developer a:hover {
  color: var(--cpr-mint);
}

.footer-partner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--cpr-gray-light);
}

.footer-partner img,
.footer-partner svg {
  height: 20px;
  width: auto;
}

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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