/* -- CLEAN FOOTER -- */
.site-footer {
  display: block;
  width: 100%;
  margin: 48px 0 0;
  background: #070b15;
  color: #fff;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;              /* centers content */
  padding: 42px 24px 28px;

  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(140px, 0.7fr) minmax(170px, 0.8fr) minmax(320px, 1.15fr);
  gap: 40px;
  align-items: start;
}

.newsletter-fields[hidden],
.newsletter-success[hidden] {
  display: none !important;
}

.newsletter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.newsletter-success {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-brand,
.footer-column,
.footer-newsletter {
  min-width: 0;
}

.footer-brand__logo {
  display: block;
  width: 142px;
  height: auto;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-newsletter p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-column h3,
.footer-newsletter h3 {
  margin: 0 0 2px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-column a:hover,
.footer-socials a:hover {
  color: #fff;
}

.footer-newsletter {
  width: 100%;
  max-width: 420px;
}

.footer-newsletter__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.footer-newsletter__form input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #0f1923;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
}

.footer-newsletter__form input[type="email"]:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22);
}

.footer-newsletter__form button {
  min-height: 44px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--accent, #7c3aed), #5b21b6);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.footer-newsletter__form button:hover {
  background: linear-gradient(135deg, #9861f8, #6d28d9);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  padding: 0;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.footer-socials a:hover {
  background: #7c3aed;
  color: #fff;
}

.footer-socials i {
  font-size: 18px;
  line-height: 1;
}

/* Footer tablet */
@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }

  .footer-newsletter {
    max-width: 100%;
  }
}

/* Footer mobile */
@media (max-width: 520px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 42px 24px 26px;
    text-align: center;
  }

  .footer-brand,
  .footer-column,
  .footer-newsletter,
  .footer-bottom {
    width: 100%;
    max-width: 340px;
  }

  .footer-brand__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-column {
    align-items: center;
  }

  .footer-newsletter {
    justify-self: center;
  }

  .footer-newsletter p {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-newsletter__form {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .newsletter-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-newsletter__form button {
    width: 100%;
  }

  .footer-bottom {
    padding-top: 22px;
  }
}
