/* header.css */

@import url('settings.css');

.navbar {
  display: grid;
  position: relative;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  border-bottom: 1px solid #ddd;
}

.navbar .left {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  margin-right: 37px;
}

.navbar .left .logo {
  align-items: flex-start;
  margin-left: min(20px, 5%);
  margin-right: min(40px, 10%);
}

.navbar .left .logo img {
  width: 100px;
  min-width: 80px;
  height: auto;
}

@media (max-width: 1024px) {
  .navbar .left .logo img {
    width: 160px;
    height: auto;
  }
}

.navbar-links {
  display: flex;
  align-items: center;
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 37px;
}

.navbar-links.right {
  margin-right: 74px;
}

.navbar-links li,
.navbar-links a {
  color: var(--deep-purple);
  font-family: var(--font);
  font-size: clamp(0.8rem, 0.9vw, 1.05rem);
  font-weight: bold;
  letter-spacing: 0.6px;
  line-height: 110%;
  transition: all;
  transition-duration: 300ms;
  text-wrap: nowrap;
}

.navbar-links a {
  text-decoration: none;
}

.navbar-links li:hover,
.navbar-links a:hover {
  color: var(--neon-purple);
}

.navbar-links a.site,
.navbar-links li.phone {
  font-weight: bold;
  font-size: clamp(1rem, 1vw, 1vw);
  text-wrap: nowrap;
  color: var(--neon-purple);
  margin-right: 84px;
}

.navbar-links a.site {
  font-size: clamp(1.5rem, 1vw, 1vw);
}

.navbar-links .link > a {
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.navbar-links .link>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--neon-purple, #a259ff);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.navbar-links .link:hover>a::after {
  transform: scaleX(1);
}


@media (max-width: 1024px) {
  .navbar-links a.site {
    display: none;
  }
}

.navbar-links--separated {  
} 

.navbar-links--separated>li {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-links--button {
  padding-left: 84px;
}

.navbar-links--icons {
  gap: 24px;
}

.navbar-links--icons li.language {
  font-size: 0.85rem;
}

@media (max-width: 1520px) {
  .navbar-links--icons li.language {
    display: none;
  }
  .navbar-links li.phone {
    margin-right: 64px;
  }
}

@media (max-width: 1520px) {
  .navbar-links .link {
    display: none;
  }
}

@media (max-width: 1200px) {
  .navbar-links li.phone {
    display: none;
  }
}

.burger {
  display: none;
  width: 24px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 30;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  background-color: var(--neon-purple);
  border-radius: 2px;
  transition: 0.4s ease;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Transform on open */
.menu-toggle:checked + .burger span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle:checked + .burger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .burger span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

header  .backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43, 30, 74, 0.7);
  backdrop-filter: blur(8px);
  z-index: 20;
  transition: opacity 0.3s ease;
}

.menu-toggle:checked ~ #head-backdrop {
  display: block;
  opacity: 1;
}

/* Show burger on mobile */
@media (max-width: 1520px) {
  .burger {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .burger {
    width: 48px;
    height: 40px;
  }
  .burger span {
    height: 6px;
  }
}

.dropdown {
  position: relative;
  display: none;
}

.dropdown-toggle {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -7.5px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 8px 0;
  margin-top: 8px;
  display: none;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

.dropdown.open .dropdown-menu {
  display: block;
}

svg.arrow-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.dropdown-menu li {
  padding: 6px 12px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown.open .arrow-icon {
  transform: rotate(180deg);
}

@media (max-width: 1520px) {
  .dropdown {
    display: inline-block;
  }
}

@media (max-width: 1024px) {
  svg.arrow-icon {
    height: 3.5rem;
    width: 3.5rem;
  }

  .dropdown-menu li {
    font-size: 1.875rem;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  height: 80dvh;
  width: 100vw;
}

.mobile-menu ul {
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.header-close-btn {
  position: absolute;
  top: 40px;
  right: 50px;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 31;
}

@media (max-width: 1024px) {
  .header-close-btn {
    font-size: 5rem;
  }

  .mobile-menu ul {
    font-size: 3.5rem;
    gap: 5rem;
  }
}

@media (max-width: 768px) {
  .header-close-btn {
    font-size: 3rem;
  }

  .mobile-menu ul {
    font-size: 1.25rem;
    gap: 1.25rem;
  }
}

.current-language {
  display: none;
}

@media (max-width: 1024px) {
  .current-language {
    display: flex;
    margin-right: 20px;
  }
}
