/* ========================================
   HEADER
======================================== */

.header {
  position: relative;
  z-index: 20;

  border-bottom: 1px solid #1f2937;
  background-color: #020817;
}

.header__container {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  width: min(100% - 2rem, 80rem);
  min-height: 4.5rem;
  margin-inline: auto;
}

.header__logo a {
  color: #3b82f6;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;

  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;

  border: 0;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}

.header__toggle span {
  display: block;

  width: 1.5rem;
  height: 0.15rem;

  border-radius: 999px;
  background-color: currentColor;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.header__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.5rem) rotate(45deg);
}

.header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.5rem) rotate(-45deg);
}

.header__nav,
.header__cta {
  display: none;
}

.header__nav.is-open {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);

  display: block;

  width: 100vw;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 8, 23, 0.98)),
    #020817;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.header__menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;

  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  padding: 1rem 0;

  list-style: none;
}

.header__menu a {
  display: flex;
  align-items: center;

  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;

  color: #e5e7eb;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.header__menu a:hover,
.header__menu a:focus-visible {
  border-color: rgba(59, 130, 246, 0.35);
  background-color: rgba(59, 130, 246, 0.1);
  color: #ffffff;
  transform: translateX(0.25rem);
}

.header__menu a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

@media (min-width: 763px) {
  .header__container {
    min-height: 5rem;
  }

  .header__toggle {
    display: none;
  }

  .header__nav,
  .header__cta {
    display: block;
  }

  .header__nav,
  .header__nav.is-open {
    position: static;
    transform: none;

    width: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .header__menu {
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;

    width: auto;
    padding: 0;
  }

  .header__menu a {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .header__menu a:hover,
  .header__menu a:focus-visible {
    background-color: transparent;
    transform: none;
  }

  .header__cta .button {
    min-height: 3rem;
    min-width: 0;
    border-radius: 0.75rem;
    color: #000000;
  }
}

/* ========================================
   BUTTONS
======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 3.75rem;
  padding-inline: 2rem;

  border-radius: 1rem;

  font-size: 1rem;
  font-weight: 600;
  line-height: 1;

  text-decoration: none;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.button--primary {
  background-color: #3b82f6;
  border: 1px solid #3b82f6;
  color: #ffffff;
}

.button--primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.button--secondary {
  background-color: transparent;
  border: 1px solid #2563eb;
  color: #3b82f6;
}

.button--secondary:hover {
  background-color: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

/* ========================================
   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__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  border-radius: var(--br-xs);
  background-color: var(--bg-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;
  }
}
