/* Top navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--tc-line);
  box-shadow: 0 0 0 rgba(17,54,108,0);
  transition: box-shadow 0.35s ease;
}
.nav--scrolled {
  box-shadow: 0 4px 28px rgba(17,54,108,0.10);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--tc-navy);
  letter-spacing: -0.01em;
}
.nav__brand .mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.nav__brand .mark svg,
.nav__brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__brand .name { display: flex; flex-direction: column; line-height: 1; }
.nav__brand .name small {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--tc-slate);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-size: 14px;
  color: var(--tc-ink-2);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--tc-green);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.nav__links a:hover { color: var(--tc-navy); }
.nav__links a.is-active { color: var(--tc-navy); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--tc-line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}
.lang-switch a {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--tc-muted);
  text-transform: uppercase;
}
.lang-switch a.active {
  background: var(--tc-navy);
  color: #fff;
}

/* Hamburger button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--tc-navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 0 20px;
  border-top: 1px solid var(--tc-line);
}
.nav--open .nav__mobile { display: flex; }
.nav__mobile a {
  font-size: 17px;
  font-weight: 500;
  color: var(--tc-ink-2);
  padding: 13px 0;
  border-bottom: 1px solid var(--tc-line);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--tc-navy); }

body.nav-open { overflow: hidden; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta-btn { display: none; }
  .nav__hamburger { display: flex; }
}
