/* ─── Treatments Section ─────────────────────────────────────────── */
.treatments {
  padding: 6rem 0;
  background-color: var(--color-bg);
  text-align: center;
}

.treatments {
  padding: 2rem 0;
  background-color: var(--color-bg-white);
}

.treatments__inner {
  background-color: var(--color-bg-secondary);
  border-radius: 60px;
  padding: 8rem 0;
  margin: 0 40px;
}

@media (max-width: 768px) {
  .treatments__inner {
    margin: 0;
    padding: 6rem 0;
    border-radius: 0;
  }
}

.treatments__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.treatments__subtitle {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.treatments__slider-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  cursor: grab;
  user-select: none;
}

.treatments__slider-container:active {
  cursor: grabbing;
}

.treatments__slider-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.treatments__grid {
  display: flex;
  gap: 1.5rem;
  max-width: none;
  margin: 0;
  padding: 0 20px;
}

.treatment-card {
  flex: 0 0 calc(33.333% - 1rem); /* 3 cards per view on desktop */
  scroll-snap-align: center;
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  background-color: #000;
}

@media (max-width: 991px) {
  .treatment-card {
    flex: 0 0 350px;
  }
}

@media (max-width: 640px) {
  .treatment-card {
    flex: 0 0 280px;
  }
}

.treatment-card:hover {
  transform: none; /* Removed bounce/lift as requested */
}

.treatment-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.treatment-card:hover .treatment-card__bg {
  transform: scale(1.1); /* Keep the subtle zoom */
}

.treatment-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.treatment-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.75rem;
  text-align: left;
  z-index: 2;
  color: #fff;
}

.treatment-card__icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #111;
  transition: all 0.3s ease;
}

.treatment-card:hover .treatment-card__icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

.treatment-card__title {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff;
}

.treatment-card__desc {
  font-size: 0.9375rem;
  opacity: 0.8;
  line-height: 1.4;
  font-weight: 300;
  max-width: 250px;
}

/* ─── Pagination ─── */
.treatments__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.p-dot {
  width: 8px;
  height: 8px;
  background-color: #000;
  border-radius: 50%;
  opacity: 0.3;
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.p-dot.is-active {
  width: 32px;
  height: 8px;
  border-radius: 100px;
  opacity: 1;
}

/* ─── Footer Text ─── */
.treatments__footer-text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.treatments__footer-text a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
}

.banner {
  background-color: var(--color-bg);
  padding: 1.5rem 3rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}
