.primary-header {
  box-shadow: 0 0 4px 8px hsla(0, 0%, 0%, 0.035);
  background: var(--white-clr);
}

/* Topbar */
.topbar {
  /* Full width background */
  border-image-source: conic-gradient(var(--tertiary-clr) 0% 0%);
  border-image-slice: fill 0;
  border-image-outset: 0 100vw;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;

  @media (width <=1024px) {
    display: none;
  }
}

.topbar-contacts {
  --_topbar-contacts-gap: 1rem;
  display: flex;
  gap: var(--_topbar-contacts-gap);
}

.topbar-contact-details {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--white-clr);
  text-decoration: none;

  &:not(:last-of-type) {
    padding-right: var(--_topbar-contacts-gap);
    border-right: 1px solid var(--white-clr);
  }

  &:hover {
    color: hsl(324, 70%, 55%);

    .bx {
      scale: 1.2;
      transition: all 180ms ease-in-out;
    }
  }

  .bx {
    color: hsl(324, 70%, 55%);
  }
}

.topbar-contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(324, 70%, 55%);
  transition: all 180ms ease-in-out;
}

.topbar-contact-text {
  font-weight: var(--fw-400);
  font-size: var(--fs-300);
}

.topbar-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--_social-icon-clr, var(--secondary-clr));
  background-color: var(--_social-icon-bg-clr, var(--white-clr));
  border-radius: 50%;
  transition: scale 180ms ease-in-out;

  &:hover {
    transition: scale 180ms ease-in-out;
    scale: 1.2;
  }

  &.social-icon-32 {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }

  &a,
  a {
    all: unset;
  }
}

/* End of Topbar */

/* Primay Nav */
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;

  .logo {
    width: 7.125rem;
    height: 3rem;

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  @media (width <=600px) {
    &:not(.no-btn) {
      /* .logo {
        width: 4.25rem;
        height: 2rem;
      } */

      .btn {
        font-size: var(--fs-300);
      }
    }
  }
}

.user-profile {
  cursor: pointer;
  background-color: transparent;
  border: none;
  display: flex;
  gap: 0.625rem;
  align-items: center;
  transition: rotate 180ms ease;
}

.user-profile-pic {
  outline: 1px solid var(--secondary-clr);
  margin-right: 0.375rem;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 50%;

  img,
  svg {
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }

}

