/* ===========================
   TEAM / ATTORNEYS PAGE ONLY
=========================== */

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #0A1F44, #122a5c);
  color: #ffffff;
  padding: 90px 0 70px;
  text-align: center;
}

.page-hero h1 {
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: #e5e7eb;
  max-width: 720px;
  margin: 0 auto;
}

/* Filters */
.team-filters {
  background: #f5f7fb;
  padding: 24px 0;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #0A1F44;
  color: #ffffff;
  border-color: #0A1F44;
}

/* Team Grid */
.team-directory {
  padding: 80px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.attorney-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.attorney-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Fix image zoom + crop */
.attorney-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 14px;
}

.attorney-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.attorney-card:hover .attorney-image img {
  transform: scale(1.05);
}

.role {
  font-size: .9rem;
  color: #64748b;
  margin-bottom: 8px;
}

.bio {
  font-size: .95rem;
  color: #334155;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-actions {
  margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .team-directory {
    padding: 60px 0;
  }
}
.attorney-image img {
  filter: grayscale(15%);
}

.attorney-card:hover .attorney-image img {
  filter: grayscale(0%);
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 8px;
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}
