/**
 * Physiotherapy & Occupational Therapy service pages
 * Scope: .trc-therapy-page
 */

.trc-therapy-page {
  --trc-therapy-primary: #74131d;
  --trc-therapy-accent: #ef2428;
  --trc-therapy-ink: #0f172a;
  --trc-therapy-muted: #475569;
  --trc-therapy-surface: #ffffff;
  --trc-therapy-soft: #fbf9f9;
  --trc-therapy-border: rgba(15, 23, 42, 0.08);
  --trc-therapy-shadow: 0 10px 28px -16px rgba(116, 19, 29, 0.16);
}

/* One page scrollbar only — overflow-x:hidden on html AND body creates a nested bar */
html:has(body.trc-therapy-page) {
  overflow-x: clip;
  overflow-y: auto;
}
body.trc-therapy-page {
  overflow: visible !important;
}
body.trc-therapy-page .trc-about-main,
body.trc-therapy-page .trc-therapy-main {
  overflow-x: clip;
  overflow-y: visible;
}

body.trc-therapy-page #smooth-wrapper,
body.trc-therapy-page #smooth-content {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  position: static !important;
  transform: none !important;
}

.trc-therapy-page .trc-therapy-main {
  background: #ffffff;
}

.trc-therapy-page .trc-therapy-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--trc-therapy-accent), #d41f24);
  box-shadow: 0 5px 18px rgba(239, 36, 40, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.trc-therapy-page .trc-therapy-join:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--trc-therapy-primary), #5c1018);
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(116, 19, 29, 0.3);
}

.trc-therapy-page .trc-therapy-join--ghost {
  color: var(--trc-therapy-primary);
  background: #fff;
  border: 1px solid rgba(116, 19, 29, 0.22);
  box-shadow: none;
}

.trc-therapy-page .trc-therapy-join--ghost:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--trc-therapy-primary), #5c1018);
  border-color: transparent;
  box-shadow: 0 9px 24px rgba(116, 19, 29, 0.3);
}

.trc-therapy-page .trc-therapy-join--ghost.is-pulse {
  animation: none;
}

/* Hero */
.trc-therapy-page .trc-therapy-hero {
  background: #fff;
}

.trc-therapy-page .trc-therapy-hero__title {
  margin: 0 0 1rem;
  font-family: var(--trc-font-display, "Clash Display", system-ui, sans-serif);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #1a1f2c;
}

.trc-therapy-page .trc-therapy-hero__lead,
.trc-therapy-page .trc-therapy-hero__text {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.55vw, 1.08rem);
  line-height: 1.7;
  color: var(--trc-therapy-ink);
}

.trc-therapy-page .trc-therapy-hero__cta {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.trc-therapy-page .trc-therapy-hero__media {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--trc-therapy-shadow);
}

.trc-therapy-page .trc-therapy-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Jump nav */
.trc-therapy-page .trc-therapy-jump {
  background: #ffe9eb;
  border-block: 1px solid var(--trc-therapy-border);
  padding: 1.25rem 0;
}

.trc-therapy-page .trc-therapy-jump__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.trc-therapy-page .trc-therapy-jump__list a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--trc-therapy-primary);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--trc-therapy-border);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.trc-therapy-page .trc-therapy-jump__list a:hover {
  color: #fff;
  background: var(--trc-therapy-primary);
  border-color: var(--trc-therapy-primary);
}

/* Content blocks */
.trc-therapy-page .trc-therapy-block {
  background: #fff;
}

.trc-therapy-page .trc-therapy-block--alt {
  background: #ffe9eb;
}

.trc-therapy-page .trc-therapy-block__title {
  margin: 0 0 1rem;
  font-family: var(--trc-font-display, "Clash Display", system-ui, sans-serif);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #1a1f2c;
}

.trc-therapy-page .trc-therapy-block__subtitle {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--trc-therapy-ink);
}

.trc-therapy-page .trc-therapy-prose p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--trc-therapy-ink);
}

.trc-therapy-page .trc-therapy-prose p:last-child {
  margin-bottom: 0;
}

.trc-therapy-page .trc-therapy-label {
  margin: 1.15rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--trc-therapy-primary);
}

.trc-therapy-page .trc-therapy-checklist {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.trc-therapy-page .trc-therapy-checklist--two {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .trc-therapy-page .trc-therapy-checklist--two {
    grid-template-columns: 1fr 1fr;
  }
}

.trc-therapy-page .trc-therapy-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid var(--trc-therapy-border);
  border-radius: 0.75rem;
  box-shadow: var(--trc-therapy-shadow);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--trc-therapy-ink);
}

.trc-therapy-page .trc-therapy-block--alt .trc-therapy-checklist li {
  background: #fff;
}

.trc-therapy-page .trc-therapy-block:not(.trc-therapy-block--alt) .trc-therapy-checklist li {
  background: var(--trc-therapy-soft);
}

.trc-therapy-page .trc-therapy-checklist i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--trc-therapy-accent);
  font-size: 1.05rem;
}

