/* Developed by Codevance (https://codevance.dev) */
/* ============================================================
   DIMENSION REALTY SOLUTION - Team Page Styles
   ============================================================ */

/* --- Team Hero --- */
.team-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f1f3d 0%, #1B3A6B 60%, #2a5298 100%);
  overflow: hidden;
}
.team-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1600&q=80') center/cover no-repeat;
  opacity: 0.14;
}
.team-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,31,61,0.94) 0%, rgba(27,58,107,0.88) 100%);
}
.team-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding: 80px 0 60px;
}
.team-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  margin: 16px 0 14px;
  line-height: 1.2;
}
.team-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}
.team-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.team-stat { text-align: center; }
.team-stat span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.team-stat label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.team-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* --- Breadcrumb --- */
.breadcrumb-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-gray);
}
.breadcrumb-bar a { color: var(--primary); font-weight: 600; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar i.fa-chevron-right { font-size: 0.65rem; color: var(--text-light); }
.breadcrumb-bar span { color: var(--text-gray); }

/* --- Team Intro --- */
.team-intro { padding-bottom: 20px !important; }

/* --- Team Grid (unified — all members equal size) --- */
.team-grid-section { }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Team card ── */
.team-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(15,30,70,0.08), 0 1px 4px rgba(15,30,70,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(.2,.8,.4,1), box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15,30,70,0.14), 0 4px 12px rgba(15,30,70,0.08);
}
/* Subtle top accent for featured cards */
.team-card.is-featured {
  box-shadow: 0 2px 16px rgba(15,30,70,0.08), 0 1px 4px rgba(15,30,70,0.06), 0 0 0 2px var(--accent);
}
.team-card.is-featured:hover {
  box-shadow: 0 20px 48px rgba(15,30,70,0.14), 0 4px 12px rgba(15,30,70,0.08), 0 0 0 2px var(--accent);
}
/* Fade-in on load more */
.card-entering { opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.35s ease; }

/* ── Photo area ── */
.team-card-photo {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  /* Soft neutral — makes white-background headshots look intentional */
  background: #eef1f7;
  flex-shrink: 0;
}
/* Subtle bottom fade for depth — matches card background colour */
.team-card-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: linear-gradient(to top, rgba(238,241,247,0.85) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.team-card-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  display: block;
  transition: transform 0.5s cubic-bezier(.2,.8,.4,1);
}
.team-card:hover .team-card-photo img {
  transform: scale(1.04);
}
/* Initials fallback — sits behind the img, covers full photo area */
.team-card-photo .member-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
  user-select: none;
  z-index: 0;
}

/* Featured badge — top-left of photo */
.member-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 11px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.member-featured-badge i { font-size: 0.6rem; }

/* Social icons — top-right, always visible */
.member-social {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 5;
}
.member-social a {
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 1px solid rgba(27,58,107,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.7rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  z-index: 4;
}
.member-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: scale(1.12);
}

/* Role badge pill */
.member-role-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Card body ── */
.team-card-body {
  padding: 14px 16px 12px;
  flex: 1;
  border-top: 3px solid var(--accent);
}
.team-card-identity { margin-bottom: 8px; }
.team-card-identity .member-role-tag { margin-bottom: 5px; }
.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
}
.member-bio {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.65;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-spec-row { display: flex; flex-wrap: wrap; gap: 5px; }
.card-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(27,58,107,0.07);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
}
.card-spec-tag i { color: var(--accent); font-size: 0.62rem; }

/* ── Card footer ── */
.team-card-footer {
  padding: 10px 16px 13px;
  display: flex;
  gap: 7px;
}
.card-btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  font-size: 0.77rem;
  padding: 8px 10px;
  gap: 5px;
  border-radius: 8px;
}

/* --- View More button --- */
.team-viewmore-wrap {
  text-align: center;
  margin-top: 40px;
}
.team-viewmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  letter-spacing: 0.2px;
}
.team-viewmore-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Why Our Team --- */
.why-team { background: var(--bg-light); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.why-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.why-card p { font-size: 0.85rem; color: var(--text-gray); line-height: 1.65; }

/* --- Join CTA --- */
.join-team-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 72px 0;
}
.join-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.join-cta-text h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.join-cta-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 560px;
}
.join-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-card-photo { height: 200px; }
  .why-grid { grid-template-columns: 1fr; }
  .join-cta-inner { flex-direction: column; text-align: center; }
  .join-cta-actions { justify-content: center; }
  .team-hero-stats { gap: 16px; }
  .team-stat-divider { height: 30px; }
}
@media (max-width: 500px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-card-photo { height: 170px; }
  .team-card-name { font-size: 0.95rem; }
  /* 2-up cards are too narrow here for side-by-side buttons — "Get in Touch"
     would wrap to 2 lines while "View Profile" stays on 1, misaligning the row. */
  .team-card-footer { flex-direction: column; }
  .card-btn { font-size: 0.74rem; padding: 8px 6px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card-photo { height: 220px; }
  .team-stat-divider { display: none; }
  .team-hero-stats { gap: 20px; }
}
