/* =============================================================
   WattKarma Footer — redesigned to match Figma
   All classes scoped to .wk-footer to avoid conflicts.
   ============================================================= */

.wk-footer {
  background: var(--wk-near-black);
  color: var(--wk-gray-100);
  font-family: Inter, system-ui, sans-serif;
  position: relative;
}

.wk-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 64px;
  box-sizing: border-box;
}

/* ---- TOP SECTION: brand + columns + newsletter ---- */
.wk-footer-top {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 80px;
}

.wk-footer-brand {
  width: 200px;
  flex-shrink: 0;
}

.wk-footer-logo {
  height: 32px;
  width: auto;
  max-width: none;
  display: block;
}

/* Three link columns */
.wk-footer-cols {
  display: flex;
  gap: 13px;
  flex: 1;
  justify-content: flex-end;
}

.wk-footer-col {
  display: flex;
  flex-direction: column;
  width: 200px;
  overflow: hidden;
}

.wk-footer-col-head {
  font-size: 16px;
  font-weight: 600;
  color: var(--wk-gray-100);
  line-height: 1.5;
  margin: 0 0 14px;
}

.wk-footer-link {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--wk-gray-100);
  text-decoration: none;
  line-height: 1.25;
  padding: 6px 0;
  transition: opacity 0.15s ease;
}

.wk-footer-link:hover {
  opacity: 0.7;
  color: var(--wk-gray-100);
}

/* Newsletter */
.wk-footer-newsletter {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wk-footer-nl-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--wk-gray-100);
  line-height: 1.5;
  margin: 0;
}

.wk-footer-nl-form {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.wk-footer-nl-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--wk-gray-100);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--wk-gray-100);
  font-size: 15px;
  font-family: Inter, system-ui, sans-serif;
  height: 42px;
  box-sizing: border-box;
  outline: none;
}

.wk-footer-nl-input::placeholder {
  color: rgba(16, 24, 39, 0.6);
}

.wk-footer-nl-input:focus {
  border-color: #93c5fd;
}

.wk-footer-nl-btn {
  background: transparent;
  border: 1.5px solid var(--wk-gray-100);
  border-radius: 6px;
  padding: 10px 20px;
  color: var(--wk-gray-100);
  font-size: 15px;
  font-weight: 500;
  font-family: Inter, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.wk-footer-nl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.wk-footer-nl-fine {
  font-size: 16px;
  color: var(--wk-white);
  text-decoration: underline;
  margin: 0;
}

.wk-footer-nl-fine a {
  color: inherit;
  text-decoration: underline;
}

/* ---- DIVIDER ---- */
.wk-footer-divider {
  border: none;
  border-top: 1px solid rgba(243, 244, 246, 0.2);
  margin: 0 0 15px;
}

/* ---- BOTTOM BAR: legal links + social icons ---- */
.wk-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 12px;
}

.wk-footer-legal-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.wk-footer-legal-link {
  font-size: 16px;
  color: var(--wk-gray-100);
  text-decoration: underline;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.wk-footer-legal-link:hover {
  opacity: 0.7;
  color: var(--wk-gray-100);
}

.wk-footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wk-footer-soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--wk-gray-100);
  text-decoration: none;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.wk-footer-soc:hover {
  opacity: 0.7;
  color: var(--wk-gray-100);
}

.wk-footer-soc svg {
  width: 20px;
  height: 20px;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.wk-footer-soc svg path,
.wk-footer-soc svg circle {
  fill: none !important;
}

/* ---- CREDITS ROW: copyright + licenses ---- */
.wk-footer-credits {
  display: flex;
  align-items: baseline;
  gap: 33px;
  flex-wrap: wrap;
}

.wk-footer-copy {
  font-size: 16px;
  color: var(--wk-white);
  white-space: nowrap;
}

.wk-footer-lics {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.wk-footer-lic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--wk-gray-100);
  white-space: nowrap;
}

.wk-footer-lic svg {
  flex-shrink: 0;
}

/* ---- GO TO TOP BUTTON — mobile only ---- */
.wk-footer-totop {
  display: none;
  position: absolute;
  top: 27px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: var(--wk-gray-100);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 1;
}

.wk-footer-totop:hover {
  background: var(--wk-border-slate);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .wk-footer-inner {
    padding: 60px 40px;
  }
  .wk-footer-newsletter {
    width: 300px;
  }
  .wk-footer-col {
    width: 170px;
  }
  .wk-footer-nl-form {
    flex-direction: column;
    gap: 12px;
  }
  .wk-footer-nl-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .wk-footer-inner {
    padding: 48px 32px;
  }
  .wk-footer-top {
    flex-wrap: wrap;
    gap: 40px;
  }
  .wk-footer-brand {
    width: 100%;
    flex: none;
  }
  .wk-footer-newsletter {
    width: 100%;
  }
  .wk-footer-col {
    width: 170px;
  }
}

@media (max-width: 768px) {
  .wk-footer-inner {
    padding: 27px 20px 48px;
    position: relative;
  }

  .wk-footer-totop {
    display: inline-flex;
  }

  .wk-footer-top {
    flex-direction: column;
    gap: 48px;
    margin-bottom: 48px;
  }

  .wk-footer-brand {
    width: 250px;
    flex: none;
  }

  .wk-footer-logo {
    height: 48px;
  }

  .wk-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
  }

  .wk-footer-col {
    width: auto;
  }

  .wk-footer-col-head {
    margin-bottom: 8px;
  }

  .wk-footer-newsletter {
    width: 100%;
    gap: 12px;
  }

  .wk-footer-nl-desc {
    font-size: 14px;
  }

  .wk-footer-nl-form {
    flex-direction: column;
    gap: 16px;
  }

  .wk-footer-nl-input,
  .wk-footer-nl-btn {
    width: 100%;
    font-size: 14px;
  }

  .wk-footer-nl-input {
    background: transparent;
    border-color: var(--wk-gray-100);
    border-radius: 5px;
    height: auto;
    padding: 10px 12px;
  }

  .wk-footer-nl-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }

  .wk-footer-nl-btn {
    background: var(--wk-gray-100);
    color: var(--wk-near-black);
    border: none;
    border-radius: 5px;
    padding: 10px 24px;
    font-size: 14px;
  }

  .wk-footer-nl-fine {
    font-size: 10px;
  }

  .wk-footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .wk-footer-legal-nav {
    gap: 25px;
    justify-content: center;
  }

  .wk-footer-legal-link {
    font-size: 12px;
  }

  .wk-footer-social {
    gap: 20px;
    width: 100%;
    justify-content: center;
  }

  .wk-footer-credits {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .wk-footer-copy {
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }

  .wk-footer-lics {
    gap: 17px;
    justify-content: center;
  }

  .wk-footer-lic {
    font-size: 14px;
    gap: 7px;
  }
}
