/* Site header, navigation and responsive menu. */
.header {
  background: #fff;
  border-bottom: 1px solid #eef2f5;
}

.nav {
  display: flex;
  min-height: 108px;
  align-items: center;
  gap: 44px;
}

.brand { margin-right: auto; }
.brand__logo {
  display: block;
  width: 104px;
  height: 82px;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 43px;
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
}

.nav__menu a {
  position: relative;
  padding: 15px 0;
}

.nav__menu a:hover,
.nav__menu a.active { color: var(--navy); }

.nav__menu a.active::after {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  position: absolute;
  top: 100%;
  right: -18px;
  left: -18px;
  height: 16px;
  content: "";
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown__toggle {
  display: grid;
  width: 16px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.nav-dropdown__toggle span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.nav-dropdown__list {
  display: none;
  position: absolute;
  top: calc(100% + 15px);
  left: -18px;
  z-index: 5;
  min-width: 152px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-dropdown__list a {
  display: block;
  padding: 12px 14px;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-dropdown__list a:hover {
  background: #fff3f2;
  color: var(--accent);
}

.nav-dropdown:hover .nav-dropdown__list,
.nav-dropdown:focus-within .nav-dropdown__list,
.nav-dropdown.is-open .nav-dropdown__list {
  display: block;
}

.nav-dropdown.is-open .nav-dropdown__toggle span {
  transform: translateY(2px) rotate(225deg);
}

.nav__extras {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav__extras svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
}

.linkedin {
  font-weight: 800;
  color: var(--navy);
}

.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav__menu { gap: 20px; }
}

@media (max-width: 900px) {
  .nav { position: relative; min-height: 88px; }
  .brand__logo { width: 92px; height: 70px; }
  .menu-toggle {
    display: grid;
    gap: 7px;
    order: 3;
    width: 44px;
    padding: 12px;
    border: 0;
    background: transparent;
  }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--navy); }
  .nav__menu {
    display: none;
    position: absolute;
    top: 87px;
    right: 0;
    left: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 13px 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 13px 0; }
  .nav__menu a.active::after { display: none; }
  .nav-dropdown__trigger {
    justify-content: space-between;
  }
  .nav-dropdown::after {
    display: none;
  }
  .nav-dropdown__toggle {
    width: 42px;
    height: 46px;
  }
  .nav-dropdown__list {
    position: static;
    min-width: 0;
    padding: 0 0 7px 17px;
    border: 0;
    box-shadow: none;
  }
  .nav-dropdown__list a {
    padding: 10px 0;
    color: var(--muted);
  }
  .nav__extras { margin-left: 0; }
}

@media (max-width: 620px) {
  .nav__extras a:first-child { display: none; }
}
