
/* Full-width background section */
.meet-the-team-wrapper {
  background-color: var(--meet-team-section-bg, var(--background-color));
  width: 100%;
  max-width: none;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  border-radius: 0;
  box-sizing: border-box;
}

/* Centered content inside full-width section */
.meet-the-team {
  width: min(100%, var(--site-max-width, 1200px));
  margin: 0 auto;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}

.meet-the-team h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.08;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	color: var(--dark-background-color);
}

.meet-the-team, .center-text-title{
	color: var(--dark-background-color);
}

.team-heading {
  max-width: 760px;
  margin: 0 auto;
}

.team-subtitle {
  margin: 0 0 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-intro {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.team-content {
  line-height: 1.65;
}

.team-cta {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.team-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--button-color, var(--dark-background-color));
  color: var(--background-color, #fff);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

.team-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
	justify-content: center;
	gap: clamp(1.25rem, 3vw, 2rem);
	width: 100%;
}

.team-member {
	background: color-mix(in srgb, var(--background-color) 94%, white 6%);
	border: 1px solid color-mix(in srgb, var(--dark-background-color) 9%, transparent);
	border-radius: 12px;
	box-shadow: 0 16px 42px rgba(61, 42, 20, 0.12);
	margin: 0;
	padding: clamp(1.4rem, 3vw, 2rem);
	box-sizing: border-box;
	width: 100%;
	max-width: 360px;
	text-align: left;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.team-member:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 54px rgba(61, 42, 20, 0.16);
}

.team-photo {
	display: block;
	width: clamp(96px, 40%, 132px);
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 0 1.25rem;
	box-shadow: 0 10px 28px rgba(61, 42, 20, 0.18);
}

.team-member h3 {
	font-size: clamp(1.55rem, 2.6vw, 2rem);
	line-height: 1.12;
	color: var(--dark-background-color);
	margin: 0 0 0.35rem;
}

.team-member h4 {
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.25;
	color: color-mix(in srgb, var(--dark-background-color) 76%, var(--text-color, #555));
	margin: 0 0 1rem;
	font-weight: 700;
}

.team-member p {
	font-size: clamp(0.98rem, 1.2vw, 1.05rem);
	line-height: 1.65;
	color: var(--text-color, #666);
	margin: 0;
	overflow-wrap: break-word;
	hyphens: auto;
}

.no-team-message {
  margin: 2rem auto 0;
  max-width: 520px;
  color: var(--text-color, #666);
}

@media (max-width: 768px) {
  .meet-the-team-wrapper {
    padding: clamp(3rem, 10vw, 4rem) clamp(1.25rem, 6vw, 1.75rem) !important;
  }

  .meet-the-team {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
  }

  .meet-the-team h2 {
    font-size: clamp(1.6rem, 7vw, 2.25rem) !important;
    margin-bottom: 1.75rem;
  }

  .team-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .team-member {
    max-width: 100%;
    padding: clamp(1.25rem, 6vw, 1.75rem);
    text-align: left;
  }

  .team-photo {
    width: clamp(92px, 32vw, 120px);
    margin-bottom: 1.1rem;
  }

  .team-member h3 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .team-member h4 {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }

  .team-member p {
    font-size: clamp(0.98rem, 4vw, 1.05rem);
    line-height: 1.62;
  }
}

@media (max-width: 420px) {
  .meet-the-team-wrapper {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}
