/* =====================================
   NAVBAR – SINGLE SOURCE OF TRUTH
===================================== */

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--lighter-color);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- NAVBAR LAYOUT ---------- */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- LOGO ---------- */
.logo img {
  height: 50px;
  width: auto;
}

/* ---------- DESKTOP NAV LINKS ---------- */
.nav-links ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

/* underline animation */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ---------- DROPDOWN (DESKTOP) ---------- */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--lighter-color);
  box-shadow: var(--shadow);
  border-radius: 6px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--dark-color);
}

.dropdown-content a:hover {
  background: var(--light-gray);
  color: var(--primary-color);
}

/* ---------- CTA & LANGUAGE ---------- */
.cta-nav {
  background: var(--primary-color);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 6px;
}

.cta-nav::after {
  display: none !important;
}

.lang-switch {
  border: 1px solid #ddd;
  padding: 8px 15px !important;
  border-radius: 6px;
}

/* ---------- HAMBURGER BUTTON ---------- */
.mobile-menu-btn {
  display: none;
  width: 26px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--dark-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* X STATE */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 768px) {

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--lighter-color);
    padding: 24px;
    overflow-y: auto;
    transition: left 0.35s ease;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 12px 0;
    display: block;
  }

  /* ---------- MOBILE DROPDOWNS ---------- */
  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 16px;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .cta-nav,
  .lang-switch {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }
}