/* Treatments and team content adapted from the clinic's reference website. */
.treatments-section {
  background: #FFFFFF;
}

.clinic-team-section {
  background: #E8F3EE;
  padding: clamp(64px, 7vw, 96px) 0;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.treatment-card {
  min-width: 0;
  border: 1px solid rgba(18, 140, 126, 0.18);
  border-radius: 18px;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(18, 75, 62, 0.05);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.treatment-card:hover,
.treatment-card[open] {
  border-color: rgba(18, 140, 126, 0.5);
  box-shadow: 0 8px 24px rgba(18, 75, 62, 0.09);
}

.treatment-card > summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.treatment-card > summary::-webkit-details-marker {
  display: none;
}

.treatment-card > summary:focus-visible {
  outline: 3px solid #128C7E;
  outline-offset: -4px;
  border-radius: 16px;
}

.treatment-card > summary > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.treatment-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 8px;
}

.treatment-card-title {
  min-height: 2.7em;
  color: #173C35;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.treatment-card-heading > i {
  color: #128C7E;
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1.1;
  transition: transform 200ms ease;
}

.treatment-card[open] .treatment-card-heading > i {
  transform: rotate(45deg);
}

.treatment-card-hint {
  display: block;
  padding: 0 18px 18px;
  color: #128C7E;
  font-size: 14px;
  line-height: 1.4;
}

.treatment-hint-open,
.treatment-card[open] .treatment-hint-closed {
  display: none;
}

.treatment-card[open] .treatment-hint-open {
  display: inline;
}

.treatment-card-description {
  padding: 18px;
  border-top: 1px solid rgba(18, 140, 126, 0.14);
  background: #F5FAF7;
  color: #45665E;
  font-size: 16px;
  line-height: 1.6;
}

.treatments-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.clinic-whatsapp-cta {
  gap: 8px;
  white-space: normal;
  text-align: center;
}

.clinic-whatsapp-cta > i {
  flex-shrink: 0;
  font-size: 20px;
}

.clinic-team-header .section-title {
  color: #128C7E;
}

.clinic-team-header .section-subtitle {
  max-width: 620px;
  color: #49665E;
}

.clinic-team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.clinic-team-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(18, 140, 126, 0.16);
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 12px 36px rgba(18, 75, 62, 0.08);
}

.clinic-team-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.clinic-team-copy .section-title {
  margin-bottom: 8px;
  color: #128C7E;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
}

.clinic-team-role {
  margin-bottom: 20px;
  color: #195C50;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.clinic-team-bio {
  margin-bottom: 16px;
  color: #45665E;
  font-size: 16px;
  line-height: 1.65;
}

.clinic-team-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}

.clinic-team-focus > span {
  padding: 7px 12px;
  border: 1px solid rgba(18, 140, 126, 0.2);
  border-radius: 999px;
  background: rgba(18, 140, 126, 0.06);
  color: #176F60;
  font-size: 14px;
  line-height: 1.4;
}

.clinic-team-copy .clinic-whatsapp-cta {
  width: 100%;
  margin-top: auto;
  min-height: 48px;
}

.clinic-team-portrait {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #E8F3EE;
}

.clinic-team-portrait > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 1000px) {
  .treatments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .treatments-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .treatment-card > summary {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 4px 16px;
    padding: 14px;
  }

  .treatment-card > summary > img {
    grid-row: 1 / span 2;
    width: 76px;
    height: 76px;
    aspect-ratio: 1;
    border-radius: 10px;
  }

  .treatment-card-heading {
    align-self: end;
    align-items: center;
    gap: 8px;
    padding: 0;
  }

  .treatment-card-title {
    min-height: 0;
    font-size: 1rem;
  }

  .treatment-card-hint {
    align-self: start;
    padding: 0;
    font-size: 0.875rem;
  }

  .treatment-card-description {
    padding: 18px;
  }

  .treatments-action {
    margin-top: 24px;
  }

  .clinic-team-section {
    padding: 48px 0;
  }

  .clinic-team-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .clinic-team-card {
    padding: 24px 20px;
    gap: 24px;
    border-radius: 20px;
  }

  .clinic-team-role {
    margin-bottom: 16px;
  }

  .clinic-team-focus {
    margin: 20px 0 24px;
  }

  .clinic-team-portrait {
    max-width: 280px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    border-radius: 16px;
  }

  .clinic-team-portrait > img {
    object-fit: cover;
    object-position: center top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .treatment-card,
  .treatment-card-heading > i {
    transition: none;
  }
}
