/* Shared marketing site header — primary links + More + hamburger */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(4, 18, 14, 0.88);
  border-bottom: 1px solid rgba(87, 236, 154, 0.34);
}

.site-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-nav .logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.site-nav .logo-mark {
  width: clamp(120px, 14vw, 200px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.site-nav-primary {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav-primary > li > a,
.site-nav-more-btn {
  color: #d8ffe8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 0.35rem 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.site-nav-primary > li > a:hover,
.site-nav-more-btn:hover {
  color: #5df08f;
}

.site-nav-more {
  position: relative;
}

.site-nav-more-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 220px;
  padding: 0.55rem;
  list-style: none;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(98, 232, 152, 0.35);
  background: rgba(6, 24, 17, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

html[dir="rtl"] .site-nav-more-panel {
  left: auto;
  right: 0;
}

.site-nav-more.open .site-nav-more-panel {
  display: block;
}

.site-nav-more-panel a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: #d8ffe8;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-nav-more-panel a:hover {
  background: rgba(29, 185, 95, 0.18);
  color: #5df08f;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.site-lang {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.site-lang .pill {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  color: #ecfff3;
  border: 1px solid rgba(122, 247, 177, 0.45);
  background: rgba(21, 83, 56, 0.35);
}

.site-lang .pill:hover,
.site-lang .pill.is-active {
  background: linear-gradient(135deg, #1db95f, #5df08f);
  color: #04130d;
  border-color: transparent;
}

.site-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(122, 247, 177, 0.45);
  background: rgba(21, 83, 56, 0.35);
  color: #ecfff3;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.site-nav-toggle span::before,
.site-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.site-nav-toggle span::before { top: -6px; }
.site-nav-toggle span::after { top: 6px; }

.site-nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 45;
}

body.site-nav-open .site-nav-drawer-backdrop {
  display: block;
}

@media (max-width: 980px) {
  .site-nav-toggle { display: inline-flex; }

  .site-nav-primary {
    display: none;
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    width: min(320px, 88vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 4.5rem 1rem 1.5rem;
    background: rgba(4, 18, 14, 0.98);
    border-inline-start: 1px solid rgba(87, 236, 154, 0.34);
    overflow-y: auto;
    z-index: 50;
  }

  body.site-nav-open .site-nav-primary {
    display: flex;
  }

  .site-nav-primary > li > a,
  .site-nav-more-btn {
    display: block;
    width: 100%;
    text-align: start;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .site-nav-more-panel {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    margin-top: 0.25rem;
    background: rgba(10, 40, 28, 0.9);
  }

  .site-nav-more.open .site-nav-more-panel {
    display: block;
  }

  .site-nav .logo-mark {
    width: clamp(110px, 36vw, 160px);
    height: 42px;
  }
}
