/* ===== NotFit V2 — Footer ===== */
.nfx-footer {
  position: relative;
  padding-block: clamp(56px, 4vw, 96px) 40px;
  background: var(--nfx-ink);
  color: var(--nfx-text);
  overflow: hidden;
}

.nfx-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, max-content);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* ---- Brand / newsletter column ---- */
.nfx-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 460px;
}

.nfx-footer-logo {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.nfx-footer-logo .nfx-footer-logo-not { color: var(--nfx-red); }
.nfx-footer-logo .nfx-footer-logo-fit { color: var(--nfx-text); }

.nfx-footer-heading {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--nfx-text);
}

.nfx-footer-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  margin: 0;
  color: var(--nfx-muted);
  max-width: 42ch;
}

.nfx-footer-webapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 4px;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  background: var(--nfx-gold-grad);
  color: var(--nfx-gold-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow:
    0 16px 38px -18px var(--nfx-gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 200ms var(--nfx-ease), filter 200ms var(--nfx-ease), box-shadow 200ms var(--nfx-ease);
}
.nfx-footer-webapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 24px 50px -20px var(--nfx-gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.nfx-footer-webapp i { font-size: 18px; }

/* ---- Newsletter form ---- */
.nfx-footer-form {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.nfx-footer-input {
  flex: 1 1 240px;
  min-width: 0;
  height: 54px;
  padding-inline: 24px;
  border: 1px solid var(--nfx-line-2);
  border-radius: 100px;
  background: #e8e8e8;
  color: #131515;
  font: inherit;
  font-size: 17px;
  transition: box-shadow var(--nfx-duration, 240ms) var(--nfx-ease),
              transform 240ms var(--nfx-ease);
}
.nfx-footer-input::placeholder { color: rgba(19, 21, 21, 0.5); }
.nfx-footer-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(209, 187, 154, 0.45);
}

.nfx-footer-submit {
  height: 54px;
  padding-inline: 34px;
  border: none;
  border-radius: 100px;
  background: #fff;
  color: #060606;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4), 0 10px 18px rgba(0, 0, 0, 0.5);
  transition: transform 240ms var(--nfx-ease), box-shadow 240ms var(--nfx-ease);
}
.nfx-footer-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.45), 0 14px 26px rgba(0, 0, 0, 0.55);
}
.nfx-footer-submit:active { transform: translateY(0); }

/* ---- Link columns ---- */
.nfx-footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nfx-footer-col-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nfx-muted);
  margin: 0;
}

.nfx-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nfx-footer-link {
  color: var(--nfx-text);
  text-decoration: none;
  font-size: 17px;
  line-height: 1.2;
  width: fit-content;
  transition: color 200ms var(--nfx-ease);
}
.nfx-footer-link:hover,
.nfx-footer-link:focus-visible {
  color: var(--nfx-gold);
  outline: none;
}

/* ---- Divider + bottom bar ---- */
.nfx-footer-divider {
  height: 1px;
  border: none;
  margin: clamp(40px, 4vw, 64px) 0 28px;
  background: var(--nfx-line);
}

.nfx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nfx-footer-copy {
  font-size: 16px;
  color: var(--nfx-text);
  margin: 0;
}

.nfx-footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nfx-footer-social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: #e8e8e8;
  color: #131515;
  font-size: 18px;
  text-decoration: none;
  transition: background 200ms var(--nfx-ease), transform 200ms var(--nfx-ease);
}
.nfx-footer-social-link:hover,
.nfx-footer-social-link:focus-visible {
  background: var(--nfx-gold);
  transform: translateY(-2px);
  outline: none;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nfx-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .nfx-footer-brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }
  .nfx-footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .nfx-footer-grid { grid-template-columns: 1fr; }
  .nfx-footer-form { flex-direction: column; align-items: stretch; }
  .nfx-footer-submit { width: 100%; }
}
