/* Categories share the existing accordion without adding animation layers. */
.treatment-category { margin: 44px 0 22px; }
.treatment-category:first-child { margin-top: 0; }
.treatment-category h3 {
  color: #65462f; font-size: clamp(25px, 2.4vw, 33px); line-height: 1.2;
  letter-spacing: -.025em;
}
.treatment-category p {
  max-width: 440px; margin-top: 12px; font-size: 13px; line-height: 1.8;
  color: #625f55;
}
.treatment.standalone { margin-top: 36px; margin-bottom: 36px; }
.treatment-category + .treatment { border-top: 1px solid var(--line); }
.treatment button span { min-width: 0; overflow-wrap: break-word; }
.treatment button { font-size: clamp(25px, 2.45vw, 34px); }
.treatment-panel-content > p { max-width: 440px; }
@media (max-width: 650px) {
  .treatment-category { margin-top: 36px; margin-bottom: 18px; }
  .treatment-category h3 { font-size: 27px; }
  .treatment button { font-size: 27px; }
}

/* Keep content mounted so opening, closing and reversing use one transition. */
.treatments { overflow-anchor: none; }
.treatment > .treatment-panel {
  display: grid;
  grid-template-rows: 0fr;
  animation: none;
  translate: none;
  transition: grid-template-rows .44s cubic-bezier(.22, .61, .36, 1);
}
.treatment > .treatment-panel[aria-hidden="false"] { grid-template-rows: 1fr; }
.treatment-panel-inner { min-height: 0; overflow: hidden; }
.treatment-panel-content {
  padding: 20px 18px 8px;
  border: 1px solid #d7c9b6;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fffcf7;
  transform: translateY(-10px);
  transition: transform .44s cubic-bezier(.22, .61, .36, 1);
}
.treatment-panel[aria-hidden="false"] .treatment-panel-content { transform: translateY(0); }
.treatment-panel-content > .service-subtitle { margin-top: 0; }
.treatment button { position: relative; z-index: 1; }
.treatment button[aria-expanded="true"] { border-radius: 12px 12px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .treatment > .treatment-panel, .treatment-panel-content { transition: none; }
  .treatment-panel-content { transform: none; }
}

/* Dedicated, state-specific SVGs. Legacy .icon rotation rules cannot affect them. */
.treatment button .procedure-arrow {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid #d7c9b6;
  border-radius: 50%;
  background: #f2e9dc;
  transform: none;
  opacity: 1;
  transition: background .2s, border-color .2s;
}
.treatment.selected button .procedure-arrow {
  background: #d9bd95;
  border-color: #ae8e66;
}
