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

  /* ---- In-page contents bar ---- */
  .svc-bar {
    position: sticky;
    /* Sits directly beneath the sticky site header. */
    top: var(--header-height-compact);
    z-index: var(--z-sticky-bar);
    background-color: var(--color-white);
    border-bottom: var(--border);
    box-shadow: var(--shadow-xs);
  }

  .svc-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-3);
  }

  .svc-toc {
    flex: 1 1 20rem;
    min-width: 0;
  }

  .svc-toc__list {
    display: flex;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
    /* Scrolls horizontally inside its own container rather than
       overflowing the page. */
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .svc-toc__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target);
    padding-inline: var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-color);
  }

  .svc-toc__link:hover {
    background-color: var(--color-teal-100);
    color: var(--color-teal-700);
  }

  .svc-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  /* The contents bar is useful on desktop but eats vertical space on
     phones, where the mobile action bar already carries the CTAs. */
  @media (max-width: 767px) {
    .svc-bar {
      position: static;
    }

    .svc-bar__actions {
      display: none;
    }
  }

  /* ---- Content blocks ---- */
  .svc-prose {
    display: grid;
    gap: var(--space-4);
    max-width: var(--measure);
  }

  .svc-prose p {
    margin: 0;
    color: var(--color-text-muted);
  }

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

  .svc-check {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background-color: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-card);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: var(--leading-body);
  }

  .section--alt .svc-check,
  .svc-check {
    background-color: var(--color-white);
  }

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

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

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

  .svc-step__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-navy);
    border-radius: var(--radius-button);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--weight-bold);
  }

  .svc-step__title {
    margin: 0 0 var(--space-2);
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    color: var(--color-navy);
  }

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

  /* Benefits + timeline two-up */
  .svc-two {
    display: grid;
    gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  }

  @media (min-width: 1000px) {
    .svc-two {
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }

    .svc-two .svc-checks {
      grid-template-columns: 1fr;
    }
  }

  .svc-timeline {
    display: grid;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .svc-timeline__item {
    position: relative;
    display: flex;
    gap: var(--space-4);
    padding-inline-start: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: var(--leading-body);
  }

  .svc-timeline__dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    background-color: var(--color-teal);
    border-radius: var(--radius-pill);
  }

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

  .svc-care__item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background-color: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-card);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: var(--leading-body);
  }

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

  /* FAQ + disclaimer */
  .svc-faq {
    max-width: 56rem;
  }

  .svc-disclaimer {
    display: flex;
    gap: var(--space-3);
    max-width: 56rem;
    margin: var(--space-8) 0 0;
    padding: var(--space-5);
    background-color: var(--color-off-white);
    border: var(--border);
    border-radius: var(--radius-card);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: var(--leading-body);
  }

  .svc-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-teal);
  }

  /* Dentist block */
  .svc-dentist {
    display: grid;
    gap: clamp(2rem, 1.4rem + 3vw, 3.5rem);
    align-items: center;
  }

  @media (min-width: 900px) {
    .svc-dentist {
      grid-template-columns: 0.7fr 1fr;
    }
  }

  .svc-dentist__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }

  .svc-dentist__content {
    display: grid;
    gap: var(--space-3);
    justify-items: start;
  }

  .svc-dentist__cred {
    margin: 0;
    color: var(--color-teal-700);
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--weight-semibold);
  }

  .svc-dentist__text {
    margin: 0;
    max-width: 56ch;
    color: var(--color-text-muted);
  }

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