/* ============================================================
   ACCLAMATIONS (option 2) — Ritovex "Your Needs, Our Expertise"
   service-list pattern, LIGHT theme.

   A numbered list of awards. Each row is a large title with a
   corner arrow; on hover the row becomes active (title turns
   accent, description slides open, arrow fills) and a framed
   image appears anchored to that row (fixed spot on the right,
   vertically centred on the row — not following the cursor).

   On touch / no-hover devices the reveal image is disabled and
   each row shows an inline thumbnail with its description always
   visible (see the responsive block at the bottom).
   ============================================================ */
.svc-list {
  --acc: #0f6efc;
  background: #ffffff;
  color: var(--ink, #0a0c14);
  padding: 110px 6vw 120px;
  border-top: 1px solid var(--line, rgba(10, 12, 20, .1));
}

.svc-list__inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;   /* anchor for the reveal image */
}

.svc-list__head {
  display: grid;
  gap: 14px;
  margin: 0 0 48px;
  max-width: 720px;
}

.svc-list__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 0;
}

.svc-list__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0;
}



.svc-list__sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft, #4a4f5c);
  margin: 0;
  max-width: 60ch;
}

/* ----- rows ----- */
.svc-rows {
  position: relative;
  border-top: 1px solid rgba(10, 12, 20, .14);
}

.svc-row {
  position: relative;
  z-index: 1;             /* keep text/arrow clickable above the image */
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 30px 8px;
  border-bottom: 1px solid rgba(10, 12, 20, .14);
  cursor: pointer;
}

.svc-row__no {
  align-self: start;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(10, 12, 20, .45);
  transition: color .3s;
}

.svc-row__main { min-width: 0; }

.svc-row__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 35px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink, #0a0c14);
  transition: color .3s;
}

.svc-row__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft, #4a4f5c);
  margin: 0;
  max-width: 50ch;
  /* collapsed until the row is active */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.2, .8, .2, 1),
              opacity .35s ease,
              margin .45s ease;
}

.svc-row__thumb { display: none; }

.svc-row__arrow {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(10, 12, 20, .22);
  background: transparent;
  color: var(--ink, #0a0c14);
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, transform .35s;
}

.svc-row__arrow svg { width: 20px; height: 20px; }

/* ----- active row ----- */
.svc-row.is-active .svc-row__no    { color: var(--acc); }
.svc-row.is-active .svc-row__title { color: var(--acc); }
.svc-row.is-active .svc-row__desc  { max-height: 140px; opacity: 1; margin-top: 16px; }
.svc-row.is-active .svc-row__arrow {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .svc-row__desc, .svc-row__arrow, .svc-row__title { transition: none; }
}

/* ----- reveal image (anchored to the active row, desktop only) ----- */
.svc-figure {
  position: absolute;
  top: 0;
  left: 56%;
  width: 340px;
  height: 320px;
  z-index: 2;
  pointer-events: none;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  padding: 22px;
  box-sizing: border-box;
  box-shadow: 0 34px 70px -24px rgba(20, 30, 70, .28);
  opacity: 0;
  transform: translateY(-50%) scale(.82) rotate(-8deg);
  transition: opacity .4s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  will-change: top, transform;
}

.svc-figure.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(-8deg);
}

.svc-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (hover: none) { .svc-figure { display: none !important; } }

/* On narrower desktops, pull the image in / shrink it so it never
   collides with the arrow column. */
@media (max-width: 1100px) {
  .svc-figure { left: 50%; width: 300px; height: 280px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .svc-row { grid-template-columns: 52px 1fr auto; gap: 18px; }
}

@media (max-width: 780px) {
  .svc-list { padding: 80px 6vw 90px; }

  .svc-row {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 24px 4px;
  }

  .svc-row__no { padding-top: 4px; font-size: 12px; }

  .svc-row__title { font-size: 26px; padding-right: 52px; }

  /* no hover on touch — show everything inline */
  .svc-row__desc {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 10px;
  }

  .svc-row__thumb {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 150px;
    object-fit: contain;
    border-radius: 14px;
    margin-top: 14px;
    padding: 16px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(10, 12, 20, .1);
  }

  .svc-row__arrow {
    position: absolute;
    top: 18px;
    right: 4px;
    width: 44px;
    height: 44px;
    background: var(--acc);
    border-color: var(--acc);
    color: #fff;
  }
  .svc-row__arrow svg { width: 16px; height: 16px; }
}
