/* =========================================================================
   Dentora — Styles for this page only.
   Loaded after css/ui.css by the page that uses it.
   ========================================================================= */

  .svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .svc-grid__item {
    display: flex;
  }

  .svc-grid__item > * {
    width: 100%;
  }

  @media (min-width: 1100px) {
    .svc-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* ---- What every treatment includes ---- */

  .inc {
    display: grid;
    gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
    align-items: center;
  }

  @media (min-width: 900px) {
    .inc {
      grid-template-columns: 0.85fr 1fr;
    }
  }

  .inc__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .inc__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
  }

  .inc__content {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
  }

  .inc__content .sh {
    margin-block-end: 0;
  }

  .inc__list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .inc__item {
    display: flex;
    gap: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: var(--leading-body);
  }

  .inc__mark {
    flex-shrink: 0;
    display: inline-flex;
    margin-top: 1px;
    color: var(--color-teal);
  }

  .inc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-block-start: var(--space-2);
  }

  /* ---- Planning steps ---- */

  .steps {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .step {
    position: relative;
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background-color: var(--color-off-white);
    border: var(--border);
    border-radius: var(--radius-card);
  }

  .step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--color-white);
    background-color: var(--color-navy);
    border-radius: var(--radius-button);
  }

  .step__title {
    margin: 0 0 var(--space-2);
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    color: var(--color-navy);
    /* Leaves room for the number in the corner. */
    padding-inline-end: var(--space-8);
  }

  .step__text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: var(--leading-body);
  }

  .step__num {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
  }

  .steps__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    margin-block-start: var(--space-8);
    padding: var(--space-6) var(--space-7);
    background-color: var(--color-off-white);
    border: var(--border);
    border-radius: var(--radius-card);
  }

  .steps__note-text {
    margin: 0;
    flex: 1 1 24rem;
    max-width: 62ch;
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: var(--leading-body);
  }

  /* ---- How appointments are run ---- */

  .run {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: var(--section-y);
    background-color: var(--color-navy);
  }

  .run__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
  }

  .run__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
  }

  /* Heavy scrim: white cards sit on top, so the photograph has to drop
     well back for their edges and shadows to still read. */
  .run__scrim {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgba(9, 26, 41, 0.9) 0%,
        rgba(9, 26, 41, 0.84) 45%,
        rgba(9, 26, 41, 0.9) 100%
      ),
      rgba(9, 26, 41, 0.35);
  }

  .run__flag {
    z-index: 2;
  }

  .run__inner {
    position: relative;
  }

  .run__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  @media (min-width: 1100px) {
    .run__grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .run__card {
    display: grid;
    gap: var(--space-3);
    align-content: start;
    padding: var(--space-6);
    background-color: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-card);
  }

  .run__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-block-end: var(--space-1);
    color: var(--color-teal-700);
    background-color: var(--color-teal-100);
    border-radius: var(--radius-button);
  }

  .run__title {
    margin: 0;
    font-size: var(--text-body-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-navy);
    letter-spacing: -0.01em;
  }

  .run__text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: var(--leading-body);
  }

  /* ---- Treatment questions ---- */

  .sfaq {
    display: grid;
    gap: clamp(2rem, 1.4rem + 3vw, 3.5rem);
    align-items: start;
  }

  @media (min-width: 1000px) {
    .sfaq {
      grid-template-columns: 0.8fr 1.2fr;
      gap: var(--space-12);
    }

    /* The intro holds while a long accordion scrolls past it. */
    .sfaq__intro {
      position: sticky;
      top: calc(var(--header-height) + var(--space-6));
    }
  }

  .sfaq__intro {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
  }

  .sfaq__intro .sh {
    margin-block-end: 0;
  }
