/* Service page template (T1) — built from _src/services.js.
   Sections: page hero → feature (what it is + benefits, layout ref: den-tora about-v1
   "Features Section": statement and items left, tall image right) → options (numbered
   editorial rows, same grammar as the home services index) → one real before/after
   case → FAQ (native <details>) → related treatments → CTA. */

/* ---------- feature ---------- */
.sfeat__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
  gap: 48px clamp(40px, 6vw, 112px);
  align-items: start;
}
.sfeat__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.sfeat__copy { display: flex; flex-direction: column; gap: 22px; padding-top: 24px; border-top: 1px solid var(--line); }
.sfeat__copy .rd-h2 { max-width: 20ch; }
.sfeat__text { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.sfeat__text p { margin: 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); }
.sfeat__media {
  position: sticky;
  top: 112px;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sand);
}
.sfeat__media img { width: 100%; height: 100%; object-fit: cover; }

.sben { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.sben li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.sben li::before {
  content: "";
  grid-row: span 2;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  background: var(--gold-ink);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.sben strong { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink-strong); }
.sben span { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- options ---------- */
.sopts { background: var(--sand); }
.sopts__list { margin: 0; padding: 0; list-style: none; counter-reset: opt; }
.sopts__item {
  display: grid;
  grid-template-columns: 72px minmax(0, .9fr) minmax(0, 1.2fr);
  gap: 12px 40px;
  padding: 30px 0;
  border-top: 1px solid rgba(11, 41, 93, .14);
  counter-increment: opt;
}
.sopts__item:last-child { border-bottom: 1px solid rgba(11, 41, 93, .14); }
.sopts__item::before { content: "0" counter(opt); font: 300 22px/1.3 var(--font-display); color: var(--gold-deep); }
.sopts__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}
.sopts__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- one real case ---------- */
.sba__case { display: grid; max-width: 980px; }
.sba .ba-case__body { padding: clamp(22px, 2.6vw, 32px); }
.sba .ba-case { position: static; }

/* ---------- FAQ ---------- */
.sfaq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 32px clamp(40px, 6vw, 112px);
  align-items: start;
}
.sfaq__head { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 20px; }
.sfaq__list { border-bottom: 1px solid var(--line); }
.sfaq details { border-top: 1px solid var(--line); }
.sfaq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font: 500 clamp(17px, 1.3vw, 20px)/1.4 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
.sfaq summary::-webkit-details-marker { display: none; }
.sfaq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .25s cubic-bezier(.23, 1, .32, 1);
}
.sfaq details[open] summary::after { transform: rotate(45deg); }
.sfaq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.sfaq__answer { padding: 0 48px 26px 0; }
.sfaq__answer p { margin: 0; max-width: 64ch; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.sfaq__answer p + p { margin-top: 12px; }

/* ---------- related ---------- */
.srel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.srel-card { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.srel-card__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--sand); }
.srel-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.srel-card__cat { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.srel-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}
.srel-card__name svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) {
  .srel-card:hover .srel-card__img img { transform: scale(1.03); }
  .srel-card:hover .srel-card__name svg { transform: translateX(4px); }
}
.srel-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: var(--r-md); }

@media (max-width: 1023.98px) {
  .sfeat__grid, .sfaq__grid { grid-template-columns: 1fr; }
  .sfeat__media { position: static; aspect-ratio: 4 / 3; }
  .sfaq__head { position: static; }
  .sopts__item { grid-template-columns: 56px 1fr; }
  .sopts__text { grid-column: 2; }
}
@media (max-width: 767.98px) {
  .sben { grid-template-columns: 1fr; }
  .srel__grid { grid-template-columns: 1fr; }
  .sopts__item { grid-template-columns: 40px 1fr; gap: 8px 12px; padding: 24px 0; }
  .sopts__item::before { font-size: 18px; }
  .sfaq__answer { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .srel-card__img img, .srel-card__name svg, .sfaq summary::after { transition: none; }
}

/* links inside intros read as text links, not browser blue */
.sfaq__head .sec-intro a { color: var(--ink-strong); text-decoration: underline; text-decoration-color: rgba(11, 41, 93, .3); text-underline-offset: 3px; }
@media (hover: hover) { .sfaq__head .sec-intro a:hover { text-decoration-color: currentColor; } }
