/* Professionals Page Styles */

.professionals-hero {
  /* photo removed; opaque stops now that nothing sits behind them */
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  min-height: 450px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 20px;
}

.professionals-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(199, 165, 109, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.professionals-hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.professionals-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.032em;
  color: var(--white);
  margin: 0 0 22px;
  max-width: 20ch;
}

.professionals-hero .lead {
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: var(--measure);
}

.professionals-grid-section {
  background: var(--white);
  border-top: 1px solid var(--line-dark);
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.professional-card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* The hidden ATTRIBUTE is how the search filters the roster, but the UA rule
   behind it is only [hidden]{display:none} at the lowest specificity — the
   display:flex above silently beats it and the card stays on screen. */
.professional-card[hidden] { display: none; }

.professional-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(199, 165, 109, 0.3);
}

.professional-headshot {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.professional-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.professional-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.2;
}

.professional-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* --gold is 2.33:1 on white and fails AA; --gold-ink is the text variant */
  color: var(--gold-ink);
  margin: 0 0 12px;
}

.professional-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted-light);
  margin: 0 0 16px;
  flex-grow: 1;
}

.professional-email {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  background: rgba(199, 165, 109, 0.1);
  border: 1px solid rgba(199, 165, 109, 0.3);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.professional-email:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.professional-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .professionals-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }

  .professionals-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .professionals-hero {
    min-height: 350px;
    padding: 0 20px;
  }

  .professionals-hero-inner {
    padding: 40px 0;
  }

  .professionals-hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .professionals-hero .lead {
    font-size: 1rem;
  }

  .professionals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .professional-headshot {
    height: 280px;
  }

  .professional-info {
    padding: 24px 20px;
  }
}

/* Search empty state, below the grid on the white section ground. */
.people-search__empty {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.people-search__empty[hidden] { display: none; }
