/* ===================================
   STAFF PAGE — ADDITIONAL STYLES
   =================================== */

/* Re-use nav-active from schools.css inline */
.nav-active {
  color: var(--teal) !important;
  position: relative;
}
.nav-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(1) !important;
}

/* ============================
   STAFF HERO
   ============================ */
.staff-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.staff-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.staff-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(.45);
}

.staff-hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 1.25rem;
  max-width: 700px;
}

.staff-hero-inner h1 {
  color: var(--white);
  margin: 1rem 0 1.25rem;
}

.staff-hero-inner p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 55ch;
}

/* ============================
   VALUES BAR
   ============================ */
.values-bar {
  background: var(--teal-dark);
  padding: .9rem 0;
}

.values-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: .75rem 2rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .875rem;
  white-space: nowrap;
}

.value-icon { font-size: 1.1rem; }

/* ============================
   TEAM GRID
   ============================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Lead card spans full width on first row */
.staff-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
}

.staff-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Staff image */
.staff-img-wrap {
  position: relative;
  overflow: hidden;
}

.staff-card:not(.staff-card--lead) .staff-img-wrap {
  height: 260px;
}

.staff-card--lead .staff-img-wrap {
  height: 100%;
  min-height: 340px;
}

.staff-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.staff-card:hover .staff-img { transform: scale(1.04); }

.staff-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--teal);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 9999px;
}

/* Staff info */
.staff-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

.staff-card--lead .staff-info {
  padding: 2.5rem;
  justify-content: center;
}

.staff-info h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin: 0;
}

.staff-card--lead .staff-info h3 { font-size: 1.6rem; }

.staff-role {
  font-size: .85rem;
  font-weight: 700;
  color: var(--soft-teal);
  text-transform: uppercase;
  letter-spacing: .06em;
  max-width: none;
}

.staff-bio {
  color: var(--mid-grey);
  font-size: .9rem;
  line-height: 1.7;
  max-width: none;
  margin-top: .25rem;
}

.staff-card--lead .staff-bio { font-size: 1rem; }

.staff-quals {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}

.staff-quals span {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 9999px;
}

/* Join card */
.staff-card--join {
  background: linear-gradient(135deg, var(--teal-light), #f0f8f7);
  border: 2px dashed var(--teal);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-card--join:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.staff-join-content {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.staff-join-icon { font-size: 2.5rem; line-height: 1; }

.staff-join-content h3 { color: var(--teal); font-size: 1.15rem; }
.staff-join-content p  { color: var(--mid-grey); font-size: .9rem; max-width: 26ch; margin: 0 auto; }

/* ============================
   VALUES SECTION
   ============================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.value-card-icon { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1; }
.value-card h3   { color: var(--white); font-size: 1.1rem; margin-bottom: .6rem; }
.value-card p    { color: rgba(255,255,255,.8); font-size: .9rem; max-width: none; }

/* ============================
   JOIN CTA
   ============================ */
.join-section { background: var(--off-white); }

.join-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.join-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.join-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.join-content h2 { margin-bottom: 1rem; }
.join-content > p { color: var(--mid-grey); margin-bottom: 1.75rem; }

.join-perks {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 2rem;
}

.join-perks li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  font-size: .95rem;
}

.join-perks svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .team-grid       { grid-template-columns: 1fr 1fr; }
  .staff-card--lead { grid-column: 1 / -1; }
  .values-grid     { grid-template-columns: 1fr 1fr; }
  .join-inner      { grid-template-columns: 1fr; gap: 2.5rem; }
  .join-img        { height: 300px; }
}

@media (max-width: 768px) {
  .staff-hero-inner { padding: 3.5rem 1.25rem; }
  .team-grid        { grid-template-columns: 1fr; }
  .staff-card--lead { grid-template-columns: 1fr; }
  .staff-card--lead .staff-img-wrap { height: 280px; min-height: unset; }
  .values-grid      { grid-template-columns: 1fr 1fr; }
  .values-bar-inner { justify-content: flex-start; gap: .75rem 1.5rem; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}
