
/* Nergyflux team profile popup
   Uses the global typography and colour variables from css/style.css.
   Layout and responsive behaviour are retained.
*/

.nfa-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--nf-font-body);
  color: var(--nf-body);
}

.nfa-profile-modal.is-open {
  display: flex;
}

.nfa-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 25, 40, .68);
  backdrop-filter: blur(4px);
}

.nfa-profile-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--nf-line);
  box-shadow: 0 24px 80px rgba(0, 20, 35, .25);
  border-radius: 8px;
  outline: none;
}

.nfa-profile-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 12px 12px -48px 0;
  border: 0;
  border-radius: 50%;
  background: var(--nf-pale);
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.nfa-profile-close:hover {
  background: var(--nf-line);
  color: var(--nf-blue);
}

.nfa-profile-content {
  padding: 34px 38px 38px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
}

.nfa-profile-kicker {
  margin: 0 0 18px;
  color: var(--nf-blue);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-label);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nfa-profile-header {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 0 34px 26px 0;
  border-bottom: 1px solid var(--nf-line);
}

.nfa-profile-photo {
  width: 148px;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center top;
  background: var(--nf-pale);
}

.nfa-profile-photo.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-xs);
  text-align: center;
  padding: 12px;
}

.nfa-profile-name {
  margin: 0;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.nfa-profile-role {
  margin: 9px 0 4px;
  color: var(--nf-blue);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  font-weight: 700;
  line-height: 1.5;
}

.nfa-profile-location {
  margin: 0;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
}

.nfa-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--nf-line);
}

.nfa-profile-stat {
  padding: 13px 14px;
  background: var(--nf-pale);
}

.nfa-profile-stat strong {
  display: block;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.nfa-profile-stat span {
  display: block;
  margin-top: 5px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-xs);
  line-height: 1.45;
}

.nfa-profile-section {
  padding-top: 23px;
}

.nfa-profile-section h3 {
  margin: 0 0 10px;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-3);
  font-weight: 700;
  line-height: 1.35;
}

.nfa-profile-section p {
  margin: 0 0 10px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  line-height: 1.75;
}

.nfa-profile-section ul {
  margin: 0;
  padding-left: 19px;
  color: var(--nf-body);
}

.nfa-profile-section li {
  margin: 0 0 8px;
  padding-left: 3px;
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  line-height: 1.65;
}

.nfa-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nfa-profile-tag {
  padding: 6px 10px;
  border: 1px solid var(--nf-line);
  border-radius: 3px;
  color: var(--nf-body);
  background: var(--nf-pale);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-xs);
}

body.nfa-profile-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .nfa-profile-modal {
    padding: 12px;
  }

  .nfa-profile-dialog {
    max-height: 92vh;
  }

  .nfa-profile-content {
    padding: 26px 20px 28px;
  }

  .nfa-profile-header {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 16px;
    padding-right: 28px;
  }

  .nfa-profile-photo {
    width: 94px;
  }

  .nfa-profile-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nfa-profile-stat {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nfa-profile-stat span {
    margin-top: 0;
  }
}
