/* High-visibility primary navigation */
header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: #171717;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 17px;
  line-height: 1.2;
}

header nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  color: #fff;
  background: #222;
  border: 1px solid #3d3d3d;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: .35px;
  transition: color .2s, background .2s, border-color .2s;
}

header nav a:hover,
header nav a:focus-visible,
header nav a[aria-current="page"] {
  color: #fff;
  background: #8b0000;
  border-color: #e10600;
}

@media (max-width: 1100px) {
  header {
    gap: 14px;
    padding-left: 3%;
    padding-right: 3%;
  }

  header .brand-name {
    display: none;
  }

  header nav {
    font-size: 15px;
  }

  header nav a {
    padding-left: 9px;
    padding-right: 9px;
  }

  header > .button.small {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 760px) {
  header {
    height: auto !important;
    min-height: 0;
    flex-wrap: wrap;
    padding: 10px 4% 12px;
    gap: 8px 12px;
  }

  header .logo-window {
    width: 72px;
    height: 68px;
  }

  header .logo-window img {
    top: -46px;
  }

  header > .button.small {
    margin-left: auto;
    min-height: 44px;
  }

  header nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 6px !important;
    padding: 6px;
    font-size: 15px !important;
  }

  header nav a {
    display: flex !important;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 12px;
  }
}

.adam-card .team-photo img {
  object-position: center 8% !important;
}

.john-card .team-photo img {
  object-position: center 18% !important;
}

.team-instagram {
  width: fit-content;
  margin-top: 14px !important;
  color: #ff4a45;
  font-weight: 700;
}

.team-instagram:hover,
.team-instagram:focus-visible {
  color: #fff;
}
