*, *::before, *::after { box-sizing: border-box; }

/* Outer wrapper — kills any white gap GHL injects above the footer */
.kwe-footer-outer {
  background: #18181b;
  margin: 0;
  padding: 0;
  display: block;
}

.kwe-footer {
  background-color: #18181b;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  font-family: 'Inter', sans-serif;
}

.kwe-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Main grid ── */
.kwe-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .kwe-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
}

/* Brand column spans 2 cols on mobile, 1 on desktop */
.kwe-footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .kwe-footer-brand { grid-column: span 1; } }

/* ── Footer links ── */
.kwe-footer-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.kwe-footer-link:hover { color: #ffffff; transform: translateX(2px); }

/* ── Column headings ── */
.kwe-footer-heading {
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
}

/* ── Link list ── */
.kwe-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* ── Social buttons ── */
.kwe-social-row { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.kwe-social-btn {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.kwe-social-btn:hover { color: #ffffff; border-color: rgba(220, 38, 38, 0.45); }

/* ── Contact info ── */
.kwe-contact-link {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.kwe-contact-link:hover { color: #ffffff; }

/* ── Divider ── */
.kwe-footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(220, 38, 38, 0.4), transparent);
}

/* ── Bottom bar ── */
.kwe-footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .kwe-footer-bottom { flex-direction: row; justify-content: space-between; }
}

.kwe-footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  letter-spacing: -0.01em;
  margin: 0;
  text-align: center;
}
@media (min-width: 768px) { .kwe-footer-copy { text-align: left; } }

.kwe-back-top {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px; letter-spacing: -0.01em;
  cursor: pointer; font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.kwe-back-top:hover { color: #ffffff; border-color: rgba(220, 38, 38, 0.45); }
