@use "../abstracts" as vars;

/* ===========================
   Footer 1
   =========================== */

.site-footer {
  background-color: vars.$footer-bg;
  font-family: "DM Sans", sans-serif;
  padding-top: vars.rem(120);
  padding-bottom: 0;

  @media (max-width: 1199px) {
    padding-top: vars.rem(80);
  }

  // ── Top Section ──
  &__top {
    padding-bottom: vars.rem(60);

    @media (max-width: 767px) {
      padding-bottom: vars.rem(30);
    }
  }

  // ── Heading Column ──
  &__heading {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw + 1rem, 60px);
    line-height: vars.rem(70);
    letter-spacing: -0.02em;
    text-transform: capitalize;
    color: vars.$footer-heading;
    margin-bottom: vars.rem(25);

    @media (max-width: 1199px) {
      font-size: 40px; 
      line-height: 1.3;
    }

    @media (max-width: 767px) {
      font-size: 24px;
      line-height: 34px;
      margin-bottom: vars.rem(10);
    }
  }

  &__desc {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 0.5vw + 0.75rem, 16px);
    line-height: vars.rem(28);
    letter-spacing: 0;
    color: vars.$footer-text;
    max-width: vars.rem(327);
    margin-bottom: 0;    
    
    @media (max-width: 1199px) {
      font-size: 14px;
      line-height: 1.3;
    }
  }

  // ── Widget Titles ──
  &__widget-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw + 0.5rem, 24px);
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: capitalize;
    color: vars.$footer-heading;
    margin-bottom: vars.rem(30);
    display: inline-flex;
    align-items: center;
    gap: vars.rem(12);

    @media (max-width: 767px) {
      font-size: 18px;
      line-height: 28px;
      margin-bottom: vars.rem(10);
    }

    &::after {
      content: "";
      display: inline-block;
      width: vars.rem(35);
      height: vars.rem(5);
      background-color: vars.$footer-accent;
      border-radius: vars.rem(2);
    }
  }

  // ── Link Lists ──
  &__links {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  &__link-item {
    margin-bottom: 0;
  }

  &__link {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: vars.rem(40);
    letter-spacing: -0.02em;
    text-transform: capitalize;
    color: vars.$footer-text;
    text-decoration: none;
    transition: color 0.3s ease;

    @media (max-width: 1199px) {
      font-size: 14px;
      line-height: 34px;
    }

    &::before {
      content: ">>";
      margin-right: vars.rem(8);
      color: vars.$footer-text;
      transition: color 0.3s ease;
    }

    &:hover {
      color: vars.$footer-accent;
      text-decoration: none;

      &::before {
        color: vars.$footer-accent;
      }
    }
  }

  // ── Gallery ──
  &__gallery {
    display: flex;
    gap: vars.rem(10);
    margin-bottom: vars.rem(30);
  }

  &__gallery-img {
    width: vars.rem(80);
    height: vars.rem(60);
    object-fit: cover;
    border-radius: vars.rem(6);

    @media (max-width: 1199px) {
      width: 65px; 
    }
  }

  // ── Newsletter ──
  &__newsletter {
    position: relative;
    max-width: vars.rem(300);
  }

  &__newsletter-input {
    width: 100%;
    padding: vars.rem(14) vars.rem(60) vars.rem(14) vars.rem(20);
    background-color: rgba(255, 255, 255, 0.08);
    border: vars.rem(1) solid vars.$footer-border;
    border-radius: vars.rem(100);
    color: vars.$footer-text;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(14px, 0.5vw + 0.75rem, 16px);
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 5%;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.3s ease;

    @media (max-width: 1099px) {
      padding: vars.rem(7) vars.rem(40) vars.rem(7) vars.rem(20);
      font-size: 14px;
    }

    &::placeholder {
      color: rgba(255, 255, 255, 0.4);
      letter-spacing: vars.rem(1);
      text-transform: uppercase;
    }

    &:focus {
      border-color: vars.$footer-accent;
    }
  }

  &__newsletter-btn {
    position: absolute;
    right: vars.rem(5);
    top: 50%;
    transform: translateY(-50%);
    width: vars.rem(58);
    height: vars.rem(58);
    border-radius: 50%;
    background-color: vars.$footer-accent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;

    @media (max-width: 1099px) {
      width: vars.rem(40);
      height: vars.rem(40);
    }

    i {
      font-size: clamp(14px, 0.5vw + 0.75rem, 16px);
      color: vars.$footer-heading;
    }

    &:hover {
      background-color: darken(vars.$footer-accent, 10%);
    }
  }

  // ── Divider ──
  &__divider {
    border: none;
    border-top: vars.rem(1) solid vars.$footer-border;
    margin: 0;
  }

  // ── Bottom Bar ──
  &__bottom {
    padding: vars.rem(50) 0 vars.rem(60);
    border-top: 1px solid #FFFFFF4D;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: vars.rem(30);

     @media (max-width: 1199px) { 
      padding: 30px 0;
     }
    @media (max-width: 991px) {
      justify-content: center;
      text-align: center;
      flex-direction: column;
      padding: vars.rem(30) 0;
      gap: 20px;
    }
  }

  &__contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: vars.rem(40);

    @media (max-width: 991px) {
      justify-content: center;
      gap: vars.rem(10);
    }
  }

  &__logo {
    display: flex;
    align-items: center;

    img {
      height: auto;
      width: auto;
    }
  }

  &__contact {
    display: flex;
    align-items: center;
    gap: vars.rem(10);
    color: vars.$footer-text;
    font-family: vars.$font-family-base;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-decoration: none;
    transition: color 0.3s ease;

    @media (max-width: 1199px) {
      font-size: 14px;
    }

    &:hover {
      color: vars.$footer-accent;
      text-decoration: none;
    }
  }

  &__contact-icon {
    width: vars.rem(20);
    height: vars.rem(20);
    border-radius: 4px;
    background-color: vars.$footer-accent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    i {
      font-size: 12px;
      color: vars.$footer-icon-dark;
    }
  }

  &__socials {
    display: flex;
    align-items: center;
    gap: vars.rem(10);
  }

  &__social-link {
    width: vars.rem(42);
    height: vars.rem(42);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;

    i {
      font-size: clamp(14px, 0.5vw + 0.75rem, 16px);
      color: vars.$footer-heading;
      transition: color 0.3s ease;
    }

    &:hover {
      background-color: vars.$footer-accent;
    }
  }

  // ── Copyright Bar ──
  &__copyright-bar {
    background-color: vars.$footer-copyright-bg;
    padding: vars.rem(30) 0;
    text-align: center;

    @media (max-width: 991px) {
      padding: vars.rem(20) 0;
    }
  }

  &__copyright {
    font-family: vars.$font-family-base;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #ACB4BC;
    margin: 0;

    @media (max-width: 1199px) {
      font-size: 14px;
    }
  }
}

// ── Responsive Adjustments ──
@media (max-width: 767.98px) {
  .site-footer {
    padding-top: vars.rem(50);

    &__desc {
      max-width: 100%;
      margin-bottom: vars.rem(10);
    }

    &__widget-title {
      margin-top: vars.rem(5);
    }

    &__gallery {
      justify-content: flex-start;
    }

    &__socials {
      justify-content: flex-start;
      margin-top: vars.rem(20);

      @media (max-width: 991px) {
        justify-content: center;
        margin-top: vars.rem(10);
      }
    }

    &__logo {
      margin-bottom: vars.rem(20);

      @media (max-width: 991px) {
        margin-bottom: vars.rem(10);
      }
    }
  }
}