/* ==========================================================================
   Service page — Design 4.
   Loaded alongside home.css, which supplies the shared blocks this page
   reuses (.faq4, .post4, .step4-n). Only what is specific to a procedure
   page lives here.
   ========================================================================== */

/* ---------------- hero ---------------- */
.svch { padding: 26px 0 0; }
.svch-panel {
  background: var(--brand-soft); border-radius: var(--r-xl);
  padding: 44px 52px 52px; position: relative; overflow: hidden;
}
@media (max-width: 991.98px) { .svch-panel { padding: 30px 24px 36px; } }

.svch-crumb {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--body); margin-bottom: 1.6rem;
}
.svch-crumb a { color: var(--brand-dk); font-weight: 600; }
.svch-crumb i { font-size: .62rem; color: var(--brand); }

.svch h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.14; margin-bottom: 1rem; }
.svch-lead { font-size: 1rem; }
.svch-lead p { margin-bottom: .8rem; }

.svch-review {
  display: inline-flex; align-items: flex-start; gap: .55rem;
  background: #fff; border: 1px solid var(--brand-line); border-radius: var(--r-md);
  padding: .7rem 1rem; font-size: .8rem; color: var(--ink-2); margin: .4rem 0 1.4rem;
}
.svch-review i { color: var(--brand); margin-top: .18rem; }

.svch-btns { display: flex; flex-wrap: wrap; gap: .7rem; }

/* The procedure images are a matched set at 370x320, so the frame is cut to
   that shape and nothing is cropped away. */
.svch-figure { border-radius: var(--r-lg); overflow: hidden; background: var(--brand-soft); }
.svch-figure img { width: 100%; aspect-ratio: 37 / 32; object-fit: cover; }
@media (max-width: 991.98px) { .svch-figure img { aspect-ratio: 16 / 10; } }

/* ---------------- long-form body ---------------- */
.svc-body { font-size: .95rem; }
.svc-body h3 {
  font-size: 1.25rem; margin: 2.2rem 0 .9rem; scroll-margin-top: 92px;
}
.svc-body h3:first-child { margin-top: 0; }
.svc-body h4 { font-size: 1rem; color: var(--brand-dk); margin: 1.4rem 0 .6rem; scroll-margin-top: 92px; }
.svc-body p { margin-bottom: 1rem; }
/* The markers are drawn with counters below, so the native ones must be
   switched off — the global reset only covers ul, not ol. */
.svc-body ul, .svc-body ol {
  margin: 0 0 1.2rem; padding-left: 0; display: grid; gap: .55rem; list-style: none;
}
.svc-body li { position: relative; padding-left: 1.6rem; font-size: .92rem; }
.svc-body ul li::before {
  content: ""; position: absolute; left: .35rem; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.svc-body ol { counter-reset: svcol; }
.svc-body ol li { counter-increment: svcol; }
.svc-body ol li::before {
  content: counter(svcol) "."; position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 700; color: var(--brand-dk); font-size: .85rem;
}
.svc-body img { border-radius: var(--r-md); margin: 1rem 0; }
.svc-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .9rem; }
.svc-body th, .svc-body td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.svc-body th { font-family: var(--display); color: var(--ink); background: var(--brand-soft); }

/* ---------------- main column rhythm ---------------- */
/* Everything after the hero shares one row with the sidebar, so the blocks
   space themselves rather than each being its own full-width section. */
.svc-main { padding-top: 56px; }
.svc-main .sec-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* Inside the narrower column the steps read better stacked */
.svc-main .svc-steps-list { grid-template-columns: 1fr; }
.svc-steps { padding: 34px 32px; }
@media (max-width: 575.98px) { .svc-steps { padding: 26px 20px; } }

.svc-related ul { display: grid; gap: .6rem; }
.svc-related li { position: relative; padding-left: 1.4rem; font-size: .92rem; }
.svc-related li::before {
  content: "\f0f6"; font-family: "Font Awesome 6 Free"; font-weight: 400;
  position: absolute; left: 0; top: .1em; color: var(--brand); font-size: .82rem;
}

.svc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }

/* ---------------- sidebar ---------------- */
/* Not sticky: with every procedure listed, the aside is taller than the
   viewport, and pinning its top would put the lower half out of reach. */
.svc-aside { display: grid; gap: 1rem; align-content: start; }

.sb-title {
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dk);
  margin: 0 0 .9rem;
}

.sb-doc {
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--r-lg); padding: 24px 22px; text-align: center;
}
.sb-doc img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top;
  border-radius: var(--r-md); margin-bottom: 1rem; background: #fff;
}
.sb-doc b { font-family: var(--display); font-size: 1.02rem; color: var(--ink); display: block; margin-bottom: .5rem; }
.sb-doc p { font-size: .82rem; line-height: 1.75; margin-bottom: .9rem; text-align: left; }
.sb-doc-more {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-size: .8rem; font-weight: 600; color: var(--brand-dk);
}
.sb-doc-more i { font-size: .7em; transition: transform .3s var(--ease); }
.sb-doc-more:hover i { transform: translateX(3px); }

.sb-nav, .sb-blogs {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px;
}

.sb-nav-group { border-bottom: 1px solid var(--line); }
.sb-nav-group:last-of-type { border-bottom: 0; }
.sb-nav-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem;
  padding: .7rem 0; font-family: var(--display); font-size: .88rem; font-weight: 600; color: var(--ink);
}
.sb-nav-group > summary::-webkit-details-marker { display: none; }
.sb-nav-group > summary i { margin-left: auto; font-size: .7rem; color: var(--brand); transition: transform .3s var(--ease); }
.sb-nav-group[open] > summary i { transform: rotate(180deg); }
.sb-nav-group ul { display: grid; gap: .1rem; padding: 0 0 .7rem; }
.sb-nav-group li a {
  display: block; font-size: .83rem; color: var(--body);
  padding: .4rem .7rem; border-radius: 8px;
}
.sb-nav-group li a:hover { background: var(--brand-soft); color: var(--brand-dk); }
.sb-nav-group li a.current { background: var(--brand); color: #fff; font-weight: 600; }

.sb-nav-solo {
  display: block; padding: .7rem 0; border-top: 1px solid var(--line);
  font-family: var(--display); font-size: .88rem; font-weight: 600; color: var(--ink);
}
.sb-nav-solo:hover { color: var(--brand-dk); }
.sb-nav-solo.current { color: var(--brand-dk); }

.sb-blogs ul { display: grid; gap: .9rem; }
.sb-blogs li a {
  display: block; font-family: var(--display); font-size: .85rem;
  font-weight: 600; line-height: 1.45; color: var(--ink);
}
.sb-blogs li a:hover { color: var(--brand-dk); }
.sb-blogs li span { display: block; font-size: .74rem; color: var(--body); margin-top: .2rem; }

/* The h2 sections of the article, so they carry the same rhythm as the h3s */
.svc-body h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin: 2.4rem 0 1rem; scroll-margin-top: 92px;
}
.svc-body h2:first-child { margin-top: 0; }
.svc-body strong { color: var(--ink); font-weight: 600; }
.svc-body a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- before/after gallery ---------------- */
.svc-gallery { margin-top: 2.6rem; }
.svc-gallery h2 {
  font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin: 0 0 1.1rem;
}

.svc-gal-main { border-radius: var(--r-lg); overflow: hidden; background: var(--brand-soft); }
/* The photographs are a mixed set of sizes, so the frame holds one ratio and
   fits each image inside it rather than cropping a face out of shot. */