.user-info {
  max-width: 10ch;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name {
  color: var(--tertiary-clr);
  font-size: var(--fs-300);
  font-weight: var(--fw-700);
  text-transform: capitalize;
  line-height: 16.37px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-rank {
  font-size: var(--fs-200);
  font-weight: var(--fw-600);
  line-height: 16.37px;
  color: var(--text-clr);
}


.user-name {
  color: var(--tertiary-clr);
  font-size: var(--fs-300);
  font-weight: var(--fw-700);
  text-transform: capitalize;
  line-height: 16.37px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-rank {
  font-size: var(--fs-200);
  font-weight: var(--fw-600);
  line-height: 16.37px;
  color: var(--text-clr);
}


/* End of Top Nav Bar */

.user-profile-wrapper {
  position: relative;
  z-index: 100;
  padding: 0.25rem 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: all 180ms ease;
  outline: 1px solid transparent;

  span>svg {
    transition: all 180ms ease;
  }

  &[open] {
    background-color: var(--secondary-clr-5);
    outline: 1px solid var(--secondary-clr-15);

    span>svg {
      rotate: 180deg;
    }
  }
}

.profile-popup {
  position: absolute;
  right: 0;
  top: 4.5rem;
  width: fit-content;
  font-size: var(--fs-300);
  line-height: 16.8px;
  border-radius: 0.25rem;
  box-shadow: 0px 25px 50px 0px hsla(0, 0%, 0%, 0.3);
  color: var(--tertiary-clr);
  background: var(--white-clr);
  border-radius: 0.5rem;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  border: none;



  .profile-header {
    padding: 0.5rem 0.9375rem;
    border-bottom: 1px solid #d5d5d5;
  }

  .profile-menu {
    li:hover {
      color: var(--secondary-clr);
      background-color: var(--secondary-clr-5);
    }

    a,
    button {
      cursor: pointer;
      border: none;
      background-color: transparent;
      width: 100%;
      padding: 0.75rem 0.9375rem;
      color: inherit;
      display: flex;
      gap: 0.625rem;
    }

    svg,
    .bx {
      width: 0.875rem;
      height: 0.875rem;
      aspect-ratio: 1;
    }

  }
}

/* End of Profile */


/* End of Primary Nav */

/* Breadcrumb nav */
.breadcrumb-nav {
  border-top: 1px solid #e9e9e9;
  padding-block: 1.125rem 1.75rem;
}

/* End of Breadcrumb Nav */

/* Footer */
.footer {
  padding-block: 4.375rem;
  background-color: var(--tertiary-clr);
  color: var(--white-clr);

  .company-logo img {
    width: 7.125rem;
    height: 3rem;
    object-fit: contain;
  }

  /* Fix bootstrap color */
  a {
    color: var(--white-clr) !important;
    text-decoration: none;
  }
}

.footer-link {
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.footer-title {
  font-size: var(--fs-600);
  color: inherit;
  display: grid;
  gap: 0.25rem;

  &::after {
    content: "";
    display: block;
    height: 4px;
    width: var(--underline-width, 4ch);
    background-color: var(--secondary-clr);
    transform-origin: center;
    transition: width 500ms ease;
  }

  &:hover::after {
    --underline-width: 100%;
    transition: width 500ms ease;
  }
}

.footer-description {
  max-width: 55ch;
  line-height: 26px;
}

.footer-top {
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  row-gap: 2rem;
  justify-content: center;

  @media (width > 600px) {
    grid-template-columns: 1.5fr 1fr;
    justify-items: center;

    .columns:nth-of-type(2n + 1) {
      justify-self: start;
    }
  }

  @media (width > 1024px) {
    grid-template-columns: auto repeat(3, 1fr);
    justify-items: center;
    justify-content: center;

    .columns:nth-of-type(2n + 1) {
      justify-self: inherit;
    }
  }
}

.footer-contact,
.footer-about,
.footer-popular-services,
.footer-quick-links {
  display: grid;
  gap: 1.25rem;
  justify-content: start;
}

.footer-about,
.footer-popular-services,
.footer-quick-links {
  align-content: start;
}

.footer-list-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  color: currentColor;
  transition: all 180ms ease;

  &:hover .footer-list-icon {
    scale: 1.3;
    transition: all 180ms ease;
  }
}

.footer-list-icon {
  width: 1.5rem;
  height: 1.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 1.125em;
  line-height: 1.3em;
  text-align: center;
  background-color: var(--secondary-clr);
}

.footer-socials {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 2.875rem;
  margin-bottom: 0.5rem;
}

.footer-socials-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--white-clr);
  width: 100px;
}

.footer-social-links {
  --_social-icon-clr: var(--white-clr);
  --_social-icon-bg-clr: var(--secondary-clr);

  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 2rem;
  height: 2rem;
  aspect-ratio: 1;

  transition: all 180ms ease-in-out;

  &:hover {
    scale: 1.2;
    transition: all 180ms ease-in-out;
  }
}

/* .footer-bottom, */
.footer-bottom-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-200);

  @media (width <=1024px) {
    flex-wrap: wrap;
    justify-content: start;

    .footer-link {
      width: calc(50% - 1rem);
      flex-shrink: revert;
    }
  }

  footer-link {
    flex-shrink: 0;
  }
}

.footer-copyright {
  @media (width >1024px) {
    text-align: center;
  }
}

.footer-bottom {
  display: grid;
  gap: 1rem;

}

/* End of Footer */