@charset "UTF-8";
/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: var(--section-gap);
  min-height: 410px;
  color: var(--c-white);
  background: linear-gradient(89.94deg, var(--c-primary) 0%, var(--c-secondary) 137.41%);
}

.footer__inner {
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding: 64px 24px 36px;
}

.footer__top {
  min-height: 186px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer__brand {
  width: 410px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* RTL: right */
  gap: 24px;
}

.footer__about {
  font-size: 16px;
  line-height: 1.75;
  /* Justified: every line starts and ends at the same edge; the last line stays on the right */
  text-align: justify;
  text-align-last: right;
}
/* The fixed line breaks would stop those lines from stretching to the edge */
.footer__about br.br-lg {
  display: none;
}

/* Left column: newsletter, then the social links 20px below (Figma Footer) */
.footer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* RTL: right edges line up with the newsletter field */
  gap: 20px;
}

.footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* RTL: right */
  gap: 16px;
}
.footer__social-title {
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-gray-light);
}
.footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.09);
  border: 0.5px solid var(--c-white);
  border-radius: 6px 0 6px 0;
  transition: background 0.25s ease;
}
.footer__social-link img {
  width: 24px;
  height: 24px;
}
/* The X icon file already includes its box */
.footer__social-link--x {
  background: none;
  border: 0;
}
.footer__social-link--x img {
  width: 40px;
  height: 40px;
}
.footer__social-link:hover,
.footer__social-link:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.newsletter {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.newsletter__widget {
  width: 381px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--c-gray-light);
}

.newsletter__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.newsletter__subtitle {
  font-size: var(--fs-tiny);
  line-height: 1.2;
}

.newsletter__input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 20px;
  background: var(--c-white);
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: var(--fs-tiny);
  line-height: 1.2;
  color: var(--c-primary);
  outline: none;
}
.newsletter__input::placeholder {
  color: var(--c-gray-dark);
}
.newsletter__input:focus {
  border-color: var(--c-secondary-light);
  box-shadow: 0 0 0 3px rgba(249, 200, 193, 0.4);
}
.newsletter__input.is-invalid {
  border-color: var(--c-secondary);
}

.newsletter__btn {
  width: 120px;
  height: 48px;
  padding: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-secondary);
  color: var(--c-white);
  border-top-left-radius: 6px;
  border-bottom-right-radius: 6px;
  font-size: 16px;
  line-height: 1.35;
  transition: background 0.25s ease;
}
.newsletter__btn:hover, .newsletter__btn:focus-visible {
  background: var(--c-secondary-dark);
}

.newsletter__msg {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  font-size: var(--fs-tiny);
  color: var(--c-gray-light);
}
.newsletter__msg--error {
  color: var(--c-secondary-lighter);
}

.footer__bottom {
  margin-top: 80px;
}

.footer__line {
  width: 100%;
  height: 1px;
}

.footer__copy {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .footer__top {
    flex-direction: column;
    align-items: stretch;
  }
  .footer__brand {
    width: 100%;
  }
}
@media (max-width: 576px) {
  .footer__side {
    align-items: stretch;
  }
  .newsletter {
    flex-wrap: wrap;
  }
  .newsletter__widget {
    width: 100%;
  }
  .newsletter__btn {
    width: 100%;
  }
  .newsletter__msg {
    position: static;
    width: 100%;
  }
}
