/**
 * TRC About page — Premium UI layer
 * Extends about-trc.css. Brand colors unchanged.
 */
 @import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap");
.trc-about-page {
  --trc-brand-maroon: #801818;
  --trc-brand-maroon-deep: #74131d;
  --trc-brand-red: #ef2428;
  --trc-brand-teal: #0f766e;
  --trc-brand-teal-light: #14b8a6;
  --trc-glass: rgba(255, 255, 255, 0.72);
  --trc-glass-border: rgba(255, 255, 255, 0.45);
  --trc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --trc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --trc-font-display: "Baloo 2", sans-serif;
}

/* Ambient background */
.trc-about-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.trc-about-main {
  position: relative;
  z-index: 1;
}

.trc-about-ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.trc-about-ambient__blob--1 {
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(128, 24, 24, 0.35) 0%, transparent 70%);
  animation: trc-about-float-a 22s var(--trc-ease-out) infinite alternate;
}

.trc-about-ambient__blob--2 {
  width: min(440px, 48vw);
  height: min(440px, 48vw);
  top: 42%;
  right: -6%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.28) 0%, transparent 70%);
  animation: trc-about-float-b 26s var(--trc-ease-out) infinite alternate;
}

.trc-about-ambient__blob--3 {
  width: min(380px, 42vw);
  height: min(380px, 42vw);
  bottom: 12%;
  left: 28%;
  background: radial-gradient(circle, rgba(239, 36, 40, 0.18) 0%, transparent 70%);
  animation: trc-about-float-c 20s var(--trc-ease-out) infinite alternate;
}

@keyframes trc-about-float-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes trc-about-float-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-35px, 25px) scale(1.06); }
}

@keyframes trc-about-float-c {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(25px, -30px) scale(1.1); }
}

/* Breadcrumb — ribbon wave (matches physiotherapy.php on every inner page) */
html:has(.trc-about-ribbon-breadcrumb) {
  overflow-x: clip;
  overflow-y: auto;
}

body:has(.trc-about-ribbon-breadcrumb) {
  overflow: visible !important;
}

/* Keep header in document flow so the red ribbon sits below the menu, not behind it */
body:has(.trc-about-ribbon-breadcrumb) #smooth-wrapper,
body:has(.trc-about-ribbon-breadcrumb) #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;
}

body:has(.trc-about-ribbon-breadcrumb) #sticky-header.mediic_nav_manu:not(.sticky) {
  background: #ffffff;
  z-index: 30;
}

.breatcome-section.trc-about-ribbon-breadcrumb,
.trc-home .breatcome-section.trc-about-ribbon-breadcrumb,
.trc-about-page .breatcome-section.trc-about-ribbon-breadcrumb,
.trc-about-ribbon-breadcrumb {
  position: relative !important;
  display: block !important;
  overflow: visible !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: #ffffff !important;
  background-image: none !important;
}

.trc-about-ribbon-breadcrumb::before,
.trc-about-ribbon-breadcrumb::after {
  content: none !important;
  display: none !important;
}

.trc-about-ribbon-breadcrumb__ribbon {
  position: relative;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.trc-about-ribbon-breadcrumb__ribbon svg {
  display: block;
  width: 100%;
  height: clamp(56px, 10vw, 96px);
}

.trc-about-ribbon-breadcrumb__ribbon--top {
  margin-bottom: -1px;
}

.trc-about-ribbon-breadcrumb__ribbon--bottom {
  margin-top: -1px;
}

/* Layered ribbon depth — matches reference (#FF3131 body, #7B181B shadow) */
.trc-about-ribbon-breadcrumb__layer--shadow {
  fill: #7b181b;
}

.trc-about-ribbon-breadcrumb__layer--deep {
  fill: #a30000;
}

.trc-about-ribbon-breadcrumb__layer--main {
  fill: #ff3131;
}

.trc-about-ribbon-breadcrumb__layer--highlight {
  fill: #ff4a4e;
  opacity: 0.45;
}

.trc-about-ribbon-breadcrumb__content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: clamp(1.75rem, 4.5vw, 2.75rem) clamp(1rem, 4vw, 2rem);
}

