/* Header styles */

.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: var(--light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__container {
  z-index: 103;
  display: flex;
  width: 1110px;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px;

  color: var(--primary-foreground);
}

.header__desktop__logo {
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__mobile__logo {
  color: var(--primary-foreground);
  display: none;
  align-items: center;
  justify-content: center;
}

.header__desktop__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 40px;
  height: 100%;
  color: var(--dark);
  gap: 32px;
  font-size: 14px;
}

.header__desktop__nav__dropdown__link {
  color: var(--dark);
  font-weight: 300;
  font-size: 16px;
}

.header__dropdown__bg {
  z-index: 102;
  min-height: 248px;
  background-color: var(--light);
  padding-top: 32px;
  padding-bottom: 32px;
  transition: height 0.6s ease-in-out, opacity 0.6s ease-in-out;
  display: none;
  position: absolute;
  top: 80px;
  bottom: auto;
  left: 0;
  right: 0;
  height: 0;
}

.header__dropdown__bg.active {
  height: 248px;
  opacity: 1;
}

.header__dropdown__bg__container {
  max-width: 1110px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.header__dropdown__link__block {
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}

.header__dropdown__link {
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.header__dropdown__link:hover {
  color: var(--primary);
}

.header__desktop__nav__dropdown {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 104;
  flex-direction: column;
  gap: 16px;
  padding: 40px 0;
  background-color: var(--light);
}

.header__desktop__dropdown__nav__line {
  width: 100%;
  height: 2px;
  z-index: 105;
  background-color: var(--primary);
  border-radius: 1px;
  position: absolute;
  top: 52.5px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.6s;
}

.header__desktop__dropdown__nav__line.active {
  transform: scaleX(1);
}

.header__desktop__right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.header__desktop__right__search {
  margin-top: 5px;
}
.header__desktop__right__search:hover {
  color: var(--secondary);
}

.header__right__language {
  position: relative;
}

.header__right__language__btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary-foreground);
  font-weight: 500;
  font-size: 16px;
  padding: 5px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  gap: 4px;
}
.header__right__language__btn:hover {
  background-color: var(--primary-background);
}

.header__right__language__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  justify-content: center;
  align-items: center;
  background-color: var(--light);
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 5px;
  display: none;
  z-index: 1000;
  padding: 5px;
}

.header__right__language__dropdown:hover {
  background-color: var(--primary-background);
}

.header__right__language:hover .header__right__language__dropdown {
  display: flex;
}

.header__cta {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  gap: 6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease-in-out;
}

.header__cta:hover {
  color: var(--secondary);
}

.header__menu__toggle {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  background-color: transparent;
  cursor: pointer;
  border: none;
  padding: 4px;
}

.header__menu__toggle__line {
  height: 2px;
  background-color: var(--primary-foreground);
  border-radius: 1px;
  transition: transform 0.6s, opacity 0.6s, width 0.6s;
}

.header__menu__toggle__line1 {
  width: 11px;
  transform-origin: 100%;
}

.header__menu__toggle__line2 {
  width: 20px;
}

.header__menu__toggle__line3 {
  width: 15px;
  transform-origin: 100% 100%;
}

.header__menu__toggle.active .header__menu__toggle__line1,
.header__menu__toggle.active .header__menu__toggle__line3 {
  width: 20px;
}

.header__menu__toggle.active .header__menu__toggle__line1 {
  transform: rotate(-45deg);
}

.header__menu__toggle.active .header__menu__toggle__line2 {
  opacity: 0;
}

.header__menu__toggle.active .header__menu__toggle__line3 {
  transform: rotate(45deg);
}

.header__mobile {
  opacity: 0;
  display: none;
  position: fixed; /* Use fixed positioning */
  z-index: 99;
  top: 80px;
  left: 0;
  width: 100vw;
  height: calc(
    100vh - 80px
  ); /* Ensure it takes the full viewport height minus the top offset */
  background-color: var(--light);
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
}

.header__mobile.active {
  opacity: 1;
  display: block; /* Ensure it is displayed when active */
  visibility: visible;
  pointer-events: auto;
}

.header__mobile__nav {
  padding: 0px 45px;
}

.header__mobile__nav__dropdown {
  border-bottom: 1px solid var(--border);
}

.header__mobile__nav__dropdown__toggle {
  color: var(--dark);
  padding: 32px 0;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__mobile__nav__dropdown__toggle span {
  font-size: 18px;
  font-weight: 700;
}

.header__mobile__nav__dropdown__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out;
}

.header__mobile__nav__dropdown__link {
  text-decoration: none;
  color: var(--primary-foreground);
}

.header__mobile__nav__dropdown__link:hover {
  text-decoration: none;
  color: var(--primary);
}

.header__mobile__nav__dropdown__links.active {
  display: flex; /* Show when active */
  margin-bottom: 32px;
}

.header__mobile__nav__dropdown__toggle > svg {
  transition: transform 0.6s ease;
}

.header__mobile__nav__dropdown__toggle.active > svg {
  transform: rotate(180deg);
}

.header__mobile__footer {
  padding: 45px 45px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-direction: column;
  gap: 30px;
  border-bottom: 1px solid var(--border);
}

.header__footer__heading {
  color: #141719;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
  text-decoration: none;
}

.header__mobile__footer__link__container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__mobile__footer__links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.header__mobile__footer__link {
  text-decoration: none;
  color: var(--primary-foreground);
}

.header__mobile__footer__link:hover {
  text-decoration: underline;
}

.header__mobile__footer__social__link {
  width: 40px;
  height: 40px;
  background-color: #f9fafa;
  color: var(--primary-foreground);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
  display: flex;
}

.header__mobile__footer__social__link:hover {
  color: var(--primary);
  background-color: #e9e9e9;
}

.header__mobile__footer__social__links {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.header__mobile__footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 45px;
  height: 80px;
  gap: 8px;
  color: var(--primary-foreground);
  font-size: 12px;
  width: 100vw;
  font-weight: 400;
  border-top: 1px solid var(--border);
}

.header__mobile__footer__bottom__right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header__mobile__footer__bottom__right span {
  font-size: 12px;
}

.header__mobile__footer__bottom__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__mobile__footer__bottom__left a {
  color: var(--primary-foreground);
  text-decoration: none;
  font-size: 12px;
}

@media screen and (max-width: 1050px) {
  .header__mobile {
    display: block;
  }
  .header__menu__toggle {
    display: flex;
  }
  .header__desktop__nav {
    display: none;
  }
  .header__right__language {
    display: none;
  }
  .header__container {
    justify-content: space-between;
    margin: 0 15px;
  }
}

@media screen and (max-width: 768px) {
  .header__desktop__logo {
    display: none;
  }
  .header__mobile__logo {
    display: flex;
  }

  .header__cta {
    font-size: 12px;
  }
  .header__mobile__footer__bottom {
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 25px;
    height: 120px;
  }
}
