/*==============================================================
  06. Footer
================================================================*/
@use "../default/breakpoints" as bp;

.cs_footer_style_1 {
  .cs_footer_main {
    padding: 100px 0 50px;
  }

  .cs_brand {
    img {
      filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(1078%) hue-rotate(101deg) brightness(115%) contrast(101%);
    }
  }

  .cs_footer_widget {
    .cs_footer_widget_title {
      letter-spacing: -0.24px;
    }
  }

  .cs_footer_menu {
    display: flex;
    gap: 16px;
    flex-direction: column;

    li {
      a:hover {
        color: var(--accent-color);
      }
    }
  }

  .cs_text_widget {
    width: min(100%, 512px);

    .cs_form {
      position: relative;
    }

    input {
      width: 100%;
      outline: none;
      padding: 15px 12px;
      border: 1px solid rgba(131, 142, 158, 0.4);
      background-color: transparent;
      color: var(--white-color);

      &::placeholder {
        color: #9ba4b1;
      }
    }

    .cs_btn_style_1 {
      padding: 10px 24px;
      position: absolute;
      inset-inline-end: 8px;
      top: 50%;
      transform: translateY(-50%);

      &:hover {
        color: var(--primary-color);
        background-color: var(--white-color);
      }
    }
  }

  .cs_contact_widget {
    width: min(100%, 233px);

    li {
      span {
        color: var(--white-color);
        margin-inline-end: 6px;
      }
    }
  }

  .cs_quick_links_widget {
    width: min(100%, 180px);
    margin-inline-start: auto;
  }

  .cs_social_btns {
    display: flex;
    align-items: center;
    gap: 20px;

    a {
      font-size: 20px;

      &:hover {
        color: var(--accent-color);
      }
    }
  }

  .cs_footer_bottom {
    padding: 24px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px 30px;
    flex-wrap: wrap-reverse;

    &::before {
      content: "";
      width: 100%;
      height: 1px;
      opacity: 0.4;
      background-color: #838e9e;
      position: absolute;
      left: 0;
      top: 0;
    }
  }

  @include bp.down(xl) {
    .cs_text_widget {
      width: 100%;
    }

    .cs_quick_links_widget,
    .cs_contact_widget,
    .cs_text_widget {
      width: 100%;
      margin: 0;
    }
  }

  @include bp.down(lg) {
    .cs_footer_main {
      padding: 56px 0 40px;
    }
  }

  @media (max-width: 450px) {
    .cs_text_widget {
      .cs_form {

        .cs_btn_style_1 {
          padding: 10px 20px;
        }
      }
    }
  }
}

/* The newsletter field sets its own border above, so repeat the accent focus border. */
.cs_footer_style_1 .cs_text_widget input:focus {
  border-color: var(--accent-color);
}