.trc-about-ribbon-breadcrumb__title {
  margin: 0 !important;
  padding: 0;
  font-family: "Baloo 2", "Clash Display", sans-serif !important;
  font-size: clamp(2rem, 5.5vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: #7a1717 !important;
  -webkit-text-fill-color: #7a1717 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: none !important;
  text-transform: none !important;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Beat global breatcome h1/h2 white title (incl. after hop-played animation) */
.trc-about-ribbon-breadcrumb .breatcome-content .trc-about-ribbon-breadcrumb__title,
.trc-about-ribbon-breadcrumb .breatcome-content h1.trc-about-ribbon-breadcrumb__title,
.trc-about-ribbon-breadcrumb .breatcome-content h2.trc-about-ribbon-breadcrumb__title,
.trc-about-ribbon-breadcrumb .breatcome-content .trc-about-ribbon-breadcrumb__title.hop-played,
.trc-about-ribbon-breadcrumb .breatcome-content h1.trc-about-ribbon-breadcrumb__title.hop-played,
.trc-about-ribbon-breadcrumb .breatcome-content h2.trc-about-ribbon-breadcrumb__title.hop-played {
  color: #7a1717 !important;
  -webkit-text-fill-color: #7a1717 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: none !important;
}

/* Breadcrumb trail — maroon links on white (reference style) */
.trc-about-ribbon-breadcrumb__nav {
  position: static;
  width: auto;
  height: auto;
  margin: 0.85rem 0 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
}

.trc-about-ribbon-breadcrumb__nav .breatcome-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trc-about-ribbon-breadcrumb__nav .breatcome-item li {
  font-family: "DM Sans", "Albert Sans", sans-serif;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7b181b !important;
  opacity: 0.72;
}

.trc-about-ribbon-breadcrumb__nav .breatcome-item li a {
  color: #7b181b !important;
  opacity: 1;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.trc-about-ribbon-breadcrumb__nav .breatcome-item li a:hover {
  color: #ff3131 !important;
  opacity: 1;
}

.trc-about-ribbon-breadcrumb__nav .breatcome-item li a::before {
  display: none !important;
}

.trc-about-ribbon-breadcrumb__nav .breatcome-item li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #7b181b !important;
  opacity: 0.45;
  font-weight: 400;
}

.trc-about-ribbon-breadcrumb__nav .breatcome-item li span[aria-current="page"] {
  color: #7b181b !important;
  font-weight: 600;
  opacity: 1;
}

/* Premium kicker + gradient text */
.trc-about-kicker--premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trc-brand-maroon);
  background: linear-gradient(135deg, rgba(128, 24, 24, 0.08) 0%, rgba(15, 118, 110, 0.08) 100%);
  border: 1px solid rgba(128, 24, 24, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 0.85rem;
}

.trc-about-kicker--premium i {
  font-size: 0.85rem;
  color: var(--trc-brand-teal);
}

.trc-about-gradient-text {
  color: #801e1d;
}

.trc-about-section-head--premium h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  display: block;
  color: #1a1f2c;
}

.trc-about-section-head--premium h2::after {
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--trc-brand-maroon) 0%, var(--trc-brand-red) 50%, var(--trc-brand-teal) 100%);
  box-shadow: 0 0 20px rgba(128, 24, 24, 0.35);
}

/* Stats bar */
.trc-about-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 76rem;
  margin: -1.5rem auto 0;
  padding: 0 clamp(1.25rem, 4.5vw, 4.5rem);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .trc-about-stats-bar {
    grid-template-columns: repeat(4, 1fr);
    margin-top: -2.5rem;
  }
}

