/* ===== Header ===== */
.wd-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--wd-bg-white);
  transition: var(--wd-transition);
  box-shadow: 0 1px 10px rgba(140, 152, 164, 0.1);
}

.wd-header.scrolled {
  box-shadow: var(--wd-shadow-md);
}

.wd-header-inner {
  max-width: var(--wd-container-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--wd-header-height);
}

/* Logo */
.wd-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wd-primary);
}

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

.wd-logo-img {
  max-height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

.wd-logo-site-name {
  color: inherit;
}

.wd-logo-icon {
  width: 28px;
  height: 28px;
}

/* Footer logo slightly smaller */
.wd-footer-brand .wd-logo-img {
  max-height: 40px;
}

/* Mobile menu logo */
.wd-mobile-menu-header .wd-logo-img {
  max-height: 40px;
}

/* Navigation */
.wd-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wd-nav-link {
  color: var(--wd-body-color);
  font-size: var(--wd-font-size-sm);
  font-weight: 400;
  text-decoration: none;
  transition: var(--wd-transition-fast);
  padding: 0.25rem 0;
}

.wd-nav-link:hover {
  color: var(--wd-primary);
  text-decoration: none;
}

/* Language dropdown */
.wd-language-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wd-language-dropdown select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--wd-body-color);
  font-size: var(--wd-font-size-sm);
  font-family: var(--wd-font-primary);
  cursor: pointer;
  padding-right: 1.25rem;
  outline: none;
}

.wd-language-dropdown::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--wd-body-color);
  pointer-events: none;
}

/* CTA Button in nav */
.wd-nav-cta {
  background-color: var(--wd-primary);
  color: var(--wd-text-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--wd-btn-radius);
  font-size: var(--wd-font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--wd-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.wd-nav-cta:hover {
  background-color: var(--wd-primary-hover);
  color: var(--wd-text-white) !important;
  text-decoration: none;
}

/* Mobile toggle */
.wd-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.wd-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--wd-heading-color);
  transition: var(--wd-transition);
  border-radius: 2px;
}

.wd-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.wd-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.wd-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.wd-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--wd-bg-white);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
  box-shadow: var(--wd-shadow-lg);
}

.wd-mobile-menu.active {
  transform: translateX(0);
}

.wd-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wd-border-color);
}

.wd-mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--wd-body-color);
  padding: 0.25rem;
  line-height: 1;
}

.wd-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wd-mobile-nav-link {
  display: block;
  padding: 0.875rem 0;
  color: var(--wd-heading-color);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid var(--wd-border-color);
}

.wd-mobile-nav-link:hover {
  color: var(--wd-primary);
  text-decoration: none;
}

.wd-mobile-nav-cta {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.75rem;
  background-color: var(--wd-primary);
  color: var(--wd-text-white);
  border-radius: var(--wd-btn-radius);
  font-weight: 600;
  text-decoration: none;
}

.wd-mobile-nav-cta:hover {
  background-color: var(--wd-primary-hover);
  color: var(--wd-text-white);
  text-decoration: none;
}

/* Mobile overlay */
.wd-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wd-mobile-overlay.active {
  display: block;
  opacity: 1;
}
