/* Ortodont — Figma 247:8685 */

/* ——— Hero 247:8686 ——— */
.sm-orto-hero {
  position: relative;
  min-height: 854px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #d6d6d6;
  color: var(--sm-grey-900);
}

.sm-orto-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sm-orto-hero__bg picture {
  display: contents;
}

/* Pre-cropped to Figma frame 348:9270 — fill hero, no extra shift */
.sm-orto-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.sm-orto-hero__fade {
  position: absolute;
  z-index: 1;
  left: -6px;
  top: 0;
  width: min(871px, 60.5%);
  height: 100%;
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255, 255, 255, 0.8) 28.78%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.sm-orto-hero .sm-container {
  position: relative;
  z-index: 2;
}

.sm-orto-hero__content {
  position: relative;
  z-index: 2;
  max-width: 616px;
  padding: 266px 0 221px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.sm-orto-hero__title {
  margin: 0;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--sm-grey-900);
}

.sm-orto-hero__text {
  margin: 0;
  font-family: var(--sm-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--sm-grey-700);
  max-width: 616px;
}

.sm-orto-hero__actions {
  display: flex;
  gap: 12px;
}

/* ——— Prevent 247:8695 ——— */
.sm-orto-prevent {
  padding: 102px 0;
  background: #fff;
}

.sm-orto-prevent__grid {
  display: grid;
  grid-template-columns: minmax(0, 532px) minmax(0, 616px);
  gap: clamp(32px, 6vw, 132px);
  align-items: center;
  justify-content: space-between;
}

.sm-orto-prevent__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 532 / 411;
  background: var(--sm-main-100);
}

.sm-orto-prevent__media picture {
  display: contents;
}

.sm-orto-prevent__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-orto-prevent__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.sm-orto-prevent__title {
  margin: 0;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 52px;
  color: var(--sm-grey-900);
}