.trc-about-stat {
  text-align: center;
  padding: 1.15rem 1rem;
  background: var(--trc-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--trc-glass-border);
  border-radius: 16px;
  box-shadow:
    0 4px 24px -4px rgba(128, 24, 24, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.35s var(--trc-ease-out), box-shadow 0.35s ease;
}

@media (hover: hover) {
  .trc-about-stat:hover {
    transform: translateY(-6px);
    box-shadow:
      0 16px 40px -12px rgba(128, 24, 24, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  }
}

.trc-about-stat__value {
  display: block;
  font-family: var(--trc-font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--trc-brand-maroon);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.trc-about-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--trc-ink-muted);
}

/* Intro hero premium */
.trc-about-intro-section {
  position: relative;
}

.trc-about-intro-section .trc-about-hero__glow {
  display: none;
}

.trc-about-hero {
  position: relative;
  z-index: 1;
}

.trc-about-hero__body {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--trc-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--trc-glass-border);
  border-radius: 20px;
  box-shadow: var(--trc-shadow-lg);
}

/* Intro image — centered, no card/frame effects */
.trc-about-intro-section .trc-about-hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.trc-about-intro-section .trc-about-hero__media::before,
.trc-about-intro-section .trc-about-hero__media::after {
  content: none;
  display: none;
}

.trc-about-intro-section .trc-about-hero__media img {
  width: auto;
  max-width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
  display: block;
  transform: none;
  transition: none;
  border-radius: 0;
  box-shadow: none;
}

.trc-about-intro-section .trc-about-hero__media:hover img {
  transform: none;
}

.trc-about-lead-block p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: var(--trc-ink-muted);
}

.trc-about-lead-block p:last-child {
  margin-bottom: 0;
}

