/* ============================================================
   MEDHAS LAW — team.css
   Our Team page — builds on shared styles.css tokens
   ============================================================ */


/* ============================================================
   NAV ACTIVE STATE
   ============================================================ */
.nav-link--active { color: var(--gold) !important; font-weight: 600; }
.mobile-nav-link--active { color: var(--gold) !important; font-weight: 600; }


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.tm-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.60s ease, transform 0.60s ease;
  transition-delay: var(--d, 0s);
}
.tm-reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tm-reveal { opacity: 1; transform: none; transition: none; }
}


/* ============================================================
   HERO
   ============================================================ */
.team-hero {
  position: relative;
  background: var(--navy-dark);
  padding: calc(var(--header-height) + 72px) 0 80px;
  overflow: hidden;
}

.team-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.team-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.40) saturate(1.1);
}

.team-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 31, 58, 0.92) 0%,
    rgba(16, 43, 80, 0.84) 50%,
    rgba(16, 43, 80, 0.60) 100%
  );
}

.team-hero-inner { position: relative; z-index: 1; }

.team-hero-content { max-width: 640px; }

.team-hero-heading {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 12px 0 20px;
}

.team-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 540px;
}

.team-hero-flags {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.team-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.3px;
}

.team-flag-div {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.22);
  display: block;
}


/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.team-section { background: var(--white); }
.team-section--ivory { background: var(--ivory); }

.team-section-header { margin-bottom: 48px; }

.team-section-flag-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-flag-lg {
  width: 46px !important;
  height: 30px !important;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.team-section-flag-row .section-eyebrow { margin-bottom: 4px; }
.team-section-flag-row .section-heading { margin-bottom: 0; }


/* ============================================================
   TEAM GRIDS
   ============================================================ */
.team-grid { display: grid; gap: 28px; }
.team-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
.team-grid--3 { grid-template-columns: repeat(3, 1fr); }


/* ============================================================
   PROFILE CARD
   ============================================================ */
.team-card {
  background: var(--white);
  border: 1px solid rgba(16,43,80,0.09);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
  border-color: rgba(196,154,82,0.35);
}

.team-section--ivory .team-card { background: var(--white); }


/* --- Portrait area --- */
.team-card-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  background: var(--navy);
  overflow: hidden;
  flex-shrink: 0;
}

/* If a real <img> is placed inside, style it */
.team-card-portrait > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-portrait > img { transform: scale(1.04); }


/* --- SVG placeholder --- */
.team-portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 20px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, #0d2340 60%, #142d52 100%);
}

/* Subtle vignette on placeholder */
.team-portrait-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 30%, rgba(26,70,142,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.ph-silhouette {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 135px;
  opacity: 0.9;
}

.ph-label {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(196,154,82,0.60);
  text-align: center;
}

/* Hover: slight glow */
.team-card:hover .team-portrait-placeholder {
  background: linear-gradient(160deg, #0e2545 0%, #112843 60%, #1a3660 100%);
}


/* --- Country badge on portrait --- */
.team-card-country-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11,31,58,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 2;
}


/* --- Card body --- */
.team-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* Gold top accent bar */
.team-card-gold-bar {
  height: 2px;
  width: 36px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 16px;
  transition: width var(--transition);
}

.team-card:hover .team-card-gold-bar { width: 60px; }

/* Name */
.team-card-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.25;
}

/* Qualification (LLM, J.D. etc.) */
.team-card-qual {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Title line (position / court) */
.team-card-title-line {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--navy-light);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Detail / description */
.team-card-detail {
  font-size: 0.825rem;
  color: var(--text-mid);
  line-height: 1.70;
  margin-bottom: 0;
}


/* ============================================================
   DIVIDER
   ============================================================ */
.team-divider { padding: 0; }
.team-divider-line {
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(16,43,80,0.12) 20%, rgba(196,154,82,0.25) 50%, rgba(16,43,80,0.12) 80%, transparent);
}


/* ============================================================
   CLOSING CTA
   ============================================================ */
.team-cta {
  background: var(--navy-dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.team-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,70,142,0.30) 0%, transparent 70%);
  pointer-events: none;
}

.team-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.team-cta-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 16px;
  line-height: 1.2;
}

.team-cta-sub {
  font-size: 1.03rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.8;
  margin-bottom: 36px;
}


/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .team-grid--3 { grid-template-columns: repeat(3, 1fr); }
}


/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .team-hero { padding: calc(var(--header-height) + 48px) 0 60px; }
  .team-grid--2 { grid-template-columns: 1fr; max-width: 480px; }
  .team-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .team-cta { padding: 72px 0; }
}


/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .team-hero-heading { font-size: 2rem; }
  .team-hero-flags { flex-direction: column; align-items: flex-start; gap: 12px; }
  .team-flag-div { display: none; }
  .team-grid--2,
  .team-grid--3 { grid-template-columns: 1fr; }
  .team-grid--2 { max-width: 100%; }
  .team-card-body { padding: 20px 20px 24px; }
}
