/* ── Site Header ────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  height: 68px;
}

.brand img {
  width: 162px;
  max-width: 30.6vw;
  display: block;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.desktop-nav a {
  color: var(--muted);
  font-weight: 600;
}

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

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.lang-switch img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.lang-switch:hover img {
  filter: grayscale(0);
  transform: scale(1.08);
}

.lang-switch.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Hamburger ──────────────────────────────────────── */

.menu-toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  background: var(--text);
  transform-origin: center;
  transition: top 0.3s ease-out,
              transform 0.3s ease-out,
              opacity 0.1s ease-out;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { top: calc(100% - 2px); }

.menu-toggle.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ── Mobile Nav ─────────────────────────────────────── */

.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 4vw;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  border-bottom-color: transparent;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-bottom-color 0.3s ease;
}

.mobile-nav.open {
  max-height: 320px;
  opacity: 1;
  padding: 0.4rem 4vw 1.2rem;
  border-bottom-color: var(--line);
}

.mobile-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

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

.mobile-nav .lang-switch {
  width: fit-content;
  margin-top: 0.35rem;
}

/* ── Footer Social Icons ────────────────────────────── */

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%)
          invert(39%) sepia(52%) saturate(476%)
          hue-rotate(173deg) brightness(89%) contrast(86%);
  transition: filter 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.15);
}

.social-icon:hover img {
  filter: none;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }
}