/* Glass cards + spotlight */
.trc-about-page .trc-about-card {
  background: var(--trc-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  transition:
    transform 0.4s var(--trc-ease-out),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.trc-about-page .trc-about-card::before {
  background: linear-gradient(180deg, var(--trc-brand-maroon) 0%, var(--trc-brand-teal) 100%);
  width: 3px;
}

.trc-about-page .trc-about-card--lift {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

@media (hover: hover) {
  .trc-about-page .trc-about-card--lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
      0 24px 48px -16px rgba(128, 24, 24, 0.18),
      0 0 0 1px rgba(128, 24, 24, 0.08);
    border-color: rgba(128, 24, 24, 0.15);
  }

  .trc-about-page .trc-about-card--spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
      400px circle at var(--mouse-x) var(--mouse-y),
      rgba(128, 24, 24, 0.08) 0%,
      transparent 45%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  .trc-about-page .trc-about-card--spotlight:hover::after {
    opacity: 1;
  }
}

.trc-about-diff-icon {
  background: linear-gradient(135deg, rgba(128, 24, 24, 0.1) 0%, rgba(15, 118, 110, 0.15) 100%) !important;
  color: var(--trc-brand-maroon) !important;
  border-color: rgba(128, 24, 24, 0.12) !important;
  box-shadow: 0 4px 12px -4px rgba(128, 24, 24, 0.2);
  transition: transform 0.35s var(--trc-ease-spring);
}

.trc-about-page .trc-about-card--lift:hover .trc-about-diff-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* Mission / Vision panels */
.trc-about-mv-panel {
  background: var(--trc-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
}

.trc-about-mv-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(128, 24, 24, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(15, 118, 110, 0.35) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

/* Testimonials */
.trc-about-testimonial-card {
  border-left: 3px solid var(--trc-brand-maroon);
}

.trc-about-quote p {
  font-size: 1.02rem;
  line-height: 1.7;
  position: relative;
}

.trc-about-quote p::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 0;
  color: rgba(128, 24, 24, 0.15);
  display: block;
  margin-bottom: 0.5rem;
}

.trc-about-cite-name {
  color: var(--trc-brand-maroon) !important;
}

/* Values */
.trc-about-values-section {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #faf8f6 100%);
}

.trc-about-value-item {
  padding: 1.25rem 0.75rem;
  border-radius: 16px;
  transition: transform 0.35s var(--trc-ease-out), background 0.3s ease;
}

@media (hover: hover) {
  .trc-about-value-item:hover {
    transform: translateY(-6px);
    background: rgba(128, 24, 24, 0.04);
  }

  .trc-about-value-item:hover .trc-about-value-icon {
    box-shadow: 0 12px 28px -8px rgba(128, 24, 24, 0.5);
    transform: scale(1.06);
  }
}

.trc-about-value-icon {
  transition: transform 0.35s var(--trc-ease-spring), box-shadow 0.35s ease;
}

.trc-about-values-closing {
  background: linear-gradient(135deg, rgba(128, 24, 24, 0.06) 0%, rgba(15, 118, 110, 0.06) 100%);
  border: 1px solid rgba(128, 24, 24, 0.12);
  backdrop-filter: blur(8px);
}

.trc-about-values-closing::after {
  background: linear-gradient(90deg, var(--trc-brand-maroon), var(--trc-brand-teal));
}

/* Principles list */
.trc-about-principle-item {
  border-radius: 12px;
  transition: background 0.3s ease, padding 0.3s ease;
}

@media (hover: hover) {
  .trc-about-principle-item:hover {
    background: rgba(255, 255, 255, 0.7);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Privacy frame */
.trc-about-privacy-policy__frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 32px 80px -24px rgba(0, 0, 0, 0.35);
}

/* Wave divider */
.trc-about-wave {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 72px);
  line-height: 0;
  color: var(--trc-surface-warm);
  margin-top: -1px;
}

.trc-about-wave--flip {
  transform: scaleY(-1);
  margin-top: 0;
  margin-bottom: -1px;
}

.trc-about-wave svg {
  width: 100%;
  height: 100%;
}

/* Section alt mesh */
.trc-about-section--alt {
  background: #ffe9eb !important;
}

/* List panel glass */
.trc-about-list-panel {
  background: var(--trc-glass);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.trc-about-icon-list li::before {
  background: linear-gradient(135deg, rgba(128, 24, 24, 0.12) 0%, rgba(15, 118, 110, 0.12) 100%);
  border-color: rgba(128, 24, 24, 0.2);
}

.trc-about-icon-list li::after {
  border-color: var(--trc-brand-maroon);
}

/* Closing + CTA */
.trc-about-closing {
  background: var(--trc-glass);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--trc-shadow-lg);
}

.trc-about-closing::before {
  background: linear-gradient(90deg, transparent, var(--trc-brand-maroon), var(--trc-brand-red), var(--trc-brand-teal), transparent);
  width: min(400px, 90%);
}

.trc-about-cta-strip {
  background: linear-gradient(
    125deg,
    var(--trc-brand-maroon-deep) 0%,
    var(--trc-brand-maroon) 35%,
    #9a2828 55%,
    var(--trc-brand-teal) 100%
  );
}

.trc-about-cta-strip::before {
  background: radial-gradient(circle, rgba(239, 36, 40, 0.2) 0%, transparent 60%);
}

.trc-about-cta-strip::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Reveal (JS fallback before AOS) */
.trc-about-page [data-trc-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.trc-about-page.trc-about-js-ready [data-trc-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trc-about-ambient__blob {
    animation: none !important;
  }

  .trc-about-page [data-trc-reveal] {
    opacity: 1;
    transform: none;
  }

  .trc-about-page .trc-about-card--lift:hover,
  .trc-about-value-item:hover,
  .trc-about-stat:hover {
    transform: none;
  }
}

.trc-about-cta-highlight {
  color: #fde68a;
  text-shadow: 0 0 24px rgba(253, 224, 71, 0.35);
}

.trc-about-page .trc-about-section-head--center .trc-about-kicker--premium {
  margin-left: auto;
  margin-right: auto;
}

.trc-about-intro-section + .trc-about-stats-bar {
  padding-bottom: 0.5rem;
}

.trc-about-wave {
  color: #f8f6f4;
}
