/* ========================================
   CONTACT FORM
======================================== */

.contact {
  padding-block: 6rem;
}

.contact__container {
  max-width: 42rem;
  margin-inline: auto;
}

.contact__title {
  margin-bottom: 1rem;

  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  font-weight: 700;
}

.contact .ff-el-group {
  margin-bottom: 2rem;
}

.contact .ff-el-input--label label {
  display: inline-block;

  margin-bottom: 0.75rem;

  font-size: 1rem;
  font-weight: 700;

  color: #ffffff;
}

/* Inputs + textarea */

.contact .ff-el-form-control {
  width: 100%;

  padding: 1.25rem;

  border: 1px solid #1f2937;
  border-radius: 1rem;

  background-color: #020817;

  color: #ffffff;

  font-size: 1.125rem;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Placeholder */

.contact .ff-el-form-control::placeholder {
  color: #94a3b8;
}

/* Focus */

.contact .ff-el-form-control:focus {
  outline: none;

  border-color: #3b82f6;

  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Textarea */

.contact textarea.ff-el-form-control {
  min-height: 14rem;
  resize: vertical;
}

/* Submit button */

.contact .ff-btn-submit {
  width: 100%;

  min-height: 4rem;

  border: none;
  border-radius: 1rem;

  background-color: #3b82f6;

  color: #000000;

  font-size: 1.125rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.contact .ff-btn-submit:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.contact__container {
  width: min(100% - 2rem, 42rem);
}

/* ========================================
   POST CARD 
======================================== */

.post-card {
  border: 1px solid #1f2937;
}

.post-card__media img {
  object-fit: cover;
  height: 250px;
  border-radius: var(--br-xs);
  background-color: var(-bg-color-card);
}
.post-card__content {
  padding: var(--space-xs);
}
.post-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   FOOTER
======================================== */

.footer {
  padding-block: 5rem 2rem;

  border-top: 1px solid #1f2937;

  background-color: #020817;
}

.footer__container {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

/* ========================================
   TOP
======================================== */

.footer__top {
  display: grid;
  gap: 3rem;

  padding-bottom: 3rem;

  border-bottom: 1px solid #1f2937;
}

/* ========================================
   BRAND
======================================== */

.footer__logo {
  display: inline-block;

  margin-bottom: 1rem;

  color: #3b82f6;

  font-size: 2rem;
  font-weight: 700;

  text-decoration: none;
}

.footer__description {
  max-width: 20rem;

  color: #94a3b8;

  line-height: 1.7;
}

/* ========================================
   HEADINGS
======================================== */

.footer__heading {
  margin-bottom: 1.5rem;

  color: #ffffff;

  font-size: 1.125rem;
  font-weight: 700;
}

/* ========================================
   MENU
======================================== */

.footer__menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  margin: 0;
  padding: 0;

  list-style: none;
}

.footer__menu a,
.footer__link {
  color: #94a3b8;

  text-decoration: none;

  transition: color 0.25s ease;
}

.footer__menu a:hover,
.footer__link:hover {
  color: #ffffff;
}

/* ========================================
   BOTTOM
======================================== */

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  padding-top: 2rem;

  color: #94a3b8;
}

.footer__credit {
  color: #ffffff;
}

/* ========================================
   DESKTOP
======================================== */

@media (min-width: 48rem) {
  .footer__top {
    grid-template-columns:
      minmax(0, 1.5fr)
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 4rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