.sm-orto-prevent__text {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

/* ——— Teamwork 247:8714 ——— */
.sm-orto-team {
  padding: 102px 0;
  background-image: linear-gradient(94deg, #fefefe 0%, #f6f7f7 100%);
}

.sm-orto-team__grid {
  display: grid;
  grid-template-columns: minmax(0, 655px) minmax(0, 561px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  justify-content: space-between;
}

.sm-orto-team__intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sm-orto-team__title {
  margin: 0;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 52px;
  color: var(--sm-grey-900);
}

.sm-orto-team__text {
  margin: 0;
  max-width: 582px;
  font-size: 16px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

.sm-orto-team__side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sm-orto-team__side-title {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

.sm-orto-team__spark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.sm-orto-team__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}

.sm-orto-team__pill {
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 20px;
  color: var(--sm-grey-800);
  max-width: 100%;
}

.sm-orto-team__pill--yellow {
  background: #fff1a4;
}

.sm-orto-team__pill--mint {
  background: #cbece1;
}

.sm-orto-team__pill--orange {
  background: #ffd6b8;
}

.sm-orto-team__pill--blue {
  background: #d6eef8;
}

/* ——— Methods 320:14594 ——— */
.sm-orto-methods {
  padding: 64px 0 102px;
  background: #fff;
}

.sm-orto-methods__title {
  margin: 0 0 24px;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 52px;
  color: var(--sm-grey-900);
}

.sm-orto-methods__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}

.sm-orto-methods__card {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 212px;
  padding: 16px;
  border: 1px solid var(--sm-main-900-a10);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(37, 37, 37, 0.1);
  background: #fff;
  overflow: hidden;
}

.sm-orto-methods__thumb {
  position: relative;
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sm-main-900-a10);
  background: var(--sm-main-100);
}

.sm-orto-methods__thumb picture {
  display: contents;
}

.sm-orto-methods__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-orto-methods__copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.sm-orto-methods__card-title {
  margin: 0;
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: var(--sm-grey-900);
}

.sm-orto-methods__card-text {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

/* ——— Before / After 247:8707 ——— */
.sm-orto-ba {
  padding: 102px 0;
  background: #fff;
}

.sm-orto-ba__head {
  max-width: 616px;
  margin: 0 auto 52px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.sm-orto-ba__eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

.sm-orto-ba__spark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.sm-orto-ba__title {
  margin: 0;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 52px;
  color: var(--sm-grey-900);
}

.sm-orto-ba__carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
}

.sm-orto-ba__track-wrap {
  flex: 1 1 auto;
  max-width: 1078px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.sm-orto-ba__track {
  width: 100%;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.sm-orto-ba__track::-webkit-scrollbar {
  display: none;
}

.sm-orto-ba__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.sm-orto-ba__pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
  align-items: center;
  justify-items: center;
  padding: 12px 8px 24px;
}

.sm-orto-ba__photo {
  margin: 0;
  position: relative;
  width: min(532px, 100%);
  aspect-ratio: 532 / 411;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(125, 125, 125, 0.1);
  background: var(--sm-main-100);
}

.sm-orto-ba__photo--before {
  transform: rotate(-2.64deg);
  z-index: 1;
}

.sm-orto-ba__photo--after {
  transform: rotate(7.16deg);
  z-index: 2;
  margin-left: -40px;
}

.sm-orto-ba__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--sm-grey-700);
  pointer-events: none;
}

.sm-orto-ba__photo--after .sm-orto-ba__tag {
  left: auto;
  right: 12px;
  background: #ffeb79;
  color: var(--sm-grey-900);
}

.sm-orto-ba__photo picture {
  display: contents;
}

.sm-orto-ba__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-orto-ba__nav {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #ffeb79;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(37, 37, 37, 0.12);
}

.sm-orto-ba__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.sm-orto-ba__nav-icon {
  display: flex;
  width: 10px;
  height: 16px;
  color: var(--sm-grey-800);
}

.sm-orto-ba__nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sm-orto-ba__nav--prev .sm-orto-ba__nav-icon {
  transform: rotate(180deg);
}

.sm-orto-ba__progress {
  width: 142px;
  height: 8px;
  border-radius: 16px;
  background: rgba(66, 119, 132, 0.1);
  overflow: hidden;
  position: relative;
}

.sm-orto-ba__progress-bar {
  width: 40px;
  height: 100%;
  border-radius: 16px;
  background: var(--sm-grey-500, #757879);
  transition: transform 0.35s ease;
  will-change: transform;
}

/* ——— FAQ 432:8886 ——— */
/* Mint panel; family cutout left (Figma ≈878×820); accordion right */
.sm-section.sm-orto-faq {
  padding: 80px 0 102px;
  background: #fafafa;
  overflow: visible;
}

.sm-orto-faq__panel {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 712px;
  width: 100%;
  overflow: visible;
  background-image: linear-gradient(
    94.87deg,
    var(--sm-main-100) 0%,
    var(--sm-main-300) 100%
  );
}

/* Figma 432:8901 — cutout bottom-flush, natural aspect (contain) */
.sm-orto-faq__media {
  position: absolute;
  left: var(--sm-pad);
  bottom: 0;
  top: 0;
  width: min(640px, 46%);
  z-index: 1;
  pointer-events: none;
  background: transparent;
  overflow: visible;
}

.sm-orto-faq__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.sm-orto-faq__img,
.sm-orto-faq__media img {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  object-fit: contain !important;
  object-position: left bottom !important;
}

.sm-orto-faq__content {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  width: min(720px, 50%);
  margin-right: var(--sm-pad);
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.sm-orto-faq__title {
  margin: 0;
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 20px;
  color: var(--sm-grey-700);
}

.sm-orto-faq .sm-accordion {
  width: 100%;
}

.sm-orto-faq .sm-accordion__item {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(243, 243, 243, 0.3);
  border-radius: 16px;
  box-shadow: none;
}

.sm-orto-faq .sm-accordion__item.is-open {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #cffffb;
  box-shadow: 0 4px 6px rgba(43, 54, 55, 0.1);
}

.sm-orto-faq .sm-accordion__trigger {
  padding: 24px 16px;
}

.sm-orto-faq .sm-accordion__panel {
  padding: 0 16px 24px;
  color: var(--sm-grey-600);
}

@media (max-width: 1100px) {
  .sm-orto-prevent__grid,
  .sm-orto-team__grid,
  .sm-orto-methods__grid {
    grid-template-columns: 1fr;
  }

  .sm-orto-hero {
    min-height: 0;
  }

  .sm-orto-hero__content {
    padding: 140px 0 64px;
    max-width: 100%;
  }

  .sm-orto-hero__fade {
    width: 85%;
  }

  .sm-orto-ba__carousel {
    flex-direction: column;
    gap: 16px;
  }

  .sm-orto-ba__pair {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
  }

  .sm-orto-ba__photo--after {
    margin-left: 0;
  }

  .sm-orto-ba__nav {
    position: absolute;
    top: 42%;
    z-index: 4;
    display: flex;
  }

  .sm-orto-ba__nav--prev {
    left: 0;
  }

  .sm-orto-ba__nav--next {
    right: 0;
  }

  .sm-orto-faq__panel {
    flex-direction: column;
    min-height: 0;
  }

  .sm-orto-faq__media {
    position: relative;
    left: auto;
    width: 100%;
    height: 420px;
    min-height: 420px;
  }

  .sm-orto-faq__content {
    width: 100%;
    margin-right: 0;
    padding: 24px var(--sm-pad) 40px;
  }

  .sm-orto-methods__card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Ortodont mobile 390 — Figma 498:11841 */
@media (max-width: 430px) {
  .sm-orto-hero {
    min-height: 832px;
    display: flex;
    align-items: flex-end;
  }

  .sm-orto-hero__fade {
    width: 100%;
    left: 0;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.45) 40%,
      #fff 68%
    );
  }

  .sm-orto-hero__content {
    padding: 120px 0 48px;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .sm-orto-hero__title {
    font-size: 40px;
    line-height: 38px;
  }

  .sm-orto-hero__text {
    font-size: 16px;
    text-align: center;
  }

  .sm-orto-hero__content .sm-btn {
    width: 100%;
    justify-content: center;
  }

  .sm-orto-prevent,
  .sm-orto-team,
  .sm-orto-methods,
  .sm-orto-ba,
  .sm-orto-faq {
    padding: 48px 0;
  }

  .sm-orto-prevent__title,
  .sm-orto-team__title,
  .sm-orto-methods__title,
  .sm-orto-ba__title,
  .sm-orto-faq__title {
    font-size: 32px;
    line-height: 38px;
    text-align: center;
  }

  .sm-orto-prevent__head .sm-eyebrow,
  .sm-orto-team__head .sm-eyebrow,
  .sm-orto-methods__head .sm-eyebrow,
  .sm-orto-ba__head .sm-eyebrow {
    justify-content: center;
  }

  .sm-orto-prevent__head,
  .sm-orto-team__head,
  .sm-orto-methods__head,
  .sm-orto-ba__head {
    text-align: center;
  }

  .sm-orto-prevent .sm-btn,
  .sm-orto-team .sm-btn {
    width: 100%;
    justify-content: center;
  }

  .sm-orto-faq__media {
    height: 280px;
    min-height: 280px;
  }

  .sm-orto-faq__content {
    padding: 24px 16px 40px;
  }
}
