/* Header Section Styles */
.main-header {
  padding: 22px 0;
  width: 100%;
  background-color: #ececec;
  position: relative;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Ensure nav-links can overlay content when opened */
.main-header { position: sticky; top: 0; }

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.nav-links .mobile-actions { display: none; }

.logo-container .logo {
  width: 207px;
  height: 85px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.nav-links a {
  color: #050505;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-primary-semibold);
  font-size: 18px;
  color: var(--text-color-light);
}

.language-selector .flag-icon {
  width: 30px;
  height: 22.5px;
}

.language-selector .dropdown-arrow {
  width: 14px;
  height: 14px;
}

.nav-actions .btn-primary.header-cta {
  height: 51px;
  padding: 0 34px;
  border-radius: 6px;
  font-family: 'SF Pro Display', var(--font-primary-bold);
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  color: rgba(0, 0, 0, 0.9);
  background: #ffb100;
  background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.6), rgba(255,255,255,0) 70%);
  box-shadow: 3.014px 6.027px 18.836px 0px rgba(20, 20, 20, 0.15), inset 1.507px 1.507px 3.014px 0px #fd7f78;
}

.mobile-menu-button {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
}

.mobile-menu-button span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color-light);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Hamburger to X animation */
.mobile-menu-button.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-button.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav-actions { display: none; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 16px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0,0,0,0.05);
    gap: 0;
  }

  .nav-links li { padding: 8px 0; }

  .nav-links .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 20px 4px;
  }

  .nav-links.active { display: flex; }

  .mobile-menu-button { display: flex; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .logo-container .logo {
    width: auto;
    height: 60px;
  }

  .nav-actions {
    gap: 15px;
  }

  .language-selector {
    font-size: 16px;
  }
}

/* Reduce logo size slightly on medium widths to prevent overflow */
@media (max-width: 1200px) {
  .logo-container .logo {
    height: 72px;
  }
}
