/* =========================================================
   Sujok Homeo Clinic — Our Team
   Loaded after style-v3.css. The header, footer, buttons and the team cards
   (.v2-team, .v2-member) come from style-v3.css unchanged; this file styles the
   page's own sections, and every rule is scoped to .tm-page.
   ========================================================= */

.tm-page {
  --tm-tint: #eef5ec;          /* soft green panels (same as the topic pages) */
  --tm-radius: 18px;
}
.tm-page .text-green { color: var(--text-green); }

/* ---------- Hero: full-width team photo ----------
   The photo shows the whole team across its width, so it is shown complete (3:1, its own shape)
   and the title sits in a white label centred on its bottom edge, clear of every face. */
.tm-hero { position: relative; z-index: 1; }   /* keeps the label above the team section below */
.tm-hero-img {
  display: block; width: 100%; aspect-ratio: 2000 / 668; max-height: 600px;
  object-fit: cover; object-position: 50% 30%;
}
.tm-hero-title {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  padding: 14px clamp(28px, 4vw, 48px); white-space: nowrap;
  background: #ffffff; border-radius: 999px; box-shadow: 0 12px 30px rgba(23, 61, 43, .14);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; color: var(--ink-900);
}

/* ---------- Team members (cards from style-v3.css) ---------- */
.tm-page .tm-members { margin-top: 0; padding-top: calc(var(--band-pad-y) + 36px); scroll-margin-top: 90px; }   /* extra room under the hero's title label */

/* ---------- Working together ---------- */
.tm-together { padding-block: var(--band-pad-y); }
.tm-together-inner {
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.tm-together-img { display: block; width: 100%; aspect-ratio: 801 / 711; object-fit: cover; border-radius: var(--tm-radius); }
.tm-together .eyebrow { margin-bottom: 14px; }
.tm-together .section-title { margin-bottom: 16px; }
.tm-together .section-title .text-green { display: block; }
.tm-together-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-700); }

.tm-disciplines { display: grid; gap: 12px; margin-top: 26px; }
.tm-discipline {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px;
  background: var(--tm-tint); border: 1px solid transparent; border-radius: 14px;
  color: inherit; text-decoration: none; transition: border-color .2s ease, background-color .2s ease;
}
.tm-discipline .icon-circle { flex: none; width: 48px; height: 48px; background: #ffffff; color: var(--green-800); }
.tm-discipline .icon-circle .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.tm-discipline-text { flex: 1; min-width: 0; font-size: .95rem; line-height: 1.4; color: var(--ink-500); }
.tm-discipline-text strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--ink-900); }
.tm-discipline-arrow { flex: none; color: var(--text-green); transition: transform .2s ease; }
.tm-discipline:hover { background: #ffffff; border-color: var(--text-green); }
.tm-discipline:hover .tm-discipline-arrow { transform: translateX(3px); }
.tm-discipline:focus-visible { outline: 2px solid var(--text-green); outline-offset: 2px; }

/* ---------- Booking prompt ---------- */
.tm-cta { padding-bottom: var(--band-pad-y); }
.tm-cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding: clamp(24px, 3.4vw, 40px) clamp(22px, 4vw, 52px);
  background: var(--green-800); border-radius: var(--tm-radius); color: #ffffff;
}
.tm-cta-title { margin-bottom: 6px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; color: #ffffff; }
.tm-cta-text p { color: rgba(255, 255, 255, .85); }
.tm-cta-text a { font-weight: 600; color: #ffffff; white-space: nowrap; }
.tm-cta .btn-primary { background: #ffffff; color: var(--green-800); box-shadow: none; white-space: nowrap; }
.tm-cta .btn-primary:hover { background: var(--tm-tint); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tm-together-inner { grid-template-columns: minmax(0, 1fr); }
  .tm-together-img { max-width: 560px; aspect-ratio: 16 / 10; object-position: 30% 30%; }
}

@media (max-width: 640px) {
  /* Taller than 3:1 so faces stay a readable size; trims the outer edges a little */
  .tm-hero-img { aspect-ratio: 2.3 / 1; }
  .tm-hero-title { padding: 10px 28px; }
  .tm-cta .btn-primary { width: 100%; justify-content: center; }
}
.v2-member-name a { color: inherit; text-decoration: none; }
.v2-member-name a:hover, .v2-member-name a:focus-visible { text-decoration: underline; }