.trc-therapy-page .trc-therapy-contact-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(116, 19, 29, 0.06);
  border: 1px solid rgba(116, 19, 29, 0.12);
}

.trc-therapy-page .trc-therapy-contact-note p {
  margin: 0.25rem 0;
  color: var(--trc-therapy-ink);
}

.trc-therapy-page .trc-therapy-contact-note a {
  color: var(--trc-therapy-primary);
  font-weight: 700;
  text-decoration: none;
}

.trc-therapy-page .trc-therapy-contact-note a:hover {
  color: var(--trc-therapy-accent);
}

/* Funding cards */
.trc-therapy-page .trc-therapy-fund {
  display: grid;
  gap: 0.85rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .trc-therapy-page .trc-therapy-fund {
    grid-template-columns: 1fr 1fr;
  }
}

.trc-therapy-page .trc-therapy-fund li {
  padding: 1.15rem 1.2rem;
  background: var(--trc-therapy-soft);
  border: 1px solid var(--trc-therapy-border);
  border-radius: 0.85rem;
  box-shadow: var(--trc-therapy-shadow);
}

.trc-therapy-page .trc-therapy-fund__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--trc-therapy-primary);
}

.trc-therapy-page .trc-therapy-fund p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--trc-therapy-ink);
}

/* Next-step CTA */
.trc-therapy-page .trc-therapy-next {
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(239, 36, 40, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(116, 19, 29, 0.07), transparent 50%),
    #fff;
}

.trc-therapy-page .trc-therapy-next__inner {
  max-width: 46rem;
}

.trc-therapy-page .trc-therapy-next__text {
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--trc-therapy-ink);
}

.trc-therapy-page .trc-therapy-next .trc-therapy-hero__cta {
  margin-top: 1.5rem;
}

/* Bootstrap accordion — brand tokens only */
.trc-therapy-page #trc-pt-faq {
  --bs-accordion-active-color: var(--trc-therapy-primary);
  --bs-accordion-active-bg: #fbf6f6;
  --bs-accordion-btn-color: var(--trc-therapy-ink);
  --bs-accordion-border-color: rgba(116, 19, 29, 0.12);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(239, 36, 40, 0.16);
}

.trc-therapy-page #trc-pt-faq .accordion-header {
  margin: 0;
}

@media (max-width: 767.98px) {
  .trc-therapy-page .trc-therapy-hero__media {
    margin-bottom: 1.25rem;
  }
}

/* ─── Occupational Therapists showcase ─── */
.trc-therapy-page .trc-ot-team {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(116, 19, 29, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(15, 118, 110, 0.07), transparent 50%),
    linear-gradient(180deg, #fbf9f9 0%, #ffffff 45%, #f8f6f6 100%);
}

.trc-therapy-page .trc-ot-team__intro {
  max-width: 42rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.trc-therapy-page .trc-ot-team__intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--trc-therapy-muted);
}

.trc-therapy-page .trc-ot-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid var(--trc-therapy-border);
  box-shadow: 0 14px 36px -22px rgba(116, 19, 29, 0.28);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

@media (hover: hover) {
  .trc-therapy-page .trc-ot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -20px rgba(116, 19, 29, 0.35);
  }
}

.trc-therapy-page .trc-ot-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(145deg, #f3ecec, #e8f2f1);
}

.trc-therapy-page .trc-ot-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .trc-therapy-page .trc-ot-card:hover .trc-ot-card__media img {
    transform: scale(1.06);
  }
}

.trc-therapy-page .trc-ot-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  color: var(--trc-therapy-primary);
  font-weight: 600;
}

.trc-therapy-page .trc-ot-card__placeholder i {
  font-size: 2.5rem;
  opacity: 0.55;
}

.trc-therapy-page .trc-ot-card__badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(116, 19, 29, 0.88);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.trc-therapy-page .trc-ot-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.4rem;
}

.trc-therapy-page .trc-ot-card__name {
  margin: 0;
  font-family: var(--trc-font-display, "Clash Display", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--trc-therapy-primary);
}

.trc-therapy-page .trc-ot-card__role {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--trc-therapy-muted);
}

.trc-therapy-page .trc-ot-card__meta {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.trc-therapy-page .trc-ot-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--trc-therapy-primary);
  background: rgba(116, 19, 29, 0.06);
  border: 1px solid rgba(116, 19, 29, 0.1);
  border-radius: 999px;
}

.trc-therapy-page .trc-ot-card__excerpt {
  margin: 0.9rem 0 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--trc-therapy-ink);
}

.trc-therapy-page .trc-ot-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--trc-therapy-accent), #d41f24);
  box-shadow: 0 4px 14px rgba(239, 36, 40, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.trc-therapy-page .trc-ot-card__link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--trc-therapy-primary), #5c1018);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(116, 19, 29, 0.28);
}

.trc-therapy-page .trc-ot-card__link i {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .trc-therapy-page .trc-ot-card__link:hover i {
    transform: translateX(3px);
  }
}
