/* ---------- Base ---------- */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #F1EFEC 0%, #ffffff 100%);
  color: #030303;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ---------- Team Header Box ---------- */
.team-header {
  width: 100%;
  background-color: #F1EFEC;
  text-align: center;
  padding: 100px 20px 60px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: filter 0.3s ease;
}

.team-header-content {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 20px;
  border-radius: 20px;
  margin-top: -60px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-header span {
  font-size: 1.1rem;
  color: #123458;
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.team-header h1 {
  font-size: 2.2rem;
  color: #030303;
  margin-bottom: 10px;
}

.team-header p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 768px) {
  .team-header {
    padding: 80px 15px 40px;
  }
  .team-header-content {
    padding: 30px 15px;
  }
  .team-header h1 {
    font-size: 1.7rem;
  }
  .team-header p {
    font-size: 0.95rem;
  }
}

/* ---------- Hamburger menu effect ---------- */
body.menu-open .team-header,
body.menu-open main,
body.menu-open footer {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

/* ---------- Attorney Section ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Grid of attorney cards */
.attorney-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ---------- Card ---------- */
.attorney-card {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.attorney-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.card-header img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.1);
}

.card-header h3 {
  font-size: 1.1rem;
  color: #123458;
  margin: 0;
}

.card-header .position {
  font-size: 0.9rem;
  color: rgba(3,3,3,0.7);
}

.about {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: rgba(3,3,3,0.8);
}

.info-list li {
  margin-bottom: 6px;
}

.profile-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background-color: #fff;
  color: #123458;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.profile-btn:hover {
  background-color: #D4C9BE;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 768px) {
  .card-header img {
    width: 80px;
    height: 80px;
  }

  .attorney-card {
    padding: 16px;
  }
}
