/**
 * SEVIMA Community footer — dark multi-column, responsive
 */

.sc-footer {
  --sc-footer-bg: #121212;
  --sc-footer-text: #a3a3a3;
  --sc-footer-heading: #8a8a8a;
  --sc-footer-link: #d4d4d4;
  --sc-footer-white: #ffffff;
  --sc-footer-red: #e1251b;
  --sc-footer-line: #2a2a2a;
  --sc-footer-btn: #2a2a2a;
  background: var(--sc-footer-bg);
  color: var(--sc-footer-text);
  padding: 2.5rem 0 0;
  margin-top: 0;
}

.sc-footer__inner {
  width: var(--lp-container-width, 100%);
  max-width: var(--lp-container-width, 100%);
  margin: 0 auto;
  padding: 0 var(--lp-space-screen-x, 1rem);
  box-sizing: border-box;
}

.sc-footer__top {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 1.5rem 2rem;
  padding-bottom: 2rem;
  align-items: start;
}

.sc-footer__brand {
  max-width: 280px;
}

.sc-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  margin-bottom: 0.75rem;
}

.sc-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sc-footer-red);
  flex-shrink: 0;
}

.sc-footer__logo-text {
  font-family: "Inter", "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--sc-footer-white);
  line-height: 1.2;
}

.sc-footer__desc {
  margin: 0;
  font-family: "Inter", "Nunito Sans", sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--sc-footer-text);
}

.sc-footer__heading {
  margin: 0 0 0.85rem;
  font-family: "Inter", "Nunito Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-footer-heading);
}

.sc-footer__heading--social {
  text-align: right;
}

.sc-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sc-footer__links a {
  font-family: "Inter", "Nunito Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sc-footer-link) !important;
  text-decoration: none !important;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.sc-footer__links a:hover,
.sc-footer__links a:focus {
  color: var(--sc-footer-white) !important;
}

.sc-footer__social-wrap {
  justify-self: end;
}

.sc-footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.sc-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--sc-footer-btn);
  color: var(--sc-footer-link) !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sc-footer__social-btn:hover,
.sc-footer__social-btn:focus {
  background: #3a3a3a;
  color: var(--sc-footer-white) !important;
}

.sc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1.35rem;
  border-top: 1px solid var(--sc-footer-line);
}

.sc-footer__copy,
.sc-footer__company {
  margin: 0;
  font-family: "Inter", "Nunito Sans", sans-serif;
  font-size: 0.8rem;
  color: var(--sc-footer-text);
  line-height: 1.4;
}

.sc-footer__company {
  text-align: right;
  white-space: nowrap;
}

/* Hide legacy homepage-light footer chrome if still present somewhere */
.footer.footer_lp.footer_lp--homepage-light {
  display: none !important;
}

/* Tablet */
@media (max-width: 991.98px) {
  .sc-footer {
    padding-top: 2rem;
  }

  .sc-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }

  .sc-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .sc-footer__social-wrap {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .sc-footer__heading--social {
    text-align: left;
  }

  .sc-footer__social {
    justify-content: flex-start;
  }

  .sc-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .sc-footer__company {
    text-align: left;
    white-space: normal;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .sc-footer__top {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .sc-footer__col {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--sc-footer-line);
  }

  .sc-footer__col:last-of-type {
    border-bottom: 0;
  }

  .sc-footer__links {
    gap: 0.65rem;
    padding-bottom: 0.85rem;
  }

  .sc-footer__copy,
  .sc-footer__company {
    font-size: 0.75rem;
  }
}
