/* Scrolling Contact Ticker */
.top-ticker {
  background: var(--primary);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 20, 20, 0.25);
  padding-block: 0.6rem;
  position: relative;
  z-index: 1000;

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
  }

  &::before {
    left: 0;
    background: linear-gradient(to right, var(--primary), transparent);
  }

  &::after {
    right: 0;
    background: linear-gradient(to left, var(--primary), transparent);
  }
}

.top-ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 22s linear infinite;

  &:hover {
    animation-play-state: paused;
  }
}

.top-ticker__content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-inline: 1.25rem;
  flex-shrink: 0;
}

.top-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 1rem;
  color: var(--gray);

  svg {
    color: var(--secondary);
    flex-shrink: 0;
  }

  a {
    color: var(--black);
    font-size: inherit;
    font-weight: 500;
    transition: color 0.2s ease;

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

.top-ticker__tagline {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.2rem;
}

.top-ticker__divider {
  color: var(--gray-md);
  font-size: 1rem;
  user-select: none;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.site_header {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  align-items: center;
  position: fixed;
  top: 45px;
  left: 0;
  right: 0;
  z-index: 999;
  gap: 1.5rem;
  background: transparent;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;

  &.scrolled {
    background: rgba(8, 8, 8, 0.85);
    /* backdrop-filter: blur(16px) saturate(180%); */
    /* -webkit-backdrop-filter: blur(16px) saturate(180%); */
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
    padding-block: 0.7rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.15);
    top: 0;
  }

  .logo_premium {
    filter: invert(0.25);
  }

  &.payment {
    top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.95) 100%);
    border-bottom: 2px solid rgba(57, 255, 20, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
  }

  @media screen and (max-width: 767px) {
    padding: 1rem 1.25rem;

    &.scrolled {
      padding-block: 0.6rem;
    }
  }

  .logo_header {
    max-width: 160px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 11;

    .logo_mobile {
      display: none;
    }

    @media screen and (max-width: 767px) {
      .logo_desktop {
        display: none;
      }

      .logo_mobile {
        display: block;
        max-width: 35px;
      }
    }

    img {
      width: 100%;
      max-inline-size: none;
    }
  }

  .site_navigation {
    @media screen and (min-width: 768px) {
      display: flex;
      align-items: center;
      gap: 2rem;

      .btn-header-cta {
        display: none;
      }
    }

    @media screen and (max-width: 767px) {
      position: fixed;
      inset: 0;
      background: rgba(8, 8, 8, 0.97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 3rem;
      z-index: 10;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;

      &.active {
        transform: translateX(0);
        -webkit-transform: translateX(0);
      }
    }

    ul {
      display: flex;
      gap: 0.5rem;
      list-style: none;

      li a {
        text-decoration: none;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.75);
        font-size: 1.4rem;
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-1);
        transition:
          color 0.2s ease,
          background 0.2s ease;
        display: block;

        &:hover {
          color: var(--white);
          background: rgba(255, 255, 255, 0.08);
        }
      }

      @media screen and (max-width: 767px) {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;

        li a {
          font-size: 2rem;
          padding: 0.75rem 2rem;
        }
      }
    }
  }

  .header-right {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 11;

    .header-cta-desktop {
      @media screen and (max-width: 767px) {
        display: none;
      }
    }

    .dropdown-menu {
      position: fixed;
      top: 0;
      right: -100%;
      height: 100vh;
      background: rgba(8, 8, 8, 0.97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      width: 25%;
      padding: 5rem 1.5rem 2rem;
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
      overflow-y: auto;
      z-index: 9;

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        width: 50%;
      }

      @media screen and (max-width: 767px) {
        width: 85%;
      }

      &.active {
        right: 0;
      }

      ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        height: 100%;

        li a {
          display: block;
          font-size: 1.125rem;
          font-weight: 600;
          color: rgba(255, 255, 255, 0.75);
          border-radius: var(--border-radius-1);
          transition:
            color 0.2s,
            background 0.2s;

          &:hover {
            color: var(--primary);
            background: rgba(57, 255, 20, 0.06);
          }
        }
      }
    }
  }

  .btn-header-cta {
    padding: 0.6rem 2rem;
    font-size: 1.3rem;
    min-width: auto;
    border-radius: var(--border-radius-4);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 11;

    span {
      display: block;
      width: 26px;
      height: 2px;
      background-color: var(--white);
      transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 2px;

      &:nth-child(2) {
        width: 18px;
        margin-left: auto;
        background: var(--primary);
      }
    }

    &.active,
    &[aria-expanded="true"] {
      span:first-child {
        transform: translateY(7px) rotate(45deg);
        background: var(--primary);
      }
      span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
      }
      span:last-child {
        transform: translateY(-7px) rotate(-45deg);
        background: var(--primary);
      }
    }

    @media screen and (max-width: 767px) {
      display: flex;
    }
  }

  .dropdown-trigger {
    display: flex;
  }

  @media screen and (min-width: 768px) {
    .mobile-nav {
      display: none;
    }
  }
}
