/* =========================================
  TREATMENTS PRO (SPLIT CAROUSEL LAYOUT)
========================================= */
.specialists-section {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 18%, rgba(226, 207, 199, 0.34) 0%, transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(199, 168, 153, 0.18) 0%, transparent 26%),
    linear-gradient(180deg, #faf7f3 0%, #f4eee7 100%);
}

.specialists-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.42), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.58), transparent 54%);
  pointer-events: none;
}

.specialists-section .container {
  position: relative;
  z-index: 1;
}

.treatments-header-restore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 920px;
  margin: 0 auto 2.75rem;
  padding: 0;
  text-align: center;
}

.treatments-header-restore .treatments-pro-title {
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

.treatments-header-restore .title-dark {
  color: var(--bg-dark);
  font-weight: 400;
}

.treatments-header-restore .title-taupe {
  color: var(--primary);
  font-weight: 400;
  text-shadow: 0 12px 30px rgba(199, 168, 153, 0.16);
}

.treatments-header-restore .treatments-pro-desc {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  line-height: 1.78;
  color: rgba(68, 68, 68, 0.78);
  font-weight: 400;
}

.treatments-pro-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.treatments-pro-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 1rem;
  z-index: 5;
  flex: 0 0 45%;
  max-width: 45%;
}

.pro-badge-beige {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--beige-light, #F6F3F0);
  color: var(--taupe-dark, #B89685);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(184, 150, 133, 0.2);
  margin-bottom: 1.5rem;
}

.treatments-pro-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  /* Scaled down for elegance */
  line-height: 1.1;
  font-weight: 400;
  /* Regular weight for premium look */
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  max-width: 100%;
  word-wrap: break-word;
}

.title-dark {
  color: #11243F;
  /* Or var(--primary) */
  font-weight: 600;
}

.title-taupe {
  color: var(--taupe, #CBAA9A);
  font-weight: 300;
  /* Thinner weight for contrast */
}

.treatments-pro-desc {
  font-size: 1.1rem;
  color: #667085;
  line-height: 1.6;
  max-width: 480px;
  font-weight: 300;
}

/* Premium Taupe Button */
.btn-taupe-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--taupe, #CBAA9A);
  color: #fff;
  padding: 10px 24px;
  /* Reduced padding from 14px 28px */
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  /* Reduced from 1rem */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(203, 170, 154, 0.3);
  align-self: flex-start;
  /* Ensure it doesn't stretch */
}

