/* Service pages. Nav, sections, form and footer come from index.css; tokens from brand.css. */

body.svc-automation { --accent: var(--color-ochre); --on-accent: var(--color-ink); }
body.svc-web { --accent: var(--color-slate); --on-accent: var(--color-paper); }
body.svc-genai { --accent: var(--color-rose); --on-accent: var(--color-ink); }
body.svc-app { --accent: var(--color-sage); --on-accent: var(--color-ink); }
body[class*="svc-"] { --speed-bg: var(--color-green); --speed-fg: var(--color-paper); }

.svc-hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 110px) 3.4vw clamp(56px, 8vw, 110px);
  background: var(--accent); color: var(--on-accent);
}
.svc-hero::after {
  content: ""; position: absolute; right: -12vw; bottom: -22vw; width: 52vw; height: 52vw;
  border-radius: 50%; background: var(--on-accent); opacity: .08; pointer-events: none;
}
.svc-hero > * { position: relative; z-index: 1; }
.svc-eyebrow { margin-bottom: clamp(20px, 3vw, 44px); font-size: 15px; font-weight: 600; }
.svc-eyebrow a { text-decoration: underline; text-underline-offset: 3px; }
.svc-hero h1 {
  max-width: 9em; font-weight: 800; font-stretch: 75%;
  font-size: clamp(56px, 12vw, 200px); line-height: .88; letter-spacing: -.025em;
}
.svc-intro { max-width: 32em; margin-top: 28px; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; font-weight: 500; }
.svc-hero .pill {
  margin-top: 32px; min-height: 56px; padding: 0 32px; font-size: 17px;
  background: var(--on-accent); color: var(--accent);
}
.svc-hero .pill:hover { background: var(--color-green); color: var(--color-paper); }

/* What we build */
.svc-lede { max-width: 34em; margin-top: 20px; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; font-weight: 500; }
.svc-list { list-style: none; margin-top: 48px; }
.svc-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 5fr) minmax(0, 4fr); gap: 2vw; align-items: baseline;
  padding: 22px 0 22px 0; border-top: 2px solid var(--color-ink);
  transition: color .3s, padding .4s var(--ease-out);
}
.svc-row:last-child { border-bottom: 2px solid var(--color-ink); }
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.svc-row:hover { color: var(--on-accent); padding-left: 1.2vw; padding-right: 1.2vw; }
.svc-row:hover::before { transform: none; }
.svc-n { font-size: 15px; font-weight: 600; }
.svc-row h3 {
  font-weight: 800; font-stretch: 75%; font-size: clamp(34px, 5.2vw, 78px); line-height: .95; letter-spacing: -.012em;
}
.svc-row p { font-size: 18px; line-height: 1.4; }

/* Questions */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3vw; }
.faq-wrap h2 { font-weight: 800; font-stretch: 75%; font-size: clamp(40px, 5vw, 76px); line-height: .95; letter-spacing: -.02em; }
.faq details { border-top: 2px solid var(--color-ink); }
.faq details:last-child { border-bottom: 2px solid var(--color-ink); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; padding: 14px 0;
  font-weight: 700; font-stretch: 88%; font-size: clamp(21px, 2vw, 30px); line-height: 1.15; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-size: 1.5em; font-weight: 400; line-height: 1; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40em; padding: 0 0 28px; font-size: 18px; line-height: 1.5; }

@media (max-width: 860px) {
  .svc-hero { padding: 40px 16px 64px; }
  .svc-hero::after { width: 90vw; height: 90vw; right: -30vw; bottom: -40vw; }
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .svc-row:hover { padding-left: 0; padding-right: 0; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-row, .svc-row::before, .faq summary::after { transition: none; }
}
