/* =========================================================
   HOMEO CARE CLINIC — REUSABLE TEAM MEMBER LAYOUT
   Used by team-member.php for every team member page (except
   Dr. Vaseem, who has his own dedicated page/layout).

   Font sizes here are matched to the rest of the site's type scale
   (same h1/h2 sizing as about.css and home.css) — the original
   reference design used much larger headings (clamp 34-48px for h1,
   25-37px for h2), scaled down here to stay consistent site-wide.
   ========================================================= */

.team-page {
  background: var(--color-bg, #fff);
}

.team {
  padding: 56px 0 64px;
}

.team__container {
  width: min(1050px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* ---------- Sidebar ---------- */

.team__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team__card {
  background: var(--color-bg-alt, #f4f9fd);
  border: 1px solid var(--color-border, #dbe6ec);
  border-radius: 8px;
}

.team__card--doctor {
  padding: 28px;
}

.team__doctor-name {
  margin: 0;
  color: var(--color-text, #292929);
  font-family: var(--font-heading, "Poppins", sans-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
}

.team__degree {
  margin: 9px 0 0;
  color: var(--color-text-light, #4e5960);
  font-size: 0.8rem;
  line-height: 1.6;
}

.team__divider {
  height: 1px;
  margin: 18px 0 16px;
  background: var(--color-border, #d8e0e4);
}

.team__heading {
  margin: 0 0 8px;
  color: var(--color-text, #242424);
  font-family: var(--font-heading, "Poppins", sans-serif);
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
}

.team__text {
  margin: 0 0 18px;
  color: var(--color-text-light, #465057);
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: left;
}

.team__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-text, #303a40);
  text-decoration: none;
  font-size: 0.8rem;
}

.team__phone:hover {
  color: var(--color-primary, #02646f);
}

.team__phone-icon {
  font-size: 0.875rem;
  line-height: 1;
}

/* ---------- Working hours ---------- */

.team__card--hours {
  padding: 8px 20px;
}

.team__hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  color: var(--color-text-light, #4c555b);
  font-size: 0.75rem;
  line-height: 1.5;
}

.team__hours-row + .team__hours-row {
  border-top: 1px solid var(--color-border, #dbe4e9);
}

.team__hours-row span:last-child {
  text-align: right;
}

/* ---------- Main content ---------- */

.team__content {
  min-width: 0;
}

.team__image {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.team__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team__body {
  padding-top: 24px;
}

/* h1 — matched to the site's standard page-title size (same as
   .page-title h1 in about.css), not the original's oversized clamp() */
.team__title {
  margin: 0 0 18px;
  color: var(--color-text, #2d2d2d);
  font-family: var(--font-heading, "Poppins", sans-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: left;
}

.team__description {
  margin: 0;
  color: var(--color-text-light, #30373b);
  font-family: var(--font-body, "Nunito Sans", sans-serif);
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 400;
  text-align: left;
}

.team__description strong {
  color: var(--color-text, #292929);
  font-weight: 700;
}

/* ---------- Services ---------- */

/* h2 — matched to the site's standard section-heading size (same scale
   as .doctor-bio__text h2 elsewhere), not the original's oversized clamp() */
.team__services-title {
  margin: 2rem 0 1rem;
  color: var(--color-text, #292929);
  font-family: var(--font-heading, "Poppins", sans-serif);
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 500;
}

.team__services {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-text-light, #343a3e);
  font-size: 0.85rem;
  line-height: 1.9;
}

.team__services li {
  position: relative;
  padding-left: 18px;
  text-align: left;
  font-size: 1.2rem;
}

.team__services li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary, #02646f);
  font-weight: 800;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .team {
    padding: 44px 0 52px;
  }

  .team__container {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }

  .team__card--doctor {
    padding: 23px 20px;
  }
}

@media (max-width: 700px) {
  .team {
    padding: 32px 0 40px;
  }

  .team__container {
    width: min(100% - 30px, 560px);
    grid-template-columns: 1fr;
  }

  .team__content {
    order: 1;
  }

  .team__sidebar {
    order: 2;
  }

  .team__image {
    aspect-ratio: 1.55 / 1;
  }

  .team__body {
    padding-top: 20px;
  }

  .team__title {
    font-size: 1.6rem;
  }

  .team__description {
    font-size: 0.85rem;
    line-height: 1.75;
  }

  .team__services-title {
    font-size: 1.25rem;
  }

  .team__desktop-break {
    display: none;
  }
}

@media (max-width: 420px) {
  .team__container {
    width: min(100% - 22px, 560px);
  }

  .team__card--doctor {
    padding: 22px 18px;
  }

  .team__card--hours {
    padding: 5px 16px;
  }

  .team__hours-row {
    font-size: 0.7rem;
  }
}