.btn-taupe-pill:hover {
  background: var(--taupe-dark, #B89685);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(203, 170, 154, 0.4);
}

/* Transparent Outline Button (White) */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 8px 22px;
  /* Adjusted to account for the 2px border so it matches the 10x24px visual size of the solid button */
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-treatments-link i {
  transition: transform 0.3s ease;
}

.btn-treatments-link:hover i {
  transform: translateX(4px);
}

/* Controls */
/* Carousel controls (Left Sidebar) */
.treatments-carousel-ui-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.nav-prev-outline,
.nav-next-outline {
  width: 40px;
  /* Reduced from 48px */
  height: 40px;
  /* Reduced from 48px */
  border-radius: 50%;
  border: 1px solid rgba(203, 170, 154, 0.5);
  /* Taupe border */
  background: transparent;
  color: var(--taupe-dark, #B89685);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  /* Reduced from 1.2rem */
}

.nav-prev-outline:hover,
.nav-next-outline:hover {
  background: var(--taupe-light, #E8DCD5);
  border-color: var(--taupe-dark, #B89685);
  color: var(--taupe-dark, #B89685);
}

.nav-prev-outline:active,
.nav-next-outline:active {
  transform: scale(0.95);
}

.nav-fraction-taupe {
  font-weight: 500;
  color: var(--taupe-dark, #B89685);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

/* Track */
.treatments-pro-track-wrapper {
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  justify-content: center;
  min-height: 680px;
  min-width: 0;
  overflow: visible;
}

.treatments-cards-stage {
  position: relative;
  width: min(100%, 520px);
  height: 680px;
  perspective: 1200px;
  isolation: isolate;
  overflow: visible;
}

.treatments-pro-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Card - Base state (All cards overlaid) */
.treatments-cards-stage .pro-treatment-card {
  position: absolute;
  inset: 0;
  background: var(--taupe, #CBAA9A);
  border-radius: 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(110px, 18px, 0px) scale(.88);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: transform .75s cubic-bezier(.22, 1, .36, 1),
    opacity .75s ease,
    box-shadow .75s ease;
}

/* ATIVO: na frente */
.pro-treatment-card.card-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 80px) scale(1);
  filter: blur(0px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .12);
}

/* Proximo: um pouco a direita e atras */
.pro-treatment-card.card-next {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transform: translate3d(70px, 10px, 20px) scale(.94);
  filter: blur(.2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

/* Terceiro: mais atras ainda */
.pro-treatment-card.card-next2 {
  opacity: .35;
  pointer-events: none;
  transform: translate3d(110px, 18px, 0px) scale(.88);
  filter: none;
}

/* Saida lateral (avancar): vai para a direita e desce ficando mais para tras */
.pro-treatment-card.card-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(170px, 26px, -80px) scale(.88) rotateZ(1deg);
  filter: blur(1px);
}

/* Entrada do anterior (voltar): vem da esquerda, atras, e sobe para a posicao */
.pro-treatment-card.card-entering-from-left {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-170px, 26px, -80px) scale(.88) rotateZ(-1deg);
  filter: blur(1px);
}

.pro-treatment-card.card-active:hover {
  transform: translate3d(0, -5px, 90px) scale(1.02);
  box-shadow: 0 40px 70px rgba(203, 170, 154, 0.4);
}

.treatments-cards-stage.is-animating .pro-treatment-card.card-active:hover {
  transform: translate3d(0, 0, 80px) scale(1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .12);
}

.treatments-cards-stage.is-animating .pro-treatment-card {
  filter: none !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10) !important;
}

.treatments-cards-stage.is-animating .pro-card-content {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.pro-treatment-img {
  position: relative;
  width: 100%;
  height: 62%;
  flex: 0 0 62%;
  aspect-ratio: auto;
  overflow: hidden;
  background: #fff;
}

.pro-treatment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.pro-treatment-card:hover .pro-treatment-img img {
  transform: scale(1.05);
}

.pro-treatment-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--taupe-dark, #B89685);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pro-card-content {
  height: 38%;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
  background: rgba(203, 170, 154, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pro-treatment-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
  /* Thin, elegant font */
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.pro-treatment-desc {
  color: rgba(255, 255, 255, 0.9);
  /* More legible over taupe */
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-weight: 300;
  flex-grow: 1;
}

.pro-treatment-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 991px) {
  .treatments-pro-layout {
    flex-direction: column;
    /* Stack vertically on mobile */
    gap: 3rem;
  }

  .treatments-pro-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 0;
    align-items: center;
    text-align: center;
  }

  .treatments-pro-track-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 620px;
  }

  .treatments-pro-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-taupe-pill {
    align-self: center;
  }

  .treatments-carousel-ui-left {
    justify-content: center;
    margin-top: 2rem;
  }

  .treatments-cards-stage {
    width: min(100%, 420px);
    height: 620px;
  }
}

@media (max-width: 575px) {
  .treatments-cards-stage {
    width: min(100%, 340px);
    height: 560px;
  }
}

/* ====== Treatments Section ====== */
.specialists {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}

.specialists__head {
  position: relative;
  z-index: 10;
}

@media (max-width: 991px) {
  .specialists {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.specialists__head h2 {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.specialists__head p {
  margin: 0 0 18px;
  max-width: 52ch;
  opacity: .85;
}

.specialists__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .15);
  text-decoration: none;
  color: inherit;
}

.specialists-section .carousel {
  position: relative;
}

/* ====== Swiper: feel premium ====== */
.specialists-section .treatments-swiper {
  overflow: visible;
  padding: 8px 0 80px;
  /* Room for massive shadow */
}

/* timing organico do movimento */
.specialists-section .treatments-swiper .swiper-wrapper {
  transition-timing-function: cubic-bezier(.19, 1, .22, 1) !important;
  display: flex !important;
  align-items: stretch;
}

/* slides: estados visuais (base) */
.specialists-section .card.swiper-slide {
  width: clamp(240px, 20vw, 320px);
  height: auto !important;
  flex-shrink: 0;
  border-radius: 18px;
  background: var(--primary);
  overflow: hidden;
  position: relative;
  cursor: pointer;

  opacity: 0.4;
  /* Opacidade base bem leve para os distantes */
  transition:
    opacity .85s cubic-bezier(.19, 1, .22, 1),
    background .25s ease,
    box-shadow .85s cubic-bezier(.19, 1, .22, 1);
}

.specialists-section .card.swiper-slide {
  margin: 0 -12%;
  /* Forcar sobreposicao: puxa os cards uns sobre os outros */
  z-index: 1;
  /* Base z-index */
}

.specialists-section .card.swiper-slide:hover {
  background: var(--primary-dark);
}

/* vizinhos: ficam "perto" do ativo */
.specialists-section .card.swiper-slide-prev,
.specialists-section .card.swiper-slide-next {
  opacity: 0.85;
  z-index: 2;
  /* Vizinhos ficam por cima dos distantes */
}

/* ativo: foco total */
.specialists-section .card.swiper-slide-active {
  opacity: 1;
  z-index: 5;
  /* Card central tem que ficar no topo absoluto */
  box-shadow:
    0 40px 100px -15px rgba(0, 0, 0, 0.45),
    /* Sombra mais forte para separar do fundo */
    0 10px 30px -10px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  background: var(--primary-dark);
}

.specialists-section .card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, .08);
}

.specialists-section .card__


.specialists-section .card__body small {
  opacity: .85;
}

.specialists-section .card__body h3 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--white);
}

.specialists-section .card__body p {
  margin: 0;
  opacity: .9;
  line-height: 1.35;
  font-family: var(--font-body);
  color: var(--white);
}

.specialists-section .car-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .15);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
}

