/* ==========================================================================
   Service detail pages: shared layout
   ========================================================================== */

/* ---------- Hero ---------- */
.thero { padding-block: 56px 64px; position: relative; overflow: hidden; }
.thero::before {
  content: '';
  position: absolute; top: -320px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255,219,228,.5) 0%, transparent 70%);
  pointer-events: none;
}
.thero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-foreground); }
.crumbs span { opacity: .5; }
.thero h1 { margin-bottom: 18px; }
.thero__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }

/* ---------- Sticky booking rail ---------- */
.rail {
  position: sticky; top: 96px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.rail__price {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--accent-foreground);
}
.rail__from { font-size: 12.5px; color: var(--muted-foreground); font-weight: 500; margin-bottom: 4px; }
.rail__note { font-size: 12.5px; color: var(--muted-foreground); margin-top: 8px; }
.rail__facts { display: grid; gap: 0; margin: 22px 0; }
.rail__fact {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.rail__fact:last-child { border-bottom: none; }
.rail__fact dt { color: var(--muted-foreground); }
.rail__fact dd { font-weight: 600; text-align: right; }
.rail__actions { display: grid; gap: 10px; }
.rail__sub { font-size: 12.5px; color: var(--muted-foreground); text-align: center; margin-top: 12px; }

@media (max-width: 940px) {
  .thero__grid { grid-template-columns: 1fr; gap: 40px; }
  .rail { position: static; }
}

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 18px; font-size: 16.5px; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }

/* ---------- Symptom checklist ---------- */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; list-style: none; }
.check {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 17px 19px;
}
.check__tick {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-foreground);
  display: grid; place-items: center; margin-top: 1px;
}
.check__tick svg { width: 12px; height: 12px; }
.check p { font-size: 14.5px; line-height: 1.5; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step__n {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--accent-foreground);
  background: var(--accent);
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--muted-foreground); line-height: 1.65; max-width: 62ch; }
.step__when {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--primary); margin-top: 10px; display: block;
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Pain / cost split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
}
.panel h3 { margin-bottom: 14px; }
.panel p { font-size: 15px; color: var(--muted-foreground); line-height: 1.65; }
.costs { list-style: none; margin-top: 18px; }
.costs li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.costs li:last-child { border-bottom: none; }
.costs .amount { font-family: var(--font-mono); font-weight: 500; color: var(--accent-foreground); white-space: nowrap; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- Before / after ---------- */
.compare {
  position: relative; aspect-ratio: 16/9;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  cursor: ew-resize; user-select: none; touch-action: pan-y;
  max-width: 780px;
}
.compare__side { position: absolute; inset: 0; }
.compare__before { background: linear-gradient(135deg, #E8DAD3 0%, #DCC9C1 100%); }
.compare__after  { background: linear-gradient(135deg, #FFF0F4 0%, #FFDBE4 100%); clip-path: inset(0 0 0 50%); }
.compare__side span {
  position: absolute; top: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.9); color: var(--foreground);
  padding: 5px 11px; border-radius: 30px; box-shadow: var(--shadow-xs);
}
.compare__before span { left: 16px; }
.compare__after span { right: 16px; color: var(--accent-foreground); }
.compare__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: #BFA79E;
  text-align: center; padding: 0 20px;
}
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff; transform: translateX(-50%);
  pointer-events: none; box-shadow: 0 0 0 1px rgba(92,75,67,.12);
}
.compare__handle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-md);
  background-image: linear-gradient(90deg, transparent 45%, var(--primary) 45%, var(--primary) 47%, transparent 47%, transparent 53%, var(--primary) 53%, var(--primary) 55%, transparent 55%);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__range:focus-visible + .compare__handle { box-shadow: 0 0 0 3px var(--ring); }
.compare__caption { margin-top: 14px; font-size: 14px; color: var(--muted-foreground); }

/* ---------- Accordion ---------- */
.ac { max-width: 76ch; }
.ac__item { border-bottom: 1px solid var(--border); }
.ac__trigger {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.35;
  transition: color .2s ease;
}
.ac__trigger:hover { color: var(--accent-foreground); }
.ac__icon {
  margin-left: auto; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--muted); color: var(--accent-foreground);
  display: grid; place-items: center;
  transition: transform .28s ease, background .2s ease;
}
.ac__icon svg { width: 15px; height: 15px; }
.ac__item.is-open .ac__icon { transform: rotate(45deg); background: var(--accent); }
.ac__body { max-height: 0; overflow: hidden; transition: max-height .32s cubic-bezier(.22,.61,.36,1); }
.ac__body p { padding-bottom: 22px; font-size: 15.5px; line-height: 1.7; color: var(--muted-foreground); max-width: 66ch; }

/* ---------- Related ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 15px; padding: 22px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rel:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.rel__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.rel h3 { margin: 5px 0 7px; }
.rel p { font-size: 14px; color: var(--muted-foreground); }
.rel__price { font-family: var(--font-mono); font-size: 13px; color: var(--accent-foreground); margin-top: 12px; display: block; }

/* ---------- Final CTA band ---------- */
.band {
  background: linear-gradient(150deg, #FFF0F4 0%, #FFE4EC 100%);
  border: 1px solid #FFD0DE;
  border-radius: 22px; padding: 52px 44px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center;
}
.band h2 { margin-bottom: 12px; }
.band__form { display: grid; gap: 13px; }
[data-form-status] { font-size: 13.5px; min-height: 20px; }
[data-form-status][data-state="ok"] { color: #3F7A57; }
[data-form-status][data-state="error"] { color: var(--destructive); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; gap: 30px; padding: 38px 26px; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .rail { position: static; }
  .compare, .ac__body, .rel, .panel {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
