/* ════════════════════════════════════
   TREATMENTS PAGE — treatments.css
   ════════════════════════════════════ */

/* ── HERO ── */
.tr-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 120px 1.5rem 5rem;
  gap: 2.4rem;
}

.tr-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/treatments_hero.png');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  animation: trHeroZoom 20s ease-out forwards;
}
@keyframes trHeroZoom {
  to { transform: scale(1); }
}

.tr-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,16,0.55) 0%, rgba(10,10,16,0.3) 40%, rgba(10,10,16,0.82) 100%),
    linear-gradient(to right, rgba(10,10,16,0.5) 0%, transparent 50%, rgba(10,10,16,0.3) 100%);
}

/* Floating particles */
.tr-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.tr-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(124,114,255,0.25);
  animation: trFloat linear infinite;
}
@keyframes trFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  50%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.4); opacity: 0; }
}

.tr-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
}

.tr-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0.8rem 0 1.1rem;
}
.tr-title-accent {
  color: #7c72ff;
  display: inline-block;
  animation: trAccentPulse 3s ease-in-out infinite;
}
@keyframes trAccentPulse {
  0%, 100% { text-shadow: 0 0 30px rgba(124,114,255,0.4); }
  50%       { text-shadow: 0 0 60px rgba(124,114,255,0.7); }
}

.tr-hero-sub {
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 1.8rem;
}

.tr-hero-btn {
  display: inline-block;
  width: auto;
  padding: 0.85rem 2.4rem;
  margin: 0 auto;
}

/* Hero stats bar — in flow, not absolute */
.tr-hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.9rem 2.2rem;
  white-space: nowrap;
}
.tr-stat {
  text-align: center;
}
.tr-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.tr-stat-suffix {
  font-size: 1rem;
  font-weight: 700;
  color: #7c72ff;
}
.tr-stat-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.15rem;
}
.tr-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ── INTRO SECTION ── */
.tr-intro {
  background: #fff;
  padding: 6rem 0 5rem;
}
.tr-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.tr-intro-text h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin: 0.6rem 0 1.2rem;
}
.tr-purple { color: #7c72ff; }
.tr-intro-text p {
  font-size: 0.82rem;
  font-weight: 300;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}
.tr-link-btn {
  font-size: 0.76rem;
  font-weight: 700;
  color: #7c72ff;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s, color 0.2s;
}
.tr-link-btn:hover {
  letter-spacing: 0.08em;
  color: #6c63ff;
}

.tr-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.tr-intro-card {
  background: #f8f8ff;
  border: 1px solid #ebebff;
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.tr-intro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(108,99,255,0.1);
  border-color: rgba(124,114,255,0.35);
}
.tr-intro-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.tr-intro-card-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.4rem;
}
.tr-intro-card-text {
  font-size: 0.68rem;
  font-weight: 300;
  color: #666;
  line-height: 1.6;
}

/* ── TREATMENTS GRID ── */
.tr-grid-section {
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  padding: 6rem 0 5rem;
}
.tr-grid-head {
  text-align: center;
  padding: 0 1.5rem 4.5rem;
}
.tr-grid-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin-top: 0.6rem;
}

/* Treatment alternating items */
.tr-item {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.tr-item:last-of-type { margin-bottom: 2rem; }

.tr-item-reverse {
  direction: rtl;
}
.tr-item-reverse > * {
  direction: ltr;
}

.tr-item-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.tr-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.tr-item-image:hover img {
  transform: scale(1.05);
}
.tr-item-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(124,114,255,0.15);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
}

.tr-item-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7c72ff;
  background: rgba(124,114,255,0.1);
  border: 1px solid rgba(124,114,255,0.2);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.tr-item-body h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin-bottom: 1rem;
}
.tr-item-body p {
  font-size: 0.78rem;
  font-weight: 300;
  color: #64748B;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.tr-item-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tr-item-list li {
  font-size: 0.74rem;
  font-weight: 400;
  color: #475569;
  padding-left: 1.2rem;
  position: relative;
}
.tr-item-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c72ff;
}
.tr-item-cta {
  font-size: 0.74rem;
  font-weight: 700;
  color: #7c72ff;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s, color 0.2s;
}
.tr-item-cta:hover {
  color: #a89dff;
  letter-spacing: 0.08em;
}

/* ── TICKER ── */
.tr-ticker-section {
  background: #fff;
  border-top: 1px solid rgba(124,114,255,0.15);
  border-bottom: 1px solid rgba(124,114,255,0.15);
  padding: 1.6rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}
.tr-ticker-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7c72ff;
  white-space: nowrap;
  padding-left: 3.5rem;
  flex-shrink: 0;
}
.tr-ticker-wrap {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.tr-ticker {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  animation: trTickerScroll 35s linear infinite;
}
.tr-ticker span {
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748B;
  white-space: nowrap;
}
.tr-dot {
  color: #7c72ff !important;
  font-size: 1rem !important;
}
@keyframes trTickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── PROCESS TIMELINE ── */
.tr-process {
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  padding: 6rem 0 7rem;
}
.tr-process-head {
  text-align: center;
  padding: 0 1.5rem 4rem;
}
.tr-process-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin-top: 0.6rem;
}

.tr-timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tr-timeline-line {
  position: absolute;
  left: calc(3.5rem + 22px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(124,114,255,0.6) 10%, rgba(124,114,255,0.6) 90%, transparent);
}

.tr-step {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  padding: 0 0 2.8rem 0;
  position: relative;
}
.tr-step:last-child { padding-bottom: 0; }

.tr-step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(124,114,255,0.15);
  border: 2px solid rgba(124,114,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #7c72ff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}
.tr-step:hover .tr-step-num {
  background: rgba(124,114,255,0.3);
  border-color: #7c72ff;
}

.tr-step-body {
  padding-top: 0.6rem;
}
.tr-step-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.4rem;
}
.tr-step-body p {
  font-size: 0.76rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
}

/* ── CTA BANNER ── */
.tr-cta-banner {
  position: relative;
  padding: 7rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.tr-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504813184591-01572f98c85f?w=1600&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
}
.tr-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.82), rgba(12,12,16,0.88));
}
.tr-cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.tr-cta-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0.8rem 0 1rem;
}
.tr-cta-content p {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 2.4rem;
}
.tr-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.tr-cta-actions .sh-btn {
  width: auto;
  padding: 0.9rem 2.4rem;
  margin: 0;
}
.tr-cta-call {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.tr-cta-call:hover { color: #fff; }


/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
  .tr-intro-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.5rem;
  }
  .tr-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
    margin-bottom: 4rem;
  }
  .tr-item-reverse { direction: ltr; }
  .tr-timeline {
    padding: 0 1.5rem;
  }
  .tr-timeline-line {
    left: calc(1.5rem + 22px);
  }
  .tr-hero-stats {
    gap: 1.5rem;
    padding: 0.8rem 1.6rem;
  }
  .tr-ticker-label { padding-left: 1.5rem; }
}

@media (max-width: 767.98px) {
  .tr-intro-grid {
    grid-template-columns: 1fr;
  }
  .tr-hero-stats {
    flex-wrap: wrap;
    border-radius: 16px;
    gap: 1rem 2rem;
    width: 100%;
    justify-content: center;
  }
  .tr-stat-divider { display: none; }
  .tr-hero-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
  .tr-cta-actions {
    flex-direction: column;
    gap: 1rem;
  }
}