.svc-gal-main .carousel-item img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: contain; background: var(--brand-soft);
}
.svc-gal-main .carousel-control-prev,
.svc-gal-main .carousel-control-next {
  width: 46px; height: 46px; top: 50%; transform: translateY(-50%); opacity: 1;
  background: #fff; color: var(--ink); border-radius: 50%;
  box-shadow: 0 8px 22px rgba(26,20,8,.18);
  display: grid; place-items: center;
}
.svc-gal-main .carousel-control-prev { left: 14px; }
.svc-gal-main .carousel-control-next { right: 14px; }
.svc-gal-main .carousel-control-prev:hover,
.svc-gal-main .carousel-control-next:hover { background: var(--brand); color: #fff; }

.svc-gal-thumbs {
  display: flex; gap: .55rem; margin-top: .7rem;
  overflow-x: auto; scrollbar-width: thin; padding-bottom: .3rem;
}
.svc-gal-thumbs button {
  flex: 0 0 auto; width: 92px; padding: 0; border: 2px solid transparent;
  border-radius: 10px; overflow: hidden; background: var(--brand-soft); cursor: pointer;
  transition: border-color .3s var(--ease);
}
.svc-gal-thumbs button img { width: 100%; aspect-ratio: 16 / 11; object-fit: contain; display: block; }
.svc-gal-thumbs button:hover { border-color: var(--brand-line); }
.svc-gal-thumbs button.active { border-color: var(--brand); }

.svc-gal-note { font-size: .78rem; color: var(--body); font-style: italic; margin: .8rem 0 0; }

/* Wide tables scroll inside their own box instead of widening the page */
.svc-table { overflow-x: auto; margin: 0 0 1.4rem; -webkit-overflow-scrolling: touch; }
.svc-table table { margin-bottom: 0; min-width: 420px; }

/* FAQs set to show every answer: no toggling, so the control reads as a
   heading rather than a button. */
.faq4-all .faq4-q { cursor: default; }
.faq4-all .faq4-item { border-color: var(--line); }
.faq4-all .faq4-item.open .faq4-q { background: var(--brand-soft); color: var(--ink); }
.faq4-all .faq4-item.open .faq4-q i { color: var(--brand); transform: none; }
.faq4-all .faq4-a { max-height: none !important; }

/* ---------------- on this page ---------------- */
.svc-toc {
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--r-md); padding: 6px 8px; margin-bottom: 2rem;
}
.svc-toc-head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: .6rem; padding: 12px 14px;
  font-family: var(--display); font-size: .86rem; font-weight: 700; color: var(--ink);
}
.svc-toc-head > i:first-child { color: var(--brand); }
.svc-toc-caret { margin-left: auto; font-size: .72rem; color: var(--brand-dk); transition: transform .3s var(--ease); }
.svc-toc-head[aria-expanded="false"] .svc-toc-caret { transform: rotate(-90deg); }
.svc-toc-list { padding: 0 14px 12px; margin: 0; display: grid; gap: .45rem; list-style: none; counter-reset: toc; }
.svc-toc-list li { font-size: .85rem; position: relative; padding-left: 1.5rem; }
/* Only the top level is numbered — counting the sub-sections too made the
   numbers jump. Sub-sections indent and take a dash instead. */
.svc-toc-list li.lvl-h2 { counter-increment: toc; }
.svc-toc-list li.lvl-h2::before {
  content: counter(toc) "."; position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 700; color: var(--brand-dk); font-size: .78rem;
}
.svc-toc-list li.lvl-h3 { padding-left: 2.4rem; }
.svc-toc-list li.lvl-h4 { padding-left: 3.2rem; }
.svc-toc-list li.lvl-h3::before, .svc-toc-list li.lvl-h4::before {
  content: "–"; position: absolute; left: 1.5rem; top: 0; color: var(--brand);
}
.svc-toc-list li.lvl-h4::before { left: 2.3rem; }
.svc-toc-list a { color: var(--ink-2); }
.svc-toc-list a:hover { color: var(--brand-dk); }

/* ---------------- sub-page cards ---------------- */
.svc-cards { margin-top: 2.4rem; }
.svc-cards h2 {
  font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin: 0 0 1.2rem;
}
/* The hub images are square symbols; the card media box follows them so they
   are not cropped. */
.svc-cards .svc4-media { aspect-ratio: 37 / 32; background: #fff; }
.svc-cards .svc4-media img { object-fit: contain; padding: 14px; }

/* ---------------- patient reviews ---------------- */
.svc-reviews { margin-top: 2.6rem; }
.svc-reviews h2 {
  font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 0 0 .6rem;
}
.svc-reviews-note { font-size: .82rem; color: var(--body); font-style: italic; margin-bottom: 1.3rem; }

/* The review date sits quietly beside the reviewer's name. */
.svch-review-date { color: var(--body); font-weight: 400; }
