@use '../components/mixins' as mixins;

.footer {
  background: var(--tide-booking-footer-background);
  border: var(--tide-booking-footer-border);
  border-radius: var(--tide-booking-footer-border-radius);
  box-shadow: var(--tide-booking-footer-box-shadow);
  padding: 60px 0px;

  &__container {
    @include mixins.container-medium();
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  &__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  &__logo {
    width: auto;
    height: 40px;
    cursor: pointer;

    svg,
    img {
      height: 100%;
      width: 100%;
      display: block;
    }
  }

  &__social {
    display: flex;
    align-items: center;
    gap: 15px;

    &__link {
      color: #828282;
      transition: color 0.3s ease-in-out;

      &:hover {
        color: #333399;
      }
    }
  }

  &__wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;

    @include mixins.media-xs {
      grid-template-columns: repeat(2, 1fr);
    }

    @include mixins.media-sm {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }
  }

  &__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  &__link {
    color: var(--tide-booking-footer-link-color);
    text-decoration: var(--tide-booking-footer-link-text-decoration);
    font-family: var(--tide-booking-footer-link-font-family);
    font-weight: var(--tide-booking-footer-link-font-weight);
    line-height: var(--tide-booking-footer-link-line-height);
    transition: all 0.3s ease-in-out;

    &:hover {
      color: var(--tide-booking-footer-link-color-hover);
      text-decoration: var(--tide-booking-footer-link-text-decoration-hover);
    }

    &__title {
      color: var(--tide-booking-footer-link-title-color);
      font-family: var(--tide-booking-footer-link-title-font-family);
      font-weight: var(--tide-booking-footer-link-title-font-weight);
      line-height: var(--tide-booking-footer-link-title-line-height);
      margin-bottom: 0px;
    }
  }

  &__line {
    width: 100%;
    height: 1.5px;
    background: var(--tide-booking-footer-line-color);
  }

  &__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    @include mixins.media-sm {
      flex-direction: row;
      justify-content: space-between;
    }
  }

  &__copyright {
    font-size: 14px;
    color: var(--tide-booking-footer-copyright-color);
    font-family: var(--tide-booking-footer-copyright-font-family);
    font-weight: var(--tide-booking-footer-copyright-font-weight);
    line-height: var(--tide-booking-footer-copyright-line-height);
    margin: 0px;
  }

  &__payments {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.8rem;

    img {
      width: 30px;
      height: 100%;
      object-fit: cover;
    }
  }
}