.specialists-section .car-btn i {
  font-size: 1.15rem;
}

.specialists-section .car-btn--prev {
  left: 6px;
}

.specialists-section .car-btn--next {
  right: 6px;
}

/* ====== Mobile ====== */
@media (max-width: 768px), (max-device-width: 768px) {
  .treatments-header-restore {
    margin-bottom: 2rem;
    padding: 0;
  }

  .treatments-header-restore .treatments-pro-title {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .treatments-header-restore .treatments-pro-desc {
    font-size: 0.98rem;
    line-height: 1.72;
    max-width: 30rem;
  }

  .specialists-section .treatments-swiper {
    padding: 8px 0 44px;
  }

  .specialists-section .card.swiper-slide {
    width: clamp(260px, 78vw, 340px);
  }

  .specialists-section .card img {
    height: 260px;
  }

  .specialists-section .car-btn {
    width: 40px;
    height: 40px;
    top: 42%;
  }
}

.specialists .car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px 0;
  gap: 14px;
}

.specialists .car-counter {
  font-variant-numeric: tabular-nums;
  opacity: .8;
}

.specialists .car-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.specialists .car-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .25);
  background: transparent;
  opacity: .5;
  cursor: pointer;
}

.specialists .car-dot.is-active {
  width: 22px;
  opacity: 1;
}

@media (max-width: 900px) {
  .specialists {
    grid-template-columns: 1fr;
  }

  .specialists .car-viewport {
    padding-inline: 18px;
  }

  .specialists .car-btn {
    display: none;
  }
}
