/*
 * Services page (/services/): delivery roadmap, service scope, preparation and
 * boundaries, and the assessment form. Tokens and hp-* components come from public.css.
 */

/* ---------- Tighten the hero so hero + roadmap fit the first screen ----------
   public.css gives .pg-hero a loose bottom padding; scoped down here. The top of the
   hero head is shared with every page (see public.css). */
.services-page .pg-hero { padding-bottom: clamp(36px, 3.4vw, 52px); }
.services-page .pg-hero__actions { margin-top: clamp(18px, 1.8vw, 26px); }

/* ---------- Hero: four phases, each with its deliverable ---------- */
.sv-road { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(28px, 2.6vw, 40px) 0 0; padding: clamp(26px, 2.4vw, 46px) clamp(22px, 2.2vw, 42px); border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: #fff; box-shadow: 0 3px 14px rgba(49, 67, 48, .025); font-size: clamp(13px, .86vw, 16.5px); list-style: none; }
.sv-phase { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; justify-items: start; gap: .6em; padding: 0 1.6em 0 0; }
.sv-phase + .sv-phase { padding-left: 1.6em; border-left: 1px solid var(--hp-line-soft); }
.sv-phase__no { display: inline-flex; align-items: center; gap: .6em; color: var(--hp-label); font-size: max(12px, .8em); letter-spacing: .14em; }
.sv-phase__no::before { content: ""; width: .55em; height: .55em; border: 1px solid #9fc5b6; border-radius: 50%; background: #fff; }
.sv-phase:last-child .sv-phase__no::before { border-color: var(--hp-jade); background: var(--hp-jade); }
.sv-phase strong { margin-top: .2em; color: var(--hp-ink); font-family: var(--hp-serif); font-size: 1.45em; font-weight: 500; line-height: 1.4; }
.sv-phase p { min-height: 3.5em; margin: 0; color: var(--hp-muted); font-size: max(12px, .92em); line-height: 1.75; }
.sv-deliver { display: grid; align-self: start; gap: .45em; width: 100%; margin: .8em 0 0; padding: .9em 0 0; border-top: 1px dashed var(--hp-line); list-style: none; }
.sv-deliver li { display: flex; align-items: center; gap: .55em; color: var(--hp-text); font-size: max(12px, .88em); }
.sv-deliver .hp-ico { color: var(--hp-jade); font-size: 1.1em; }
.sv-deliver__label { color: var(--hp-faint); font-size: max(12px, .76em); letter-spacing: .08em; }

/* ---------- Preparation and delivery boundary ---------- */
.sv-scope { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(20px, 2.4vw, 48px); }
.sv-prep { display: grid; gap: 1.2em; padding: clamp(24px, 2.2vw, 42px); border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: #fff; box-shadow: 0 3px 14px rgba(49, 67, 48, .025); }
.sv-prep h3 { display: flex; align-items: center; gap: .55em; font-family: var(--hp-serif); font-size: var(--hp-fs-h3); line-height: 1.4; }
.sv-prep h3 .hp-ico { color: var(--hp-jade); font-size: .9em; }
.sv-prep .hp-checks { margin: 0; }
.sv-bounds { display: grid; margin: 0; border-top: 1px solid var(--hp-line); }
.sv-bounds div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 1.2em; padding: clamp(14px, 1.2vw, 22px) 0; border-bottom: 1px solid var(--hp-line-soft); }
.sv-bounds dt { color: var(--hp-ink); font-size: var(--hp-fs-body); font-weight: 500; line-height: 1.7; }
.sv-bounds dd { margin: 0; color: var(--hp-text); font-size: var(--hp-fs-body); line-height: 1.7; }

/* ---------- Assessment form ---------- */
.sv-contact { scroll-margin-top: 72px; }
.sv-contact__card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 4.4vw, 96px); padding: clamp(28px, 3vw, 60px); border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: #fff; box-shadow: 0 3px 14px rgba(49, 67, 48, .025); }
.sv-contact__copy { display: grid; align-content: start; justify-items: start; gap: clamp(12px, 1vw, 18px); }
.sv-contact__copy .hp-checks { margin: clamp(6px, .8vw, 14px) 0 0; }
.sv-wechat { display: flex; align-items: center; gap: clamp(14px, 1.2vw, 22px); margin-top: clamp(6px, .8vw, 14px); padding: clamp(12px, 1vw, 18px); border: 1px solid var(--hp-line); border-radius: 14px; background: var(--hp-canvas); }
.sv-wechat img { display: block; flex: none; width: clamp(112px, 8vw, 150px); height: auto; aspect-ratio: 1; border-radius: 8px; background: #fff; }
.sv-wechat__text { display: grid; gap: .35em; color: var(--hp-muted); font-size: clamp(13px, .86vw, 16px); line-height: 1.5; }
.sv-wechat__text strong { color: var(--hp-ink); font-family: var(--hp-serif); font-size: 1.2em; font-weight: 500; }
.sv-wechat__text .sv-nowrap { white-space: nowrap; }
.sv-contact__alt { margin: 0; color: var(--hp-muted); font-size: clamp(13px, .86vw, 16px); }
.sv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.1vw, 20px); font-size: var(--hp-fs-body); }
.sv-form label { display: grid; gap: .5em; color: var(--hp-text); font-size: var(--hp-fs-small); }
.sv-form__wide { grid-column: 1 / -1; }
.sv-form input, .sv-form textarea { width: 100%; border: 1px solid var(--hp-line); border-radius: 10px; color: var(--hp-ink); background: #fcfdfb; font: inherit; font-size: var(--hp-fs-body); transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.sv-form input { min-height: clamp(44px, 2.8vw, 52px); padding: 0 .9em; }
.sv-form textarea { min-height: 7.5em; padding: .75em .9em; line-height: 1.7; resize: vertical; }
.sv-form input::placeholder, .sv-form textarea::placeholder { color: #a3aba5; }
.sv-form input:focus, .sv-form textarea:focus { border-color: #8fbfab; outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(35, 131, 107, .12); }
.sv-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1.2em; grid-column: 1 / -1; margin-top: .3em; }
.contact-form__message { flex: 1 1 18em; margin: 0; color: var(--hp-faint); font-size: var(--hp-fs-small); line-height: 1.65; }
.contact-form__message.is-success { color: #1f7158; }
.contact-form__message.is-error { color: #a43d42; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .sv-road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-phase:nth-child(3) { padding-left: 0; border-left: 0; }
  .sv-phase:nth-child(n + 3) { margin-top: 2em; padding-top: 2em; border-top: 1px solid var(--hp-line-soft); }
  .sv-scope, .sv-contact__card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sv-road { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .sv-phase, .sv-phase + .sv-phase, .sv-phase:nth-child(3), .sv-phase:nth-child(n + 3) { margin-top: 0; padding: 0; border-left: 0; border-top: 0; }
  .sv-phase + .sv-phase { margin-top: 1.6em; padding-top: 1.6em; border-top: 1px solid var(--hp-line-soft); }
  .sv-phase p { min-height: 0; }
  .sv-bounds div { grid-template-columns: minmax(0, 1fr); gap: .3em; }
  .sv-form { grid-template-columns: minmax(0, 1fr); }
  .sv-form__actions .hp-btn { width: 100%; }
}
