/* ──────────────────────────────────────────────────────────────
   Bayou City Breastfeeding — Our Team page styles
   ──────────────────────────────────────────────────────────────
   Extracted from inline <style> in Our Team.html so the same
   rules can be reused by other team-listing surfaces (filtered
   directory, ops/admin grid, single-team-member preview, etc).

   Dependencies: colors_and_type.css (design tokens).
   Sibling page-specific CSS files: legal-page.css,
   location-page.css, family-stories.css, recommendations.css.
   ────────────────────────────────────────────────────────────── */

/* ─── Hub shell ─── */
.team-hub {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 40px);
}

.team-hub__hero {
  text-align: left;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 780px;
}
.team-hub__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--pink-500);
  margin: 0 0 16px;
  text-wrap: balance;
}
.team-hub__subhead {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--navy-700);
  margin: 0 0 18px;
  line-height: 1.4;
}
.team-hub__framing {
  font-size: clamp(1rem, 1.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--navy-500);
  margin: 0;
}

/* ─── Filter chips ─── */
.team-hub__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(28px, 4vw, 40px) 0 clamp(20px, 3vw, 28px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(62, 80, 104, 0.08);
}
.team-hub__filter-label {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-400);
  width: 100%;
  margin-bottom: 6px;
}
.team-hub__chip {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-500);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(62, 80, 104, 0.15);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.team-hub__chip:hover { border-color: var(--pink-500); color: var(--pink-500); }
.team-hub__chip[aria-pressed="true"] {
  background: var(--pink-500);
  border-color: var(--pink-500);
  color: #fff;
}

/* ─── Section heads inside hub ─── */
.team-hub__section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--pink-500);
  margin: clamp(40px, 6vw, 64px) 0 6px;
}
.team-hub__section-meta {
  font-size: 0.95rem;
  color: var(--navy-400);
  margin: 0 0 clamp(22px, 3vw, 30px);
}

/* ─── Card grids ─── */
.team-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 2.4vw, 26px);
}
.team-hub__ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 2.4vw, 26px);
  max-width: 280px;
}
.team-hub__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--navy-300);
  font-style: italic;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  display: none;
}

/* ─── Team-member card ─── */
.team-card {
  background: var(--card-lift-bg);
  backdrop-filter: var(--card-lift-blur);
  border-radius: var(--radius-xl);
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card-lift);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}
.team-card[data-has-bio="true"] { cursor: pointer; }
.team-card[data-has-bio="true"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-card[hidden] { display: none; }

/* Top color rule indicates role */
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: var(--sky-500);
  border-radius: 0 0 4px 4px;
  opacity: 0.6;
}
.team-card[data-role-badge="founder"]::before   { background: var(--pink-500); width: 96px; opacity: 1; }
.team-card[data-role-badge="team-lead"]::before { background: var(--pink-500); opacity: 0.8; }
.team-card[data-role-badge="manager"]::before   { background: var(--navy-500); opacity: 0.7; }

/* Photo (with initials fallback if image fails) */
.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 6px auto 18px;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink-100), var(--sky-soft));
  box-shadow: var(--shadow-photo);
}
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}
.team-card__photo img.broken { display: none; }
/* Abigail's headshot is portrait; pull the circular crop up so the top of her head isn't clipped */
.team-card__photo img[src*="abigail-kelley"] { object-position: 50% 5%; }
.team-card__photo[data-initials]::after {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-accent);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--pink-500);
  background: linear-gradient(135deg, var(--pink-100), var(--sky-soft));
  z-index: 1;
  letter-spacing: 0.02em;
}

/* Identity */
.team-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-700);
  margin: 0 0 4px;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.team-card__credentials {
  font-family: var(--font-accent);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pink-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.team-card__title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-500);
  margin: 0 0 14px;
  line-height: 1.35;
}

/* Locations row */
.team-card__locations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 12px;
}
.team-card__location {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: var(--sky-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Role / award badges */
.team-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 12px;
}
.team-card__badge {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.team-card__badge--founder  { background: var(--pink-500); color: #fff; }
.team-card__badge--lead     { background: var(--pink-100); color: var(--pink-700); }
.team-card__badge--educator { background: var(--sky-500);  color: var(--navy-700); }
.team-card__badge--award    { background: linear-gradient(135deg, #f5d6a3, #e8a85c); color: var(--navy-700); font-weight: 700; }
.team-card__badge--manager  { background: var(--navy-500); color: #fff; }

/* Specialties (footer of card) */
.team-card__specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(62, 80, 104, 0.08);
  width: 100%;
}
.team-card__specialties-label {
  flex: 0 0 100%;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-300);
  margin: 0 0 4px;
}
.team-card__specialty {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--navy-500);
  background: rgba(142, 204, 230, 0.16);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ─── Closing CTA → LIGHT frosted card + Case-A fade (enabled below). Was a navy band. ─── */
.footer-ombre-blend { display: block; }
.team-hub__cta {
  margin-top: clamp(56px, 8vw, 88px);
  padding: clamp(40px,5.5vw,60px) clamp(28px,4vw,48px);
  background: var(--card-lift-bg); backdrop-filter: var(--card-lift-blur); -webkit-backdrop-filter: var(--card-lift-blur);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--navy-500);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 50px -28px rgba(41,52,72,0.35);
  text-align: center;
}
.team-hub__cta .eyebrow { color: var(--pink-600); }
.team-hub__cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy-700);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.team-hub__cta-body {
  font-size: 1.05rem;
  color: var(--navy-500);
  margin: 0 auto 28px;
  line-height: 1.55;
  max-width: 580px;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .team-hub__grid { grid-template-columns: 1fr; gap: 20px; }
  /* Practice Operations grid was left capped at 280px while every other card
     went full-width on mobile, so Abigail's card read as a different size. */
  .team-hub__ops-grid { grid-template-columns: 1fr; max-width: none; gap: 20px; }
  .team-card { padding: 24px 20px 20px; }
  .team-card__photo { width: 120px; height: 120px; }
}
